:root {
    --bg: #eef5ff;
    --panel: #ffffff;
    --panel-soft: #f3f8ff;
    --primary: #1d4ed8;
    --primary-dark: #1438a4;
    --primary-soft: #dfeafe;
    --secondary: #0f172a;
    --muted: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: rgba(148, 163, 184, 0.25);
    --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
}

* { box-sizing: border-box; }

/* CAMIS login page */
.login-page {
    --camis-blue: #1565C0;
    --camis-sky: #1976D2;
    --camis-ink: #10233c;
    --camis-pale: #eef7ff;
    font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
    background: var(--camis-pale);
    color: var(--camis-ink);
}

.login-page a { color: inherit; }
.login-header {
    min-height: 77px;
    padding: 0 max(7vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: #fff;
    border-bottom: 1px solid #e5edf5;
}
.camis-brand { display: inline-flex; align-items: center; gap: 8px; color: #1765ab !important; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }
.asms-logo { width: 112px; height: 38px; aspect-ratio: 2170 / 725; display: block; flex: 0 0 112px; object-fit: contain; object-position: center; }
.camis-mark { width: 18px; height: 23px; display: inline-block; position: relative; border: 2px solid #1174d0; border-radius: 50%; }
.camis-mark::before, .camis-mark::after { content: ''; position: absolute; top: 2px; bottom: 2px; width: 3px; border-radius: 3px; background: #f4c800; }
.camis-mark::before { left: 4px; } .camis-mark::after { right: 4px; }
.camis-mark i { position: absolute; left: 7px; top: 2px; bottom: 2px; width: 2px; background: #1174d0; }
.login-nav { display: flex; align-items: center; gap: 25px; color: #213852; font-size: 13px; }
.login-nav a { transition: color .2s ease; } .login-nav a:hover { color: var(--camis-blue); }
.create-account-link, .login-link { padding: 7px 16px; border: 1px solid var(--camis-blue); border-radius: 20px; }
.login-link { padding-inline: 18px; color: #fff !important; background: var(--camis-blue); }
.mobile-nav-toggle { display: none; border: 0; background: transparent; padding: 5px; }
.mobile-nav-toggle span { display: block; width: 22px; height: 2px; margin: 4px; background: var(--camis-blue); }
.login-main { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 77px); }
.login-promo { position: relative; overflow: hidden; color: #fff; background: linear-gradient(145deg, #0D47A1 0%, #1565C0 46%, #1976D2 100%); }
.promo-shape { position: absolute; background: rgba(9, 93, 178, .2); transform: rotate(45deg); }
.promo-shape-one { width: 145px; height: 145px; top: 60px; left: 10%; clip-path: polygon(30% 0, 100% 60%, 0 100%); }
.promo-shape-two { width: 118px; height: 118px; top: 118px; right: 10%; border-radius: 50% 0 50% 50%; }
.promo-content { position: relative; z-index: 1; width: min(510px, 72%); margin: 73px auto 0; }
.promo-logo { display: block; width: min(500px, 100%); height: auto; max-height: 225px; margin: 0 auto 42px; object-fit: contain; border-radius: 24px; }
.marks-preview { width: 290px; height: 238px; position: relative; margin: 0 auto 42px; font-family: 'Nunito Sans', sans-serif; font-size: 8px; }
.preview-tabs { position: absolute; top: 0; left: 16px; width: 99px; height: 24px; display: flex; justify-content: space-between; align-items: center; padding: 0 10px; background: #2c8ce5; border-radius: 6px 6px 0 0; color: #fff; font-size: 11px; }
.preview-tabs span { font-size: 19px; font-weight: 400; }
.preview-sheet { position: absolute; top: 23px; left: 0; width: 195px; height: 204px; padding: 8px 7px; background: #fff; border-radius: 12px; box-shadow: 0 10px 20px rgba(0, 49, 110, .16); color: #5d7793; }
.preview-title { height: 19px; display: flex; align-items: center; gap: 5px; padding: 0 3px 5px; border-bottom: 2px solid #46a2ef; color: #24638f; font-size: 8px; }.preview-title b { width: 89px; height: 5px; margin-left: auto; border-radius: 8px; background: #3c9fee; }
.book-icon { font-size: 14px; }.student-row { height: 35px; display: grid; grid-template-columns: 19px 1fr 37px 37px; gap: 4px; align-items: center; }.student-row > span:nth-child(2) { font-weight: 700; font-size: 8px; }.student-row small { display: block; color: #4d9bd4; font-size: 5px; }.student-avatar { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #e5f1fb; color: #4e9ddb; font-size: 8px; }.student-row em { height: 21px; display: grid; place-items: center; border: 1px solid #8dc8f2; border-radius: 5px; font-style: normal; color: #3a536c; }.empty-mark { color: #a4b4c2 !important; }.invalid-mark { border-color: #ff4b55 !important; }.save-marks { float: right; margin: 2px 5px 0 0; padding: 5px 8px; border: 0; border-radius: 4px; color: #fff; background: #27c855; font-size: 7px; }
.marks-menu { position: absolute; z-index: 2; top: 40px; right: 0; width: 89px; padding: 7px; border-radius: 6px; background: #fff; box-shadow: 0 8px 18px rgba(0, 45, 103, .2); color: #152f4a; }.marks-menu strong { display: block; margin-bottom: 5px; font-size: 9px; line-height: 10px; }.reason { display: block; margin: 3px 0; padding: 4px; border-radius: 5px; font-size: 7px; }.absent { background: #ffe47e; }.illness { border: 1px solid #45aaf1; background: #dff1ff; color: #268bd0; }.suspended { background: #ffdadd; color: #ef2b38; }.offline-badge, .required-badge { position: absolute; z-index: 3; border-radius: 15px; font-size: 9px; }.offline-badge { bottom: 40px; left: -29px; padding: 7px 10px; color: #064f16; background: #5df57b; }.required-badge { bottom: 3px; right: 11px; padding: 3px 8px; color: #fff; background: #ff3948; }
.promo-content h1 { margin: 0 0 20px; font-size: 21px; line-height: 1.25; font-weight: 700; }.promo-content p { max-width: 360px; margin: 0; font-size: 16px; line-height: 1.55; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: #edf6ff; }.login-form-wrap { width: min(355px, 100%); }.login-form-wrap h2 { margin: 0 0 4px; font-size: 30px; font-weight: 400; letter-spacing: -.03em; }.login-intro { margin: 0 0 26px; color: #526c87; font-size: 14px; }.camis-login-form { display: grid; gap: 17px; }.login-field { display: grid; gap: 4px; }.login-field label { color: #7d91a7; font-size: 10px; }.login-field label span { color: #8fa0b1; }.input-shell { display: flex; align-items: center; min-height: 43px; overflow: hidden; border: 1px solid #d8e2ec; border-radius: 8px; background: #fff; }.input-shell > svg { width: 20px; height: 20px; flex: 0 0 20px; margin: 0 11px; fill: none; stroke: #0b70cc; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }.input-shell input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 11px 0; color: #18334e; background: transparent; font-size: 14px; }.input-shell input::placeholder { color: #8998a8; }.password-toggle { width: 39px; height: 42px; display: grid; place-items: center; border: 0; color: #6e7f91; background: transparent; cursor: pointer; }.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }.password-toggle.is-visible { color: var(--camis-blue); }.forgot-password { justify-self: end; margin-top: -2px; color: #1d2733 !important; font-size: 14px; }.submit-login { min-height: 43px; border: 0; border-radius: 7px; color: #fff; background: #0e6bc5; box-shadow: 0 3px 6px rgba(14, 107, 197, .18); cursor: pointer; font-size: 12px; font-weight: 800; }.submit-login:hover { background: #095aa9; }.account-prompt { margin: 17px 0 0; text-align: center; color: #73869a; font-size: 12px; }.account-prompt a { color: #344e68; font-weight: 800; }
.login-error { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #f4b8b8; border-radius: 7px; color: #a32626; background: #fff3f3; font-size: 13px; line-height: 1.4; }

@media (max-width: 760px) {
    .login-header { min-height: 76px; padding-inline: 22px; }.camis-brand { font-size: 30px; }.asms-logo { width: 112px; height: 38px; flex-basis: 112px; }.camis-mark { width: 21px; height: 27px; }.login-nav { position: absolute; top: 76px; right: 16px; z-index: 10; display: none; flex-direction: column; align-items: stretch; gap: 0; min-width: 180px; padding: 8px; border: 1px solid #dce8f3; border-radius: 8px; background: #fff; box-shadow: 0 12px 28px rgba(24, 66, 107, .16); }.login-nav.is-open { display: flex; }.login-nav a { padding: 10px 12px; }.login-nav .create-account-link, .login-nav .login-link { border: 0; border-radius: 5px; }.mobile-nav-toggle { display: grid; place-content: center; width: 60px; height: 46px; border-radius: 10px; background: #dbeaff; box-shadow: 0 2px 5px rgba(30, 93, 158, .12); }.mobile-nav-toggle span { width: 24px; height: 3px; margin: 3px; border-radius: 2px; }.login-main { display: block; min-height: auto; }.login-promo { display: none; }.login-panel { min-height: calc(100vh - 76px); padding: 112px 24px 80px; }.login-form-wrap { width: min(460px, 100%); }.login-form-wrap h2 { font-size: 40px; }.login-intro { margin-bottom: 38px; font-size: 20px; line-height: 1.5; }.camis-login-form { gap: 22px; }.login-field { gap: 7px; }.login-field label { font-size: 14px; }.input-shell { min-height: 60px; border-radius: 10px; }.input-shell > svg { width: 27px; height: 27px; margin-inline: 16px; }.input-shell input { padding-block: 15px; font-size: 20px; }.password-toggle { width: 52px; height: 58px; }.password-toggle svg { width: 27px; height: 27px; }.forgot-password { margin-top: 0; font-size: 20px; }.submit-login { min-height: 60px; border-radius: 8px; font-size: 16px; }.account-prompt { margin-top: 24px; font-size: 16px; }
}

@media (min-width: 481px) and (max-width: 760px) {
    .login-panel { padding-top: 70px; }
}

@media (max-width: 480px) {
    .login-header { min-height: 64px; }.camis-brand { font-size: 23px; }.asms-logo { width: 100px; height: 34px; flex-basis: 100px; }.camis-mark { width: 18px; height: 23px; }.mobile-nav-toggle { width: 46px; height: 40px; }.login-nav { top: 64px; }.login-panel { min-height: calc(100vh - 64px); padding: 72px 24px 56px; }.login-form-wrap h2 { font-size: 30px; }.login-intro { margin-bottom: 26px; font-size: 15px; }.camis-login-form { gap: 17px; }.login-field { gap: 4px; }.login-field label { font-size: 10px; }.input-shell { min-height: 48px; }.input-shell > svg { width: 20px; height: 20px; margin-inline: 11px; }.input-shell input { padding-block: 11px; font-size: 14px; }.password-toggle { width: 42px; height: 46px; }.password-toggle svg { width: 21px; height: 21px; }.forgot-password { font-size: 16px; }.submit-login { min-height: 48px; font-size: 14px; }.account-prompt { font-size: 13px; }
}

/* Auditor overview panels */
.panel-period { color: #7890aa; font-size: .68rem; font-weight: 700; }
.audit-overview-panel { grid-column: span 1; }
.audit-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: -4px 0 10px; color: #71859b; font-size: .62rem; font-weight: 700; }
.legend-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 8px; border-radius: 2px; background: #2688e8; }
.legend-dot.blue { background: #2688e8; } .legend-dot.green { background: #21b879; } .legend-dot.purple { background: #8554e8; } .legend-dot.orange { background: #f6a311; } .legend-dot.red { background: #ef4b55; } .legend-dot.teal { background: #13b5b0; }
.audit-bars { height: 190px; display: flex; align-items: end; justify-content: space-around; padding: 12px 8px 0 28px; border-bottom: 1px solid #d7e6f4; background: repeating-linear-gradient(to top, transparent 0 35px, rgba(156, 184, 211, .2) 36px 37px); }
.audit-bar-group { height: 100%; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: end; gap: 7px; }
.audit-bar-set { height: 85%; display: flex; align-items: end; gap: 2px; }
.audit-bar-set i { display: block; width: 7px; min-height: 3px; border-radius: 2px 2px 0 0; background: #258ce7; }
.audit-bar-set .bar-1 { background: #21b879; } .audit-bar-set .bar-2 { background: #8554e8; } .audit-bar-set .bar-3 { background: #f6a311; } .audit-bar-set .bar-4 { background: #ef4b55; }
.audit-bar-group small { color: #71859b; font-size: .6rem; }
.compliance-body { display: flex; align-items: center; gap: 14px; min-height: 210px; }
.compliance-ring { width: 142px; height: 142px; flex: 0 0 142px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: conic-gradient(#258ce7 0 38%, #20b47a 38% 74%, #f6a311 74% 84%, #ef4b55 84% 92%, #dceafa 92%); position: relative; }
.compliance-ring::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #fff; }
.compliance-ring strong, .compliance-ring small { position: relative; z-index: 1; } .compliance-ring strong { color: #203c66; font-size: 1.35rem; } .compliance-ring small { color: #7a8fa7; font-size: .5rem; font-weight: 700; }
.compliance-list { display: grid; gap: 10px; min-width: 0; flex: 1; } .compliance-list div { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; color: #52708f; font-size: .65rem; } .compliance-list b { color: #2e5b86; }
.action-panel .action-list { gap: 9px; } .action-panel .action-item { color: #fff; min-height: 43px; border-radius: 7px; } .action-panel .action-icon { color: #fff; } .action-panel .action-chevron { color: #fff; } .action-blue { background: #258ce7; } .action-green { background: #21b879; } .action-purple { background: #8554e8; } .action-orange { background: #f6a311; }
.auditor-detail-grid { display: grid; grid-template-columns: 1.65fr 1fr .85fr; gap: 18px; align-items: start; }
.auditor-detail-grid .panel-card { min-width: 0; } .auditor-table { font-size: .65rem; white-space: nowrap; } .auditor-table th, .auditor-table td { padding: 8px 6px; } .auditor-table th { font-size: .62rem; }
.flagged-list { display: grid; gap: 4px; } .flagged-row { display: grid; grid-template-columns: 25px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid #edf2f8; } .flagged-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #f3a31c; font-size: .75rem; font-weight: 800; } .flagged-icon.danger { background: #ef4b55; } .flagged-row strong { display: block; color: #31537a; font-size: .7rem; } .flagged-row small { display: block; margin-top: 3px; color: #8799ad; font-size: .59rem; }
.request-donut { display: grid; place-items: center; padding: 4px 0 10px; } .request-ring { width: 112px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border-radius: 50%; background: conic-gradient(#20b47a 0 43%, #258ce7 43% 68%, #f6a311 68% 86%, #ef4b55 86%); } .request-ring::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: #fff; } .request-ring strong, .request-ring small { position: relative; z-index: 1; } .request-ring strong { color: #31537a; font-size: 1.1rem; } .request-ring small { color: #8498ad; font-size: .55rem; font-weight: 700; }
.request-legend { display: grid; gap: 8px; } .request-legend div { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; color: #66809a; font-size: .64rem; } .request-legend b { color: #416484; }
.department-identity { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; border-bottom: 1px solid #e8f0f7; } .department-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: #1478d0; } .department-identity strong, .department-identity small { display: block; } .department-identity strong { color: #31537a; font-size: .76rem; } .department-identity small { margin-top: 3px; color: #7890aa; font-size: .62rem; }
.department-details { display: grid; gap: 0; margin: 0; } .department-details div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf2f8; font-size: .65rem; } .department-details dt { color: #7690a8; } .department-details dd { margin: 0; color: #37618b; font-weight: 700; text-align: right; } .status-active { padding: 3px 7px; border-radius: 5px; color: #15915c; background: #d7f6e7; }
.auditor-side-stack { display: grid; gap: 18px; align-content: start; }
.auditor-side-stack .panel-card { padding: 15px 16px 13px; }
.auditor-recent-activity-panel .panel-head { margin-bottom: 8px; }
.activity-timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 25px 1fr; gap: 9px; position: relative; padding: 7px 0 12px; }
.timeline-item:not(:last-child)::before { content: ''; position: absolute; top: 31px; bottom: 0; left: 12px; width: 1px; background: #d8e7f2; }
.timeline-marker { width: 24px; height: 24px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; color: #fff; background: #16a9ad; font-size: .65rem; font-weight: 800; }
.timeline-marker.warning { background: #f3a31c; }
.timeline-copy strong, .timeline-copy small, .timeline-status { display: block; }
.timeline-copy strong { color: #31537a; font-size: .66rem; line-height: 1.35; }
.timeline-copy small { margin-top: 2px; color: #7890aa; font-size: .58rem; }
.timeline-status { width: max-content; margin-top: 4px; padding: 2px 6px; border-radius: 4px; color: #15915c; background: #d9f6e8; font-size: .53rem; font-weight: 700; }
.timeline-status.attention { color: #b36a0f; background: #fff0ce; }

@media (max-width: 1180px) { .auditor-detail-grid { grid-template-columns: 1fr 1fr; } .auditor-detail-grid .request-status-panel { grid-column: 1 / -1; } }
@media (max-width: 760px) { .overview-grid, .auditor-detail-grid, .bottom-grid { grid-template-columns: 1fr; } .compliance-body { justify-content: center; flex-wrap: wrap; } .audit-legend { gap: 7px; } }

@media (min-width: 761px) and (max-width: 1050px) {
    .login-header { padding-inline: 34px; }.login-nav { gap: 12px; }.promo-content { width: 76%; }.login-panel { padding-inline: 24px; }
}

@media (max-width: 760px) {
    .login-page:has(.login-nav.is-open) .login-main { filter: blur(7px); opacity: .72; }
    .login-page:has(.login-nav.is-open) .login-header { position: relative; z-index: 12; }
    .login-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 0; top: 76px; right: 0; left: 0; min-width: 0; padding: 8px 30px 30px; border: 0; border-top: 1px solid #e2e7ed; border-radius: 0; box-shadow: 0 12px 24px rgba(33, 58, 84, .12); }
    .login-nav.is-open a:nth-child(-n+3) { grid-column: 1 / -1; }
    .login-nav.is-open a:nth-child(-n+3) { padding: 18px 0; }
    .login-nav.is-open .create-account-link, .login-nav.is-open .login-link { width: max-content; min-height: 47px; padding: 8px 20px; border-radius: 24px; }
    .login-nav.is-open .login-link { margin-left: 10px; }
    .mobile-nav-toggle { cursor: pointer; transition: background .2s ease; }
    .mobile-nav-toggle.is-active { background: #bcdcff !important; }
    .mobile-nav-toggle span { transition: transform .2s ease, opacity .2s ease; }
    .mobile-nav-toggle.is-active span:first-child { transform: translateY(6px) rotate(45deg) !important; }
    .mobile-nav-toggle.is-active span:nth-child(2) { opacity: 0 !important; }
    .mobile-nav-toggle.is-active span:last-child { transform: translateY(-6px) rotate(-45deg) !important; }
}

@media (min-width: 481px) and (max-width: 760px) {
    .login-nav.is-open a { font-size: 20px; }
    .login-nav.is-open a:nth-child(-n+3) { padding-block: 20px; }
    .login-nav.is-open .create-account-link { border: 1px solid var(--camis-blue); color: var(--camis-blue); }
    .login-nav.is-open .login-link { color: #fff !important; background: var(--camis-blue); }
}

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #edf5ff 0%, #f8fbff 100%);
    color: var(--secondary);
}

body {
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; }

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #102a54 0%, #183b7a 100%);
    color: #edf2ff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.18);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar small { opacity: 0.75; }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,0.8);
    transition: 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.sidebar-footer {
    margin-top: auto;
}

.mini-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 12px;
}

.mini-card-title {
    opacity: 0.72;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right, .user-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--panel);
    cursor: pointer;
}

.user-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
    color: white;
    font-weight: 700;
}

.user-name { font-weight: 700; }

.user-box small, .logout-btn span { color: var(--muted); }

.logout-form { margin-left: 8px; }

.logout-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--secondary);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.dashboard-container {
    padding: 26px 28px 32px;
}

.welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.welcome-row h2 {
    margin: 8px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-badge.success,
.status-badge.status-approved {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.status-badge.status-rejected,
.status-badge.status-neutral {
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card, .panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card {
    padding: 18px 20px;
}

.stat-label {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.stat-value {
    margin-top: 12px;
    font-size: clamp(1.5rem, 2vw, 2.6rem);
    font-weight: 800;
}

.super-admin-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-grid.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.compact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-span-two {
    grid-column: 1 / -1;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
}

.field-group textarea {
    min-height: 110px;
    resize: vertical;
}

.inline-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.secondary-btn,
.tiny-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.secondary-btn {
    background: #fff;
    color: var(--secondary);
}

.primary-btn.small {
    min-height: 42px;
    padding: 0 18px;
    width: auto;
    border-radius: 10px;
}

.tiny-btn {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.75rem;
}

.tiny-btn.info {
    background: rgba(29, 78, 216, 0.08);
    color: var(--primary);
    border-color: rgba(29, 78, 216, 0.2);
}

.tiny-btn.danger {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.2);
}

.toolbar-box {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
}

.toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.toolbar-form input,
.toolbar-form select {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
}

.table-wrap {
    margin-top: 18px;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    width: 26%;
    min-width: 180px;
}

.data-table.attendance-table th:nth-child(2),
.data-table.attendance-table td:nth-child(2) {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.data-table.accountant-all-transactions-table th:first-child,
.data-table.accountant-all-transactions-table td:first-child {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
}

.data-table.paid-school-fees-report-table th:nth-child(2),
.data-table.paid-school-fees-report-table td:nth-child(2),
.data-table.paid-pocket-money-report-table th:nth-child(2),
.data-table.paid-pocket-money-report-table td:nth-child(2) {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
}

.data-table.expense-report-table th:nth-child(2),
.data-table.expense-report-table td:nth-child(2),
.data-table.transaction-report-table th:nth-child(2),
.data-table.transaction-report-table td:nth-child(2) {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
}

.data-table th:last-child,
.data-table td:last-child {
    width: 260px;
    min-width: 260px;
}

.data-table td:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.data-table td:last-child > * {
    flex: 0 0 auto;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-delete-form {
    margin: 0;
}

.person-name {
    font-weight: 700;
}

.data-table small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-active {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.status-inactive {
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
}

.status-suspended {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.matrix-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.06), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(29, 78, 216, 0.14);
    border-radius: 12px;
    margin-bottom: 16px;
}

.matrix-summary strong {
    font-size: 1.5rem;
    color: var(--primary);
}

.matrix-summary small {
    color: var(--muted);
    font-weight: 600;
}

.muted-tag {
    background: rgba(15, 23, 42, 0.05);
    color: var(--secondary);
}

.permission-groups {
    display: grid;
    gap: 18px;
}

.module-group {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.module-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.module-group-header h4 {
    margin: 0;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.module-group-header span {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
}

.role-matrix-table th,
.role-matrix-table td {
    min-width: 84px;
    text-align: center;
}

.matrix-cell {
    text-align: center;
    font-weight: 800;
}

.matrix-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.matrix-cross {
    color: var(--muted);
    font-weight: 700;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.health-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
}

.health-item span {
    color: var(--muted);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.health-item strong {
    font-size: 1.7rem;
    color: var(--primary);
    line-height: 1;
}

.permission-export-tools {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.permission-export-tools form {
    gap: 12px;
}

.permission-export-tools input[type="file"] {
    border: 1px dashed var(--border);
    background: #f8fbff;
    padding: 12px;
    border-radius: 10px;
}

.audit-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.audit-filter-form select,
.audit-filter-form input {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    background: #fff;
}

.permission-list {
    display: grid;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.compact-group {
    max-height: none;
}

.permission-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #f8fbff;
}

.permission-item input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.permission-item strong,
.permission-item small {
    display: block;
}

.permission-item small {
    color: var(--muted);
    margin-top: 4px;
}

.activity-list.compact {
    gap: 10px;
}

@media (max-width: 920px) {
    .panel-grid.two-col,
    .form-grid.two {
        grid-template-columns: 1fr;
    }
}

.stat-meta {
    margin-top: 6px;
    color: var(--success);
    font-size: 0.82rem;
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 22px;
}

.empty-state {
    margin-top: 18px;
    padding: 22px 20px;
    border: 1px dashed var(--border);
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}

.empty-state h4 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

.card-soft {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
}

.user-avatar.large {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
}

.muted-line {
    color: var(--muted);
    margin-top: 4px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.info-list span {
    color: var(--muted);
}

.panel {
    padding: 18px 20px;
}

.wide-panel {
    min-height: 280px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.panel-tag {
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-list li {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.activity-list strong, .activity-list span {
    display: block;
}

.activity-list span {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 4px;
}

.activity-list small {
    color: var(--muted);
    white-space: nowrap;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #edf5ff 0%, #f6f9ff 100%);
    padding: 32px 20px;
}

.auth-card {
    width: min(100%, 960px);
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.auth-visual {
    padding: 48px 36px;
    background: linear-gradient(160deg, #12398d 0%, #1d4ed8 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-visual .brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.12);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.4rem;
}

.auth-visual h2 {
    margin: 0 0 10px;
    font-size: 2rem;
}

.auth-visual p {
    margin: 0;
    opacity: 0.8;
    line-height: 1.7;
}

.auth-features {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.auth-feature {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 14px;
}

.auth-form-panel {
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-panel h3 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.form-subtitle {
    color: var(--muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 12px;
    height: 52px;
    padding: 0 44px 0 14px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input:focus {
    outline: none;
    border-color: rgba(29, 78, 216, 0.6);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--muted);
    font-weight: 700;
}

.password-toggle .password-icon-hide { display: none; }
.password-toggle.is-visible .password-icon-show { display: none; }
.password-toggle.is-visible .password-icon-hide { display: block; }

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.login-page .input-shell {
    position: relative;
}

.login-page .input-shell input[name="password"] {
    padding-right: 52px;
}

.login-page .input-shell .password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 1;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.94rem;
}

.check-row input { accent-color: var(--primary); }

.link-btn {
    color: var(--primary);
    font-weight: 600;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.primary-btn {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
    color: #fff;
    min-height: 52px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(29, 78, 216, 0.22);
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.94rem;
    font-weight: 500;
}

.alert.error {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.16);
}

.alert.success {
    background: rgba(34, 197, 94, 0.08);
    color: #166534;
    border: 1px solid rgba(34, 197, 94, 0.18);
}

@media (max-width: 980px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 220px;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        width: 280px;
        z-index: 40;
        transition: left 0.2s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .mobile-toggle { display: inline-grid; place-items: center; }

    .topbar {
        padding: 14px 18px;
    }

    .dashboard-container {
        padding: 18px 16px 24px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .welcome-row, .topbar-right {
        align-items: flex-start;
        flex-direction: column;
    }

    .logout-form {
        width: 100%;
        margin-left: 0;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
    }
}

.dashboard-body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #eaf3ff;
    color: #1f2e4d;
}

.dashboard-shell {
    display: block;
    min-height: 100vh;
    background: #edf4ff;
}

.dashboard-body-layout {
    display: flex;
    min-height: calc(100vh - 76px);
    padding-top: 76px;
}

.dashboard-sidebar {
    width: 300px;
    position: fixed;
    top: 76px;
    bottom: 0;
    left: 0;
    z-index: 20;
    background: #1565C0;
    color: #fff;
    padding: 6px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
    transition: width 0.2s ease;
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 6px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.brand-mark {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 0.62rem;
    line-height: 1.45;
    color: rgba(255,255,255,0.72);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.dashboard-logo {
    display: block;
    width: 216px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

.topbar-brand .sidebar-collapse-toggle {
    color: #1553a1;
}

.topbar-brand .sidebar-collapse-toggle:hover {
    background: #e8f2ff;
}

.brand-area {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 6px 6px 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-collapse-toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: auto;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-collapse-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-collapse-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(255,255,255,0.14);
    color: #fefefe;
    margin-top: 2px;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.brand-subtitle {
    font-size: 0.62rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.8);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px 11px 12px;
    border: 0;
    border-radius: 10px;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.nav-toggle {
    font: inherit;
}

.nav-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-group.is-open .nav-caret {
    transform: rotate(180deg);
}

.sub-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 4px 8px 6px 42px;
    margin: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.nav-group.is-open .sub-nav {
    display: flex;
}

.sub-nav[hidden] {
    display: none;
}

.sub-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(255,255,255,0.78);
    font-size: 0.82rem;
    text-decoration: none;
    line-height: 1.35;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sub-nav a:hover,
.sub-nav a.active {
    background: rgba(255,255,255,0.07);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-item-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.nav-item-inner > span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 901px) {
    .dashboard-shell.sidebar-collapsed .dashboard-sidebar {
        width: 82px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-shell.sidebar-collapsed .dashboard-main {
        margin-left: 82px;
    }

    .dashboard-shell.sidebar-collapsed .dashboard-footer {
        left: 82px;
    }

    .dashboard-shell.sidebar-collapsed .brand-area {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-shell.sidebar-collapsed .brand-copy,
    .dashboard-shell.sidebar-collapsed .nav-item-inner > span:last-child,
    .dashboard-shell.sidebar-collapsed .nav-caret,
    .dashboard-shell.sidebar-collapsed .sidebar-footer {
        display: none;
    }

    .dashboard-shell.sidebar-collapsed .sub-nav {
        display: none !important;
    }

    .dashboard-shell.sidebar-collapsed .sidebar-collapse-toggle {
        margin-left: 0;
    }

    .dashboard-shell.sidebar-collapsed .dashboard-nav {
        align-items: center;
    }

    .dashboard-shell.sidebar-collapsed .nav-item {
        width: 50px;
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-shell.sidebar-collapsed .nav-item-inner {
        gap: 0;
    }
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.95;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-caret {
    opacity: 0.8;
    font-size: 1.2rem;
    line-height: 1;
}

.sidebar-footer-bar {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    min-height: 72px;
    padding: 13px 12px;
    border: 1px solid rgba(150, 196, 239, .16);
    border-radius: 11px;
    background: linear-gradient(135deg, #07356c 0%, #052958 100%);
    box-shadow: 0 8px 18px rgba(4, 28, 61, .2), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.sidebar-footer-brand {
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .005em;
}

.sidebar-footer-mark {
    display: grid;
    place-items: center;
    width: 31px;
    height: 36px;
    flex: 0 0 31px;
    color: #fff;
}

.sidebar-footer-mark svg {
    display: block;
    width: 31px;
    height: 36px;
}

.sidebar-footer-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.sidebar-footer-copy {
    color: rgba(239, 246, 255, .88);
    font-size: .64rem;
    line-height: 1.35;
    white-space: nowrap;
}

.sidebar-footer-brand span {
    margin-left: 3px;
    color: #d7e8fb;
    font-size: .67rem;
    font-weight: 600;
}

@media (min-width: 901px) {
    .dashboard-shell.sidebar-collapsed .sidebar-footer-bar {
        justify-content: center;
        min-height: 58px;
        padding: 9px 4px;
    }

    .dashboard-shell.sidebar-collapsed .sidebar-footer-content {
        display: none;
    }
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    margin-left: 300px;
    background: #edf4ff;
}

.dashboard-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 300px;
    z-index: 25;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    border-top: 1px solid #dce8f5;
    background: #fff;
    color: #607b9b;
    font-size: 0.72rem;
}

.dashboard-footer-copy,
.dashboard-footer-message {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-footer-copy strong {
    color: #385c87;
    font-weight: 700;
}

.dashboard-footer-divider {
    color: #9bb0c9;
}

.dashboard-footer-heart {
    color: #3a628f;
    font-size: 1.05rem;
    line-height: 1;
}

.dashboard-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding: 8px 24px;
    background: #fff;
    border-bottom: 1px solid rgba(123, 140, 172, 0.2);
}

.search-box {
    width: min(900px, 58%);
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(23, 68, 124, 0.12);
    border-radius: 8px;
    padding: 0 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}

.search-box svg {
    width: 18px;
    height: 18px;
    stroke: #6d7e94;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.search-box input {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 0.97rem;
    color: #6c7d94;
    outline: none;
}

.topbar-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.notification-wrap {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.28);
    color: inherit;
    text-decoration: none;
    transition: background-color 160ms ease, transform 160ms ease;
}

.notification-wrap:hover,
.notification-wrap:focus-visible {
    background: rgba(255,255,255,0.58);
}

.notification-wrap:hover {
    transform: translateY(-1px);
}

.notification-wrap:focus-visible {
    outline: 2px solid #1d4889;
    outline-offset: 2px;
}

.notification-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    color: #1d4889;
}

.notification-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ff4d4f;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
}

.user-avatar-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2d88f5, #1e5bb8);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.user-name-text {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1d3d60;
    white-space: nowrap;
}

.user-role-text {
    font-size: 0.66rem;
    color: #64748b;
    white-space: nowrap;
}

.user-chevron {
    margin-left: 2px;
    color: #1553a1;
    font-size: 1.25rem;
    line-height: 1;
}

.topbar-divider {
    width: 1px;
    height: 34px;
    background: rgba(52, 94, 148, 0.25);
}

.dashboard-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #123f82;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-logout svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-logout:hover {
    color: #0b67bf;
}

.dashboard-content {
    padding: 22px 20px 90px 20px;
}

.user-management-page .dashboard-content {
    padding-top: 4px;
}

.storekeeper-dashboard {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.welcome-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 6px 0 2px;
}

.welcome-copy h1 {
    margin: 0;
    color: #1d2f45;
    font-size: clamp(1.65rem, 2vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.welcome-copy p {
    margin: 8px 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #586d88;
}

.date-group {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 8px;
    color: #4c637d;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(160px, 1fr));
    gap: 18px;
}

.kpi-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 120px;
    padding: 18px 16px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 12px 20px rgba(17, 51, 101, 0.12);
}

.kpi-card.green { background: linear-gradient(135deg, #1bbf9c 0%, #25c18d 100%); }
.kpi-card.blue { background: linear-gradient(135deg, #1ca0f9 0%, #3d88ff 100%); }
.kpi-card.purple { background: linear-gradient(135deg, #7f4de6 0%, #8a5cf6 100%); }
.kpi-card.orange { background: linear-gradient(135deg, #f7a93b 0%, #f68536 100%); }
.kpi-card.red { background: linear-gradient(135deg, #fe5b5f 0%, #f43d63 100%); }
.kpi-card.teal { background: linear-gradient(135deg, #14b8c8 0%, #1c9fb4 100%); }

.kpi-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.5rem;
    font-weight: 700;
}

.kpi-body {
    min-width: 0;
}

.kpi-label {
    font-size: 0.72rem;
    line-height: 1.4;
    font-weight: 700;
    opacity: 0.92;
}

.kpi-value {
    margin-top: 10px;
    font-size: clamp(1.35rem, 2vw, 2.1rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.kpi-meta {
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.92;
}

.kpi-meta .up {
    font-size: 0.62rem;
    vertical-align: middle;
}

.storekeeper-main-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.2fr 0.9fr;
    gap: 18px;
}

.storekeeper-lower-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
}

.storekeeper-bottom-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.48fr;
    gap: 18px;
}

.store-panel {
    background: #fff;
    border: 1px solid rgba(129, 147, 171, 0.16);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(18, 40, 76, 0.06);
    padding: 16px 18px 18px;
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.panel-title-row h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1d2f45;
    letter-spacing: -0.03em;
}

.mini-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #637a96;
    font-size: 0.72rem;
    font-weight: 700;
}

.tab {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #1f4a8c;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5e738d;
}

.legend-swatch {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.legend-swatch.blue { background: #3b82f6; }
.legend-swatch.orange { background: #f59e0b; }
.legend-swatch.green { background: #10b981; }

.overview-body {
    display: grid;
    grid-template-columns: minmax(130px, 170px) 1fr;
    align-items: center;
    gap: 10px;
}

.donut-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart {
    position: relative;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    background: conic-gradient(#2ecf8d 0 75.5%, #f1b538 75.5% 91.7%, #f25b69 91.7% 100%);
    display: grid;
    place-items: center;
}

.donut-chart::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: #fff;
}

.donut-inner {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    text-align: center;
}

.donut-inner strong {
    font-size: 1.1rem;
    color: #1d2f45;
    letter-spacing: -0.04em;
}

.donut-inner span {
    color: #607b9b;
    font-size: 0.7rem;
    font-weight: 700;
}

.stock-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 8px;
    color: #485e78;
    font-size: 0.8rem;
    font-weight: 700;
}

.legend-row em {
    font-style: normal;
    color: #667b96;
    font-weight: 700;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green { background: #2ecf8d; }
.dot.amber { background: #f1b538; }
.dot.red { background: #f25b69; }

.chart-bars {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    height: 220px;
    padding-top: 14px;
}

.bar-group {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 4px;
    height: 100%;
    position: relative;
}

.bar {
    display: inline-block;
    width: 10px;
    border-radius: 5px 5px 0 0;
    min-height: 10px;
}

.bar.blue { background: linear-gradient(180deg, #5da5ff, #2f80f5); }
.bar.orange { background: linear-gradient(180deg, #f6c96c, #e6842b); }
.bar.green { background: linear-gradient(180deg, #73d7b4, #0fba85); }

.bar-group small {
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    color: #647a95;
    font-size: 0.64rem;
    white-space: nowrap;
}

.alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alerts-panel {
    padding: 12px 10px 13px;
    border-color: #dce8f5;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(37, 91, 145, 0.08);
}

.alerts-panel .panel-title-row {
    margin: 0 2px 10px;
}

.alerts-panel .panel-title-row h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #174b83;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.alerts-title-icon {
    position: relative;
    display: inline-grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50% 50% 45% 45%;
    background: #1b70c8;
    color: transparent;
    box-shadow: 0 2px 4px rgba(27, 112, 200, 0.2);
}

.alerts-title-icon::after {
    content: "";
    position: absolute;
    bottom: -3px;
    width: 6px;
    height: 3px;
    border-radius: 0 0 6px 6px;
    background: #1b70c8;
}

.alerts-panel .inline-link {
    color: #1b70c8;
    font-size: 0.62rem;
}

.alert-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 47px;
    padding: 5px 9px;
    border: 0;
    border-radius: 6px;
    background: #fff0f2;
}

.alert-item.warning {
    background: #fff5e7;
}

.alert-item.info {
    background: #eaf4ff;
}

.alert-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ff4e61;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(255, 78, 97, 0.2);
}

.alert-item.warning .alert-icon {
    background: #ffad18;
    box-shadow: 0 2px 5px rgba(255, 173, 24, 0.2);
}

.alert-item.info .alert-icon {
    background: #2e8be6;
    box-shadow: 0 2px 5px rgba(46, 139, 230, 0.2);
}

.alert-item strong {
    display: block;
    font-size: 0.67rem;
    color: #dd263f;
    margin-bottom: 3px;
    line-height: 1.15;
}

.alert-item small {
    display: block;
    font-size: 0.59rem;
    color: #517298;
    line-height: 1.15;
}

.alert-item b {
    align-self: start;
    padding-top: 4px;
    font-size: 0.82rem;
    color: #ff3f51;
}

.alert-item.warning strong,
.alert-item.warning b {
    color: #ed7900;
}

.alert-item.info strong,
.alert-item.info b {
    color: #0870d4;
}

.inline-link {
    color: #1e5bb8;
    font-size: 0.76rem;
    font-weight: 700;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(140px, 1fr));
    gap: 12px;
}

.quick-actions-panel {
    margin-bottom: 18px;
}

.action-card {
    min-height: 140px;
    padding: 16px 12px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 14px 18px rgba(25, 94, 171, 0.12);
}

.action-card.blue { background: linear-gradient(135deg, #1da1f6, #4a8dfc); }
.action-card.teal { background: linear-gradient(135deg, #1ab9c4, #0ab0b7); }
.action-card.purple { background: linear-gradient(135deg, #6d7cff, #7067e7); }
.action-card.orange { background: linear-gradient(135deg, #ff9f43, #f3753d); }
.action-card.red { background: linear-gradient(135deg, #ff5a5a, #f23b66); }
.action-card.green { background: linear-gradient(135deg, #24c684, #1aaf7e); }

.action-icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
}

.action-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.task-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.task-summary-grid > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    background: #f8fafc;
}

.task-summary-grid strong {
    font-size: 1.35rem;
    color: #1d3557;
    line-height: 1;
}

.task-summary-grid span {
    color: #596e88;
    font-size: 0.78rem;
    font-weight: 600;
}

.table-wrap.light-table-wrap {
    margin-top: 0;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.compact-table th,
.compact-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
    vertical-align: middle;
    color: #3d536d;
}

.compact-table th {
    color: #566f8f;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
}

.badge-high { background: #ffe1de; color: #cd3a4f; }
.badge-medium { background: #fff0d6; color: #c07b10; }
.badge-low { background: #e6f6ff; color: #1479b2; }
.badge-pending { background: #ffeec6; color: #a15b00; }
.badge-approved { background: #dff5ea; color: #1a8b55; }
.badge-danger { background: #ffe0e0; color: #c72d38; }

.table-link {
    color: #1f63c4;
    font-weight: 700;
}

.recent-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-activity-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.recent-activity-list li:last-child {
    border-bottom: 0;
}

.recent-activity-list strong {
    display: block;
    color: #1d2f45;
    font-size: 0.72rem;
}

.recent-activity-list span {
    color: #48627f;
    font-size: 0.72rem;
    font-weight: 700;
}

.recent-activity-list small {
    color: #6a7f97;
    font-size: 0.68rem;
}

.inventory-table td {
    font-size: 0.72rem;
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .storekeeper-main-grid,
    .storekeeper-lower-grid,
    .storekeeper-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .date-group {
        flex-wrap: wrap;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .overview-body {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .stock-legend {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }
}

.super-admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.welcome-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 6px 0 2px;
}

.welcome-header h1 {
    margin: 0;
    color: #1b2a43;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.welcome-header p {
    margin: 6px 0 0;
    color: #5e738f;
    font-size: 1.02rem;
    font-weight: 600;
}

.date-group {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 8px;
    color: #58708c;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
}

.order-officer-metrics {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    margin-bottom: 18px;
}

.metric-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 16px 18px;
    border-radius: 14px;
    color: #fff;
    min-height: 104px;
    box-shadow: 0 14px 28px rgba(38, 88, 158, 0.12);
}

.metric-blue { background: linear-gradient(180deg, #0c8fe3, #0f7cd9); }
.metric-green { background: linear-gradient(180deg, #42c66d, #2aca5f); }
.metric-purple { background: linear-gradient(180deg, #b46ce8, #9d58d9); }
.metric-orange { background: linear-gradient(180deg, #f0a72a, #f19922); }
.metric-red { background: linear-gradient(180deg, #f34e5c, #ed3548); }

.tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.18);
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tile-content {
    flex: 1;
    min-width: 0;
}

.metric-value {
    font-size: clamp(1.45rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.metric-trend {
    align-self: flex-start;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.95;
    white-space: nowrap;
}

.metric-trend.up { color: #ebfff2; }
.metric-trend.down { color: #fff2f0; }

.auditor-metric-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.auditor-metric-cards .metric-tile {
    min-width: 0;
    padding: 14px 14px 13px;
    gap: 12px;
    border-radius: 7px;
}

.auditor-metric-cards .tile-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
}

.auditor-metric-cards .metric-value {
    font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.auditor-metric-cards .metric-label {
    font-size: 0.75rem;
    white-space: nowrap;
}

.auditor-metric-cards .metric-trend {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 7px;
    font-size: 0.7rem;
}

.auditor-metric-cards .metric-trend small {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.58rem;
    font-weight: 600;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.panel-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(20, 45, 74, 0.06);
    padding: 18px 18px 16px;
}

.student-request-page > .alert {
    margin-bottom: 8px;
}

.student-request-dialog {
    width: min(600px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 22px;
    overflow-y: auto;
    color: #203e5f;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(16, 32, 54, 0.25);
}

.student-request-dialog::backdrop {
    background: rgba(16, 32, 54, 0.48);
    backdrop-filter: blur(2px);
}

.student-request-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.student-request-dialog-head h2 {
    margin: 0;
    color: #193653;
    font-size: 1.15rem;
}

.request-detail-table th {
    width: 36%;
    white-space: normal;
}

.request-detail-table td {
    overflow-wrap: anywhere;
    white-space: normal;
}

.resource-edit-dialog {
    width: min(600px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 22px;
    overflow-y: auto;
    color: #203e5f;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(16, 32, 54, 0.25);
}

.resource-edit-dialog::backdrop {
    background: rgba(16, 32, 54, 0.48);
    backdrop-filter: blur(2px);
}

.resource-edit-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.resource-edit-dialog-head h2 {
    margin: 0;
    color: #193653;
    font-size: 1.15rem;
}

.alumni-chat-list {
    display: grid;
    gap: 10px;
    max-height: 60vh;
    margin: 18px 0;
    padding: 4px;
    overflow-y: auto;
}

.alumni-chat-message {
    width: fit-content;
    max-width: min(76ch, 92%);
    padding: 10px 13px;
    color: #203e5f;
    background: #f2f7fc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.alumni-chat-message.is-own {
    justify-self: end;
    background: #edf8f1;
}

.alumni-chat-message header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 18px;
}

.alumni-chat-message time {
    color: var(--muted);
    font-size: .75rem;
}

.alumni-chat-message p {
    margin: 6px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.configuration-page { display: grid; gap: 18px; max-width: 1080px; margin: 0 auto; scroll-margin-top: 92px; }
.configuration-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.configuration-heading h1 { margin: 4px 0 6px; color: #193653; font-size: 1.65rem; }
.configuration-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
.configuration-group { padding: 20px; }
.configuration-group h2 { margin: 0 0 4px; color: #213759; font-size: 1.05rem; }
.configuration-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.configuration-field { display: grid; gap: 7px; }
.configuration-field label { color: #385a7b; font-size: .75rem; font-weight: 800; }
.configuration-field input, .configuration-field select { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid #d8e5f0; border-radius: 9px; color: #203e5f; background: #fff; }
.configuration-field small { color: #7a91a8; font-size: .68rem; line-height: 1.45; }
.configuration-error { min-height: 14px; color: #b42318; font-size: .68rem; }
.configuration-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7890a8; font-size: .72rem; }
.configuration-actions .primary-btn { flex: 0 0 auto; }
.configuration-status { min-height: 0; padding: 0; border-radius: 9px; font-size: .8rem; font-weight: 700; }
.configuration-status.is-saving, .configuration-status.is-success, .configuration-status.is-error { padding: 11px 13px; }
.configuration-status.is-saving { color: #315d91; background: #eaf3ff; }
.configuration-status.is-success { color: #087443; background: #e7f8ef; }
.configuration-status.is-error { color: #a32626; background: #fff0f0; }
.configuration-actions button:disabled { opacity: .65; cursor: wait; }
.reports-page { display: grid; gap: 18px; max-width: 1280px; margin: 0 auto; }
.reports-heading h1 { margin: 4px 0 6px; color: #193653; font-size: 1.65rem; }
.reports-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
.reports-viewer { min-width: 0; padding: 20px; }
.reports-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.reports-toolbar label { color: #385a7b; font-size: .75rem; font-weight: 800; }
.reports-toolbar select { min-height: 40px; min-width: 220px; padding: 8px 10px; border: 1px solid #d8e5f0; border-radius: 9px; color: #203e5f; background: #fff; }
.reports-toolbar .primary-btn { width: auto; min-height: 40px; padding: 0 16px; border-radius: 10px; }
.reports-meta { margin: 17px 0 10px; color: #7890a8; font-size: .72rem; font-weight: 700; }
.reports-table-wrap { max-height: 62vh; margin-top: 0; overflow: auto; }
.reports-table { min-width: 980px; }
.reports-table th, .reports-table td { white-space: nowrap; }
.reports-table th:last-child, .reports-table td:last-child { width: 1%; text-align: center; }
.reports-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; color: #7890a8; font-size: .75rem; font-weight: 700; }
.reports-toolbar .reports-pagination { margin: 0 0 0 auto; }
.reports-pagination .small { width: auto; min-height: 34px; padding: 0 12px; }
.reports-pagination button:disabled { opacity: .5; cursor: not-allowed; }
.report-detail-panel { scroll-margin-top: 24px; }
.report-detail-list { display: grid; gap: 0; margin: 0; }
.report-detail-list div { display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; gap: 18px; padding: 10px 0; border-bottom: 1px solid #edf2f8; }
.report-detail-list dt { color: #7890a8; font-size: .75rem; font-weight: 700; text-transform: capitalize; }
.report-detail-list dd { margin: 0; color: #31537a; font-size: .78rem; overflow-wrap: anywhere; }
.reports-status { min-height: 0; padding: 0; border-radius: 9px; font-size: .8rem; font-weight: 700; }
.reports-status.is-saving, .reports-status.is-error { padding: 11px 13px; }
.reports-status.is-saving { color: #315d91; background: #eaf3ff; }
.reports-status.is-error { color: #a32626; background: #fff0f0; }

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-head h3 {
    margin: 0;
    color: #213759;
    font-size: 1.05rem;
    font-weight: 800;
}

.super-admin-user-management {
    display: grid;
    gap: 18px;
    margin-top: 0;
    scroll-margin-top: 92px;
}

.user-management-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.user-management-header h2 {
    margin: 4px 0 6px;
    color: #193653;
    font-size: 1.45rem;
}

.user-management-header p,
.panel-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.83rem;
}

.section-kicker,
.detail-label {
    display: block;
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.user-management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.record-count {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-module-search {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin: 18px 0;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #d9e2ed;
    border-radius: 8px;
}

.admin-module-search label {
    margin: 0;
    white-space: nowrap;
    color: #29445f;
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-module-search input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #bdcbd9;
    border-radius: 6px;
    background: #fff;
}

.admin-module-search input:focus-visible {
    outline: 3px solid rgba(36, 103, 180, 0.22);
    border-color: #2467b4;
}

.admin-module-search button {
    flex: 0 0 auto;
    min-height: 42px;
    padding-inline: 16px;
}

.admin-resource-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 0.8fr)) auto auto;
    align-items: end;
    gap: 12px;
    max-width: none;
}

.resource-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.resource-filter-field label {
    color: #29445f;
    font-size: 0.78rem;
    font-weight: 700;
}

.resource-filter-field input,
.resource-filter-field select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #bdcbd9;
    border-radius: 6px;
    background: #fff;
}

.resource-filter-field input:focus-visible,
.resource-filter-field select:focus-visible {
    outline: 3px solid rgba(36, 103, 180, 0.22);
    border-color: #2467b4;
}

.admin-resource-filter .resource-filter-clear {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

.resource-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e1e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #52677e;
    font-size: 0.84rem;
    font-weight: 600;
}

.resource-pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-pagination-controls .is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.user-filter-form {
    margin-top: 0;
}

.user-filter-form input {
    flex: 1 1 210px;
}

.user-table-wrap {
    margin-top: 14px;
}

.user-table {
    min-width: 760px;
}

.user-table th,
.user-table td {
    padding: 8px 10px;
    line-height: 1.25;
}

.user-table .table-actions {
    gap: 5px;
}

@media (max-width: 760px) {
    .admin-resource-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .admin-module-search {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .admin-module-search label {
        grid-column: 1 / -1;
    }

    .admin-resource-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .resource-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .resource-pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
}

.user-table .tiny-btn {
    min-height: 27px;
    padding: 0 8px;
}

.user-table td strong,
.user-table td small {
    display: block;
}

.user-table td small {
    margin-top: 4px;
    color: var(--muted);
}

.user-status-table th,
.user-status-table td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.user-status-active {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.user-status-inactive,
.user-status-suspended {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.tiny-btn.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

.form-help {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.48);
}

.modal-backdrop.is-open {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.user-form-modal-content {
    width: min(720px, 100%);
    max-height: min(760px, 92vh);
    overflow-y: auto;
    background: #fff;
}

.modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.pagination-top {
    justify-content: flex-start;
    flex: 0 0 auto;
    margin: 0 4px 0 0;
}

.confirmation-modal-content {
    width: min(420px, 100%);
    padding: 22px;
}

.confirmation-modal-content h3 {
    margin: 0;
    color: #213759;
}

.confirmation-message {
    margin: 10px 0 20px;
    color: var(--muted);
    line-height: 1.5;
}

.user-detail-panel {
    scroll-margin-top: 92px;
}

.user-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.user-detail-grid strong {
    display: block;
    margin-top: 5px;
    color: #213759;
}

.permission-summary {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.permission-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.permission-chip {
    padding: 6px 8px;
    border: 1px solid rgba(29, 78, 216, 0.16);
    border-radius: 8px;
    background: rgba(29, 78, 216, 0.06);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
}

@media (max-width: 680px) {
    .user-management-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.stock-layout {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 220px;
}

.donut-chart {
    width: 210px;
    height: 210px;
    position: relative;
    flex-shrink: 0;
}

.donut-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#2ec95e 0 75.5%, #f3c251 75.5% 92.3%, #f1584d 92.3% 100%);
    position: relative;
    display: grid;
    place-items: center;
}

.donut-ring::before {
    content: "";
    position: absolute;
    inset: 27px;
    background: #fff;
    border-radius: 50%;
}

.donut-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.donut-total {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e2d45;
    line-height: 1.1;
}

.donut-caption {
    font-size: 0.7rem;
    color: #6c7d94;
    margin-top: 2px;
    font-weight: 700;
}

.stock-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.legend-row {
    display: grid;
    grid-template-columns: 12px 1fr auto auto;
    align-items: center;
    gap: 8px;
    color: #2b3f5f;
    font-size: 0.82rem;
    line-height: 1.2;
}

.legend-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-bullet.green { background: #25c36c; }
.legend-bullet.yellow { background: #f0bf4c; }
.legend-bullet.red { background: #ef5a4c; }

.legend-label {
    font-weight: 700;
    color: #2f3f57;
}

.legend-value {
    font-weight: 700;
    color: #445d82;
}

.legend-percent {
    color: #7b8ea3;
    font-weight: 700;
}

.trend-panel {
    min-height: 300px;
}

.mini-select {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: #f7f9fd;
    color: #64748b;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.74rem;
    font-weight: 700;
}

.chart-wrap {
    position: relative;
    height: 224px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(233, 242, 255, 0.95), rgba(255,255,255,0.7));
    padding-left: 38px;
    padding-right: 12px;
    padding-bottom: 8px;
}

.chart-grid {
    position: absolute;
    inset: 10px 12px 28px 40px;
    background-image: linear-gradient(to top, rgba(126, 156, 194, 0.08) 1px, transparent 1px), linear-gradient(to right, rgba(126, 156, 194, 0.08) 1px, transparent 1px);
    background-size: 18% 25%;
}

.chart-values {
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 26px;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #7a8ea5;
    font-size: 0.62rem;
    font-weight: 700;
    text-align: right;
}

.line-chart {
    position: absolute;
    left: 38px;
    right: 12px;
    top: 8px;
    bottom: 28px;
    width: calc(100% - 50px);
    height: calc(100% - 36px);
}

.dispensing-trend-chart .chart-values {
    left: 4px;
    width: 42px;
    font-size: 0.62rem;
}

.dispensing-trend-chart .line-chart {
    left: 48px;
    width: calc(100% - 60px);
}

.dispensing-trend-chart .chart-labels {
    left: 48px;
}

.chart-labels {
    position: absolute;
    left: 38px;
    right: 12px;
    bottom: 8px;
    display: flex;
    justify-content: space-between;
    color: #7a8ea5;
    font-size: 0.66rem;
    font-weight: 600;
}

.action-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: start;
}

.action-list {
    display: grid;
    gap: 8px;
}

.action-item {
    width: 100%;
    border: 0;
    background: #eaf4ff;
    color: #0758b5;
    padding: 8px 10px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.action-item:hover {
    background: #dcecff;
    transform: translateX(2px);
}

.action-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #0874df;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.action-icon.blue { background: transparent; }

.action-chevron {
    margin-left: auto;
    color: #0874df;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1;
}

.bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(250px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.permission-group-panel {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
    margin-bottom: 0 !important;
}

.permission-groups-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.permission-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.permission-group-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.permission-chip-list > label {
    white-space: nowrap;
}

.permission-chip-list > label span {
    white-space: nowrap;
}

.permission-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    width: 100%;
    margin: 3px 0;
    padding: 6px 8px;
    border: 1px solid #dfe7f5;
    border-radius: 7px;
    background: #f5f7fb;
    color: #506582;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.permission-row input[type="checkbox"],
.permission-group-toggle input[type="checkbox"] {
    width: 15px !important;
    min-width: 15px;
    height: 15px;
    min-height: 15px !important;
    margin: 0;
    flex: 0 0 15px;
    accent-color: var(--primary);
}

.permission-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.permission-group-toggle {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .permission-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .permission-group-panel {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

@media (max-width: 620px) {
    .permission-groups-grid {
        grid-template-columns: 1fr;
    }
}

.recent-activities-grid {
    grid-template-columns: minmax(0, 1fr);
}

.activity-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    color: #334762;
}

.activity-table th,
.activity-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    vertical-align: middle;
}

.activity-table th {
    color: #5a7088;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: none;
}

.table-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.table-badge.success {
    background: rgba(45, 204, 88, 0.12);
    color: #1e9159;
}

.table-badge.pending {
    background: rgba(246, 172, 56, 0.12);
    color: #b26d0f;
}

.table-badge.dispensed {
    background: rgba(45, 128, 237, 0.12);
    color: #1269c5;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    color: #667b95;
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-link {
    color: #1e5bb8;
    text-decoration: none;
    font-weight: 700;
}

.alerts-panel {
    padding: 14px 14px 10px;
}

.alerts-head {
    margin-bottom: 4px;
}

.alerts-head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.96rem;
}

.alerts-bell {
    color: #1558a5;
    font-size: 0.9rem;
}

.alerts-count {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f04444;
    color: #fff;
    font-size: 0.62rem;
}

.alerts-view-all {
    color: #1269c5;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}

.alert-list {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.alert-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.alert-item:last-child {
    border-bottom: 0;
}

.alert-dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
}

.alert-dot.red { background: #ef4444; }
.alert-dot.yellow { background: #f5b21b; }
.alert-dot.orange { background: #f47b16; }
.alert-dot.blue { background: #1674e8; }
.alert-dot.green { background: #159b70; }

.alert-item div {
    min-width: 0;
}

.alert-item strong,
.alert-item div span {
    display: block;
}

.alert-item strong {
    overflow: hidden;
    color: #163e78;
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-item div span {
    margin-top: 2px;
    overflow: hidden;
    color: #7890ac;
    font-size: 0.61rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert-item time {
    color: #7890ac;
    font-size: 0.59rem;
    white-space: nowrap;
}

.plan-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-head {
    margin-bottom: 0;
}

.status-badge.active {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    background: rgba(70, 207, 113, 0.12);
    color: #1e9159;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.plan-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a3051;
    margin-top: 4px;
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    color: #495d7a;
    font-size: 0.86rem;
    font-weight: 600;
}

.plan-list li {
    position: relative;
    padding-left: 18px;
}

.plan-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #2bb673;
    font-weight: 800;
}

.plan-expiry {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.76rem;
}

.plan-expiry strong {
    color: #1d3f66;
    font-size: 1rem;
}

.primary-button {
    margin-top: 8px;
    border: 0;
    background: linear-gradient(180deg, #1a7fe2, #0d67bf);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 16px rgba(29, 127, 226, 0.2);
}

@media (max-width: 1180px) {
    .stat-row {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .order-officer-metrics {
        grid-template-columns: repeat(5, minmax(150px, 1fr));
    }

    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .action-panel {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dashboard-shell {
        display: block;
    }

    .dashboard-body-layout {
        display: block;
        padding-top: 76px;
    }

    .dashboard-sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-footer {
        position: static;
    }

    .dashboard-logo {
        width: 190px;
        height: 52px;
    }

    .topbar-brand {
        gap: 12px;
    }

    .dashboard-nav {
        gap: 8px;
    }

    .dashboard-topbar {
        padding: 12px 14px;
    }

    .search-box {
        width: 100%;
    }

    .overview-grid,
    .bottom-grid {
        grid-template-columns: 1fr;
    }

    .date-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        padding-top: 0;
        font-size: .62rem;
    }
}

@media (max-width: 620px) {
    .dashboard-content {
        padding: 14px 12px 18px;
    }

    .order-officer-metrics {
        grid-template-columns: 1fr;
    }

    .welcome-header {
        margin-top: 0;
    }

    .welcome-header h1 {
        font-size: 1.6rem;
    }

    .search-box {
        min-height: 42px;
    }

    .topbar-tools {
        gap: 12px;
    }

    .user-name-text {
        display: none;
    }

    .user-role-text {
        display: none;
    }

    .user-chevron {
        display: none;
    }

    .topbar-divider {
        height: 28px;
    }

    .dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px 16px;
    }

    .dashboard-footer-copy,
    .dashboard-footer-message {
        flex-wrap: wrap;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .metric-tile {
        min-height: 92px;
    }

    .stock-layout {
        flex-direction: column;
        gap: 10px;
    }

    .donut-chart {
        width: 180px;
        height: 180px;
    }

    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-table {
        min-width: 620px;
    }
}

/* Final auditor panel overrides */
.overview-grid .audit-overview-panel,
.overview-grid .compliance-panel,
.overview-grid .action-panel {
    min-height: 260px;
}

.overview-grid {
    grid-template-columns: 1.55fr 1fr .85fr;
}

.overview-grid .audit-overview-panel {
    grid-column: auto;
    padding: 16px 18px 14px;
}

.overview-grid .audit-overview-panel .panel-head {
    margin-bottom: 12px;
}

.overview-grid .audit-overview-panel .panel-head h3 {
    color: #103f86;
    font-size: 1.05rem;
}

.overview-grid .audit-bars {
    position: relative;
    height: 190px;
    display: flex;
    align-items: end;
    justify-content: space-around;
    padding: 12px 8px 0 28px;
    border-bottom: 1px solid #d7e6f4;
    background: repeating-linear-gradient(to top, transparent 0 35px, rgba(156, 184, 211, .2) 36px 37px);
}

.overview-grid .audit-y-axis {
    position: absolute;
    top: 12px;
    bottom: 25px;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #71859b;
    font-size: .58rem;
    font-weight: 700;
}

.overview-grid .audit-bar-group {
    height: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 7px;
}

.overview-grid .audit-bar-set {
    height: 85%;
    display: flex;
    align-items: end;
    gap: 2px;
}

.overview-grid .audit-bar-set i {
    display: block;
    width: 8px;
    min-height: 3px;
    border-radius: 2px 2px 0 0;
    background: #258ce7;
}

.overview-grid .audit-bar-set .bar-1 { background: #21b879; }
.overview-grid .audit-bar-set .bar-2 { background: #8554e8; }
.overview-grid .audit-bar-set .bar-3 { background: #f6a311; }
.overview-grid .audit-bar-set .bar-4 { background: #ef4b55; }

.overview-grid .compliance-body {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 210px;
}

.overview-grid .compliance-ring {
    width: 142px;
    height: 142px;
    flex: 0 0 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: conic-gradient(#258ce7 0 38%, #20b47a 38% 74%, #f6a311 74% 84%, #ef4b55 84% 92%, #dceafa 92%);
}

.overview-grid .compliance-ring::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: #fff;
}

.overview-grid .compliance-ring strong,
.overview-grid .compliance-ring small {
    position: relative;
    z-index: 1;
}

.overview-grid .compliance-ring strong { color: #203c66; font-size: 1.35rem; }
.overview-grid .compliance-ring small { color: #7a8fa7; font-size: .5rem; font-weight: 700; }
.overview-grid .compliance-list { display: grid; gap: 10px; min-width: 0; flex: 1; }
.overview-grid .compliance-list div { display: grid; grid-template-columns: 8px 1fr auto; gap: 7px; align-items: center; color: #52708f; font-size: .65rem; }
.overview-grid .compliance-list b { color: #2e5b86; }

.overview-grid .action-panel .action-list { gap: 9px; }
.overview-grid .action-panel .action-item { min-height: 43px; color: #0758b5; border-radius: 7px; }
.overview-grid .action-panel .action-icon,
.overview-grid .action-panel .action-chevron { color: #0874df; }
.overview-grid .action-panel .action-blue { background: #258ce7; }
.overview-grid .action-panel .action-green { background: #21b879; }
.overview-grid .action-panel .action-purple { background: #8554e8; }
.overview-grid .action-panel .action-orange { background: #f6a311; }

@media (max-width: 760px) {
    .overview-grid { grid-template-columns: 1fr; }
    .overview-grid .compliance-body { justify-content: center; flex-wrap: wrap; }
}

/* Auditor reference sidebar */
.auditor-sidebar .auditor-reference-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 0;
    min-height: 0;
    overflow-y: auto;
}

.auditor-sidebar .auditor-reference-nav .nav-item {
    min-height: 39px;
    padding: 9px 12px;
    border-radius: 7px;
    color: rgba(255, 255, 255, .94);
    font-size: .9rem;
}

.auditor-sidebar .auditor-reference-nav .nav-item:hover,
.auditor-sidebar .auditor-reference-nav .nav-item.active {
    background: linear-gradient(90deg, #0877d7, #0b63b5);
    box-shadow: none;
}

.auditor-sidebar .auditor-reference-nav .nav-item-inner {
    gap: 14px;
}

.auditor-sidebar .auditor-reference-nav .nav-icon {
    width: 22px;
    height: 22px;
}

.auditor-sidebar .auditor-reference-nav .nav-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.auditor-sidebar .auditor-nav-divider {
    height: 1px;
    margin: 10px 2px 9px;
    background: rgba(255, 255, 255, .15);
}

.auditor-sidebar .auditor-reference-nav .nav-group {
    flex-shrink: 0;
}

.auditor-sidebar .auditor-legacy-nav {
    display: none;
}

.auditor-sidebar .sidebar-footer-bar {
    padding-top: 12px;
    border-top-color: rgba(255, 255, 255, .16);
}

.auditor-sidebar .sidebar-footer-copy {
    color: rgba(255, 255, 255, .76);
    font-size: .7rem;
}

.dashboard-shell .auditor-sidebar {
    width: 300px;
}

.dashboard-shell .auditor-sidebar ~ .dashboard-main {
    margin-left: 300px;
}

.dashboard-shell .auditor-sidebar ~ .dashboard-main .dashboard-footer {
    left: 300px;
}

.dashboard-shell.sidebar-collapsed .auditor-sidebar {
    width: 82px;
    padding-left: 12px;
    padding-right: 12px;
}

.dashboard-shell.sidebar-collapsed .auditor-sidebar .auditor-reference-nav .nav-item-inner > span:last-child {
    display: none;
}

.dashboard-shell.sidebar-collapsed .auditor-sidebar .auditor-reference-nav .nav-item {
    width: 50px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.super-admin-quick-actions { min-height: 292px; }
.super-admin-action-list { display: grid; gap: 8px; }
.super-admin-action { width: 100%; min-height: 37px; display: flex; align-items: center; gap: 12px; padding: 7px 12px; border: 0; border-radius: 6px; color: #145da6; background: #eaf4ff; font: inherit; font-size: .72rem; text-align: left; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.super-admin-action:hover { background: #dceeff; transform: translateX(2px); }
.super-admin-action-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 50%; color: #fff; background: #0879dc; font-size: 1.05rem; line-height: 1; }

.dashboard-shell.sidebar-collapsed .auditor-sidebar .auditor-reference-nav .nav-item-inner {
    justify-content: center;
    gap: 0;
}

.dashboard-shell.sidebar-collapsed .auditor-sidebar .sidebar-footer-bar {
    display: none;
}

.dashboard-shell.sidebar-collapsed .auditor-sidebar ~ .dashboard-main {
    margin-left: 82px;
}

.dashboard-shell.sidebar-collapsed .auditor-sidebar ~ .dashboard-main .dashboard-footer {
    left: 82px;
}

@media (max-width: 900px) {
    .dashboard-shell .auditor-sidebar ~ .dashboard-main {
        margin-left: 0;
    }

    .dashboard-shell .auditor-sidebar ~ .dashboard-main .dashboard-footer {
        left: 0;
    }

    .dashboard-shell.sidebar-collapsed .auditor-sidebar {
        width: 100%;
    }

    .dashboard-shell.sidebar-collapsed .auditor-sidebar .auditor-reference-nav .nav-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 12px;
        padding-right: 12px;
    }

    .dashboard-shell.sidebar-collapsed .auditor-sidebar .auditor-reference-nav .nav-item-inner > span:last-child {
        display: inline;
    }

    .dashboard-shell.sidebar-collapsed .auditor-sidebar .sidebar-footer-bar {
        display: block;
    }
}

/* Consumer dashboard reference layout */
.consumer-dashboard { display: flex; flex-direction: column; gap: 14px; }
.consumer-dashboard .welcome-header { margin: 2px 0 0; }
.consumer-dashboard .welcome-header h1 { color: #103f86; }
.consumer-dashboard .welcome-header p { color: #0871c9; }
.consumer-metric-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.consumer-metric-row .metric-tile { min-height: 78px; padding: 11px 12px; border-radius: 6px; gap: 10px; }
.consumer-metric-row .tile-icon { width: 40px; height: 40px; font-size: 1.2rem; }
.consumer-metric-row .metric-value { font-size: 1.45rem; }
.consumer-metric-row .metric-label { font-size: .68rem; }
.consumer-metric-row .metric-trend { margin-top: 4px; font-size: .63rem; }
.consumer-metric-row .metric-trend small { margin-left: 6px; color: rgba(255,255,255,.8); font-size: .52rem; }
.metric-teal { background: linear-gradient(180deg, #22bcc4, #14aeb9); }
.consumer-main-grid { display: grid; grid-template-columns: 1.05fr 1.35fr .72fr; gap: 10px; align-items: start; }
.consumer-reference-dashboard { display: grid; gap: 12px; }
.consumer-reference-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.consumer-reference-card { min-height: 92px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 13px; border-radius: 7px; color: #fff; box-shadow: 0 10px 22px rgba(38, 88, 158, .12); }
.consumer-reference-card > div { min-width: 0; }
.consumer-reference-card strong, .consumer-reference-card span, .consumer-reference-card small { display: block; }
.consumer-reference-card strong { font-size: 1.45rem; line-height: 1; }
.consumer-reference-card span { margin-top: 4px; font-size: .68rem; font-weight: 700; }
.consumer-reference-card small { grid-column: 2; margin-top: -4px; color: rgba(255,255,255,.86); font-size: .56rem; }
.reference-card-icon { grid-row: span 2; width: 39px; height: 39px; display: grid !important; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.25rem !important; }
.request-card { background: linear-gradient(135deg, #087dde, #119de5); } .pending-card { background: linear-gradient(135deg, #e98c05, #f9a914); } .approved-card { background: linear-gradient(135deg, #07965a, #17b66d); } .stock-card { background: linear-gradient(135deg, #5731bf, #7e4be0); } .complete-card { background: linear-gradient(135deg, #079fae, #18bdc4); }
.consumer-reference-main-grid { display: grid; grid-template-columns: 1.05fr 1.45fr .8fr; gap: 10px; align-items: start; }
.consumer-reference-bottom-grid { display: grid; grid-template-columns: 1.1fr .95fr .72fr; gap: 10px; align-items: stretch; }
.consumer-reference-panel { min-width: 0; padding: 12px; border: 1px solid #e1edf6; border-radius: 7px; background: #fff; box-shadow: 0 8px 18px rgba(38, 88, 158, .06); }
.reference-panel-heading { display: flex; align-items: center; gap: 7px; min-width: 0; margin-bottom: 10px; color: #1262af; }
.reference-panel-heading h2 { margin: 0; color: #1262af; font-size: .82rem; } .reference-panel-heading p { margin: 2px 0 0; color: #7792ab; font-size: .57rem; }
.reference-panel-heading > div { flex: 1; min-width: 0; } .reference-panel-heading a { margin-left: auto; color: #1680d8; font-size: .56rem; font-weight: 700; }
.reference-heading-icon { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 50%; color: #fff; background: #1685e5; font-size: 1rem; }
.reference-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 9px; border: 1px solid #dbeaf5; border-radius: 4px; overflow: hidden; }
.reference-tabs span { padding: 7px 3px; color: #3973a7; background: #f5faff; text-align: center; font-size: .54rem; } .reference-tabs .is-active { color: #fff; background: #167bd5; }
.reference-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; } .reference-form-grid label { display: grid; gap: 3px; color: #64829e; font-size: .55rem; font-weight: 700; } .reference-form-grid .full { grid-column: 1 / -1; }
.reference-form-grid input, .reference-form-grid select { width: 100%; min-height: 28px; padding: 5px 7px; border: 1px solid #d9e9f4; border-radius: 4px; color: #355e85; background: #fff; font: inherit; font-size: .6rem; }
.reference-submit { float: right; margin-top: 9px; padding: 7px 12px; border: 0; border-radius: 5px; color: #fff; background: #137edb; font-size: .6rem; font-weight: 700; cursor: pointer; }
.reference-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin: 12px 0; } .reference-step { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; } .reference-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 60%; width: 80%; height: 1px; background: #b8d9ee; } .reference-step b { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #94aec3; font-size: .65rem; } .reference-step.active b { background: #1685e5; } .reference-step span { color: #5780a4; font-size: .51rem; }
.reference-request-table { overflow-x: auto; } .reference-request-table .data-table { min-width: 420px; font-size: .56rem; } .reference-request-table .data-table th, .reference-request-table .data-table td { padding: 6px 4px; }
.reference-status { display: inline-flex; padding: 3px 6px; border-radius: 4px; color: #19865c; background: #d5f5e5; font-size: .5rem; font-weight: 700; white-space: nowrap; } .reference-status.submitted, .reference-status.draft { color: #b3651a; background: #fff0ce; } .reference-status.rejected { color: #b83543; background: #ffe0e2; } .reference-status.approved, .reference-status.fulfilled { color: #19865c; background: #d5f5e5; } .reference-status.low { color: #b3651a; background: #fff0ce; }
.reference-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .reference-actions a { min-height: 54px; display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 5px; color: #fff; text-decoration: none; background: #1685e5; font-size: .58rem; font-weight: 700; } .reference-actions a:nth-child(2) { background: #16ae76; } .reference-actions a:nth-child(3) { background: #8051e3; } .reference-actions a:nth-child(4) { background: #f19b13; } .reference-actions b { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1rem; }
.reference-activity-list { display: grid; } .reference-activity-list div { display: grid; grid-template-columns: 1fr auto; gap: 2px 7px; padding: 7px 0; border-bottom: 1px solid #edf3f7; } .reference-activity-list div:last-child { border-bottom: 0; } .reference-activity-list b { color: #315b86; font-size: .58rem; } .reference-activity-list span, .reference-activity-list small { color: #8098ad; font-size: .51rem; } .reference-activity-list small { grid-column: 2; grid-row: 1 / span 2; }
.reference-help-panel { display: grid; place-content: center; min-height: 170px; text-align: center; } .reference-help-icon { color: #6bb5ed; font-size: 2.2rem; } .reference-help-panel h2 { color: #0873ca; font-size: .8rem; line-height: 1.25; } .reference-help-panel p { color: #7894aa; font-size: .57rem; line-height: 1.45; }
.consumer-lower-grid { display: grid; grid-template-columns: 1.8fr .75fr; gap: 10px; align-items: start; }
.consumer-bottom-grid { display: grid; grid-template-columns: 1.15fr .85fr .7fr; gap: 10px; align-items: start; }
.consumer-dashboard .panel-card { border-radius: 7px; padding: 12px; }
.consumer-dashboard .panel-head { margin-bottom: 9px; }
.consumer-dashboard .panel-head h3 { color: #12488f; font-size: .78rem; }
.consumer-dashboard .panel-head p { margin: 3px 0 0; color: #7792ab; font-size: .6rem; }
.panel-leading-icon { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 7px; border-radius: 50%; color: #fff; background: #1685e5; font-size: 1.1rem; }
.consumer-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 9px; }
.consumer-tabs button { min-height: 27px; border: 1px solid #dcebf6; color: #3973a7; background: #f7fbff; font-size: .57rem; cursor: pointer; }
.consumer-tabs button.is-active { color: #fff; background: #167bd5; border-color: #167bd5; }
.consumer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.consumer-form-grid label { display: grid; gap: 3px; color: #64829e; font-size: .55rem; font-weight: 700; }
.consumer-form-grid label.full { grid-column: 1 / -1; }
.consumer-form-grid input, .consumer-form-grid select, .consumer-form-grid textarea { width: 100%; min-height: 27px; padding: 5px 7px; border: 1px solid #d9e9f4; border-radius: 4px; color: #355e85; background: #fff; font: inherit; font-size: .61rem; }
.consumer-form-grid textarea { min-height: 38px; resize: vertical; }
.consumer-submit { float: right; min-height: 29px; margin-top: 8px; padding: 6px 12px; border-radius: 5px; font-size: .63rem; }
.request-status-line { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; align-items: start; padding: 18px 4px 5px; }
.request-step { position: relative; display: grid; justify-items: center; gap: 5px; text-align: center; }
.request-step:not(:last-child)::after { content: ''; position: absolute; top: 12px; left: 58%; width: 84%; height: 1px; background: #bad8ed; }
.request-step-icon { width: 25px; height: 25px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; color: #fff; background: #218ce3; font-size: .68rem; }
.request-step-icon.green { background: #20b57a; } .request-step-icon.orange { background: #f4a21a; } .request-step-icon.purple { background: #8051e3; } .request-step-icon.muted { background: #9cafc1; }
.request-step small { color: #5780a4; font-size: .55rem; line-height: 1.2; }
.consumer-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consumer-action { min-height: 55px; display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 5px; color: #fff; text-decoration: none; font-size: .61rem; font-weight: 700; }
.consumer-action b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.22); font-size: 1.1rem; }
.consumer-action.blue { background: #1488e8; } .consumer-action.green { background: #16ae76; } .consumer-action.purple { background: #8051e3; } .consumer-action.orange { background: #f19b13; }
.consumer-table { font-size: .59rem; white-space: nowrap; } .consumer-table th, .consumer-table td { padding: 6px 5px; } .consumer-table th { color: #5a83a5; font-size: .54rem; }
.consumer-pill { display: inline-flex; padding: 3px 6px; border-radius: 4px; color: #397653; background: #d9f5e5; font-size: .51rem; font-weight: 700; }
.consumer-pill.urgent, .consumer-pill.emergency, .consumer-pill.submitted { color: #b3651a; background: #fff0ce; } .consumer-pill.rejected { color: #b83543; background: #ffe0e2; } .consumer-pill.approved, .consumer-pill.fulfilled, .consumer-pill.partially_fulfilled, .consumer-pill.in-stock { color: #19865c; background: #d5f5e5; }
.consumer-pill.processing { color: #b3651a; background: #fff0ce; }
.consumer-pill.ready { color: #6844b4; background: #e8dcff; }
.table-action-link { color: #1680d8; font-size: .56rem; font-weight: 700; text-decoration: none; }
.consumer-profile { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid #e7f0f6; } .consumer-profile-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #1685e5; } .consumer-profile strong, .consumer-profile small { display: block; } .consumer-profile strong { color: #315b86; font-size: .67rem; } .consumer-profile small { margin-top: 2px; color: #8098ad; font-size: .54rem; }
.consumer-department dl { display: grid; gap: 0; margin: 0; } .consumer-department dl div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf3f7; font-size: .57rem; } .consumer-department dt { color: #7792a9; } .consumer-department dd { margin: 0; color: #3a6b99; font-weight: 700; text-align: right; }
.consumer-recent-activities .panel-head { margin-bottom: 5px; } .consumer-activity-list { display: grid; } .consumer-activity-row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid #edf3f7; } .consumer-activity-row:last-child { border-bottom: 0; } .consumer-activity-row > div { min-width: 0; flex: 1; } .consumer-activity-row strong, .consumer-activity-row small { display: block; } .consumer-activity-row strong { color: #315b86; font-size: .58rem; } .consumer-activity-row small { margin-top: 2px; color: #8098ad; font-size: .52rem; } .activity-status-dot { width: 13px; height: 13px; flex: 0 0 13px; border-radius: 50%; background: #18aeb0; }
.consumer-help-panel { min-height: 160px; display: grid; place-content: center; text-align: center; } .consumer-help-icon { margin: 0 auto 8px; color: #6bb5ed; font-size: 2.1rem; } .consumer-help-panel h3 { color: #0873ca !important; line-height: 1.25; } .consumer-help-panel p { color: #7894aa; font-size: .58rem; line-height: 1.45; }
.consumer-sidebar .consumer-nav { display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow-y: auto; }
.consumer-sidebar .consumer-nav .nav-item { min-height: 38px; padding: 8px 12px; border-radius: 7px; color: rgba(255,255,255,.94); font-size: .82rem; }
.consumer-sidebar .consumer-nav .nav-item:hover, .consumer-sidebar .consumer-nav .nav-item.active { background: linear-gradient(90deg, #0877d7, #0b63b5); box-shadow: none; }
.consumer-sidebar .consumer-nav .nav-item-inner { gap: 13px; } .consumer-sidebar .consumer-nav .nav-icon { width: 21px; height: 21px; font-size: 1.05rem; }
.consumer-sidebar .consumer-nav .nav-group { flex-shrink: 0; }
.consumer-sidebar .consumer-nav .nav-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.consumer-sidebar .consumer-nav-divider { height: 1px; margin: 8px 2px; background: rgba(255,255,255,.15); }
.dashboard-shell .consumer-sidebar { width: 300px; }
.dashboard-shell .consumer-sidebar ~ .dashboard-main { margin-left: 300px; }
.dashboard-shell .consumer-sidebar ~ .dashboard-main .dashboard-footer { left: 300px; }
@media (max-width: 1180px) { .consumer-main-grid { grid-template-columns: 1fr 1fr; } .consumer-quick-actions { grid-column: 1 / -1; } .consumer-bottom-grid { grid-template-columns: 1fr 1fr; } .consumer-help-panel { grid-column: 1 / -1; } .consumer-reference-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .consumer-reference-main-grid { grid-template-columns: 1fr 1fr; } .consumer-reference-main-grid .quick-panel { grid-column: 1 / -1; } .consumer-reference-bottom-grid { grid-template-columns: 1fr 1fr; } .consumer-reference-bottom-grid .reference-help-panel { grid-column: 1 / -1; } }
@media (max-width: 900px) { .dashboard-shell .consumer-sidebar ~ .dashboard-main { margin-left: 0; } .dashboard-shell .consumer-sidebar ~ .dashboard-main .dashboard-footer { left: 0; } }
@media (max-width: 760px) { .consumer-metric-row, .consumer-main-grid, .consumer-lower-grid, .consumer-bottom-grid { grid-template-columns: 1fr; } .consumer-quick-actions, .consumer-help-panel { grid-column: auto; } .request-status-line { gap: 0; } .request-step small { font-size: .48rem; } .consumer-reference-grid, .consumer-reference-main-grid, .consumer-reference-bottom-grid { grid-template-columns: 1fr; } .consumer-reference-main-grid .quick-panel, .consumer-reference-bottom-grid .reference-help-panel { grid-column: auto; } }

.admin-dashboard { display: grid; gap: 12px; min-width: 0; color: #173b64; }
.admin-welcome-section { display: grid; gap: 12px; }
.admin-dashboard .welcome-header { align-items: center; margin: 0; }
.admin-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.55rem; letter-spacing: 0; }
.admin-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .88rem; }
.admin-dashboard .date-group { gap: 18px; padding-top: 0; color: #2464a7; font-size: .76rem; }
.admin-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.admin-metric-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.admin-metric { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 82px; padding: 11px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .12); }
.admin-metric.metric-blue { background: linear-gradient(120deg, #0879db, #168fe7); }
.admin-metric.metric-green { background: linear-gradient(120deg, #07975b, #13b875); }
.admin-metric.metric-purple { background: linear-gradient(120deg, #6034b8, #8051d3); }
.admin-metric.metric-orange { background: linear-gradient(120deg, #e79000, #f2a20a); }
.admin-metric.metric-red { background: linear-gradient(120deg, #df3543, #ed5360); }
.admin-metric-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.25rem; }
.admin-metric > div { min-width: 0; }
.admin-metric-label, .admin-metric strong { display: block; }
.admin-metric-label { margin-bottom: 5px; color: rgba(255,255,255,.92); font-size: .66rem; font-weight: 700; }
.admin-metric strong { overflow-wrap: anywhere; font-size: 1.14rem; line-height: 1.15; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1.02fr) minmax(190px, .88fr); gap: 10px; align-items: stretch; }
.admin-lower-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(245px, .78fr); gap: 10px; align-items: stretch; }
.admin-panel { min-width: 0; padding: 12px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 20px; margin-bottom: 9px; }
.admin-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .82rem; font-weight: 750; }
.admin-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .63rem; font-weight: 700; text-decoration: none; }
.admin-panel-heading > a:hover { text-decoration: underline; }
.admin-period-label { padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .58rem; white-space: nowrap; }
.admin-period-label::after { display: inline-block; width: 5px; height: 5px; margin: 0 1px 2px 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: rotate(45deg); }
.financial-legend { display: flex; gap: 13px; margin-bottom: 8px; color: #41698f; font-size: .62rem; }
.financial-legend span { display: inline-flex; align-items: center; gap: 5px; }
.financial-legend i, .request-status-name i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.legend-income { background: #147fe1; }
.legend-expenses { background: #f28a18; }
.financial-panel { padding: 14px 16px 12px; }
.financial-plot { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px; align-items: start; }
.financial-axis { display: flex; flex-direction: column; justify-content: space-between; height: 136px; color: #426b91; font-size: .56rem; line-height: 1; text-align: right; }
.financial-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; height: 160px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #edf3f8 0 1px, transparent 1px 34px); background-size: 100% 136px; background-repeat: no-repeat; }
.financial-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.financial-bars { display: flex; align-items: end; justify-content: center; gap: 4px; min-height: 0; padding: 0 2px; }
.financial-bar { display: block; width: min(30%, 16px); border-radius: 3px 3px 0 0; }
.financial-bar.has-value { min-height: 3px; }
.income-bar { background: #147fe1; }
.expenses-bar { background: #f28a18; }
.financial-month-label { overflow: hidden; padding: 6px 0; color: #426b91; font-size: .56rem; line-height: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.request-status-content { display: flex; align-items: center; justify-content: space-around; gap: 12px; min-height: 140px; }
.request-donut { display: grid; place-items: center; flex: 0 0 112px; width: 112px; height: 112px; border-radius: 50%; background-color: #e9f0f6; }
.request-donut > div { display: grid; place-content: center; width: 66px; height: 66px; border-radius: 50%; background: #fff; text-align: center; }
.request-donut span { color: #5f7c98; font-size: .56rem; }
.request-donut strong { color: #174b84; font-size: 1rem; }
.request-status-list { display: grid; gap: 13px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.request-status-list li, .request-status-name { display: flex; align-items: center; }
.request-status-list li { justify-content: space-between; gap: 8px; color: #315d87; font-size: .63rem; white-space: nowrap; }
.request-status-name { gap: 6px; }
.request-status-name small, .request-status-list small { color: #7890a7; font-size: .57rem; }
.quick-actions-list { display: grid; gap: 5px; }
.quick-actions-list a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 12px; align-items: center; gap: 7px; min-height: 30px; padding: 4px 7px; border-radius: 4px; color: #20527f; background: #edf6fd; font-size: .63rem; text-decoration: none; }
.quick-actions-list a:hover { color: #064c94; background: #deeffd; }
.quick-actions-list a > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #137fda; font-size: .84rem; }
.quick-actions-list a:nth-child(2) > span { background: #11996c; }
.quick-actions-list a:nth-child(3) > span { background: #5f49c6; }
.quick-actions-list a:nth-child(4) > span { background: #e7950b; }
.quick-actions-list a:nth-child(5) > span { background: #df4b55; }
.quick-actions-list a > i { color: #0879da; font-size: .95rem; font-style: normal; text-align: right; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-compact-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .61rem; text-align: left; white-space: nowrap; }
.admin-compact-table thead { background: #edf6fd; }
.admin-compact-table th { padding: 7px 6px; color: #285c8c; font-size: .58rem; font-weight: 750; }
.admin-compact-table td { padding: 6px; border-bottom: 1px solid #eaf1f7; }
.admin-compact-table tbody tr:last-child td { border-bottom: 0; }
.admin-compact-table td:nth-child(2) { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.request-badge, .meeting-badge { display: inline-block; padding: 4px 7px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .56rem; }
.request-badge.status-pending, .request-badge.status-under_review { color: #8b5b06; background: #fff1cf; }
.request-badge.status-rejected, .request-badge.status-cancelled { color: #a9323c; background: #ffe2e4; }
.request-badge.status-paid { color: #155e9e; background: #dceeff; }
.request-view-link { display: inline-block; padding: 4px 9px; border-radius: 4px; color: #fff; background: #087dde; font-size: .57rem; text-decoration: none; }
.admin-empty-state { padding: 16px 8px; color: #7189a0; text-align: center; white-space: normal; }
.admin-notification-list { display: grid; margin: 0; padding: 0; list-style: none; }
.admin-notification-list > li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.admin-notification-list > li:last-child { border-bottom: 0; }
.notification-status-dot { width: 10px; height: 10px; margin-top: 3px; border-radius: 50%; background: #087fe4; }
.notification-status-dot.is-read { background: #11a36c; }
.admin-notification-list strong { display: block; overflow: hidden; color: #28547f; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-notification-list p { display: -webkit-box; overflow: hidden; margin: 3px 0; color: #547491; font-size: .58rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.admin-notification-list small { color: #8297aa; font-size: .53rem; }
.meeting-badge { color: #17629b; background: #dfedff; }
.upcoming-meetings-panel .admin-panel-heading h2 span { margin-right: 5px; color: #0879da; }
.admin-aude-panel { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 74px; padding: 10px; border: 1px solid #dce9f4; border-radius: 6px; background: linear-gradient(115deg, #edf7ff, #f7fbff); text-align: left; }
.admin-aude-mark { color: #14518b; font-size: 2.25rem; line-height: 1; }
.admin-aude-panel strong, .admin-aude-panel div > span { display: block; }
.admin-aude-panel strong { color: #28547f; font-size: .75rem; line-height: 1.35; }
.admin-aude-panel div > span { margin-top: 4px; color: #174b84; font-size: .65rem; font-weight: 800; }
@media (max-width: 1080px) {
    .admin-metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-actions-panel { grid-column: 1 / -1; }
    .quick-actions-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .admin-dashboard .welcome-header { align-items: flex-start; }
    .admin-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .admin-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-overview-grid, .admin-lower-grid { grid-template-columns: minmax(0, 1fr); }
    .quick-actions-panel { grid-column: auto; }
    .quick-actions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .financial-axis { height: 124px; }
    .financial-chart { height: 148px; background-size: 100% 124px; }
    .request-status-content { justify-content: space-evenly; }
}
@media (max-width: 430px) {
    .admin-metric-row { grid-template-columns: minmax(0, 1fr); }
    .admin-metric { min-height: 68px; }
    .quick-actions-list { grid-template-columns: minmax(0, 1fr); }
    .request-status-content { flex-direction: column; padding: 8px 0; }
    .request-status-list { width: 100%; }
}

.accountant-reference-dashboard { display: grid; gap: 10px; min-width: 0; color: #173b64; }
.accountant-welcome-section { min-width: 0; }
.accountant-dashboard .welcome-header { align-items: center; gap: 12px; margin: 0; }
.accountant-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.55rem; letter-spacing: 0; }
.accountant-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .75rem; }
.accountant-dashboard .date-group { gap: 17px; padding-top: 0; color: #2464a7; font-size: .72rem; }
.accountant-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.accountant-metric-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.accountant-metric { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 78px; padding: 10px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .1); }
.accountant-metric.metric-school-fees { background: linear-gradient(120deg, #0879db, #168fe7); }
.accountant-metric.metric-pocket-money { background: linear-gradient(120deg, #07975b, #13b875); }
.accountant-metric.metric-other-payments { background: linear-gradient(120deg, #6034b8, #8051d3); }
.accountant-metric.metric-total-expenses { background: linear-gradient(120deg, #e79000, #f2a20a); }
.accountant-metric.metric-available-balance { background: linear-gradient(120deg, #078e9f, #12adbd); }
.accountant-metric-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.19); font-size: 1.12rem; }
.accountant-metric > div { min-width: 0; }
.accountant-metric > div > span, .accountant-metric strong, .accountant-metric small { display: block; }
.accountant-metric > div > span { min-height: 2em; color: rgba(255,255,255,.92); font-size: .58rem; font-weight: 700; line-height: 1.2; }
.accountant-metric strong { overflow-wrap: anywhere; margin-top: 3px; font-size: .91rem; line-height: 1.12; }
.accountant-metric small { margin-top: 3px; color: rgba(255,255,255,.8); font-size: .49rem; }
.accountant-overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(210px, 1fr) minmax(190px, .94fr); gap: 9px; align-items: stretch; }
.accountant-transactions-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(220px, .78fr); gap: 9px; align-items: stretch; }
.accountant-summary-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 9px; align-items: stretch; }
.accountant-panel { min-width: 0; padding: 11px 12px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.accountant-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 20px; margin-bottom: 8px; }
.accountant-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .78rem; font-weight: 750; }
.accountant-panel-heading h2 > span { margin-right: 5px; color: #167ee5; }
.accountant-panel-heading h2 small { margin-left: 4px; color: #7792ab; font-size: .52rem; font-weight: 500; }
.accountant-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .59rem; font-weight: 700; text-decoration: none; }
.accountant-panel-heading > a:hover { text-decoration: underline; }
.accountant-period-label { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .55rem; white-space: nowrap; }
.accountant-period-label::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: translateY(-1px) rotate(45deg); }
.accountant-chart-legend { display: flex; gap: 12px; margin-bottom: 7px; color: #41698f; font-size: .57rem; }
.accountant-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.accountant-chart-legend i, .accountant-income-list i { display: inline-block; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; }
.accountant-income-key { background: #147fe1; }
.accountant-expense-key { background: #f28a18; }
.accountant-chart-plot { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 4px; align-items: start; }
.accountant-chart-axis { display: flex; flex-direction: column; justify-content: space-between; height: 116px; color: #426b91; font-size: .52rem; line-height: 1; text-align: right; }
.accountant-financial-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; height: 138px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #edf3f8 0 1px, transparent 1px 29px); background-size: 100% 116px; background-repeat: no-repeat; }
.accountant-chart-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.accountant-chart-bars { display: flex; align-items: end; justify-content: center; gap: 3px; min-height: 0; padding: 0 2px; }
.accountant-chart-bar { display: block; width: min(32%, 15px); border-radius: 3px 3px 0 0; }
.accountant-chart-bar.has-value { min-height: 3px; }
.accountant-chart-bar.chart-income { background: #147fe1; }
.accountant-chart-bar.chart-expense { background: #f28a18; }
.accountant-chart-month-label { overflow: hidden; padding: 5px 0; color: #426b91; font-size: .53rem; line-height: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.accountant-income-content { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 130px; }
.accountant-income-donut { display: grid; place-items: center; flex: 0 0 88px; width: 88px; height: 88px; border-radius: 50%; background-color: #e9f0f6; }
.accountant-income-donut > div { display: grid; place-content: center; width: 58px; height: 58px; padding: 3px; border-radius: 50%; background: #fff; text-align: center; }
.accountant-income-donut span { color: #5f7c98; font-size: .48rem; }
.accountant-income-donut strong { overflow-wrap: anywhere; color: #174b84; font-size: .58rem; line-height: 1.15; }
.accountant-income-list { display: grid; gap: 7px; min-width: 0; flex: 1; margin: 0; padding: 0; list-style: none; }
.accountant-income-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 5px; min-width: 0; color: #315d87; font-size: .51rem; }
.accountant-income-list li > span { display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accountant-income-list strong { grid-column: 1; overflow: hidden; padding-left: 13px; color: #527493; font-size: .47rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.accountant-income-list small { grid-column: 2; grid-row: 2; color: #7890a7; font-size: .48rem; text-align: right; }
.accountant-income-expenses-total { display: flex; justify-content: space-between; gap: 6px; padding-top: 7px; border-top: 1px solid #edf2f7; color: #527493; font-size: .54rem; }
.accountant-income-expenses-total strong { color: #df414c; font-size: .55rem; }
.accountant-action-list { display: grid; gap: 5px; }
.accountant-action-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) 10px; align-items: center; gap: 6px; min-height: 29px; padding: 4px 6px; border-radius: 4px; color: #20527f; background: #edf6fd; font-size: .57rem; text-decoration: none; }
.accountant-action-list a:hover { color: #064c94; background: #deeffd; }
.accountant-action-list a > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #137fda; font-size: .75rem; }
.accountant-action-list a:nth-child(2) > span { background: #16ae76; }
.accountant-action-list a:nth-child(3) > span { background: #8051e3; }
.accountant-action-list a:nth-child(4) > span { background: #e7950b; }
.accountant-action-list a:nth-child(5) > span { background: #df4b55; }
.accountant-action-list a > i { color: #0879da; font-size: .9rem; font-style: normal; text-align: right; }
.accountant-table-wrap { width: 100%; overflow-x: auto; }
.accountant-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .57rem; text-align: left; white-space: nowrap; }
.accountant-table thead { background: #edf6fd; }
.accountant-table th { padding: 6px 5px; color: #285c8c; font-size: .53rem; font-weight: 750; }
.accountant-table td { padding: 5px; border-bottom: 1px solid #eaf1f7; }
.accountant-table tbody tr:last-child td { border-bottom: 0; }
.accountant-table td:nth-child(2) { max-width: 175px; overflow: hidden; text-overflow: ellipsis; }
.accountant-status { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .51rem; }
.accountant-status.status-pending { color: #8b5b06; background: #fff1cf; }
.accountant-status.status-failed, .accountant-status.status-cancelled { color: #a9323c; background: #ffe2e4; }
.accountant-status.status-approved, .accountant-status.status-paid { color: #155e9e; background: #dceeff; }
.accountant-empty-state { padding: 14px 8px; color: #7189a0; text-align: center; white-space: normal; }
.accountant-summary-bars { display: grid; gap: 14px; padding-top: 3px; }
.accountant-summary-item-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 5px; color: #315d87; font-size: .56rem; }
.accountant-summary-item-heading strong { color: #174b84; font-size: .55rem; }
.accountant-summary-track { height: 6px; overflow: hidden; border-radius: 4px; background: #e8f0f7; }
.accountant-summary-track span { display: block; height: 100%; border-radius: inherit; }
.accountant-monthly-list { display: grid; margin: 0; }
.accountant-monthly-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #edf2f7; font-size: .59rem; }
.accountant-monthly-list > div:last-child { border-bottom: 0; }
.accountant-monthly-list dt { color: #527493; }
.accountant-monthly-list dd { margin: 0; color: #174b84; font-weight: 700; text-align: right; }
.accountant-monthly-list .monthly-net-balance { margin-top: 4px; padding: 10px 8px; border: 0; border-radius: 4px; background: #e8f8f0; }
.accountant-monthly-list .monthly-net-balance dt, .accountant-monthly-list .monthly-net-balance dd { color: #138257; font-weight: 800; }
@media (max-width: 1080px) {
    .accountant-metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .accountant-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .accountant-quick-actions { grid-column: 1 / -1; }
    .accountant-action-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .accountant-dashboard .welcome-header { align-items: flex-start; }
    .accountant-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .accountant-overview-grid, .accountant-transactions-grid, .accountant-summary-grid { grid-template-columns: minmax(0, 1fr); }
    .accountant-quick-actions { grid-column: auto; }
    .accountant-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .accountant-chart-axis { height: 102px; }
    .accountant-financial-chart { height: 124px; background-size: 100% 102px; }
}
@media (max-width: 480px) {
    .accountant-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .accountant-metric { min-height: 74px; }
    .accountant-action-list { grid-template-columns: minmax(0, 1fr); }
    .accountant-income-content { justify-content: space-around; }
}
@media (max-width: 360px) {
    .accountant-metric-row { grid-template-columns: minmax(0, 1fr); }
    .accountant-panel { padding-right: 9px; padding-left: 9px; }
}

.alumni-reference-dashboard { display: grid; gap: 10px; min-width: 0; color: #173b64; }
.alumni-welcome-section { min-width: 0; }
.alumni-dashboard .welcome-header { align-items: center; gap: 12px; margin: 0; }
.alumni-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.55rem; letter-spacing: 0; }
.alumni-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .82rem; }
.alumni-dashboard .date-group { gap: 17px; padding-top: 0; color: #2464a7; font-size: .72rem; }
.alumni-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.alumni-metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.alumni-metric { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 11px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .1); }
.alumni-metric > span { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.2rem; }
.alumni-metric > div { min-width: 0; }
.alumni-metric small, .alumni-metric strong { display: block; }
.alumni-metric small { min-height: 2em; color: rgba(255,255,255,.91); font-size: .59rem; font-weight: 700; line-height: 1.2; }
.alumni-metric strong { overflow-wrap: anywhere; margin-top: 3px; font-size: .92rem; line-height: 1.15; }
.alumni-metric-blue { background: linear-gradient(120deg, #0879db, #168fe7); }
.alumni-metric-green { background: linear-gradient(120deg, #07975b, #13b875); }
.alumni-metric-orange { background: linear-gradient(120deg, #e79000, #f2a20a); }
.alumni-metric-purple { background: linear-gradient(120deg, #6034b8, #8051d3); }
.alumni-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, 1.05fr) minmax(185px, .85fr); gap: 9px; align-items: stretch; }
.alumni-content-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .95fr) minmax(0, .9fr); gap: 9px; align-items: stretch; }
.alumni-panel { min-width: 0; padding: 11px 12px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.alumni-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 20px; margin-bottom: 8px; }
.alumni-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .77rem; font-weight: 750; }
.alumni-panel-heading h2 > span { margin-right: 5px; color: #167ee5; }
.alumni-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .57rem; font-weight: 700; text-decoration: none; }
.alumni-panel-heading > a:hover { text-decoration: underline; }
.alumni-period-label { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .53rem; white-space: nowrap; }
.alumni-period-label::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: translateY(-1px) rotate(45deg); }
.alumni-trend-legend { display: flex; gap: 12px; margin-bottom: 7px; color: #41698f; font-size: .56rem; }
.alumni-trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.alumni-trend-legend i { width: 9px; height: 9px; border-radius: 50%; background: #147fe1; }
.alumni-trend-plot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 4px; align-items: start; }
.alumni-trend-axis { display: flex; flex-direction: column; justify-content: space-between; height: 120px; color: #426b91; font-size: .52rem; line-height: 1; text-align: right; }
.alumni-trend-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; height: 142px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #edf3f8 0 1px, transparent 1px 30px); background-size: 100% 120px; background-repeat: no-repeat; }
.alumni-trend-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.alumni-trend-bar-area { display: flex; align-items: end; justify-content: center; min-height: 0; padding: 0 6px; }
.alumni-trend-bar { display: block; width: min(55%, 24px); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #2799ed, #1478d0); }
.alumni-trend-bar.has-value { min-height: 3px; }
.alumni-trend-month-label { overflow: hidden; padding: 5px 0; color: #426b91; font-size: .52rem; line-height: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.alumni-purpose-content { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 133px; }
.alumni-purpose-donut { display: grid; place-items: center; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; background-color: #e9f0f6; }
.alumni-purpose-donut > div { display: grid; place-content: center; width: 62px; height: 62px; padding: 3px; border-radius: 50%; background: #fff; text-align: center; }
.alumni-purpose-donut span { color: #5f7c98; font-size: .51rem; }
.alumni-purpose-donut strong { overflow-wrap: anywhere; color: #174b84; font-size: .63rem; line-height: 1.15; }
.alumni-purpose-list { display: grid; gap: 8px; min-width: 0; flex: 1; margin: 0; padding: 0; list-style: none; }
.alumni-purpose-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 5px; min-width: 0; color: #315d87; font-size: .52rem; }
.alumni-purpose-list li > span { display: flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alumni-purpose-list li > span i { display: block; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; }
.alumni-purpose-list li > strong { grid-column: 1; overflow: hidden; padding-left: 14px; color: #527493; font-size: .48rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.alumni-purpose-list li > small { grid-column: 2; grid-row: 2; color: #7890a7; font-size: .48rem; text-align: right; }
.alumni-purpose-empty { display: block !important; color: #7189a0; line-height: 1.5; }
.alumni-action-list { display: grid; gap: 5px; }
.alumni-action-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) 10px; align-items: center; gap: 6px; min-height: 30px; padding: 4px 6px; border-radius: 4px; color: #20527f; background: #edf6fd; font-size: .57rem; text-decoration: none; }
.alumni-action-list a:hover { color: #064c94; background: #deeffd; }
.alumni-action-list a > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #137fda; font-size: .8rem; }
.alumni-action-list a:nth-child(2) > span { background: #16ae76; }
.alumni-action-list a:nth-child(3) > span { background: #8051e3; }
.alumni-action-list a:nth-child(4) > span { background: #e7950b; }
.alumni-action-list a > i { color: #0879da; font-size: .9rem; font-style: normal; text-align: right; }
.alumni-table-wrap { width: 100%; overflow-x: auto; }
.alumni-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .57rem; text-align: left; white-space: nowrap; }
.alumni-table thead { background: #edf6fd; }
.alumni-table th { padding: 6px 5px; color: #285c8c; font-size: .53rem; font-weight: 750; }
.alumni-table td { padding: 6px 5px; border-bottom: 1px solid #eaf1f7; }
.alumni-table tbody tr:last-child td { border-bottom: 0; }
.alumni-status { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .5rem; }
.alumni-status-submitted { color: #8b5b06; background: #fff1cf; }
.alumni-status-rejected { color: #a9323c; background: #ffe2e4; }
.alumni-empty-state { padding: 14px 8px; color: #7189a0; text-align: center; white-space: normal; }
.alumni-meeting-list, .alumni-news-list { display: grid; margin: 0; padding: 0; list-style: none; }
.alumni-meeting-list > li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.alumni-meeting-list > li:last-child, .alumni-news-list > li:last-child { border-bottom: 0; }
.alumni-meeting-date { display: grid; place-items: center; align-self: start; min-height: 34px; border-radius: 4px; color: #fff; background: #167ee5; font-size: .55rem; font-weight: 750; }
.alumni-meeting-list strong, .alumni-meeting-list small { display: block; }
.alumni-meeting-list strong { overflow: hidden; color: #28547f; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
.alumni-meeting-list small { margin-top: 3px; color: #7890a7; font-size: .51rem; }
.alumni-news-list > li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 7px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.alumni-news-dot { width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; background: #147fe1; }
.alumni-news-dot.is-read { background: #12a574; }
.alumni-news-list strong { display: block; overflow: hidden; color: #28547f; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.alumni-news-list p { display: -webkit-box; overflow: hidden; margin: 3px 0; color: #547491; font-size: .52rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.alumni-news-list small { color: #8297aa; font-size: .49rem; }
.alumni-contribution-banner { display: flex; align-items: center; gap: 16px; min-height: 82px; padding: 12px 26px; border: 1px solid #c9e1f4; border-radius: 6px; background: linear-gradient(110deg, #eef7ff, #eaf4fd); }
.alumni-banner-mark { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 44px; color: #0755bd; }
.alumni-banner-mark svg { display: block; width: 48px; height: 44px; fill: currentColor; }
.alumni-contribution-banner > div { flex: 1; min-width: 0; }
.alumni-contribution-banner h2 { margin: 0; color: #174b84; font-size: .88rem; line-height: 1.3; }
.alumni-contribution-banner p { margin: 3px 0 0; color: #2876bd; font-size: .76rem; line-height: 1.35; }
.alumni-contribution-banner > a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; min-height: 38px; padding: 0 15px; border: 1px solid #0758c5; border-radius: 5px; color: #fff; background: #1264d9; font-size: .62rem; font-weight: 750; text-decoration: none; }
.alumni-contribution-banner > a:hover { background: #0b55bf; }
.alumni-contribution-banner > a svg { display: block; width: 17px; height: 17px; fill: currentColor; }
.alumni-contribution-banner > a span { font-size: .62rem; white-space: nowrap; }
@media (max-width: 1080px) {
    .alumni-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alumni-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alumni-quick-actions { grid-column: 1 / -1; }
    .alumni-action-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .alumni-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alumni-recent-news { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .alumni-dashboard .welcome-header { align-items: flex-start; }
    .alumni-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .alumni-overview-grid, .alumni-content-grid { grid-template-columns: minmax(0, 1fr); }
    .alumni-quick-actions, .alumni-recent-news { grid-column: auto; }
    .alumni-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alumni-trend-axis { height: 102px; }
    .alumni-trend-chart { height: 124px; background-size: 100% 102px; }
}
@media (max-width: 480px) {
    .alumni-metric-row { grid-template-columns: minmax(0, 1fr); }
    .alumni-action-list { grid-template-columns: minmax(0, 1fr); }
    .alumni-purpose-content { justify-content: space-around; }
    .alumni-contribution-banner { flex-wrap: wrap; gap: 9px 12px; padding: 12px; }
    .alumni-banner-mark { flex-basis: 40px; width: 40px; }
    .alumni-banner-mark svg { width: 40px; }
    .alumni-contribution-banner > a { margin-left: 52px; }
}

.committee-reference-dashboard { display: grid; gap: 10px; min-width: 0; color: #173b64; }
.committee-welcome-section { min-width: 0; }
.committee-member-dashboard .welcome-header { align-items: center; gap: 12px; margin: 0; }
.committee-member-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.55rem; letter-spacing: 0; }
.committee-member-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .76rem; }
.committee-member-dashboard .date-group { gap: 17px; padding-top: 0; color: #2464a7; font-size: .7rem; }
.committee-member-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.committee-metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.committee-metric { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 76px; padding: 10px 12px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .1); }
.committee-metric > span { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.2rem; }
.committee-metric > div { min-width: 0; }
.committee-metric small, .committee-metric strong, .committee-metric em { display: block; }
.committee-metric small { color: rgba(255,255,255,.92); font-size: .58rem; font-weight: 700; }
.committee-metric strong { margin-top: 4px; font-size: 1.08rem; line-height: 1; }
.committee-metric em { margin-top: 5px; color: rgba(255,255,255,.84); font-size: .49rem; font-style: normal; }
.committee-metric-blue { background: linear-gradient(120deg, #0879db, #168fe7); }
.committee-metric-green { background: linear-gradient(120deg, #07975b, #13b875); }
.committee-metric-purple { background: linear-gradient(120deg, #6034b8, #8051d3); }
.committee-metric-orange { background: linear-gradient(120deg, #e79000, #f2a20a); }
.committee-overview-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(190px, .82fr); gap: 9px; align-items: stretch; }
.committee-content-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .92fr); gap: 9px; align-items: stretch; }
.committee-panel { min-width: 0; padding: 11px 12px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.committee-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 20px; margin-bottom: 8px; }
.committee-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .77rem; font-weight: 750; }
.committee-panel-heading h2 > span { margin-right: 5px; color: #167ee5; }
.committee-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .56rem; font-weight: 700; text-decoration: none; }
.committee-panel-heading > a:hover { text-decoration: underline; }
.committee-period-label { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .52rem; white-space: nowrap; }
.committee-period-label::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: translateY(-1px) rotate(45deg); }
.committee-chart-legend { display: flex; gap: 12px; margin-bottom: 7px; color: #41698f; font-size: .55rem; }
.committee-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.committee-chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.suggestion-submitted-key { background: #167ee5; }
.suggestion-resolved-key { background: #12a574; }
.committee-chart-plot { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; align-items: start; }
.committee-chart-axis { display: flex; flex-direction: column; justify-content: space-between; height: 126px; color: #426b91; font-size: .51rem; line-height: 1; text-align: right; }
.committee-chart-content { min-width: 0; }
.committee-line-chart { position: relative; height: 126px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #eaf1f7 0 1px, transparent 1px 31.5px); }
.committee-line-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.committee-line-chart polyline { fill: none; stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.committee-line-chart .submitted-line { stroke: #167ee5; }
.committee-line-chart .resolved-line { stroke: #12a574; }
.committee-line-chart circle { vector-effect: non-scaling-stroke; }
.committee-line-chart .submitted-point { fill: #167ee5; }
.committee-line-chart .resolved-point { fill: #12a574; }
.committee-chart-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; padding-top: 5px; }
.committee-chart-months span { overflow: hidden; color: #426b91; font-size: .5rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.committee-activity-list, .committee-meeting-list, .committee-message-list { display: grid; margin: 0; padding: 0; list-style: none; }
.committee-activity-list > li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid #edf2f7; }
.committee-activity-list > li:last-child, .committee-meeting-list > li:last-child, .committee-message-list > li:last-child { border-bottom: 0; }
.committee-activity-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; color: #fff; background: #12a574; font-size: .6rem; font-weight: 750; }
.activity-color-1 { background: #167ee5; }
.activity-color-2 { background: #7048d4; }
.activity-color-3 { background: #e99b19; }
.committee-activity-list strong, .committee-activity-list p { display: block; overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.committee-activity-list strong { color: #28547f; font-size: .55rem; }
.committee-activity-list p { margin-top: 3px; color: #7890a7; font-size: .5rem; }
.committee-activity-list > li > small { color: #8297aa; font-size: .48rem; white-space: nowrap; }
.committee-action-list { display: grid; gap: 5px; }
.committee-action-list a { display: grid; grid-template-columns: 22px minmax(0, 1fr) 10px; align-items: center; gap: 6px; min-height: 30px; padding: 4px 6px; border-radius: 4px; color: #20527f; background: #edf6fd; font-size: .56rem; text-decoration: none; }
.committee-action-list a:hover { color: #064c94; background: #deeffd; }
.committee-action-list a > span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #137fda; font-size: .76rem; }
.committee-action-list a:nth-child(2) > span { background: #16ae76; }
.committee-action-list a:nth-child(3) > span { background: #8051e3; }
.committee-action-list a:nth-child(4) > span { background: #e7950b; }
.committee-action-list a > i { color: #0879da; font-size: .9rem; font-style: normal; text-align: right; }
.committee-table-wrap { width: 100%; overflow-x: auto; }
.committee-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .55rem; text-align: left; white-space: nowrap; }
.committee-table thead { background: #edf6fd; }
.committee-table th { padding: 6px 5px; color: #285c8c; font-size: .51rem; font-weight: 750; }
.committee-table td { padding: 6px 5px; border-bottom: 1px solid #eaf1f7; }
.committee-table tbody tr:last-child td { border-bottom: 0; }
.committee-status { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .49rem; }
.committee-status.status-submitted, .committee-status.status-under_review { color: #8b5b06; background: #fff1cf; }
.committee-status.status-closed { color: #5d7185; background: #eaf0f5; }
.committee-empty-state { padding: 14px 8px; color: #7189a0; font-size: .55rem; text-align: center; white-space: normal; }
.committee-meeting-list > li { display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.committee-meeting-date { display: grid; place-items: center; align-self: start; min-height: 35px; border-radius: 4px; color: #fff; background: #167ee5; font-size: .53rem; font-weight: 750; }
.committee-meeting-list strong, .committee-meeting-list small { display: block; }
.committee-meeting-list strong { overflow: hidden; color: #28547f; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.committee-meeting-list small { margin-top: 3px; color: #7890a7; font-size: .49rem; }
.committee-message-list > li { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; gap: 6px; padding: 8px 0; border-bottom: 1px solid #edf2f7; }
.committee-message-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #167ee5; font-size: .65rem; }
.committee-message-list li > div { min-width: 0; }
.committee-message-list small { display: block; overflow: hidden; color: #7890a7; font-size: .48rem; text-overflow: ellipsis; white-space: nowrap; }
.committee-message-list strong { display: block; overflow: hidden; margin-top: 2px; color: #28547f; font-size: .53rem; text-overflow: ellipsis; white-space: nowrap; }
.committee-message-list p { display: -webkit-box; overflow: hidden; margin: 3px 0 0; color: #547491; font-size: .49rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.committee-message-list time { color: #8297aa; font-size: .47rem; white-space: nowrap; }
.committee-suggestion-banner { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 8px 14px; overflow: hidden; border: 1px solid #c9e1f4; border-radius: 6px; background: linear-gradient(110deg, #eef7ff, #eaf4fd); }
.committee-banner-mark { display: grid; place-items: center; flex: 0 0 45px; width: 45px; height: 42px; color: #0755bd; }
.committee-banner-mark svg { display: block; width: 44px; height: 42px; fill: currentColor; }
.committee-banner-copy { flex: 1; min-width: 0; }
.committee-banner-copy h2 { margin: 0; color: #174b84; font-size: .8rem; line-height: 1.25; }
.committee-banner-copy p { margin: 3px 0 0; color: #2876bd; font-size: .62rem; line-height: 1.3; }
.committee-banner-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 32px; padding: 0 10px; border: 1px solid #0758c5; border-radius: 4px; color: #fff; background: #1264d9; font-size: .52rem; font-weight: 750; text-decoration: none; }
.committee-banner-action:hover { background: #0b55bf; }
.committee-banner-action svg { display: block; width: 14px; height: 14px; fill: currentColor; }
.committee-banner-action b { font-size: .8rem; font-weight: 500; }
.committee-banner-illustration { display: block; flex: 0 0 115px; width: 115px; height: 48px; }
@media (max-width: 1080px) {
    .committee-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .committee-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .committee-quick-actions { grid-column: 1 / -1; }
    .committee-action-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .committee-content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .committee-recent-messages { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .committee-member-dashboard .welcome-header { align-items: flex-start; }
    .committee-member-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .committee-overview-grid, .committee-content-grid { grid-template-columns: minmax(0, 1fr); }
    .committee-quick-actions, .committee-recent-messages { grid-column: auto; }
    .committee-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .committee-chart-axis, .committee-line-chart { height: 104px; }
    .committee-line-chart { background-size: 100% 104px; }
}
@media (max-width: 480px) {
    .committee-metric-row { grid-template-columns: minmax(0, 1fr); }
    .committee-action-list { grid-template-columns: minmax(0, 1fr); }
    .committee-suggestion-banner { flex-wrap: wrap; gap: 8px 10px; padding: 10px; }
    .committee-banner-illustration { display: none; }
    .committee-banner-action { margin-left: 55px; }
}

.coordinator-reference-dashboard { display: grid; gap: 9px; min-width: 0; color: #173b64; }
.coordinator-welcome-section { min-width: 0; }
.coordinator-dashboard .welcome-header { align-items: center; gap: 12px; margin: 0; }
.coordinator-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.52rem; letter-spacing: 0; }
.coordinator-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .74rem; }
.coordinator-dashboard .date-group { gap: 16px; padding-top: 0; color: #2464a7; font-size: .68rem; }
.coordinator-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.coordinator-metric-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.coordinator-metric { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 76px; padding: 9px 10px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .1); }
.coordinator-metric > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.1rem; }
.coordinator-metric > div { min-width: 0; }
.coordinator-metric small, .coordinator-metric strong, .coordinator-metric em { display: block; }
.coordinator-metric small { color: rgba(255,255,255,.93); font-size: .56rem; font-weight: 700; }
.coordinator-metric strong { overflow-wrap: anywhere; margin-top: 5px; font-size: .99rem; line-height: 1.05; }
.coordinator-metric em { margin-top: 5px; color: rgba(255,255,255,.85); font-size: .47rem; font-style: normal; }
.coordinator-metric.metric-students { background: linear-gradient(120deg, #0879db, #168fe7); }
.coordinator-metric.metric-alumni { background: linear-gradient(120deg, #07975b, #13b875); }
.coordinator-metric.metric-requests { background: linear-gradient(120deg, #6034b8, #8051d3); }
.coordinator-metric.metric-payments { background: linear-gradient(120deg, #e79000, #f2a20a); }
.coordinator-metric.metric-meetings { background: linear-gradient(120deg, #078e9f, #12adbd); }
.coordinator-overview-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(0, .98fr) minmax(250px, .98fr); gap: 9px; align-items: stretch; }
.coordinator-overview-side { display: grid; grid-template-rows: auto 1fr; gap: 9px; min-width: 0; }
.coordinator-lower-grid { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(245px, .8fr); gap: 9px; align-items: stretch; }
.coordinator-panel { min-width: 0; padding: 10px 11px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.coordinator-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 19px; margin-bottom: 7px; }
.coordinator-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .74rem; font-weight: 750; }
.coordinator-panel-heading h2 > span { margin-right: 5px; color: #167ee5; }
.coordinator-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .54rem; font-weight: 700; text-decoration: none; }
.coordinator-panel-heading > a:hover { text-decoration: underline; }
.coordinator-period-label { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .51rem; white-space: nowrap; }
.coordinator-period-label::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: translateY(-1px) rotate(45deg); }
.coordinator-chart-legend { display: flex; gap: 14px; margin-bottom: 6px; color: #41698f; font-size: .54rem; }
.coordinator-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.coordinator-chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.coordinator-chart-legend .income-key { background: #147fe1; }
.coordinator-chart-legend .expenses-key { background: #f28a18; }
.coordinator-chart-plot { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 4px; align-items: start; }
.coordinator-chart-axis { display: flex; flex-direction: column; justify-content: space-between; height: 124px; color: #426b91; font-size: .49rem; line-height: 1; text-align: right; }
.coordinator-financial-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; height: 151px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #edf3f8 0 1px, transparent 1px 31px); background-size: 100% 124px; background-repeat: no-repeat; }
.coordinator-chart-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.coordinator-chart-bars { display: flex; align-items: end; justify-content: center; gap: 3px; min-height: 0; padding: 0 2px; }
.coordinator-chart-bar { display: block; width: min(32%, 15px); border-radius: 3px 3px 0 0; }
.coordinator-chart-bar.has-value { min-height: 3px; }
.coordinator-chart-bar.chart-income { background: #147fe1; }
.coordinator-chart-bar.chart-expense { background: #f28a18; }
.coordinator-chart-month-label { overflow: hidden; padding: 5px 0; color: #426b91; font-size: .5rem; line-height: 12px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.coordinator-request-type-content { display: flex; align-items: center; justify-content: space-around; gap: 9px; min-height: 146px; }
.coordinator-request-donut { display: grid; place-items: center; flex: 0 0 98px; width: 98px; height: 98px; border-radius: 50%; background-color: #e9f0f6; }
.coordinator-request-donut > div { display: grid; place-content: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; text-align: center; }
.coordinator-request-donut span { color: #5f7c98; font-size: .5rem; }
.coordinator-request-donut strong { color: #174b84; font-size: .88rem; }
.coordinator-request-type-list { display: grid; gap: 11px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.coordinator-request-type-list li { display: flex; justify-content: space-between; align-items: center; gap: 7px; color: #315d87; font-size: .52rem; }
.coordinator-request-type-list li > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.coordinator-request-type-list i { display: block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.coordinator-request-type-list strong { flex: 0 0 auto; color: #28547f; font-size: .51rem; }
.coordinator-request-type-list small { color: #7890a7; font-size: .48rem; font-weight: 500; }
.coordinator-request-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; padding-bottom: 8px; border-bottom: 1px solid #d8e4f0; }
.coordinator-request-tab { min-height: 40px; padding: 8px 15px; border: 1px solid #d5e1ed; border-radius: 6px; color: #315d87; background: #fff; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.coordinator-request-tab:hover { background: #f1f6fb; }
.coordinator-request-tab[aria-selected="true"], .coordinator-request-tab[aria-current="page"] { border-color: #1b70c9; color: #fff; background: #1b70c9; }
.coordinator-report-tabs a { display: inline-flex; align-items: center; text-decoration: none; }
.coordinator-request-tab:focus-visible { outline: 3px solid rgba(27, 112, 201, .28); outline-offset: 2px; }
.coordinator-request-panel[hidden] { display: none; }
.coordinator-review-dialog #confirmed-amount-field[hidden] { display: none; }

.coordinator-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.coordinator-action-grid a { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 31px; padding: 4px 6px; border: 1px solid #dcebf6; border-radius: 4px; color: #20527f; background: #f1f8fe; font-size: .52rem; text-decoration: none; }
.coordinator-action-grid a:hover { background: #deeffd; }
.coordinator-action-grid a > span { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: #137fda; font-size: .74rem; }
.coordinator-action-grid a:nth-child(2) > span { background: #16ae76; }
.coordinator-action-grid a:nth-child(3) > span { background: #8051e3; }
.coordinator-action-grid a:nth-child(4) > span { background: #e7950b; }
.coordinator-action-grid a:nth-child(5) > span { background: #df4b55; }
.coordinator-action-grid a:nth-child(6) > span { background: #078e9f; }
.coordinator-activity-list { display: grid; margin: 0; padding: 0; list-style: none; }
.coordinator-activity-list > li { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid #edf2f7; }
.coordinator-activity-list > li:last-child { border-bottom: 0; }
.coordinator-activity-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #1685e5; font-size: .5rem; font-weight: 750; }
.coordinator-activity-icon.activity-color-1 { background: #12a574; }
.coordinator-activity-icon.activity-color-2 { background: #f28a18; }
.coordinator-activity-icon.activity-color-3 { background: #7048d4; }
.coordinator-activity-list > li > div { min-width: 0; }
.coordinator-activity-list strong, .coordinator-activity-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coordinator-activity-list strong { color: #28547f; font-size: .5rem; }
.coordinator-activity-list small { margin-top: 2px; color: #7890a7; font-size: .47rem; }
.coordinator-activity-list time { color: #8297aa; font-size: .45rem; white-space: nowrap; }
.coordinator-table-wrap { width: 100%; overflow-x: auto; }
.coordinator-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .54rem; text-align: left; white-space: nowrap; }
.coordinator-table thead { background: #edf6fd; }
.coordinator-table th { padding: 6px 5px; color: #285c8c; font-size: .5rem; font-weight: 750; }
.coordinator-table td { padding: 6px 5px; border-bottom: 1px solid #eaf1f7; }
.coordinator-table tbody tr:last-child td { border-bottom: 0; }
.coordinator-status { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .49rem; }
.coordinator-status.status-pending { color: #8b5b06; background: #fff1cf; }
.coordinator-status.status-under_review { color: #155e9e; background: #dceeff; }
.coordinator-view-link { display: inline-block; padding: 4px 9px; border-radius: 4px; color: #fff; background: #087dde; font-size: .49rem; text-decoration: none; }
.coordinator-empty-state { padding: 12px 7px; color: #7189a0; font-size: .53rem; text-align: center; white-space: normal; }
.coordinator-meeting-list { display: grid; margin: 0; padding: 0; list-style: none; }
.coordinator-meeting-list > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 0; border-bottom: 1px solid #edf2f7; }
.coordinator-meeting-list > li:last-child { border-bottom: 0; }
.coordinator-meeting-date { display: grid; place-items: center; min-height: 32px; border-radius: 4px; color: #fff; background: #167ee5; font-size: .48rem; font-weight: 750; }
.coordinator-meeting-list strong, .coordinator-meeting-list small { display: block; }
.coordinator-meeting-list strong { overflow: hidden; color: #28547f; font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.coordinator-meeting-list small { margin-top: 3px; color: #7890a7; font-size: .46rem; }
.coordinator-meeting-list a { padding: 4px 7px; border-radius: 4px; color: #fff; background: #087dde; font-size: .46rem; text-decoration: none; }
.coordinator-system-summary { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 14px; border: 1px solid #d2e6f5; border-radius: 6px; background: linear-gradient(110deg, #eef7ff, #eaf5fd); }
.coordinator-summary-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #167ee5; font-size: .78rem; font-weight: 750; }
.coordinator-system-summary strong { display: block; color: #174b84; font-size: .61rem; }
.coordinator-system-summary p { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 3px 0 0; color: #2876bd; font-size: .51rem; }
.coordinator-system-summary p i { width: 1px; height: 10px; background: #9fc2df; }
@media (max-width: 1080px) {
    .coordinator-metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .coordinator-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coordinator-overview-side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .coordinator-lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .coordinator-dashboard .welcome-header { align-items: flex-start; }
    .coordinator-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .coordinator-metric-row, .coordinator-overview-grid, .coordinator-overview-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .coordinator-overview-side { grid-column: 1 / -1; }
    .coordinator-chart-axis { height: 101px; }
    .coordinator-financial-chart { height: 128px; background-size: 100% 101px; }
    .coordinator-chart-bars { min-height: 0; }
}
@media (max-width: 480px) {
    .coordinator-metric-row, .coordinator-overview-grid, .coordinator-overview-side { grid-template-columns: minmax(0, 1fr); }
    .coordinator-overview-side { grid-column: auto; }
    .coordinator-metric { min-height: 68px; }
    .coordinator-system-summary { align-items: flex-start; }
}

.parent-reference-dashboard { display: grid; gap: 9px; min-width: 0; color: #173b64; }
.dashboard-shell .parent-sidebar ~ .dashboard-main .dashboard-content { padding-top: 6px; }
.parent-welcome-section { min-width: 0; }
.parent-dashboard .welcome-header { align-items: flex-start; gap: 12px; margin: 0; }
.parent-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.52rem; letter-spacing: 0; }
.parent-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .73rem; }
.parent-dashboard .date-group { gap: 16px; padding-top: 0; color: #2464a7; font-size: .68rem; }
.parent-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.parent-metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.parent-metric { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 9px 11px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .1); }
.parent-metric > span { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.18rem; }
.parent-metric > div { min-width: 0; }
.parent-metric small, .parent-metric strong { display: block; }
.parent-metric small { min-height: 2em; color: rgba(255,255,255,.93); font-size: .58rem; font-weight: 700; line-height: 1.2; }
.parent-metric strong { margin-top: 3px; font-size: 1.08rem; line-height: 1; }
.parent-metric a { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: rgba(255,255,255,.91); font-size: .5rem; text-decoration: none; }
.parent-metric a:hover { text-decoration: underline; }
.parent-metric a i { font-size: .7rem; font-style: normal; }
.parent-metric-blue { background: linear-gradient(120deg, #0879db, #168fe7); }
.parent-metric-green { background: linear-gradient(120deg, #07975b, #13b875); }
.parent-metric-purple { background: linear-gradient(120deg, #6034b8, #8051d3); }
.parent-metric-orange { background: linear-gradient(120deg, #e79000, #f2a20a); }
.parent-overview-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.26fr) minmax(0, .94fr); gap: 9px; align-items: stretch; }
.parent-lower-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(250px, .9fr); gap: 9px; align-items: stretch; }
.parent-side-stack { display: grid; grid-template-rows: auto auto; gap: 9px; min-width: 0; }
.parent-panel { min-width: 0; padding: 10px 11px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.parent-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 19px; margin-bottom: 7px; }
.parent-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .75rem; font-weight: 750; }
.parent-panel-heading h2 > span { margin-right: 5px; color: #167ee5; }
.parent-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .53rem; font-weight: 700; text-decoration: none; }
.parent-panel-heading > a:hover { text-decoration: underline; }
.parent-no-children { display: grid; justify-items: center; align-content: center; min-height: 154px; padding: 12px; text-align: center; }
.parent-no-children > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 50%; color: #fff; background: #167ee5; font-size: 1.1rem; }
.parent-no-children strong { color: #28547f; font-size: .63rem; }
.parent-no-children p { max-width: 225px; margin: 5px 0 8px; color: #7890a7; font-size: .53rem; line-height: 1.45; }
.parent-no-children a { color: #0879da; font-size: .52rem; font-weight: 700; text-decoration: none; }
.parent-period-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .51rem; white-space: nowrap; }
.parent-period-label::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: translateY(-1px) rotate(45deg); }
.parent-progress-legend { margin: 0 0 6px; color: #41698f; font-size: .52rem; }
.parent-progress-legend span { display: inline-flex; align-items: center; gap: 5px; }
.parent-progress-legend i { width: 8px; height: 8px; border-radius: 50%; background: #167ee5; }
.parent-progress-chart { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px; align-items: start; }
.parent-progress-axis { display: flex; flex-direction: column; justify-content: space-between; height: 112px; color: #426b91; font-size: .48rem; line-height: 1; text-align: right; }
.parent-progress-plot { display: grid; grid-template-rows: 1fr auto; min-width: 0; height: 132px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #edf3f8 0 1px, transparent 1px 22.4px); }
.parent-progress-empty { display: grid; place-items: center; padding: 8px; color: #7890a7; font-size: .54rem; text-align: center; }
.parent-progress-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 5px 0; }
.parent-progress-months span { color: #426b91; font-size: .49rem; text-align: center; }
.parent-action-list { display: grid; gap: 6px; }
.parent-action-list a { display: grid; grid-template-columns: 25px minmax(0, 1fr) 10px; align-items: center; gap: 6px; min-height: 39px; padding: 4px 6px; border: 1px solid #dcebf6; border-radius: 4px; color: #20527f; background: #f1f8fe; text-decoration: none; }
.parent-action-list a:hover { background: #deeffd; }
.parent-action-list a > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: #7048d4; font-size: .76rem; }
.parent-action-list a:nth-child(2) > span { background: #167ee5; }
.parent-action-list a:nth-child(3) > span { background: #12a574; }
.parent-action-list a:nth-child(4) > span { background: #f28a18; }
.parent-action-list strong, .parent-action-list small { display: block; }
.parent-action-list strong { color: #28547f; font-size: .52rem; }
.parent-action-list small { margin-top: 2px; color: #7890a7; font-size: .46rem; }
.parent-action-list a > i { color: #0879da; font-size: .9rem; font-style: normal; text-align: right; }
.parent-table-wrap { width: 100%; overflow-x: auto; }
.parent-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .54rem; text-align: left; white-space: nowrap; }
.parent-table thead { background: #edf6fd; }
.parent-table th { padding: 6px 5px; color: #285c8c; font-size: .5rem; font-weight: 750; }
.parent-table td { padding: 6px 5px; border-bottom: 1px solid #eaf1f7; }
.parent-table tbody tr:last-child td { border-bottom: 0; }
.parent-table td strong, .parent-table td small { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.parent-table td small { margin-top: 3px; color: #7890a7; font-size: .48rem; }
.parent-status { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .48rem; }
.parent-status.status-submitted, .parent-status.status-under_review { color: #8b5b06; background: #fff1cf; }
.parent-status.status-closed { color: #5d7185; background: #eaf0f5; }
.parent-empty-state { padding: 12px 7px; color: #7189a0; font-size: .52rem; text-align: center; white-space: normal; }
.parent-meeting-list, .parent-notification-list { display: grid; margin: 0; padding: 0; list-style: none; }
.parent-meeting-list > li { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 7px; padding: 7px 0; border-bottom: 1px solid #edf2f7; }
.parent-meeting-list > li:last-child, .parent-notification-list > li:last-child { border-bottom: 0; }
.parent-meeting-date { display: grid; place-items: center; align-self: start; min-height: 32px; border-radius: 4px; color: #fff; background: #167ee5; font-size: .5rem; font-weight: 750; }
.parent-meeting-list strong, .parent-meeting-list small { display: block; }
.parent-meeting-list strong { overflow: hidden; color: #28547f; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.parent-meeting-list small { margin-top: 3px; color: #7890a7; font-size: .47rem; }
.parent-notification-list > li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 6px; padding: 7px 0; border-bottom: 1px solid #edf2f7; }
.parent-notification-dot { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: #167ee5; }
.parent-notification-dot.is-read { background: #12a574; }
.parent-notification-list strong { display: block; overflow: hidden; color: #28547f; font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.parent-notification-list p { display: -webkit-box; overflow: hidden; margin: 3px 0 0; color: #7890a7; font-size: .47rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.parent-notification-list time { color: #8297aa; font-size: .44rem; white-space: nowrap; }
.parent-contact-banner { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 8px 14px; overflow: hidden; border: 1px solid #c9e1f4; border-radius: 6px; background: linear-gradient(110deg, #eef7ff, #eaf4fd); }
.parent-banner-mark { display: grid; place-items: center; flex: 0 0 45px; width: 45px; height: 42px; color: #0755bd; }
.parent-banner-mark svg { display: block; width: 44px; height: 42px; fill: currentColor; }
.parent-contact-banner > div { flex: 1; min-width: 0; }
.parent-contact-banner h2 { margin: 0; color: #174b84; font-size: .8rem; line-height: 1.25; }
.parent-contact-banner p { margin: 3px 0 0; color: #2876bd; font-size: .61rem; line-height: 1.3; }
.parent-contact-banner > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 32px; padding: 0 11px; border: 1px solid #0758c5; border-radius: 4px; color: #fff; background: #1264d9; font-size: .53rem; font-weight: 750; text-decoration: none; }
.parent-contact-banner > a:hover { background: #0b55bf; }
.parent-contact-banner > a svg { display: block; width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 1080px) {
    .parent-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .parent-quick-actions { grid-column: 1 / -1; }
    .parent-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .parent-lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .parent-dashboard .welcome-header { align-items: flex-start; }
    .parent-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .parent-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .parent-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .parent-quick-actions { grid-column: auto; }
    .parent-lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .parent-metric-row, .parent-action-list { grid-template-columns: minmax(0, 1fr); }
    .parent-contact-banner { flex-wrap: wrap; gap: 8px 10px; padding: 10px; }
    .parent-banner-mark { flex-basis: 38px; width: 38px; }
    .parent-banner-mark svg { width: 38px; }
    .parent-contact-banner > a { margin-left: 48px; }
}

.student-reference-dashboard { display: grid; gap: 9px; min-width: 0; color: #173b64; }
.dashboard-shell .student-sidebar ~ .dashboard-main .dashboard-content { padding-top: 0; }
.student-welcome-section { min-width: 0; }
.student-dashboard .welcome-header { align-items: flex-start; gap: 12px; margin: 0; }
.student-dashboard .welcome-copy h1 { color: #123d72; font-size: 1.52rem; letter-spacing: 0; }
.student-dashboard .welcome-copy p { margin-top: 3px; color: #2876bd; font-size: .73rem; }
.student-dashboard .date-group { gap: 16px; padding-top: 0; color: #2464a7; font-size: .68rem; }
.student-dashboard .mini-icon { width: auto; height: auto; color: #176ec0; font-size: .95rem; }
.student-metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.student-metric { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 78px; padding: 9px 11px; border-radius: 6px; color: #fff; box-shadow: 0 6px 14px rgba(27, 69, 113, .1); }
.student-metric > span { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); font-size: 1.18rem; }
.student-metric > div { min-width: 0; }
.student-metric small, .student-metric strong, .student-metric em { display: block; }
.student-metric small { min-height: 2em; color: rgba(255,255,255,.93); font-size: .58rem; font-weight: 700; line-height: 1.2; }
.student-metric strong { overflow-wrap: anywhere; margin-top: 3px; font-size: 1.08rem; line-height: 1; }
.student-metric em { margin-top: 5px; color: rgba(255,255,255,.88); font-size: .49rem; font-style: normal; }
.student-metric-blue { background: linear-gradient(120deg, #0879db, #168fe7); }
.student-metric-green { background: linear-gradient(120deg, #07975b, #13b875); }
.student-metric-purple { background: linear-gradient(120deg, #6034b8, #8051d3); }
.student-metric-orange { background: linear-gradient(120deg, #e79000, #f2a20a); }
.student-overview-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .92fr) minmax(235px, .92fr); gap: 9px; align-items: stretch; }
.student-lower-grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(250px, .9fr); gap: 9px; align-items: stretch; }
.student-side-stack { display: grid; grid-template-rows: auto auto; gap: 9px; min-width: 0; }
.student-panel { min-width: 0; padding: 10px 11px; border: 1px solid #dce9f4; border-radius: 6px; background: #fff; box-shadow: 0 5px 14px rgba(31, 72, 113, .045); }
.student-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 19px; margin-bottom: 7px; }
.student-panel-heading h2 { min-width: 0; margin: 0; color: #174b84; font-size: .75rem; font-weight: 750; }
.student-panel-heading h2 > span { margin-right: 5px; color: #167ee5; }
.student-panel-heading > a { flex: 0 0 auto; color: #0879da; font-size: .53rem; font-weight: 700; text-decoration: none; }
.student-panel-heading > a:hover { text-decoration: underline; }
.student-period-label { display: inline-flex; align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid #dbe8f4; border-radius: 4px; color: #3b6590; font-size: .51rem; white-space: nowrap; }
.student-period-label::after { width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; content: ''; transform: translateY(-1px) rotate(45deg); }
.student-chart-legend { display: flex; gap: 13px; margin-bottom: 6px; color: #41698f; font-size: .53rem; }
.student-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.student-chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.student-chart-legend .school-fee-key { background: #167ee5; }
.student-chart-legend .pocket-money-key { background: #12a574; }
.student-request-chart-plot { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 4px; align-items: start; }
.student-request-axis { display: flex; flex-direction: column; justify-content: space-between; height: 116px; color: #426b91; font-size: .49rem; line-height: 1; text-align: right; }
.student-request-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; height: 143px; border-bottom: 1px solid #dce9f4; background: repeating-linear-gradient(to bottom, #edf3f8 0 1px, transparent 1px 29px); background-size: 100% 116px; background-repeat: no-repeat; }
.student-request-month { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.student-request-bars { display: flex; align-items: end; justify-content: center; gap: 3px; min-height: 0; padding: 0 2px; }
.student-request-bar { display: block; width: min(34%, 15px); border-radius: 3px 3px 0 0; }
.student-request-bar.has-value { min-height: 3px; }
.student-request-bar.school-fee-bar { background: #167ee5; }
.student-request-bar.pocket-money-bar { background: #12a574; }
.student-request-month-label { padding: 5px 0; color: #426b91; font-size: .5rem; line-height: 12px; text-align: center; }
.student-request-status-content { display: flex; align-items: center; justify-content: space-around; gap: 9px; min-height: 140px; }
.student-request-donut { display: grid; place-items: center; flex: 0 0 98px; width: 98px; height: 98px; border-radius: 50%; background-color: #e9f0f6; }
.student-request-donut > div { display: grid; place-content: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; text-align: center; }
.student-request-donut span { color: #5f7c98; font-size: .5rem; }
.student-request-donut strong { color: #174b84; font-size: .88rem; }
.student-request-status-list { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.student-request-status-list li { display: flex; justify-content: space-between; align-items: center; gap: 7px; color: #315d87; font-size: .52rem; }
.student-request-status-list li > span { display: flex; align-items: center; gap: 5px; }
.student-request-status-list i { display: block; width: 8px; height: 8px; border-radius: 50%; }
.student-request-status-list strong { color: #28547f; font-size: .51rem; }
.student-request-status-list small { color: #7890a7; font-size: .48rem; font-weight: 500; }
.student-action-list { display: grid; gap: 5px; }
.student-action-list a { display: grid; grid-template-columns: 23px minmax(0, 1fr) 10px; align-items: center; gap: 6px; min-height: 31px; padding: 4px 6px; border: 1px solid #dcebf6; border-radius: 4px; color: #20527f; background: #f1f8fe; font-size: .52rem; text-decoration: none; }
.student-action-list a:hover { background: #deeffd; }
.student-action-list a > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: #167ee5; font-size: .72rem; }
.student-action-list a:nth-child(2) > span { background: #12a574; }
.student-action-list a:nth-child(3) > span { background: #f28a18; }
.student-action-list a:nth-child(4) > span { background: #8051d3; }
.student-action-list a:nth-child(5) > span { background: #df4b55; }
.student-action-list a > i { color: #0879da; font-size: .9rem; font-style: normal; text-align: right; }
.student-table-wrap { width: 100%; overflow-x: auto; }
.student-table { width: 100%; border-collapse: collapse; color: #27547f; font-size: .54rem; text-align: left; white-space: nowrap; }
.student-table thead { background: #edf6fd; }
.student-table th { padding: 6px 5px; color: #285c8c; font-size: .5rem; font-weight: 750; }
.student-table td { padding: 6px 5px; border-bottom: 1px solid #eaf1f7; }
.student-table tbody tr:last-child td { border-bottom: 0; }
.student-status { display: inline-block; padding: 3px 6px; border-radius: 4px; color: #176b47; background: #daf4e7; font-size: .48rem; }
.student-status.status-pending, .student-status.status-under_review { color: #8b5b06; background: #fff1cf; }
.student-status.status-rejected, .student-status.status-cancelled { color: #a9323c; background: #ffe2e4; }
.student-view-link { display: inline-block; padding: 4px 8px; border-radius: 4px; color: #fff; background: #087dde; font-size: .48rem; text-decoration: none; }
.student-empty-state { padding: 12px 7px; color: #7189a0; font-size: .52rem; text-align: center; white-space: normal; }
.student-meeting-list, .student-notification-list { display: grid; margin: 0; padding: 0; list-style: none; }
.student-meeting-list > li { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 7px; padding: 7px 0; border-bottom: 1px solid #edf2f7; }
.student-meeting-list > li:last-child, .student-notification-list > li:last-child { border-bottom: 0; }
.student-meeting-date { display: grid; place-items: center; align-self: start; min-height: 32px; border-radius: 4px; color: #fff; background: #167ee5; font-size: .5rem; font-weight: 750; }
.student-meeting-list strong, .student-meeting-list small { display: block; }
.student-meeting-list strong { overflow: hidden; color: #28547f; font-size: .5rem; text-overflow: ellipsis; white-space: nowrap; }
.student-meeting-list small { margin-top: 3px; color: #7890a7; font-size: .47rem; }
.student-notification-list > li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 6px; padding: 7px 0; border-bottom: 1px solid #edf2f7; }
.student-notification-dot { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: #167ee5; }
.student-notification-dot.is-read { background: #12a574; }
.student-notification-list strong { display: block; overflow: hidden; color: #28547f; font-size: .49rem; text-overflow: ellipsis; white-space: nowrap; }
.student-notification-list p { display: -webkit-box; overflow: hidden; margin: 3px 0 0; color: #7890a7; font-size: .47rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.student-notification-list time { color: #8297aa; font-size: .44rem; white-space: nowrap; }
.student-progress-banner { display: flex; align-items: center; gap: 13px; min-height: 68px; padding: 8px 14px; overflow: hidden; border: 1px solid #c9e1f4; border-radius: 6px; background: linear-gradient(110deg, #eef7ff, #eaf4fd); }
.student-banner-mark { display: grid; place-items: center; flex: 0 0 45px; width: 45px; height: 42px; color: #0755bd; }
.student-banner-mark svg { display: block; width: 44px; height: 42px; fill: currentColor; }
.student-banner-copy { flex: 1; min-width: 0; }
.student-banner-copy h2 { margin: 0; color: #174b84; font-size: .8rem; line-height: 1.25; }
.student-banner-copy p { margin: 3px 0 0; color: #2876bd; font-size: .61rem; line-height: 1.3; }
.student-banner-illustration { display: block; flex: 0 0 130px; width: 130px; height: 54px; }
@media (max-width: 1080px) {
    .student-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-quick-actions { grid-column: 1 / -1; }
    .student-action-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .student-dashboard .welcome-header { align-items: flex-start; }
    .student-dashboard .date-group { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 14px; padding-top: 0; font-size: .62rem; }
    .student-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .student-overview-grid { grid-template-columns: minmax(0, 1fr); }
    .student-quick-actions { grid-column: auto; }
    .student-request-axis { height: 101px; }
    .student-request-chart { height: 128px; background-size: 100% 101px; }
}
@media (max-width: 480px) {
    .student-metric-row, .student-action-list { grid-template-columns: minmax(0, 1fr); }
    .student-progress-banner { flex-wrap: wrap; gap: 8px 10px; padding: 10px; }
    .student-banner-mark { flex-basis: 38px; width: 38px; }
    .student-banner-mark svg { width: 38px; }
    .student-banner-illustration { display: none; }
}

.coordinator-profile-page { display: grid; gap: 20px; max-width: 1320px; margin: 0 auto; color: #183b60; }
.coordinator-profile-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 3px 2px 0; }
.coordinator-profile-eyebrow { color: #2478c4; font-size: .68rem; font-weight: 800; letter-spacing: .13em; }
.coordinator-profile-heading h1 { margin: 5px 0 4px; color: #163b66; font-size: clamp(1.55rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -.035em; }
.coordinator-profile-heading p { margin: 0; color: #7187a0; font-size: .86rem; line-height: 1.5; }
.coordinator-profile-alert { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid; border-radius: 11px; font-size: .84rem; font-weight: 650; }
.coordinator-profile-alert.is-success { border-color: #bce7d2; color: #176c48; background: #f0fbf5; }
.coordinator-profile-alert.is-error { border-color: #f0c5c5; color: #a53c3c; background: #fff5f5; }
.coordinator-profile-alert-icon { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; color: #fff; background: currentColor; font-size: .75rem; }
.coordinator-profile-alert.is-success .coordinator-profile-alert-icon { color: #fff; background: #269568; }
.coordinator-profile-alert.is-error .coordinator-profile-alert-icon { color: #fff; background: #c05252; }
.coordinator-profile-layout { display: grid; grid-template-columns: minmax(250px, .78fr) minmax(0, 1.7fr); gap: 20px; align-items: start; }
.coordinator-profile-summary, .coordinator-profile-editor { min-width: 0; overflow: hidden; border: 1px solid #e0e9f3; border-radius: 17px; background: #fff; box-shadow: 0 12px 32px rgba(26, 57, 91, .07); }
.coordinator-profile-cover { position: relative; height: 120px; overflow: hidden; background: linear-gradient(125deg, #1269c6 0%, #278cdd 58%, #75c7ec 100%); }
.coordinator-profile-cover::before, .coordinator-profile-cover::after, .coordinator-profile-cover span { position: absolute; display: block; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; content: ""; }
.coordinator-profile-cover::before { width: 220px; height: 220px; top: -120px; right: -25px; }
.coordinator-profile-cover::after { width: 160px; height: 160px; top: -92px; right: 35px; }
.coordinator-profile-cover span:first-child { width: 112px; height: 112px; top: 42px; right: 25%; background: rgba(255, 255, 255, .07); }
.coordinator-profile-cover span:last-child { width: 70px; height: 70px; top: -39px; left: 23%; background: rgba(255, 255, 255, .08); }
.coordinator-profile-identity { position: relative; padding: 0 23px 19px; text-align: center; }
.coordinator-profile-avatar { display: grid; place-items: center; width: 82px; height: 82px; margin: -42px auto 12px; position: relative; border: 5px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #244fa5, #4086db); box-shadow: 0 4px 14px rgba(18, 65, 125, .22); font-size: 1.45rem; font-weight: 800; letter-spacing: .04em; }
.coordinator-profile-identity h2 { margin: 0; color: #173d67; font-size: 1.12rem; font-weight: 800; overflow-wrap: anywhere; }
.coordinator-profile-identity p { margin: 5px 0 11px; color: #7a8fa5; font-size: .78rem; overflow-wrap: anywhere; }
.coordinator-profile-role { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid #d7e9fa; border-radius: 99px; color: #2369aa; background: #f1f8ff; font-size: .69rem; font-weight: 750; }
.coordinator-profile-facts { display: grid; gap: 0; margin: 0 20px; padding: 9px 0; border-top: 1px solid #edf1f6; }
.coordinator-profile-fact { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 1px; }
.coordinator-profile-fact-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #2877bb; background: #edf6ff; font-size: 1rem; }
.coordinator-profile-fact > div { display: grid; gap: 3px; min-width: 0; }
.coordinator-profile-fact > div span { color: #8192a5; font-size: .68rem; }
.coordinator-profile-fact strong { color: #304e6d; font-size: .79rem; font-weight: 720; overflow-wrap: anywhere; }
.coordinator-profile-fact .coordinator-profile-status.status-active { color: #168052; }
.coordinator-profile-fact .coordinator-profile-status.status-pending,
.coordinator-profile-fact .coordinator-profile-status.status-inactive { color: #a76c12; }
.coordinator-profile-fact .coordinator-profile-status.status-suspended { color: #b43e4b; }
.coordinator-profile-security-link { display: flex; align-items: center; gap: 11px; margin: 10px 20px 20px; padding: 13px; border: 1px solid #dce9f5; border-radius: 12px; color: #2569a7; background: #f7fbff; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.coordinator-profile-security-link:hover { transform: translateY(-1px); border-color: #b8d5ef; background: #eff7ff; }
.coordinator-profile-security-link > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: #fff; background: #327fc2; font-size: 1.1rem; }
.coordinator-profile-security-link > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.coordinator-profile-security-link strong { color: #28577f; font-size: .75rem; }
.coordinator-profile-security-link small { color: #8194a7; font-size: .66rem; }
.coordinator-profile-arrow { margin-left: auto; font-size: 1.05rem; }
.coordinator-profile-editor { padding: 25px 28px 22px; }
.coordinator-profile-editor-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 21px; border-bottom: 1px solid #edf1f6; }
.coordinator-profile-editor-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; color: #2875b8; background: #edf6ff; font-size: 1.15rem; }
.coordinator-profile-editor-heading h2 { margin: 0; color: #183d66; font-size: 1.05rem; font-weight: 800; }
.coordinator-profile-editor-heading p { margin: 4px 0 0; color: #8292a5; font-size: .75rem; line-height: 1.45; }
.coordinator-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 18px; padding: 24px 0; }
.coordinator-profile-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.coordinator-profile-field-wide { grid-column: 1 / -1; }
.coordinator-profile-field label { color: #3c5875; font-size: .76rem; font-weight: 750; }
.coordinator-profile-field label span { color: #d05e5e; }
.coordinator-profile-field input { width: 100%; min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid #dbe4ee; border-radius: 10px; outline: 0; color: #244564; background: #fff; font: inherit; font-size: .84rem; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.coordinator-profile-field textarea { width: 100%; min-width: 0; min-height: 92px; padding: 12px 13px; resize: vertical; border: 1px solid #dbe4ee; border-radius: 10px; outline: 0; color: #244564; background: #fff; font: inherit; font-size: .84rem; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.coordinator-profile-field input:hover { border-color: #b8cde1; }
.coordinator-profile-field input:focus, .coordinator-profile-field textarea:focus { border-color: #3987cb; background: #fcfeff; box-shadow: 0 0 0 3px rgba(57, 135, 203, .13); }
.coordinator-profile-input-wrap { position: relative; }
.coordinator-profile-input-wrap > span { position: absolute; top: 50%; left: 13px; color: #7d9ab5; font-size: .95rem; transform: translateY(-50%); pointer-events: none; }
.coordinator-profile-input-wrap input { padding-left: 40px; }
.coordinator-profile-field > small { color: #8999aa; font-size: .68rem; line-height: 1.4; }
.coordinator-profile-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.coordinator-profile-form-footer p { display: flex; align-items: center; gap: 8px; margin: 0; color: #8495a8; font-size: .69rem; line-height: 1.45; }
.coordinator-profile-form-footer p span { color: #3984be; font-size: .9rem; }
.coordinator-profile-save { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; flex: 0 0 auto; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(120deg, #176bc0, #2587d4); box-shadow: 0 5px 12px rgba(27, 104, 183, .2); cursor: pointer; font: inherit; font-size: .78rem; font-weight: 750; transition: filter .18s ease, transform .18s ease, box-shadow .18s ease; }
.coordinator-profile-save:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 7px 15px rgba(27, 104, 183, .25); }
.coordinator-profile-save:focus-visible { outline: 3px solid rgba(50, 127, 194, .3); outline-offset: 3px; }
@media (max-width: 980px) {
    .coordinator-profile-layout { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr); gap: 14px; }
    .coordinator-profile-editor { padding: 22px 20px 19px; }
    .coordinator-profile-form-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 720px) {
    .coordinator-profile-page { gap: 15px; }
    .coordinator-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .coordinator-profile-summary { display: grid; grid-template-columns: minmax(0, 1fr); }
    .coordinator-profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
    .coordinator-profile-security-link { margin-top: 6px; }
}
@media (max-width: 480px) {
    .coordinator-profile-heading p { max-width: 34ch; }
    .coordinator-profile-editor { padding: 19px 15px 16px; }
    .coordinator-profile-fields { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 19px 0; }
    .coordinator-profile-field-wide { grid-column: auto; }
    .coordinator-profile-facts { grid-template-columns: minmax(0, 1fr); }
    .coordinator-profile-form-footer { gap: 13px; }
    .coordinator-profile-save { width: 100%; }
}

.modern-password-page { display: grid; gap: 20px; max-width: 1320px; margin: 0 auto; color: #183b60; }
.modern-password-layout { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(0, 1.7fr); gap: 20px; align-items: stretch; }
.modern-password-summary { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 26px 24px 20px; border: 1px solid #dbe8f5; border-radius: 17px; color: #fff; background: linear-gradient(155deg, #124e98, #176bc0 55%, #2586d4); box-shadow: 0 12px 32px rgba(26, 57, 91, .12); }
.modern-password-summary::before, .modern-password-summary::after { position: absolute; right: -77px; bottom: 110px; width: 220px; height: 220px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; content: ""; pointer-events: none; }
.modern-password-summary::after { right: -35px; bottom: 152px; width: 135px; height: 135px; }
.modern-password-shield { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 23px; border: 1px solid rgba(255,255,255,.3); border-radius: 16px; background: rgba(255,255,255,.15); }
.modern-password-shield svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.modern-password-kicker { color: #bddfff; font-size: .65rem; font-weight: 800; letter-spacing: .13em; }
.modern-password-summary h2 { margin: 7px 0 8px; color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: -.025em; }
.modern-password-summary > p { max-width: 33ch; margin: 0; color: #d5eaff; font-size: .8rem; line-height: 1.6; }
.modern-password-tips { display: grid; gap: 13px; margin: 24px 0 25px; padding: 0; list-style: none; }
.modern-password-tips li { display: flex; align-items: flex-start; gap: 9px; color: #eff8ff; font-size: .74rem; line-height: 1.45; }
.modern-password-tips li span { display: grid; place-items: center; width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; color: #1261a8; background: #c5f3df; font-size: .65rem; font-weight: 900; }
.modern-password-user { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; min-width: 0; margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.22); }
.modern-password-avatar { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; color: #225f9f; background: #fff; font-size: .78rem; font-weight: 850; }
.modern-password-user > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.modern-password-user strong { color: #fff; font-size: .75rem; overflow-wrap: anywhere; }
.modern-password-user small { color: #d1e7fb; font-size: .65rem; }
.modern-password-status { margin-left: auto; padding: 4px 8px; border: 1px solid rgba(255,255,255,.38); border-radius: 99px; color: #fff; background: rgba(255,255,255,.12); font-size: .61rem; font-weight: 700; }
.modern-password-status.status-active { color: #e4fff1; }
.modern-password-status.status-suspended { color: #ffe5e5; }
.modern-password-editor { align-self: stretch; }
.modern-password-form .coordinator-profile-fields { gap: 21px; }
.modern-password-input { position: relative; }
.modern-password-input input { padding-right: 49px; }
.modern-password-toggle { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 0; border-radius: 8px; color: #748ca4; background: transparent; cursor: pointer; transform: translateY(-50%); }
.modern-password-toggle:hover { color: #176bc0; background: #eff7ff; }
.modern-password-toggle:focus-visible { outline: 2px solid #3987cb; outline-offset: 1px; }
.modern-password-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.modern-password-actions { display: flex; align-items: center; gap: 12px; }
.modern-password-cancel { color: #607991; font-size: .77rem; font-weight: 700; text-decoration: none; }
.modern-password-cancel:hover { color: #176bc0; text-decoration: underline; }
@media (max-width: 980px) {
    .modern-password-layout { grid-template-columns: minmax(230px, .8fr) minmax(0, 1.4fr); gap: 14px; }
    .modern-password-summary { padding-inline: 19px; }
}
@media (max-width: 720px) {
    .modern-password-page { gap: 15px; }
    .modern-password-layout { grid-template-columns: minmax(0, 1fr); }
    .modern-password-summary { min-height: 0; }
    .modern-password-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
}
@media (max-width: 480px) {
    .modern-password-summary { padding: 21px 17px 17px; }
    .modern-password-tips { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .modern-password-actions { width: 100%; justify-content: space-between; }
    .modern-password-actions .coordinator-profile-save { width: auto; }
}
    .modern-reset-page .modern-password-layout { grid-template-columns: minmax(260px, .78fr) minmax(0, 1.7fr); }
    .modern-reset-notice { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding: 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; background: rgba(9, 49, 99, .18); }
    .modern-reset-notice > span { display: grid; place-items: center; width: 19px; height: 19px; flex: 0 0 19px; border-radius: 50%; color: #185d9d; background: #d7edff; font-size: .72rem; font-weight: 850; }
    .modern-reset-notice p { margin: 0; color: #e5f3ff; font-size: .67rem; line-height: 1.5; }
    .modern-reset-select { width: 100%; min-width: 0; min-height: 46px; padding: 0 13px; border: 1px solid #dbe4ee; border-radius: 10px; outline: 0; color: #244564; background: #fff; font: inherit; font-size: .82rem; transition: border-color .18s ease, box-shadow .18s ease; }
    .modern-reset-select:focus { border-color: #3987cb; box-shadow: 0 0 0 3px rgba(57, 135, 203, .13); }
    @media (max-width: 720px) {
        .modern-reset-page .modern-password-layout { grid-template-columns: minmax(0, 1fr); }
    }
