* { box-sizing: border-box; }
:root { font-family: "Tajawal", Tahoma, sans-serif; color: #1b2938; background: #f5f8f9; --teal: #128d84; --line: #e5edef; --muted: #82919a; }
body { min-width: 320px; margin: 0; background: #f5f8f9; } button, input, select { font: inherit; } button { cursor: pointer; }
.app-sidebar { position: fixed; z-index: 10; top: 0; right: 0; display: flex; flex-direction: column; width: 260px; height: 100vh; padding: 28px 18px; color: #f2e9df; background: linear-gradient(165deg, #202733 0%, #16232e 62%, #9e481c 100%); transition: width .25s ease, padding .25s ease; }.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 9px 38px; color: inherit; text-decoration: none; }.sidebar-brand img { width: 40px; height: 40px; border: 2px solid rgba(239,145,61,.72); border-radius: 12px; object-fit: cover; background: #fff; }.sidebar-brand strong, .sidebar-brand small { display: block; }.sidebar-brand strong { color: #fff; font-size: 16px; }.sidebar-brand small { margin-top: 4px; color: #f1c9a8; font-size: 10px; font-weight: 400; }.sidebar-nav { display: grid; gap: 6px; }.sidebar-nav p { margin: 0 12px 11px; color: #d8a77d; font-size: 10px; font-weight: 700; }.sidebar-nav a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 9px; color: #ddc7b4; text-decoration: none; font-size: 13px; }.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(224,103,27,.32); }.sidebar-nav a.active { box-shadow: inset -3px 0 #f09a43; }.sidebar-nav b { width: 21px; color: #e5a66f; text-align: center; font-size: 20px; font-weight: 400; }
.sidebar-toggle { margin: 0 0 12px auto; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); font-size: 18px; cursor: pointer; }
.app-sidebar.collapsed { width: 90px; padding: 18px 10px; }
.app-sidebar.collapsed .sidebar-brand { padding-inline: 0; justify-content: center; }
.app-sidebar.collapsed .sidebar-brand strong,
.app-sidebar.collapsed .sidebar-brand small,
.app-sidebar.collapsed .sidebar-nav p,
.app-sidebar.collapsed .sidebar-nav span { display: none; }
.app-sidebar.collapsed .sidebar-nav a { justify-content: center; padding: 12px 8px; }
.app-sidebar.collapsed .sidebar-nav b { width: auto; }
.finance-page { width: min(1400px, calc(100% - 320px)); margin-right: 290px; padding: 42px 30px 60px; transition: margin-right .25s ease, width .25s ease; }
body.sidebar-collapsed .finance-page { width: min(1400px, calc(100% - 150px)); margin-right: 110px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; min-height: 118px; margin: -42px -30px 27px; padding: 20px 30px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { margin: 0 0 9px; color: #9aa7b0; font-size: 10px; }
.breadcrumb span { padding: 0 7px; color: #c5cdd1; }
.page-heading h1 { margin: 0 0 6px; font-size: 21px; letter-spacing: 0; }
.page-heading h1 span { font-size: 19px; }
.page-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.head-actions { display: flex; align-items: center; gap: 12px; }
.back-button { padding: 10px 13px; border: 1px solid #dce8e9; border-radius: 7px; color: #586d78; background: #fff; font-size: 10px; }
.heading-date { display: flex; align-items: center; gap: 11px; min-width: 220px; padding: 11px 14px; border: 1px solid #dceceb; border-radius: 12px; background: linear-gradient(135deg, #fff 0%, #f3fbfa 100%); box-shadow: 0 7px 18px rgba(18, 59, 69, .07); }
.heading-date span, .heading-date strong { display: block; }
.heading-date span { margin-bottom: 3px; color: #8a9aa1; font-size: 9px; font-weight: 500; }
.heading-date strong { color: #1b2938; font-size: 11px; font-weight: 700; white-space: nowrap; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 700; }h1 { margin: 0 0 9px; font-size: 28px; }.page-header p:last-child { margin: 0; color: var(--muted); font-size: 12px; }.primary-button { padding: 11px 16px; border: 0; border-radius: 7px; color: #fff; background: #117f79; font-size: 11px; box-shadow: 0 5px 12px rgba(17,127,121,.16); }.primary-button span { margin-left: 5px; font-size: 17px; vertical-align: middle; }
.finance-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }.finance-summary article { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.summary-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; font-size: 18px; }.summary-icon.teal { color: #158e84; background: #e2f6f3; }.summary-icon.orange { color: #e6a143; background: #fff3df; }.summary-icon.blue { color: #5e8fe0; background: #eaf1ff; }.summary-icon.purple { color: #9271db; background: #f0ebfb; }.finance-summary small, .finance-summary strong, .finance-summary div > span { display: block; }.finance-summary small { color: var(--muted); font-size: 10px; }.finance-summary strong { margin: 7px 0 4px; font-size: 21px; }.finance-summary em { color: #7f8e96; font-size: 10px; font-style: normal; }.finance-summary div > span { color: #a4afb5; font-size: 9px; }
.quick-actions { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.quick-actions h2 { margin: 0 0 4px; font-size: 13px; }.quick-actions p { margin: 0; color: var(--muted); font-size: 9px; }.quick-actions > div { margin-left: auto; }.quick-actions button { padding: 9px 11px; border: 1px solid #e0eaeb; border-radius: 6px; color: #61747e; background: #fbfdfd; font-size: 9px; }.quick-actions button:hover { border-color: #8bd1ca; color: var(--teal); background: #f0fbf9; }.quick-actions button span { margin-left: 4px; color: var(--teal); font-size: 14px; }
.finance-workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.finance-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #fbfdfd; }.finance-tab { display: flex; align-items: center; gap: 9px; padding: 16px 14px; border: 0; border-left: 1px solid var(--line); color: #81909a; background: transparent; text-align: right; }.finance-tab:last-child { border-left: 0; }.finance-tab > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; color: #82939b; background: #edf3f3; font-size: 15px; }.finance-tab strong, .finance-tab small { display: block; }.finance-tab strong { margin-bottom: 3px; color: #566b75; font-size: 11px; }.finance-tab small { color: #a4afb5; font-size: 8px; }.finance-tab.active { background: #fff; box-shadow: inset 0 -3px var(--teal); }.finance-tab.active > span { color: var(--teal); background: #e3f6f3; }.finance-tab.active strong { color: var(--teal-dark); }.finance-panel { padding: 23px; }.finance-panel[hidden] { display: none; }.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }.panel-heading h2 { margin: 0 0 6px; font-size: 16px; }.panel-heading p { margin: 0; color: var(--muted); font-size: 10px; }.panel-tools { display: flex; gap: 8px; }.panel-tools input, .panel-tools select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; outline: 0; color: #536670; background: #fff; font-size: 9px; }.panel-tools input { width: 180px; }.outline-button { padding: 8px 12px; border: 1px solid #a9dcd5; border-radius: 6px; color: var(--teal-dark); background: #f4fbfa; font-size: 9px; }.outline-button:hover { background: #e5f6f3; }.empty-panel { display: grid; place-items: center; min-height: 230px; border: 1px dashed #d8e5e6; border-radius: 9px; text-align: center; }.empty-panel > span { display: grid; place-items: center; width: 53px; height: 53px; margin-bottom: 13px; border-radius: 15px; color: var(--teal); background: #e5f7f4; font-size: 24px; }.empty-panel h3 { margin: 0 0 7px; font-size: 14px; }.empty-panel p { margin: 0 0 15px; color: var(--muted); font-size: 10px; }.empty-panel .primary-button { padding: 9px 13px; font-size: 9px; }.salary-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }.salary-cards article { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; }.salary-cards span, .salary-cards strong, .salary-cards small { display: block; }.salary-cards span { color: var(--muted); font-size: 10px; }.salary-cards strong { margin: 9px 0 5px; font-size: 17px; }.salary-cards small { color: #a4afb5; font-size: 9px; }.empty-panel.compact { min-height: 160px; }
@media (max-width: 900px) { .page-heading { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; } }
.row-action { padding: 6px 10px; border: 0; border-radius: 6px; color: #158e84; background: #e2f6f3; font-size: 9px; }.row-action:hover { background: #d3f0eb; }
.employee-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }.employee-detail-item { padding: 12px; border: 1px solid #e6eef0; border-radius: 8px; background: #fbfdfd; }.employee-detail-item small, .employee-detail-item strong { display: block; }.employee-detail-item small { margin-bottom: 5px; color: #8a9aa1; font-size: 9px; }.employee-detail-item strong { color: #344754; font-size: 11px; }
@media (max-width: 560px) { .employee-details-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .page-heading { display: block; min-height: 0; margin: -25px -14px 25px; padding: 15px 14px; }.head-actions { flex-wrap: wrap; margin-top: 18px; }.heading-date { flex: 1 1 100%; min-width: 0; }.primary-button { margin-top: 0; } }
@media (max-width: 1100px) { .finance-summary { grid-template-columns: repeat(2, 1fr); }.quick-actions { flex-wrap: wrap; }.quick-actions > div { width: 100%; margin-left: 0; } }
@media (max-width: 900px) { .app-sidebar { width: 74px; padding: 20px 10px; }.sidebar-brand { justify-content: center; padding: 0 0 28px; }.sidebar-brand strong, .sidebar-nav p, .sidebar-nav a span { display: none; }.sidebar-nav a { justify-content: center; padding: 13px 8px; }.finance-page { width: calc(100% - 100px); margin-right: 84px; padding: 30px 15px; }.finance-tabs { grid-template-columns: repeat(2, 1fr); }.finance-tab:nth-child(2) { border-left: 0; }.panel-heading { display: block; }.panel-tools { margin-top: 17px; } }
@media (max-width: 560px) { .finance-page { width: calc(100% - 88px); margin-right: 74px; padding: 25px 14px; }.page-header { display: block; }.primary-button { margin-top: 18px; }.finance-summary { gap: 10px; }.finance-summary article { padding: 13px 10px; }.summary-icon { width: 31px; height: 31px; }.finance-summary strong { font-size: 17px; }.quick-actions { display: grid; grid-template-columns: 1fr 1fr; }.quick-actions > div { grid-column: 1 / -1; }.quick-actions button { width: 100%; }.finance-tabs { grid-template-columns: 1fr 1fr; }.finance-tab { padding: 12px 8px; }.finance-tab small { display: none; }.finance-panel { padding: 17px; }.panel-tools { display: grid; grid-template-columns: 1fr; }.panel-tools input, .panel-tools select { width: 100%; }.salary-cards { grid-template-columns: 1fr; } }
.finance-tabs { grid-template-columns: repeat(5, 1fr); }.advance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 15px; }.advance-summary article { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdfd; }.advance-summary span, .advance-summary strong, .advance-summary small { display: block; }.advance-summary span { color: var(--muted); font-size: 10px; }.advance-summary strong { margin-top: 8px; font-size: 18px; }.advance-summary small { display: inline; color: var(--muted); font-size: 9px; font-weight: 400; }
.finance-table-wrap { overflow-x: auto; }.finance-table-wrap table { width: 100%; min-width: 700px; border-collapse: collapse; }.finance-table-wrap th { padding: 0 10px 12px; color: #9aa7ae; text-align: right; font-size: 10px; font-weight: 400; }.finance-table-wrap td { padding: 13px 10px; border-top: 1px solid #f0f3f4; color: #687985; font-size: 10px; }.finance-table-wrap td:first-child { color: #1b2938; font-weight: 700; }.finance-status { display: inline-block; padding: 5px 8px; border-radius: 4px; color: #209b81; background: #e3f7f0; font-size: 9px; }.finance-status.pending { color: #ce8d2e; background: #fff3de; }.finance-status.rejected { color: #d36f68; background: #fcebea; }.table-empty { padding: 34px 15px; color: var(--muted); text-align: center; font-size: 11px; }
.salary-monthly-review { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 13px; border: 1px solid #dceceb; border-radius: 8px; background: #f5fbfa; }.salary-monthly-review strong { grid-column: 1 / -1; color: var(--teal-dark); font-size: 11px; }.salary-monthly-review span { color: var(--muted); font-size: 9px; }.salary-monthly-review span strong { display: block; margin-top: 4px; color: #1b2938; font-size: 15px; }.salary-dependent[hidden] { display: none; }
.salary-batch-action-row { display: flex; justify-content: flex-start; margin: 0 0 12px; }
#add-salary-employee { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: 11px 16px; border: 0; border-radius: 7px; color: #fff; background: #117f79; box-shadow: 0 5px 12px rgba(17,127,121,.16); font-size: 11px; font-weight: 700; }
#add-salary-employee:hover { background: #0d6a65; transform: translateY(-1px); }
.salary-run-batch { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 12px; border: 1px solid #dfece9; border-radius: 10px; background: linear-gradient(180deg, #fbfdfd 0%, #f3fbfa 100%); box-shadow: inset 0 0 0 1px rgba(18,141,132,.04); }
.salary-batch-header, .salary-batch-row { display: grid; grid-template-columns: 1.8fr 1fr auto; gap: 10px; align-items: center; }
.salary-batch-header { color: #7a8d95; font-size: 9px; font-weight: 700; }
.salary-batch-row { padding: 8px 10px; border: 1px solid #edf2f3; border-radius: 8px; background: #fff; color: #2b3d49; font-size: 10px; }
.text-button { border: 0; padding: 6px 8px; border-radius: 6px; color: #c75950; background: #fceceb; font-size: 9px; }
@media (max-width: 900px) { .finance-tabs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .finance-tabs { grid-template-columns: repeat(2, 1fr); }.advance-summary { grid-template-columns: 1fr; } }
.finance-modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(20,31,39,.58); backdrop-filter: blur(5px); }.finance-modal-backdrop[hidden] { display: none; }.finance-modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border: 1px solid rgba(255,255,255,.65); border-radius: 17px; background: #fff; box-shadow: 0 25px 70px rgba(13,32,41,.25); animation: finance-modal-in .2s ease-out; }.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 23px; }.modal-kicker { display: block; margin-bottom: 6px; color: var(--teal); font-size: 10px; font-weight: 700; }.modal-heading h2 { margin: 0 0 6px; font-size: 20px; }.modal-heading p { margin: 0; color: var(--muted); font-size: 10px; }.modal-close { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 8px; color: #82919a; background: #f2f6f7; font-size: 22px; line-height: 1; }.modal-close:hover { color: #b85349; background: #fcedeb; }.finance-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.finance-form-grid label { color: #647780; font-size: 10px; }.finance-form-grid label.full { grid-column: 1 / -1; }.finance-form-grid input, .finance-form-grid select, .finance-form-grid textarea { display: block; width: 100%; margin-top: 7px; padding: 10px 11px; border: 1px solid #e2eaec; border-radius: 7px; outline: 0; color: #344754; background: #fbfdfd; font-size: 10px; }.finance-form-grid textarea { min-height: 82px; resize: vertical; }.finance-form-grid input:focus, .finance-form-grid select:focus, .finance-form-grid textarea:focus { border-color: #48b8ad; background: #fff; box-shadow: 0 0 0 3px rgba(25,168,155,.1); }.modal-actions { display: flex; justify-content: flex-start; gap: 9px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #edf2f3; }.cancel-button { padding: 11px 18px; border: 1px solid #e0e8ea; border-radius: 7px; color: #71818c; background: #fff; font-size: 10px; }.cancel-button:hover { background: #f5f8f9; }.finance-modal .primary-button { padding: 11px 18px; font-size: 10px; }body.finance-modal-open { overflow: hidden; }@keyframes finance-modal-in { from { opacity: 0; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 560px) { .finance-modal { padding: 20px 17px; border-radius: 14px; }.finance-form-grid { grid-template-columns: 1fr; gap: 13px; }.finance-form-grid label.full { grid-column: auto; } }
.disbursement-modal { width: min(680px, 100%); }
.disbursement-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.disbursement-summary article { padding: 14px; border-radius: 12px; background: linear-gradient(155deg, #0f766e 0%, #117f79 60%, #1aa89c 100%); color: #fff; text-align: center; }
.disbursement-summary article span { display: block; margin-bottom: 6px; color: rgba(255,255,255,.78); font-size: 9px; }
.disbursement-summary article strong { display: block; font-size: 18px; }
.disbursement-list { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; margin-bottom: 6px; }
.disbursement-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid #e6eef0; border-radius: 12px; background: #fbfdfd; }
.disbursement-item-info strong { display: block; margin-bottom: 4px; color: #182432; font-size: 12px; }
.disbursement-item-info span { display: block; color: #7f8e96; font-size: 10px; }
.disbursement-item-info span + span { margin-top: 3px; }
.disbursement-item-actions { display: flex; align-items: center; gap: 8px; }
.disbursement-item-actions input[type="date"] { padding: 8px 10px; border: 1px solid #e2eaec; border-radius: 7px; color: #344754; background: #fff; font-size: 9px; }
.disbursement-item-actions button { padding: 9px 14px; border: 0; border-radius: 7px; color: #fff; background: #117f79; font-size: 10px; font-weight: 700; white-space: nowrap; }
.disbursement-item-actions button:hover { background: #0d6a65; }
.disbursement-item-actions button:disabled { background: #a9c4c1; cursor: default; }
@media (max-width: 560px) { .disbursement-summary { grid-template-columns: 1fr; }.disbursement-item { flex-direction: column; align-items: stretch; }.disbursement-item-actions { justify-content: space-between; } }
.disbursement-item-actions .reject-button { background: #c0392b; }
.disbursement-item-actions .reject-button:hover { background: #a5301f; }
.disbursement-item-info .request-reason { color: #9aa7ae; }
.disbursement-summary article.tone-warning { background: linear-gradient(155deg, #b9791f 0%, #d99a35 60%, #e6ac4a 100%); }
