:root {
  --admin-side: 254px; --admin-bg: #f3f6fa; --admin-card: #fff;
  --admin-ink: #182638; --admin-muted: #758196; --admin-line: #e5eaf0;
  --admin-brand: #128460; --admin-brand-hover: #0c6c4d;
  --brand: #128460; --brand2: #1fa889; --bg: #f3f6fa; --card: #fff;
  --text: #182638; --muted: #758196; --line: #e5eaf0;
}
* { box-sizing: border-box; }
.admin-shell { margin: 0; min-height: 100vh; background: var(--admin-bg); color: var(--admin-ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
.admin-shell a { text-underline-offset: 3px; }
.admin-shell [hidden] { display: none !important; }
.admin-skip { position: fixed; top: -60px; left: 16px; z-index: 1200; padding: 12px 18px; background: #fff; color: var(--admin-brand); border-radius: 8px; }
.admin-skip:focus { top: 12px; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1040; width: var(--admin-side); background: #122238; color: #c0cedd; display: flex; flex-direction: column; border-right: 1px solid #1c3048; transition: width .2s ease, transform .2s ease; }
.admin-brand { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 20px 24px; color: #fff; text-decoration: none; }
.admin-brand:hover { color: #fff; }
.admin-brand-mark { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; background: white; border-radius: 13px; box-shadow: 0 5px 18px #0002; }
.admin-brand-mark img { object-fit: contain; }
.admin-brand-copy strong { display: block; font-size: 27px; line-height: 1.1; letter-spacing: -.8px; font-weight: 800; }
.admin-brand-dot { color: #4fd4a4; }
.admin-brand-copy small { display: block; margin-top: 4px; color: #91a6bd; font-size: 11px; font-weight: 500; letter-spacing: .9px; }
.admin-nav-search { display: flex; align-items: center; gap: 9px; margin: 0 17px 20px; padding: 10px 12px; background: #ffffff09; border: 1px solid #ffffff0d; border-radius: 9px; color: #8196ae; }
.admin-nav-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #e1e9f1; background: none; font-size: 12px; }
.admin-nav-search:focus-within { border-color: #4fd4a4; }
.admin-nav-search input::placeholder { color: #8ba0b7; }
.admin-nav-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 13px 16px; scrollbar-width: thin; scrollbar-color: #42566d transparent; }
.admin-nav-group { margin-bottom: 20px; }
.admin-nav-heading { color: #7f94ad; text-transform: uppercase; font-size: 9px; font-weight: 750; letter-spacing: 1.4px; margin: 0; padding: 0 13px 9px; line-height: 1.6; }
.admin-nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 10px 13px; margin: 3px 0; color: #b9c8d9; text-decoration: none; font-size: 12px; font-weight: 550; border-radius: 9px; white-space: nowrap; }
.admin-nav-link > i:first-child { width: 18px; text-align: center; font-size: 14px; color: #8ca4bc; flex-shrink: 0; }
.admin-nav-link:hover { color: white; background: #ffffff09; }
.admin-nav-link.is-active { color: #c7f5df; background: #1a433f; box-shadow: inset 3px 0 #45c794; }
.admin-nav-link.is-active > i:first-child { color: #62d7aa; }
.admin-active-arrow { margin-left: auto; color: #75bda5; font-size: 10px; }
.admin-nav-link:focus-visible, .admin-sidebar-footer a:focus-visible { outline: 2px solid #66dbb3; outline-offset: 2px; }
.admin-nav-no-results { padding: 10px 13px; font-size: 12px; color: #a7bbcd; }
.admin-sidebar-footer { flex-shrink: 0; padding: 15px 23px 20px; border-top: 1px solid #ffffff0d; background: #112035; }
.admin-sidebar-footer a { display: flex; align-items: center; gap: 11px; color: #d0dce7; text-decoration: none; font-weight: 550; font-size: 12px; }
.admin-sidebar-signature { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 10px; color: #8199af; }
.admin-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #4bd09a; flex-shrink: 0; }
.admin-workspace { margin-left: var(--admin-side); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 1020; height: 89px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 32px; background: #ffffffed; backdrop-filter: blur(12px); border-bottom: 1px solid var(--admin-line); }
.admin-topbar-leading, .admin-topbar-tools { display: flex; align-items: center; gap: 18px; min-width: 0; }
.admin-icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 1px solid var(--admin-line); border-radius: 9px; color: #6a7789; background: #fff; text-decoration: none; }
.admin-icon-btn:hover { background: #edf6f2; color: var(--admin-brand); border-color: #cde3d9; }
.admin-icon-btn:focus-visible { outline: 3px solid #12846044; outline-offset: 2px; }
.admin-page-heading { min-width: 0; }
.admin-page-heading > span { display: block; color: #8a96a7; letter-spacing: 1.3px; font-size: 8px; font-weight: 700; margin-bottom: 5px; }
.admin-page-heading h1 { margin: 0; color: #1b2a3c; font-size: 21px; line-height: 1.2; font-weight: 750; letter-spacing: -.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-date { color: #7d8898; font-size: 11px; display: flex; align-items: center; gap: 8px; padding-right: 18px; border-right: 1px solid var(--admin-line); }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-user-avatar { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 35px; background: #e9f3ee; color: #137552; font-size: 13px; font-weight: 750; }
.admin-user-details strong { display: block; font-size: 11px; font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-details small { display: block; font-size: 9px; margin-top: 2px; color: #8a94a4; }
.admin-logout { color: #cb5a62; border-color: transparent; }
.admin-main { flex: 1; min-width: 0; outline: none; }
.admin-content { padding: 29px 32px 40px; }
.admin-content > .container { width: 100%; max-width: 1560px; padding-left: 0; padding-right: 0; }
.admin-content > .container > .container { padding-left: 0; padding-right: 0; }
.admin-shell .page-head { margin: 0 0 22px; }
.admin-shell h4, .admin-shell .h4 { font-size: 19px; font-weight: 750; letter-spacing: -.3px; }
.admin-shell .card { border: 1px solid #e5eaf0; border-radius: 13px; background: white; box-shadow: 0 4px 15px #15283f04; }
.admin-shell .card .card-body { padding: 20px; }
.admin-shell .card.p-3 { padding: 20px !important; }
.admin-shell .card-header { background: #fbfcfd; border-bottom-color: var(--admin-line); }
.admin-shell .table { margin-bottom: 0; color: #334155; }
.admin-shell .table thead th { color: #7b8799; background: #f7f9fc; font-size: 9px; text-transform: uppercase; font-weight: 750; letter-spacing: 1px; padding: 14px 12px; border-bottom: 1px solid #e9edf2; white-space: nowrap; }
.admin-shell .table tbody td { padding: 14px 12px; vertical-align: middle; border-color: #edf1f5; font-size: 12px; }
.admin-shell .table-hover tbody tr:hover { --bs-table-bg-state: #f6fbf8; }
.admin-shell .table-responsive { scrollbar-width: thin; scrollbar-color: #c6d3df transparent; }
.admin-shell .form-control, .admin-shell .form-select { font-size: 12px; border-color: #dfe5ed; border-radius: 8px; }
.admin-shell .form-control:not(textarea), .admin-shell .form-select { min-height: 40px; }
.admin-shell .form-control-sm, .admin-shell .form-select-sm { min-height: 35px !important; }
.admin-shell .form-control:focus, .admin-shell .form-select:focus { border-color: #76b79c; box-shadow: 0 0 0 .2rem #12846016; }
.admin-shell .input-group-text { background: #f7f9fc; border-color: #dfe5ed; color: #8391a3; border-radius: 8px; }
.admin-shell .form-label { color: #536175; font-size: 12px; font-weight: 600; }
.admin-shell .form-check-input:checked { background-color: var(--admin-brand); border-color: var(--admin-brand); }
.admin-shell .btn { border-radius: 8px; font-size: 12px; font-weight: 600; padding: 9px 14px; }
.admin-shell .btn-sm { padding: 7px 11px; font-size: 11px; }
.admin-shell .btn-primary { --bs-btn-bg: #128460; --bs-btn-border-color: #128460; --bs-btn-hover-bg: #0c6c4d; --bs-btn-hover-border-color: #0c6c4d; --bs-btn-active-bg: #09593f; --bs-btn-active-border-color: #09593f; --bs-btn-disabled-bg: #128460; --bs-btn-disabled-border-color: #128460; }
.admin-shell .text-primary { color: var(--admin-brand) !important; }
.admin-shell .btn-outline-primary { --bs-btn-color: #128460; --bs-btn-border-color: #b6d9ca; --bs-btn-hover-bg: #128460; --bs-btn-hover-border-color: #128460; --bs-btn-active-bg: #128460; --bs-btn-active-border-color: #128460; }
.admin-shell .btn-outline-secondary { --bs-btn-color: #69788c; --bs-btn-border-color: #dfe5ed; --bs-btn-hover-bg: #edf1f5; --bs-btn-hover-border-color: #d6dde6; --bs-btn-hover-color: #334155; }
.admin-shell .badge { padding: 5px 8px; font-weight: 650; border-radius: 6px; font-size: 10px; }
.admin-shell .badge-soft { color: var(--admin-brand); background: #eaf5ee; border: 1px solid #d6eadd; }
.admin-shell .pagination { gap: 4px; }
.admin-shell .pagination .page-link { border-radius: 7px; border-color: var(--admin-line); color: #758195; font-size: 11px; margin: 0; }
.admin-shell .pagination .page-item.active .page-link { background: var(--admin-brand); border-color: var(--admin-brand); color: white; }
.admin-shell .nest-item { background: white; border: 1px solid var(--admin-line); border-radius: 9px; padding: 12px; margin-bottom: 7px; }
.admin-shell .nest-children { margin-left: 22px; }
.admin-shell .drag-handle { cursor: grab; }
.admin-shell .modal { --bs-modal-margin: 1rem; }
.admin-shell .modal-dialog { max-width: min(1200px, 96vw); }
.admin-shell .modal-content { border: 1px solid var(--admin-line); border-radius: 15px; box-shadow: 0 24px 80px #12223830; }
.admin-shell .modal-header, .admin-shell .modal-footer { padding: 17px 22px; border-color: var(--admin-line); flex-shrink: 0; }
.admin-shell .modal-title { font-size: 16px; font-weight: 700; }
.admin-shell .modal-body { padding: 22px; min-height: 0; }
.admin-shell .modal-dialog-scrollable .modal-content { max-height: calc(100dvh - 2rem); }
.admin-shell .modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; overflow: hidden; }
.admin-shell .modal-dialog-scrollable .modal-body { overflow-y: auto; overscroll-behavior: contain; }
.admin-shell .offcanvas { position: fixed; }
.admin-shell .offcanvas-end { width: min(88vw, 360px); }
.admin-footer { padding: 16px 32px; border-top: 1px solid var(--admin-line); color: #92a0b0; background: #fff8; font-size: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; }
.admin-footer strong { font-weight: 650; color: #6b7d8f; }
.admin-nav-close { display: none; }
.admin-nav-backdrop { position: fixed; inset: 0; z-index: 1035; border: 0; border-radius: 0; background: #10203580; backdrop-filter: blur(2px); }
@media (min-width: 1100px) {
  .admin-is-compact { --admin-side: 84px; }
  .admin-is-compact .admin-brand { padding: 23px 19px; }
  .admin-is-compact .admin-brand-copy, .admin-is-compact .admin-nav-search, .admin-is-compact .admin-nav-heading, .admin-is-compact .admin-nav-link > span, .admin-is-compact .admin-active-arrow, .admin-is-compact .admin-sidebar-footer span { display: none; }
  .admin-is-compact .admin-nav-link { justify-content: center; gap: 0; padding: 12px; }
  .admin-is-compact .admin-nav-list { padding-top: 10px; }
  .admin-is-compact .admin-nav-group { margin-bottom: 17px; }
  .admin-is-compact .admin-sidebar-footer { padding: 20px 30px; }
  .admin-is-compact .admin-sidebar-signature { display: none; }
}
@media (max-width: 1099.98px) {
  .admin-workspace { margin-left: 0; }
  .admin-sidebar { width: min(290px, 86vw); transform: translateX(-100%); z-index: 1040; }
  .admin-nav-open .admin-sidebar { transform: translateX(0); }
  .admin-nav-open { overflow: hidden; }
  .admin-nav-close { display: grid; place-items: center; position: absolute; top: 29px; right: 14px; width: 30px; height: 30px; background: #ffffff0d; color: #c6d7e5; border: 1px solid #ffffff12; border-radius: 8px; }
  .admin-topbar { height: 80px; padding: 16px 23px; }
  .admin-content { padding: 24px; }
}
@media (max-width: 639.98px) {
  .admin-topbar { height: 76px; padding: 14px 16px; gap: 10px; }
  .admin-topbar-leading, .admin-topbar-tools { gap: 10px; }
  .admin-page-heading h1 { font-size: 17px; }
  .admin-page-heading > span { font-size: 6px; letter-spacing: 1px; }
  .admin-date, .admin-user-details { display: none; }
  .admin-user-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  .admin-topbar-tools .admin-icon-btn { width: 29px; flex-basis: 29px; }
  .admin-content { padding: 20px 14px 28px; }
  .admin-shell .card.p-3 { padding: 14px !important; }
  .admin-shell .modal-dialog { margin: 0; max-width: 100%; }
  .admin-shell .modal-content { border-radius: 0; }
  .admin-shell .modal-dialog-scrollable { height: 100dvh; }
  .admin-shell .modal-dialog-scrollable .modal-content { max-height: 100dvh; }
  .admin-shell .modal-body { padding: 17px; }
  .admin-footer { padding: 15px 17px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar, .admin-workspace { transition: none; }
}
.admin-auth { min-height: 100dvh; margin: 0; background: #f0f5f3; color: #182638; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: grid; place-items: center; padding: 28px 16px; background-image: radial-gradient(ellipse at 50% 0, #dcebe3, transparent 70%); }
.admin-auth-wrap { width: min(100%, 410px); }
.admin-auth-brand { display: flex; align-items: center; justify-content: center; gap: 11px; color: #142b24; text-decoration: none; margin-bottom: 27px; font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.admin-auth-brand img { width: 42px; height: 42px; object-fit: contain; }
.admin-auth-card { background: #fff; padding: 35px; border-radius: 20px; border: 1px solid #e0e8e3; box-shadow: 0 20px 65px #18392a0d; }
.admin-auth-card h1 { font-size: 24px; font-weight: 750; letter-spacing: -.5px; margin: 0 0 8px; }
.admin-auth-card > p { font-size: 12px; color: #829187; line-height: 1.6; margin-bottom: 27px; }
.admin-auth-card .form-label { font-size: 12px; font-weight: 600; color: #526558; }
.admin-auth-card .form-control { min-height: 46px; border-color: #dce5df; border-radius: 9px; font-size: 14px; }
.admin-auth-card .form-control:focus { box-shadow: 0 0 0 3px #1284601b; border-color: #68ad90; }
.admin-auth-card .btn-primary { background: #128460; border-color: #128460; border-radius: 9px; min-height: 46px; font-size: 13px; font-weight: 650; margin-top: 8px; }
.admin-auth-card .btn-primary:hover { background: #0c6c4d; border-color: #0c6c4d; }
.admin-auth-back { display: block; color: #6c8375; text-decoration: none; text-align: center; margin-top: 24px; font-size: 12px; }
.admin-auth-footer { font-size: 10px; color: #9aa99f; text-align: center; margin-top: 24px; }

/* Table controls share the full content width, including applicant and nested card headers. */
.admin-shell .admin-table-tools { display:flex; width:100%; max-width:100%; margin-left:auto; justify-content:flex-end; align-items:center; gap:.5rem; flex-wrap:wrap; }
.admin-shell .admin-table-tools > .input-group { flex:0 1 520px; width:520px; max-width:100%!important; min-width:0!important; }
.admin-shell .admin-table-tools > .form-select { flex:0 0 auto; width:auto; min-width:72px; }
.admin-shell .admin-row-actions { display:inline-flex; align-items:center; justify-content:flex-end; gap:4px; white-space:nowrap; }
.admin-shell .admin-order-button:disabled { opacity:.4; }
@media(max-width:639.98px){
 .admin-shell .admin-table-tools { flex-wrap:nowrap!important; }
 .admin-shell .admin-table-tools > .input-group { width:auto!important; flex:1 1 0; }
 .admin-shell .admin-table-tools > .form-select { max-width:120px; }
 .admin-shell .admin-table-tools-has-filter { flex-wrap:wrap!important; }
 .admin-shell .admin-table-tools-has-filter > #status { flex:0 0 100%; width:100%; max-width:100%; }
}
