:root {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #172b4d;
    background: #f4f7fb;
}

body { margin: 0; background: #f4f7fb; }
.dashboard-scope { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; color: #61758d; }
.dashboard-scope span { color: #17766f; font-weight: 700; }
.dashboard-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dashboard-metrics .metric-card strong { font-size: clamp(1.2rem, 1.8vw, 1.8rem); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dashboard-metrics .metric-card small { color: #6b7d95; font-size: .75rem; }
.metric-highlight { border-top: 3px solid #16847d; background: #f0faf8; }
.dashboard-panel { padding: 26px; margin-bottom: 24px; }
.dashboard-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.dashboard-section-heading h2 { font-size: 1.2rem; margin: 0 0 6px; }
.dashboard-section-heading a { color: #17766f; text-decoration: none; font-size: .85rem; }
.dashboard-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dashboard-status { display: grid; gap: 10px; padding: 18px; border: 1px solid #e2eaf1; border-radius: 12px; color: #304967; text-decoration: none; background: #f8fafc; }
.dashboard-status strong { font-size: 1.7rem; color: #0f3557; }
.dashboard-status small { color: #17766f; }
.dashboard-status:hover, .dashboard-status:focus-visible { background: #eaf6f3; border-color: #16847d; }
.dashboard-empty { padding: 26px; text-align: center; color: #61758d; background: #f7fafc; border-radius: 12px; }
@media (max-width: 1000px) { .summary-grid.dashboard-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 500px) { .summary-grid.dashboard-metrics { grid-template-columns: minmax(0,1fr); } .dashboard-panel { padding: 18px; } }
.app-shell { min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 7%; background: #0f3557; color: white; }
.brand-block { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.08); color: white; font-size: 1.25rem; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.menu-toggle:hover { background: rgba(143,208,200,.25); transform: translateY(-1px); }
.brand { font-size: 1.35rem; font-weight: 700; }
.subtitle { margin-top: 4px; opacity: .75; font-size: .85rem; }
.status-pill { padding: 7px 14px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .85rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.logout-link { color: white; text-decoration: none; font-size: .9rem; }
.content { width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 42px 24px; }
.app-body { display: grid; grid-template-columns: 310px minmax(0, 1fr); direction: rtl; align-items: start; min-height: calc(100vh - 91px); }
.app-body.sidebar-hidden { grid-template-columns: minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 91px); overflow-y: auto; padding: 24px 16px; background: linear-gradient(180deg, #102f4c 0%, #0b243c 100%); color: #d9e7f4; border-left: 1px solid rgba(255,255,255,.08); box-shadow: -10px 0 30px rgba(9, 32, 55, .12); scrollbar-width: thin; scrollbar-color: #2c6078 transparent; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 17px; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 700; letter-spacing: .1px; }
.sidebar-collapse { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(143,208,200,.35); background: rgba(143,208,200,.08); color: #a9e0d9; border-radius: 8px; font-size: 1.05rem; cursor: pointer; }
.navigation-groups { margin-top: 17px; }
.navigation-tab { margin-bottom: 9px; }
.navigation-tab-button, .navigation-group-button { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; color: inherit; cursor: pointer; text-align: right; font: inherit; }
.navigation-tab-button { padding: 13px 12px; border-radius: 11px; background: rgba(39, 103, 126, .58); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.navigation-tab-button:hover, .navigation-group-button:hover { background: rgba(68, 145, 157, .34); }
.nav-tab-icon { display: inline-grid; place-items: center; width: 22px; color: #8fd0c8; font-size: 1.15rem; }
.nav-chevron { margin-right: auto; color: #8fb2c7; font-size: 1.15rem; }
.navigation-groups-list { padding: 7px 8px 3px 0; }
.navigation-group { margin: 5px 0; border: 1px solid rgba(157, 200, 216, .13); border-radius: 10px; background: rgba(4, 21, 37, .2); overflow: hidden; }
.navigation-group-button { padding: 10px 12px; color: #b5d0df; background: transparent; font-size: .88rem; }
.navigation-items { padding: 4px 8px 8px; border-top: 1px solid rgba(157, 200, 216, .1); }
.navigation-item { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 7px; color: #e2edf6; text-decoration: none; font-size: .84rem; transition: background .15s ease, transform .15s ease; }
.navigation-item:hover { background: rgba(143,208,200,.14); color: white; }
.nav-item-bullet { color: #6dbbb3; font-size: 1rem; }
.navigation-item-disabled { color: #829daf; cursor: default; }
.navigation-item-disabled small { margin-right: auto; color: #66869b; font-size: .68rem; }
.hero, .panel { background: white; border-radius: 18px; padding: 40px; box-shadow: 0 8px 28px rgba(22, 45, 75, .07); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero h1, .page-heading h1 { margin: 8px 0 12px; font-size: 2.2rem; }
.hero p { max-width: 650px; color: #5e718c; line-height: 1.8; }
.eyebrow { color: #1a8a83; font-size: .85rem; font-weight: 700; }
.hero-mark { display: grid; place-items: center; width: 130px; height: 130px; border-radius: 35px; background: #dff2ef; color: #13766f; font-size: 5rem; font-weight: 800; }
.primary-button, .secondary-button { border: 0; border-radius: 9px; padding: 11px 20px; cursor: pointer; font-weight: 700; }
.primary-button { background: #16847d; color: white; }
.secondary-button { background: #e6eef6; color: #173c5e; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metric-card { background: white; padding: 24px; border-radius: 14px; box-shadow: 0 8px 28px rgba(22, 45, 75, .06); }
.metric-card span { display: block; color: #6b7d95; font-size: .9rem; }
.metric-card strong { display: block; margin-top: 12px; font-size: 2rem; color: #0f3557; }
.panel h2 { margin-top: 0; }
.notice, .error-box { padding: 18px; border-radius: 10px; background: white; }
.error-box { border-right: 4px solid #c0392b; color: #8f2d23; }
.page-description { margin: 0; color: #6b7d95; }
.request-heading { align-items: center; }
.request-actions { display: flex; gap: 10px; align-items: center; }
.request-toolbar { display: flex; align-items: end; gap: 18px; margin-bottom: 20px; padding: 20px 24px; }
.filter-field { min-width: 190px; }
.filter-field label { display: block; margin-bottom: 7px; color: #637993; font-size: .82rem; font-weight: 700; }
.filter-field input, .filter-field select { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #d8e1eb; border-radius: 9px; background: #fbfcfe; color: #173653; font: inherit; }
.search-field { flex: 1; }
.request-count { margin-right: auto; padding: 10px 14px; border-radius: 9px; background: #e5f2f0; color: #17766f; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.filter-button { padding: 10px 18px; }
.request-list { padding: 0; overflow: hidden; }
.request-table-wrap { overflow-x: auto; }
.request-table { width: 100%; border-collapse: collapse; text-align: right; }
.lookup-types-table th:last-child, .lookup-types-table td:last-child { width: 1%; text-align: left; white-space: nowrap; }
.lookup-types-table td:last-child .request-actions { justify-content: flex-end; margin-top: 0; }
.initiative-filters { flex-wrap: wrap; }
.initiative-filters .filter-field { min-width: 160px; flex: 1; }
.initiative-note p { white-space: pre-wrap; overflow-wrap: anywhere; }
.initiative-tab-shell { padding: 0; overflow: hidden; }
.initiative-tabs { display: flex; gap: 4px; padding: 12px 18px 0; overflow-x: auto; background: #f8fafc; border-bottom: 1px solid #dde7ef; }
.initiative-tab { flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; padding: 15px 18px; background: transparent; color: #61758d; font: inherit; font-weight: 600; cursor: pointer; border-radius: 9px 9px 0 0; }
.initiative-tab:hover { color: #146b65; background: #eaf5f2; }
.initiative-tab.active { color: #11665f; border-bottom-color: #16847d; background: #eaf6f3; }
.initiative-tab:focus-visible { outline: 2px solid #16847d; outline-offset: -4px; }
.initiative-tab-content { padding: 28px; min-height: 240px; }
.initiative-tab-title { font-size: 1.15rem; margin: 22px 0 16px; color: #214360; }
.initiative-tab-title:first-child { margin-top: 0; }
.initiative-note-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0 24px; }
.initiative-note-grid .initiative-note { padding: 18px; background: #f8fafc; border: 1px solid #e4ecf2; border-radius: 12px; }
.initiative-note-grid a { color: #11665f; }
@media(max-width:760px) { .initiative-note-grid { grid-template-columns: minmax(0,1fr); } .initiative-tab-content { padding: 18px; } .initiative-tab { padding: 13px; } }
.request-table th { padding: 16px 18px; background: #f7f9fc; color: #6d8098; font-size: .8rem; white-space: nowrap; }
.request-table td { padding: 15px 18px; border-top: 1px solid #edf1f5; color: #304967; font-size: .88rem; white-space: nowrap; }
.request-table td strong, .request-table td small { display: block; }
.request-table td small { margin-top: 4px; color: #8495a9; font-size: .75rem; }
.indicator-dashboard-description { width: clamp(220px, 28vw, 320px); white-space: normal; overflow-wrap: anywhere; }
.request-table .indicator-dashboard-description small { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid #edf1f5; color: #6d8098; font-size: .82rem; }
.page-size-control, .pagination-controls { display: flex; align-items: center; gap: 8px; }
.page-size-control select { padding: 6px 8px; border: 1px solid #d8e1eb; border-radius: 7px; color: #294762; background: white; }
.page-button { border: 1px solid #d8e1eb; border-radius: 7px; padding: 7px 12px; background: white; color: #294762; cursor: pointer; font: inherit; }
.page-button:hover:not(:disabled) { border-color: #16847d; color: #13766f; }
.page-button:disabled { opacity: .45; cursor: default; }
.amount-cell { color: #13766f !important; font-weight: 700; }
.status-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #edf1f5; color: #637993; font-size: .76rem; }
.status-1 { background: #fff4d8; color: #a76d00; }
.status-2 { background: #e6f0ff; color: #2864a5; }
.status-3 { background: #f1e9ff; color: #7246a9; }
.status-4 { background: #def5ec; color: #167657; }
/* Initiative stages have their own palette, independent of disbursement stages. */
.status-badge.initiative-status-badge { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; font-weight: 600; white-space: nowrap; }
.initiative-status-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.initiative-status-badge.initiative-status-1 { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.initiative-status-badge.initiative-status-2 { background: #fef9c3; color: #854d0e; border-color: #fde047; }
.initiative-status-badge.initiative-status-3 { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.initiative-status-badge.initiative-status-4 { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.initiative-status-badge.initiative-status-5 { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.initiative-status-badge.initiative-status-6 { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.initiative-status-badge.initiative-status-7 { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.table-action { border: 0; border-radius: 7px; padding: 7px 11px; background: #edf5f4; color: #17766f; cursor: pointer; font: inherit; font-size: .8rem; }
.table-action:hover { background: #d7ece9; }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #e5f2f0; color: #17766f; font-size: 1.8rem; }
.empty-state h2 { margin: 15px 0 8px; color: #173653; }
.empty-state p { margin: 0; color: #7a8ca1; }
.details-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(9, 29, 48, .45); }
.request-details { width: min(700px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; border-radius: 18px; background: white; box-shadow: 0 20px 60px rgba(9, 29, 48, .22); }
.details-header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 18px; border-bottom: 1px solid #edf1f5; }
.details-header h2 { margin: 6px 0 0; color: #173653; }
.close-button { border: 0; background: #f1f4f7; color: #637993; width: 34px; height: 34px; border-radius: 9px; font-size: 1.5rem; cursor: pointer; }
.details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 24px 0; }
.details-grid span, .details-note span { display: block; color: #8495a9; font-size: .78rem; }
.details-grid strong { display: block; margin-top: 5px; color: #294762; }
.details-note { padding: 16px; border-radius: 10px; background: #f7f9fc; }
.details-note p { margin: 8px 0 0; color: #405a72; line-height: 1.8; }
.details-footer { display: flex; justify-content: flex-start; margin-top: 20px; padding-top: 20px; border-top: 1px solid #edf1f5; }
.create-request-form { width: min(760px, 100%); }
.create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 22px; }
.create-grid .form-field { margin: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field select, .form-field input, .form-field textarea { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #d8e1eb; border-radius: 9px; background: #fbfcfe; color: #173653; font: inherit; }
.form-field textarea { resize: vertical; }
.initiative-edit-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.bill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bill-actions > button { flex-shrink: 0; }
.bill-form-actions { margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid #edf1f5; }
.bill-table-toolbar { padding-block: 20px; }
.project-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.annual-target-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; width: 100%; }
.annual-target-filters .filter-field { flex: 1 1 180px; min-width: 0; }
.initiative-basic-form input[readonly] { background: #eef3f8; color: #62758b; }
.initiative-basic-form input[type="checkbox"] { width: 20px; height: 20px; padding: 0; accent-color: #16847d; }
.initiative-basic-form .form-field > button { margin-top: 10px; }
.initiative-tab:disabled { opacity: .6; cursor: not-allowed; }
.form-alert { margin-top: 20px; padding: 12px 14px; border-right: 4px solid #c0392b; border-radius: 8px; background: #fff2f0; color: #9f3025; }
.form-footer { display: flex; justify-content: flex-start; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1f5; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f4f7fb; }
.login-card { width: min(440px, 100%); background: white; padding: 38px; border-radius: 18px; box-shadow: 0 8px 28px rgba(22, 45, 75, .08); }
.login-mark { width: 70px; height: 70px; border-radius: 20px; font-size: 2.5rem; margin-bottom: 22px; }
.login-description { color: #6b7d95; margin-bottom: 24px; }
.form-field { margin: 16px 0; }
.form-field label { display: block; margin-bottom: 7px; font-weight: 700; }
.form-field input { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #ccd7e3; border-radius: 8px; font: inherit; }
.form-field input:focus { outline: 2px solid #b9e0db; border-color: #16847d; }
.validation-message { color: #c0392b; font-size: .85rem; }
.login-button { width: 100%; margin-top: 12px; }
@media (max-width: 900px) { .app-body, .app-body.sidebar-hidden { display: block; } .sidebar { position: relative; width: auto; height: auto; } .navigation-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } }
@media (max-width: 760px) { .hero { flex-direction: column; align-items: flex-start; } .summary-grid { grid-template-columns: repeat(2, 1fr); } .navigation-groups { display: block; } .request-toolbar { display: block; } .filter-field { margin-bottom: 14px; } .request-count { display: inline-block; } .details-grid, .create-grid { grid-template-columns: 1fr; } .form-field-wide { grid-column: auto; } .request-actions { margin-top: 16px; } .pagination-bar { align-items: stretch; flex-direction: column; } .pagination-controls { justify-content: space-between; } }
.attachment-section { border-top: 1px solid #e3eaf1; margin-top: 1.5rem; padding-top: 1rem; }
.attachment-section h3 { margin: 0 0 1rem; font-size: 1.1rem; }
.attachment-count { background: #e7f3f4; color: #087b80; border-radius: 99px; padding: .15rem .55rem; font-size: .8rem; }
.attachment-upload { display: grid; gap: .65rem; padding: 1rem; border: 1px dashed #a8c8d3; border-radius: 12px; background: #f6fafc; margin-bottom: 1rem; }
.attachment-upload input { max-width: 100%; font: inherit; }
.attachment-upload input::file-selector-button { border: 0; border-radius: 8px; padding: .6rem 1rem; margin-inline-end: .7rem; background: #123654; color: white; cursor: pointer; }
.attachment-upload small, .attachment-hint, .attachment-info small { color: #66788b; font-size: .85rem; }
.attachment-row { display: flex; align-items: center; gap: .8rem; padding: .85rem 0; border-bottom: 1px solid #edf1f5; }
.attachment-info { display: grid; gap: .3rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.attachment-delete { border: 1px solid #f0d6d4; color: #b53b32; background: #fff7f6; padding: .45rem .7rem; border-radius: 8px; cursor: pointer; font: inherit; }
.attachment-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; padding: .8rem; background: #fff7f6; border-radius: 8px; }
.request-audit { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.request-audit li { display: grid; gap: .35rem; padding: .8rem 1rem; border-inline-start: 3px solid #13939c; background: #f7fafc; border-radius: 8px; overflow-wrap: anywhere; }
.request-audit span, .request-audit small { font-size: .85rem; color: #66788b; }
.attachment-section button:disabled { opacity: .5; cursor: wait; }
.request-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.request-fieldset:disabled { opacity: .7; }
.budget-balance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 1rem; background: #f1f8f8; border: 1px solid #cce4e5; border-radius: 12px; }
.budget-balance div { display: grid; gap: .4rem; }
.budget-balance span { font-size: .8rem; color: #66788b; }
.budget-balance strong { color: #087b80; font-variant-numeric: tabular-nums; }
.budget-balance small { grid-column: 1 / -1; color: #66788b; font-size: .8rem; }
.budget-balance .balance-exceeded { color: #b53b32; }
@media (max-width: 500px) { .budget-balance { grid-template-columns: 1fr; } }
.request-manage-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cancellation-confirm { display: grid; gap: .65rem; margin-top: 1rem; padding: 1rem; border-radius: 12px; border: 1px solid #f0d6d4; background: #fff7f6; }
.cancellation-confirm textarea { box-sizing: border-box; width: 100%; font: inherit; padding: .7rem; border: 1px solid #dfc9c7; border-radius: 8px; resize: vertical; }
.cancellation-confirm p { margin: 0; font-size: .85rem; color: #66788b; }
