/* Accountant dashboard layout */
body:has(.admin-content[data-role-dashboard="Accountant"]) .admin-topbar{padding:14px 28px;min-height:78px}
body:has(.admin-content[data-role-dashboard="Accountant"]) .admin-topbar .eyebrow{margin-bottom:2px}
body:has(.admin-content[data-role-dashboard="Accountant"]) .admin-topbar h1{font-size:24px;line-height:1.15;margin:0 0 3px}
body:has(.admin-content[data-role-dashboard="Accountant"]) .admin-topbar p{margin:0;font-size:12px}
body:has(.admin-content[data-role-dashboard="Accountant"]) .admin-top-actions .secondary-btn{height:36px;padding:0 14px}

.accountant-dashboard{display:flex;flex-direction:column;gap:14px}
.accountant-dashboard-head{display:flex;justify-content:space-between;gap:18px;align-items:center}
.accountant-dashboard-head h2{margin:2px 0 2px;font-size:21px;line-height:1.15}
.accountant-dashboard-head p{margin:0;color:#64748b;font-size:12px;line-height:1.35}
.accountant-dashboard-filters{display:flex;gap:10px}
.accountant-dashboard-filters label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;color:#64748b}
.accountant-dashboard-filters input,.accountant-dashboard-filters select{height:36px;border:1px solid #d7dee8;border-radius:9px;padding:0 10px;background:#fff;font:inherit;color:#13233a}

.accountant-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.accountant-kpi{background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:12px 15px;box-shadow:0 2px 8px rgba(20,35,58,.035)}
.accountant-kpi span{display:block;font-weight:700;font-size:12px;color:#52627a}
.accountant-kpi b{display:block;font-size:27px;line-height:1;margin-top:5px;color:#152943}
.accountant-kpi small{display:block;margin-top:5px;color:#7b8798;line-height:1.25;font-size:11px}

/* Clear breathing room between the KPI cards and the records/attention panels. */
.accountant-work-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(300px,.9fr);gap:14px;align-items:start;margin-top:10px}
.accountant-panel{background:#fff;border:1px solid #e1e7ef;border-radius:14px;overflow:hidden;box-shadow:0 2px 9px rgba(20,35,58,.035)}
.accountant-panel-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid #edf1f5}
.accountant-panel-head span:first-child{font-size:10px;font-weight:800;letter-spacing:.08em;color:#8190a5}
.accountant-panel-head h3{margin:2px 0 0;font-size:17px;line-height:1.15}
.accountant-count-pill{background:#eef3f8;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800}
.accountant-warning-pill{background:#fff1e8}

.accountant-attention-note{padding:9px 16px;background:#fbfcfe;border-bottom:1px solid #edf1f5;color:#68768b;font-size:11px;line-height:1.35}
.accountant-table-wrap{max-height:490px;overflow-y:auto;overflow-x:hidden}
.accountant-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
.accountant-table th,.accountant-table td{padding:10px 13px;text-align:left;border-bottom:1px solid #edf1f5;font-size:12px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.accountant-table th{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#8190a5;background:#f8fafc;white-space:nowrap}
.accountant-table td small{display:block;margin-top:2px;color:#7b8798;font-size:10px}
.accountant-table th:nth-child(1),.accountant-table td:nth-child(1){width:17%}
.accountant-table th:nth-child(2),.accountant-table td:nth-child(2){width:23%}
.accountant-table th:nth-child(3),.accountant-table td:nth-child(3){width:22%}
.accountant-table th:nth-child(4),.accountant-table td:nth-child(4){width:11%}
.accountant-table th:nth-child(5),.accountant-table td:nth-child(5){width:14%}
.accountant-table th:nth-child(6),.accountant-table td:nth-child(6){width:13%}

.accountant-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:800;white-space:nowrap}
.accountant-status.is-ready{background:#e9f7ef;color:#17663d}
.accountant-status.is-review{background:#fff1e8;color:#9a4d1d}
.accountant-review-list{max-height:490px;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column}
.accountant-review-row{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #edf1f5}
.accountant-review-row:last-child{border-bottom:0}
.accountant-review-row b{display:block;font-size:12px}
.accountant-review-row span{display:block;color:#6b778b;font-size:11px;margin-top:3px;line-height:1.3}
.accountant-attention-badge{font-size:9px!important;white-space:nowrap;border-radius:999px;padding:4px 7px;align-self:flex-start}
.accountant-attention-badge.past-due{background:#fff0f0;color:#a52d2d}
.accountant-attention-badge.attendance{background:#fff4df;color:#98621b}
.accountant-attention-badge.rescheduled{background:#eef3ff;color:#355aa8}
.accountant-attention-badge.exception{background:#f3eefc;color:#6940a8}
.accountant-success{padding:16px;color:#17663d;background:#f3fbf6;font-weight:600;font-size:12px}
.accountant-empty,.accountant-loading,.accountant-error{padding:18px;color:#6b778b;font-size:12px}
.accountant-error{color:#9a2f2f;background:#fff5f5}
.accountant-dashboard-body{min-height:80px}

@media(max-width:1000px){
  body:has(.admin-content[data-role-dashboard="Accountant"]) .admin-topbar{padding:12px 20px}
  .accountant-work-grid{grid-template-columns:1fr;margin-top:10px}
  .accountant-dashboard-head{align-items:flex-start;flex-direction:column}
  .accountant-dashboard-filters{width:100%}
  .accountant-dashboard-filters label{flex:1}
}
@media(max-width:900px){.accountant-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.accountant-kpi-grid{grid-template-columns:1fr}.accountant-dashboard-filters{flex-direction:column}.accountant-table th,.accountant-table td{padding:9px 10px}}
