.attendance-weekly-review { min-width: 0; }
.attendance-weekly-review .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; }
.weekly-review-scope { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 12px; }
.weekly-review-scope > span { color: var(--muted); font-size: 11px; }
.weekly-review-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 18px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.weekly-review-filters .field { min-width: 130px; margin: 0; }
.weekly-review-filters .weekly-review-query { flex: 1; min-width: 200px; }
.weekly-review-filters :is(input, select) { min-height: var(--ui-control-height,39px); width: 100%; }
.weekly-review-filter-actions { display: flex; gap: var(--ui-space-actions,8px); align-items: center; flex-wrap: wrap; min-height: var(--ui-control-height,39px); }
.weekly-review-card { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; min-width: 0; }
.weekly-review-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px; }
.weekly-review-heading h2 { font-size: 16px; }
.weekly-review-heading small { display: block; margin-top: 5px; font-size: 11px; }
.weekly-review-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.weekly-review-tools .button { min-height: var(--ui-control-height,39px); height: auto; }
.weekly-review-tools > label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; font-size: 12px; color: var(--muted); }
.weekly-review-tools select { min-height: var(--ui-control-height,39px); min-width: 138px; max-width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--navy); font: inherit; }
.weekly-review-download { background: #15896c; border-color: #15896c; color: white; }
.weekly-review-scroll { overflow: auto; max-width: 100%; isolation: isolate; }
.weekly-review-table { width: 100%; min-width: 840px; table-layout: auto; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.weekly-review-table :is(th, td) { padding: 10px 5px; width: auto; text-align: center; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; border-right: 1px solid #e6ebf2; border-bottom: 1px solid #e6ebf2; }
.weekly-review-table th { background: #f0f3f7; color: #263b55; font-size: 11.2px; font-weight: 700; word-break: keep-all; }
.weekly-review-table :is(th, td):last-child { border-right: 0; }
/* Keep the final member's grid visible above the shared last-row border reset. */
.weekly-review-table tbody tr:last-child td { border-right: 1px solid #e6ebf2; border-bottom: 1px solid #e6ebf2; }
.weekly-review-table tbody tr:last-child td:last-child { border-right: 0; }
.weekly-review-table small { display: block; margin-top: 3px; font-size: 10px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.weekly-review-table td > strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.weekly-review-table .weekly-review-name { width: 120px; max-width: 170px; }
.weekly-review-table .weekly-review-employee { width: 66px; max-width: 100px; }
.weekly-review-table .weekly-review-group { width: 80px; max-width: 120px; }
.weekly-review-table th:is(.weekly-review-name, .weekly-review-employee, .weekly-review-group) { background: #294665; color: #fff; border-right-color: #58718b; border-bottom-color: #b8c9dc; letter-spacing: .01em; }
.weekly-review-table th.weekly-review-name { background: #203b59; }
.weekly-review-table th.weekly-review-group { background: #35536f; }
.weekly-review-table td.weekly-review-name { background: #f0f5ff; color: #16395f; }
.weekly-review-table td.weekly-review-employee { background: #fbfcfe; color: #324862; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.weekly-review-table td.weekly-review-group { background: #edf3f8; color: #304b66; font-weight: 600; border-right-color: #b1c4da; }
.weekly-review-table tbody tr:nth-child(even) .weekly-review-name { background: #e8f0fc; }
.weekly-review-table tbody tr:nth-child(even) .weekly-review-employee { background: #f2f6fb; }
.weekly-review-table tbody tr:nth-child(even) .weekly-review-group { background: #e5edf5; }
.weekly-review-table tbody tr:hover :is(.weekly-review-name, .weekly-review-employee, .weekly-review-group) { background: #deebfc; }
.weekly-review-table .weekly-review-name small { color: #58708c; }
.weekly-review-table .weekly-review-week { min-width: 65px; width: 65px; }
.weekly-review-table .weekly-review-total { width: 70px; min-width: 64px; background: #f0f6ff; }
.weekly-review-table :is(.weekly-review-monthly, .weekly-review-annual) { width: 76px; min-width: 70px; }
.weekly-review-table .weekly-review-retirement { width: 85px; min-width: 76px; }
.weekly-review-member { border: 0; padding: 3px 1px; color: #16395f; background: transparent; width: 100%; font-size: 12px; font-weight: 700; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.weekly-review-member:hover { color: #155ea3; text-decoration: underline; text-underline-offset: 3px; }
.weekly-review-member:focus-visible { outline: 2px solid #2163f0; outline-offset: 2px; border-radius: 4px; }
.weekly-review-week-button { display: block; width: 100%; border: 0; background: transparent; padding: 4px 1px; color: #24415e; text-align: center; border-radius: 5px; line-height: 1.4; }
.weekly-review-week-button:hover { background: #ffffff80; }
.weekly-review-week-button > strong { font-size: 12px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.weekly-review-week-button > small { font-size: 9px; }
.weekly-review-table .week-color-0 { background: #fff0e5; }
.weekly-review-table .week-color-1 { background: #fff7d9; }
.weekly-review-table .week-color-2 { background: #eaf3e1; }
.weekly-review-table .week-color-3 { background: #e5f0f8; }
.weekly-review-table .week-color-4 { background: #f9edcf; }
.weekly-review-table .week-color-5 { background: #efeafa; }
.weekly-review-table .is-next-month { background-image: repeating-linear-gradient(135deg, #fff7 0, #fff7 4px, transparent 4px, transparent 8px); }
.weekly-review-week-button.is-review > small, .weekly-review-table .is-review > span { color: #9b6422; }
.weekly-review-week-button.is-eligible > small { color: #28674b; }
.weekly-review-table.has-days { width: max-content; min-width: 100%; }
.weekly-review-table :is(.weekly-review-day-heading, .weekly-review-day) { width: 55px; min-width: 55px; max-width: 70px; white-space: normal; }
.weekly-review-day-heading.is-sunday { color: #c84949; }
.weekly-review-day > span { display: block; min-height: 24px; font-size: 10px; }
.weekly-review-day > strong { display: block; background: #fff3e8; padding: 4px 0; margin: 4px -5px -10px; font-size: 11px; }
.weekly-review-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.weekly-review-pager > div { display: flex; gap: 8px; }
.weekly-review-notices { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.weekly-review-notices p + p { margin-top: 5px; }
.weekly-review-notices details { margin-top: 7px; }
.weekly-review-notices summary { cursor: pointer; color: #536b88; font-weight: 600; }
.weekly-review-notices details > p { margin-top: 6px; }
.weekly-review-empty { padding: 36px 12px !important; color: var(--muted); }
.weekly-review-feedback { padding: 28px 18px; font-size: 12px; color: var(--muted); }
.weekly-review-feedback.is-error { color: #bd4a4a; }
.weekly-review-detail { min-width: 0; font-size: 12px; line-height: 1.7; }
.weekly-review-detail > p { margin-bottom: 14px; }
.weekly-review-ground { padding: 16px 0; border-top: 1px solid var(--border); }
.weekly-review-ground > :is(h3, p, span) { margin-bottom: 9px; }
.weekly-review-detail dl { display: grid; grid-template-columns: minmax(95px, 1fr) minmax(0, 2fr); margin: 12px 0; gap: 6px 12px; }
.weekly-review-detail dt { color: var(--muted); }
.weekly-review-detail dd { margin: 0; overflow-wrap: anywhere; }
.weekly-review-status { display: inline-block; padding: 4px 7px; border-radius: 5px; background: #f1f3f6; color: #657991; font-size: 11px; }
.weekly-review-status.is-review { color: #9b6422; background: #fff3dc; }
.weekly-review-status.is-eligible { color: #28674b; background: #e9f7ee; }
.weekly-review-detail-scroll { max-width: 100%; overflow: auto; }
.weekly-review-detail-scroll table { min-width: 510px; width: 100%; font-size: 11px; }
.weekly-review-detail-scroll :is(th, td) { padding: 8px 5px; white-space: normal; overflow-wrap: anywhere; }
.weekly-review-detail-scroll small { display: block; margin-top: 3px; }
@media (max-width: 1450px) { .weekly-review-table { font-size: 10.5px; } .weekly-review-table th { font-size: 10.7px; } .weekly-review-table :is(th, td) { padding-left: 4px; padding-right: 4px; } }
@media (max-width: 700px) {
 .weekly-review-filters { padding: 14px; gap: 10px; }
 .weekly-review-filters .field { flex: 1; min-width: 130px; }
 .weekly-review-filters .weekly-review-query { flex-basis: 100%; }
 .weekly-review-heading { padding: 14px; }
 .weekly-review-tools { justify-content: flex-start; }
 .weekly-review-tools .button { font-size: 11px; padding: 8px 10px; }
 .weekly-review-table { min-width: 900px; }
 .weekly-review-pager { padding: 14px; }
}
