/* Attendance and its Shifts child page only: keep the application shell and every other page unchanged. */
.attendance-card .table-wrap{overflow-x:hidden}
.attendance-card .table-scroll-hint{display:none}
.attendance-card .data-table{min-width:0;table-layout:fixed}
.attendance-card .data-table th,.attendance-card .data-table td{vertical-align:middle;white-space:normal}
.attendance-card .data-table th:nth-child(1),.attendance-card .data-table td:nth-child(1){width:31%}
.attendance-card .data-table th:nth-child(2),.attendance-card .data-table td:nth-child(2){width:10%;white-space:nowrap}
.attendance-card .data-table th:nth-child(3),.attendance-card .data-table td:nth-child(3),.attendance-card .data-table th:nth-child(5),.attendance-card .data-table td:nth-child(5){width:10%;white-space:nowrap}
.attendance-card .data-table th:nth-child(4),.attendance-card .data-table td:nth-child(4){width:18%}
.attendance-card .data-table th:nth-child(6),.attendance-card .data-table td:nth-child(6){width:15%}
.attendance-card .data-table th:nth-child(7),.attendance-card .data-table td:nth-child(7){width:6%;white-space:nowrap}
.attendance-break-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
.attendance-expected-shift{margin-top:4px;color:#087b83;font-weight:700}.theme-dark .attendance-expected-shift{color:#84e2e7}
.attendance-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.attendance-workspace .pagination{margin:0;padding:16px 22px 20px;border-top:1px solid var(--line);background:var(--card)}

/* Attendance-only dashboard composition, based on the approved reference. */
.attendance-hero{min-height:0;margin:0 0 14px;padding:7px 2px 15px;border:0;border-radius:0;overflow:visible;background:transparent;box-shadow:none}
.attendance-hero::after{display:none}
.attendance-hero h1{color:#153966;font-size:30px;letter-spacing:-.04em}
.attendance-hero p{max-width:720px;color:#59738f}
.attendance-kicker{margin-bottom:5px;color:#078d9a}
.attendance-date-badge{min-width:184px;border-color:#dbe8ef;border-radius:12px;background:var(--card);box-shadow:0 8px 22px rgba(17,66,102,.06)}
.attendance-tabs{display:flex;align-items:center;gap:25px;min-height:44px;margin:0 0 13px;border-bottom:1px solid #dcebf0}
.attendance-tab{position:relative;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0;border:0;background:transparent;color:#0e7685;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.attendance-tab.active::after{position:absolute;right:0;bottom:-1px;left:0;height:3px;border-radius:3px 3px 0 0;background:#09a4ad;content:""}
.attendance-tab-source{display:inline-flex;align-items:center;gap:7px;margin-left:auto;color:#70829a;font-size:12px;font-weight:650}
.attendance-tab-source i{width:7px;height:7px;border-radius:50%;background:#18ad81;box-shadow:0 0 0 4px rgba(24,173,129,.12)}
.attendance-summary-grid{gap:11px;margin-bottom:18px}
.attendance-metric{position:relative;grid-template-columns:42px minmax(0,1fr);min-height:98px;padding:15px 14px;overflow:hidden;border-color:#e0ebf0;border-radius:11px;box-shadow:0 5px 15px rgba(20,68,104,.045)}
.attendance-metric::before{position:absolute;top:0;right:0;left:0;height:3px;background:#3f72dc;content:""}
.attendance-metric.green::before{background:#1aab83}.attendance-metric.violet::before{background:#8b68e6}.attendance-metric.amber::before{background:#d99d23}
.attendance-metric-icon{width:40px;height:40px;border-radius:11px;font-size:19px}
.attendance-metric-copy span{font-size:11px}.attendance-metric-copy strong{font-size:25px}.attendance-metric-copy small{font-size:10px}
.attendance-workspace{border-color:#dbe9ef;border-radius:13px;box-shadow:0 8px 24px rgba(25,71,103,.055)}
.attendance-workspace-heading{padding:17px 20px 15px;background:linear-gradient(90deg,#fbfeff,#f4fbfc)}
.attendance-register-title{display:flex;align-items:center;gap:11px}
.attendance-register-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;color:#0b98a3;background:#e5f9f7;font-size:17px;font-weight:850}
.attendance-workspace-heading h2{font-size:16px}.attendance-workspace-heading p{margin-top:3px}
.attendance-live-dot{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;color:#0f9d77;background:#e3f9f0;font-size:11px}
.attendance-filters{padding:15px 20px 3px;background:#fff}
.attendance-workspace .table-wrap{margin:0 12px 12px;border-color:#e1ebf0;border-radius:9px}
.attendance-workspace .data-table th{background:#f7fafb;color:#476482;font-size:10.5px}.attendance-workspace .data-table td{font-size:12px}
.theme-dark .attendance-hero{background:transparent}.theme-dark .attendance-hero h1{color:#eef5ff}.theme-dark .attendance-tabs{border-color:#40546c}.theme-dark .attendance-tab{color:#82d6dd}.theme-dark .attendance-tab-source{color:#b8c8dc}.theme-dark .attendance-date-badge,.theme-dark .attendance-workspace-heading,.theme-dark .attendance-filters{background:#26364b;border-color:#40546c}.theme-dark .attendance-workspace{border-color:#40546c}.theme-dark .attendance-register-icon{background:#1d4b54;color:#82e5e9}.theme-dark .attendance-live-dot{background:#1d5243;color:#8bf0c6}

@media (max-width:1400px){.attendance-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){
  .attendance-card .table-wrap{overflow-x:auto}
  .attendance-card .data-table{min-width:830px}
  .attendance-card .data-table th:nth-child(1),.attendance-card .data-table td:nth-child(1){width:280px}
  .attendance-card .data-table th:nth-child(4),.attendance-card .data-table td:nth-child(4){width:170px}
  .attendance-card .data-table th:nth-child(6),.attendance-card .data-table td:nth-child(6){width:180px}
  .attendance-workspace .pagination{padding-inline:14px}
}
@media (max-width:650px){.attendance-tabs{gap:14px}.attendance-tab-source{font-size:11px}.attendance-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-metric{grid-template-columns:34px minmax(0,1fr);min-height:86px;padding:12px}.attendance-metric-icon{width:33px;height:33px;font-size:15px}.attendance-metric-copy strong{font-size:22px}.attendance-workspace-heading,.attendance-filters{padding-inline:14px}.attendance-register-icon{width:30px;height:30px}.attendance-workspace .table-wrap{margin-inline:8px}}

/* Shifts lives inside Attendance and shares the same dashboard language. */
.shifts-page .attendance-hero{margin-bottom:0}.shifts-page .attendance-tabs{margin-bottom:18px}.shift-tabs{display:flex;gap:6px;margin:0 0 18px;padding:5px;border:1px solid #dce8ee;border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(20,68,104,.04)}.shift-tabs button{border:0;border-radius:8px;background:transparent;color:#61768d;font:inherit;font-size:13px;font-weight:750;padding:10px 14px;cursor:pointer}.shift-tabs button.active{color:#0d6f7b;background:#e4f8f6;box-shadow:inset 0 0 0 1px #bfece8}.shift-fixed-layout{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(0,1.35fr);gap:18px;align-items:start}.shift-form,.shift-fixed-list,.shift-assignment,.shift-upload-card,.shift-panel{border-color:#dce8ee;border-radius:13px;box-shadow:0 8px 24px rgba(25,71,103,.055)}.shift-form h2,.shift-fixed-list h2,.shift-assignment h2,.shift-upload-card h2{margin:0 0 15px;color:#153966;font-size:17px}.shift-day-picker{display:flex;flex-wrap:wrap;gap:7px}.shift-day-picker button{min-width:44px;border:1px solid #d9e4ea;border-radius:7px;background:#fff;color:#61768d;font:inherit;font-size:12px;font-weight:750;padding:8px 10px;cursor:pointer}.shift-day-picker button.selected{border-color:#0aa5a8;background:#e1f8f5;color:#08747a}.shift-assignment{margin-top:18px}.shift-assignment-filters,.shift-list-tools{display:grid;grid-template-columns:minmax(180px,1fr) repeat(2,minmax(130px,.55fr)) auto;gap:10px;align-items:end;margin-bottom:14px}.shift-employee-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;max-height:360px;overflow:auto;padding:4px}.shift-employee-picker label{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #dfe9ee;border-radius:9px;background:#fbfdfe;cursor:pointer}.shift-employee-picker input{margin-top:3px}.shift-employee-picker strong,.shift-employee-picker small{display:block}.shift-employee-picker strong{font-size:12px}.shift-employee-picker small{margin-top:3px;color:#6d8095;font-size:10px}.shift-upload-card p{margin:0 0 13px;color:#64788e;font-size:13px;line-height:1.5}.shift-panel{margin-top:18px;padding:18px;border:1px solid #dce8ee;background:var(--card)}.shift-panel .table-wrap{margin-top:9px}.rtl .attendance-tab-source{margin-right:auto;margin-left:0}.theme-dark .shift-tabs{border-color:#40546c;background:#26364b}.theme-dark .shift-tabs button{color:#b8c8dc}.theme-dark .shift-tabs button.active{color:#90edf0;background:#1e525a;box-shadow:inset 0 0 0 1px #347783}.theme-dark .shift-form h2,.theme-dark .shift-fixed-list h2,.theme-dark .shift-assignment h2,.theme-dark .shift-upload-card h2{color:#eef5ff}.theme-dark .shift-day-picker button{border-color:#40546c;background:#26364b;color:#bfd0e3}.theme-dark .shift-day-picker button.selected{border-color:#368791;background:#1e525a;color:#91edf0}.theme-dark .shift-employee-picker label{border-color:#40546c;background:#26364b}.theme-dark .shift-panel,.theme-dark .shift-form,.theme-dark .shift-fixed-list,.theme-dark .shift-assignment,.theme-dark .shift-upload-card{border-color:#40546c}@media (max-width:1100px){.shift-fixed-layout{grid-template-columns:1fr}.shift-employee-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:700px){.shift-tabs{overflow:auto}.shift-tabs button{white-space:nowrap}.shift-assignment-filters,.shift-list-tools{grid-template-columns:1fr 1fr}.shift-list-tools>.btn{grid-column:1/-1}.shift-employee-picker{grid-template-columns:1fr}}

/* Navy attendance system: same typography and controls used by Separation. */
.attendance-hero h1,.attendance-workspace-heading h2,.attendance-mini-panel h3,.attendance-cutoff-card h2,.shift-form h2,.shift-fixed-list h2,.shift-assignment h2,.shift-upload-card h2{color:#12345f;font-family:inherit}
.attendance-kicker{color:#244f82}.attendance-date-badge strong{color:#12345f}.attendance-tabs{gap:24px;border-bottom-color:#d9e1ec;overflow-x:auto}.attendance-tab{flex:0 0 auto;color:#536985}.attendance-tab:hover{color:#12345f}.attendance-tab.active{color:#12345f}.attendance-tab.active::after{background:#163f73}
.attendance-summary-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.attendance-metric{min-height:104px;border-color:#dfe6f0;box-shadow:0 7px 18px rgba(20,49,90,.07)}.attendance-metric::before,.attendance-metric.green::before,.attendance-metric.red::before,.attendance-metric.violet::before,.attendance-metric.amber::before,.attendance-metric.navy::before{background:#163f73}.attendance-metric-icon,.attendance-metric.green .attendance-metric-icon,.attendance-metric.red .attendance-metric-icon,.attendance-metric.violet .attendance-metric-icon,.attendance-metric.amber .attendance-metric-icon,.attendance-metric.navy .attendance-metric-icon{color:#163f73;background:#eaf0f8}.attendance-metric-copy strong{color:#12345f}
.attendance-workspace{border:1px solid #dce4ef}.attendance-workspace-heading{background:#f6f8fb;border-color:#dfe6ef}.attendance-register-icon{color:#163f73;background:#e5edf8}.attendance-workspace .attendance-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) repeat(4,minmax(145px,.75fr));align-items:end;gap:10px;padding:14px 16px;margin:0;background:#fff}.attendance-workspace .attendance-filters .field{min-width:0}.attendance-month-input{width:170px}
.theme-dark .attendance-workspace .attendance-filters{background:#26364b;border-color:#40546c}
.attendance-card .table-wrap{overflow-x:auto;margin:0 12px 12px}.attendance-card .data-table{width:100%;min-width:1240px;table-layout:fixed}.attendance-card .data-table th,.attendance-card .data-table td{padding:9px 7px;font-size:10.5px;line-height:1.35;white-space:normal}.attendance-card .data-table th{height:42px;color:#425c7a;background:#f5f8fb}.attendance-card .data-table th:nth-child(1),.attendance-card .data-table td:nth-child(1){width:160px}.attendance-card .data-table th:nth-child(2),.attendance-card .data-table td:nth-child(2){width:72px}.attendance-card .data-table th:nth-child(3),.attendance-card .data-table td:nth-child(3){width:92px}.attendance-card .data-table th:nth-child(4),.attendance-card .data-table td:nth-child(4){width:72px}.attendance-card .data-table th:nth-child(n+5):nth-child(-n+8),.attendance-card .data-table td:nth-child(n+5):nth-child(-n+8){width:88px}.attendance-card .data-table th:nth-child(n+9):nth-child(-n+12),.attendance-card .data-table td:nth-child(n+9):nth-child(-n+12){width:64px}.attendance-card .data-table th:nth-child(13),.attendance-card .data-table td:nth-child(13){width:126px}.attendance-card .data-table th:nth-child(14),.attendance-card .data-table td:nth-child(14){width:64px}
.attendance-employee strong,.attendance-employee small{display:block}.attendance-employee strong{color:#142f55;font-size:11.5px}.attendance-employee small{margin-top:3px;color:#718198}.attendance-time-pair{display:grid;gap:3px}.attendance-time-pair strong{color:#192d49;font-size:11px;font-weight:700}.attendance-time-pair small{color:#607794;font-size:9px;line-height:1.25}.attendance-adjusted{display:block;margin-top:4px;color:#385d8f}.attendance-status{display:inline-block;max-width:118px;white-space:normal;text-align:center}
.attendance-lower-grid{display:grid;grid-template-columns:1.1fr 1.1fr .9fr .9fr;gap:12px;margin-top:14px}.attendance-mini-panel{min-height:150px;padding:17px}.attendance-mini-panel h3{margin:0;font-size:14px}.attendance-mini-panel>strong{display:block;margin-top:14px;color:#12345f;font-size:28px}.attendance-mini-panel p{min-height:34px;margin:8px 0;color:#697b91;font-size:11px}.attendance-mini-panel>button{padding:0;border:0;background:transparent;color:#1c5799;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.attendance-monthly-panel{display:grid;align-content:start;gap:10px}.attendance-monthly-panel .btn{width:100%}.attendance-secondary-view{padding:0;overflow:hidden}.attendance-secondary-view .table-wrap{margin:12px}.attendance-cutoff-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.attendance-cutoff-card>div{display:flex;align-items:center;gap:12px}.attendance-cutoff-card h2{margin:0;font-size:17px}.attendance-cutoff-card p{margin:5px 0 0;color:#6d7e94;font-size:12px}
.shift-tabs{border-color:#d7e0eb}.shift-tabs button{color:#536985}.shift-tabs button.active{color:#fff;background:#163f73;box-shadow:none}.shift-day-picker button.selected{border-color:#315b8d;background:#e7eef8;color:#123f73}.shift-form .btn-row{margin-top:14px}.shift-employee-picker label:has(input:checked){border-color:#9eb4d1;background:#f0f4fa}.shifts-page .btn:not(.secondary):not(.danger){background:#112e54}.shifts-page .btn:not(.secondary):not(.danger):hover{background:#1b467c}
.shift-row-actions{flex-wrap:nowrap;gap:6px}.shift-row-actions .btn{min-height:32px;padding:6px 9px;white-space:nowrap}.shift-fixed-list .data-table td:last-child{min-width:238px}
.theme-dark .attendance-tab.active{color:#fff}.theme-dark .attendance-tab.active::after{background:#6f9ee4}.theme-dark .shift-tabs button.active{color:#fff;background:#315f9d}.theme-dark .attendance-time-pair strong,.theme-dark .attendance-employee strong{color:#eef5ff}
@media (max-width:1300px){.attendance-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-lower-grid{grid-template-columns:1fr 1fr}.attendance-workspace .attendance-filters{grid-template-columns:1fr 1fr}.attendance-workspace .attendance-filters>input:first-child{grid-column:1/-1}}
@media (max-width:700px){.attendance-summary-grid,.attendance-lower-grid{grid-template-columns:1fr 1fr}.attendance-workspace .attendance-filters{grid-template-columns:1fr 1fr}.attendance-workspace .attendance-filters>input:first-child{grid-column:1/-1}.attendance-cutoff-card{align-items:flex-start;flex-direction:column}.attendance-card .data-table{min-width:1240px}}

/* Keep the complete Attendance register visible without horizontal scrolling. */
.attendance-card .table-wrap{overflow-x:hidden}
.attendance-card .data-table{width:100%;min-width:0;table-layout:fixed}
.attendance-card .data-table th,.attendance-card .data-table td{padding:10px 6px;font-size:11.5px;line-height:1.45;overflow-wrap:anywhere}
.attendance-card .data-table th:nth-child(1),.attendance-card .data-table td:nth-child(1){width:24%}
.attendance-card .data-table th:nth-child(2),.attendance-card .data-table td:nth-child(2){width:7%}
.attendance-card .data-table th:nth-child(n+3):nth-child(-n+5),.attendance-card .data-table td:nth-child(n+3):nth-child(-n+5){width:9%}
.attendance-card .data-table th:nth-child(n+6):nth-child(-n+9),.attendance-card .data-table td:nth-child(n+6):nth-child(-n+9){width:6%}
.attendance-card .data-table th:nth-child(10),.attendance-card .data-table td:nth-child(10){width:12%}
.attendance-card .data-table th:nth-child(11),.attendance-card .data-table td:nth-child(11){width:6%}
.attendance-employee strong{white-space:normal;overflow-wrap:anywhere;font-size:13.5px;line-height:1.3}
.attendance-employee small{font-size:11px;line-height:1.35}
.attendance-employee-assignment{color:#536985!important;white-space:normal;font-size:11.5px!important}
.attendance-break-pair{display:grid;gap:5px}
.attendance-break-pair>div{display:grid;grid-template-columns:22px minmax(0,1fr);gap:3px;align-items:start}
.attendance-break-pair>div>span{padding-top:1px;color:#718198;font-size:9.5px;font-weight:800;text-transform:uppercase}
.attendance-break-pair .attendance-time-pair{gap:1px}
.attendance-card .data-table td:last-child .btn{min-width:0;width:100%;padding:7px 4px;font-size:10.5px}
@media (max-width:900px){.attendance-card .table-wrap{overflow-x:hidden}.attendance-card .data-table{min-width:0}.attendance-card .data-table th,.attendance-card .data-table td{padding-inline:4px;font-size:11px}.attendance-time-pair strong{font-size:11px}.attendance-time-pair small{font-size:10px}.attendance-status{font-size:10px}}
.shift-schedule{margin-top:18px;border-color:#dce8ee;border-radius:13px;box-shadow:0 8px 24px rgba(25,71,103,.055)}.shift-assignment-heading,.shift-schedule-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.shift-assignment-heading h2,.shift-schedule-heading h2{margin:0}.shift-schedule-heading p{margin:5px 0 0;color:#64788e;font-size:13px}.shift-schedule-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.shift-week-off{display:inline-flex;align-items:center;min-height:32px;padding:5px 9px;border-radius:8px;background:#eff5ff;color:#284a78;font-size:12px;font-weight:750;text-align:center}.shift-schedule-link{margin:0;padding:0;border:0;background:transparent;color:#153966;font:inherit;font-weight:800;text-align:inherit;cursor:pointer}.shift-schedule-link:hover,.shift-schedule-link:focus-visible{color:#087f91;text-decoration:underline}.theme-dark .shift-schedule{border-color:#40546c}.theme-dark .shift-schedule-heading h2{color:#eef5ff}.theme-dark .shift-schedule-heading p{color:#b8c8dc}.theme-dark .shift-week-off{background:#26364b;color:#bdeef0}@media (max-width:700px){.shift-assignment-heading,.shift-schedule-heading{align-items:stretch;flex-direction:column}.shift-assignment-heading .btn{align-self:flex-start}.shift-schedule-actions{justify-content:flex-start}}
.shift-schedule-inline{scroll-margin-top:18px;padding:26px}.shift-schedule-inline>.shift-schedule-heading{padding-bottom:18px;border-bottom:1px solid #dce7f4}.shift-schedule-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:0;margin:0 0 26px;border-bottom:1px solid #dce7f4}.shift-schedule-summary>div{min-width:0;min-height:76px;padding:14px 16px;border-inline-end:1px solid #dce7f4}.shift-schedule-summary>div:last-child{border-inline-end:0}.shift-schedule-summary span{display:block;margin-bottom:7px;color:#61738d;font-size:11px;font-weight:800;letter-spacing:.025em;text-transform:uppercase}.shift-schedule-summary strong{display:block;color:#123c70;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.shift-schedule-details-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.shift-schedule-details-heading h3{margin:0;color:#123c70;font-size:18px}.shift-schedule-inline .table-wrap{border:1px solid #e2e8f0;border-radius:12px;overflow:auto}.theme-dark .shift-schedule-inline>.shift-schedule-heading,.theme-dark .shift-schedule-summary{border-color:#41556f}.theme-dark .shift-schedule-summary>div{border-color:#41556f}.theme-dark .shift-schedule-summary span{color:#b5c4d9}.theme-dark .shift-schedule-summary strong,.theme-dark .shift-schedule-details-heading h3{color:#ecf4ff}.theme-dark .shift-schedule-inline .table-wrap{border-color:#41556f}@media (max-width:820px){.shift-schedule-inline{padding:20px}.shift-schedule-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.shift-schedule-summary>div:nth-child(2n){border-inline-end:0}.shift-schedule-summary>div:nth-child(n+3){border-top:1px solid #dce7f4}.theme-dark .shift-schedule-summary>div:nth-child(n+3){border-color:#41556f}}@media (max-width:520px){.shift-schedule-inline{padding:16px}.shift-schedule-summary{grid-template-columns:1fr}.shift-schedule-summary>div{min-height:0;border-inline-end:0;border-top:1px solid #dce7f4}.shift-schedule-summary>div:first-child{border-top:0}.theme-dark .shift-schedule-summary>div{border-color:#41556f}.shift-schedule-details-heading{align-items:stretch;flex-direction:column}.shift-schedule-details-heading .btn{width:100%}}
.shift-schedule-row{cursor:pointer}.shift-fixed-list .data-table td:last-child{min-width:350px}.shift-fixed-list .shift-row-actions{justify-content:flex-end}
.shift-fixed-list .data-table th:nth-child(1),.shift-fixed-list .data-table td:nth-child(1){min-width:120px}
.shift-fixed-list .data-table th:nth-child(2),.shift-fixed-list .data-table td:nth-child(2){min-width:105px}
.shift-fixed-list .data-table th:nth-child(3),.shift-fixed-list .data-table td:nth-child(3){min-width:125px}
.shift-fixed-list .data-table th:nth-child(4),.shift-fixed-list .data-table td:nth-child(4){min-width:78px}
.shift-fixed-list .data-table th:last-child,.shift-fixed-list .data-table td:last-child{min-width:310px}
.shift-fixed-list .shift-row-actions{display:grid;grid-template-columns:repeat(2,max-content);gap:6px;justify-content:start}
.shift-assignment-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.shift-assignment-dates .field.full{grid-column:1/-1}.shift-customize-toggle{display:flex;align-items:center;gap:9px;margin:14px 0;font-size:13px;font-weight:700}.shift-unassigned-reminder{border:1px solid #dc5463;background:#fff0f2;color:#9f1d30;margin-bottom:16px}.shift-unassigned-reminder strong{display:block;margin-bottom:10px}.shift-reminder-names{display:flex;flex-wrap:wrap;gap:8px}.shift-reminder-names span{border:1px solid #eaa4ae;border-radius:8px;padding:6px 9px;background:#fff;font-size:12px;font-weight:700}.theme-dark .shift-unassigned-reminder{background:#49252e;border-color:#f18a9b;color:#ffe4e9}.theme-dark .shift-reminder-names span{background:#622d39;border-color:#9c5a68}@media(max-width:700px){.shift-assignment-dates{grid-template-columns:1fr}}
.shift-month-tools{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:18px 0}.shift-month-tools .field{min-width:190px}.shift-month-days{display:grid;gap:10px}.shift-month-day{min-width:0;padding:14px;border:1px solid #dce8ee;border-radius:10px;background:#fbfdff}.shift-month-day.is-unset{border-color:#e6b1b8;background:#fff9fa}.shift-month-day-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.shift-month-day-heading .input{max-width:180px}.shift-month-time-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end;margin-top:12px}.shift-month-time-grid .field{min-width:0}.shift-month-time-grid .input{min-width:0;width:100%}.shift-worked-hours{display:flex;flex-direction:column;gap:4px;padding:8px 10px;border:1px solid #dce8ee;border-radius:8px}.shift-worked-hours span{font-size:12px}.shift-worked-hours strong{font-size:16px}.shift-worked-hours.invalid{border-color:#d34d62;color:#b22138}.shift-worked-hours small{font-size:11px}.shift-copy-previous{margin-top:10px;border:0;background:transparent;color:#205b91;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.theme-dark .shift-month-day{background:#26364b;border-color:#40546c}.theme-dark .shift-month-day.is-unset{border-color:#a75c68}.theme-dark .shift-worked-hours{border-color:#40546c}@media(max-width:1100px){.shift-month-time-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.shift-month-tools>*{width:100%}.shift-month-day-heading{align-items:stretch;flex-direction:column}.shift-month-day-heading .input{max-width:none}.shift-month-time-grid{grid-template-columns:1fr}}
.shift-clock{min-width:0}.shift-clock-button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%;text-align:start;cursor:pointer}.shift-clock-button span:first-child{white-space:nowrap}.shift-clock-icon{flex:none;font-size:20px;line-height:1}.shift-clock-editor{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px;padding:8px;border:1px solid #dce8ee;border-radius:8px;background:var(--card)}.shift-clock-editor .input{min-width:0;width:100%;padding-inline:4px;text-align:center}.shift-clock-done{grid-column:1/-1;border:0;border-radius:6px;background:#e7eef8;color:#123f73;font:inherit;font-size:12px;font-weight:800;padding:6px;cursor:pointer}.theme-dark .shift-clock-editor{border-color:#40546c}.shift-worked-hours.invalid small{color:#b22138;font-weight:700}.theme-dark .shift-worked-hours.invalid small{color:#ffb5c0}
.shift-weekly-time-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 10px}.shift-weekly-time-grid .field,.shift-weekly-time-grid .shift-clock{min-width:0}.shift-weekly-time-grid .shift-clock-button{width:100%;min-height:50px}.shift-weekly-worked-hours{width:100%;margin-bottom:14px}.shift-weekly-time-grid .shift-clock-editor{position:relative;z-index:1}@media(max-width:420px){.shift-weekly-time-grid{grid-template-columns:1fr}}
.shift-export-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;min-width:0}.shift-export-controls .input{width:min(240px,100%);min-width:150px}.shift-export-controls .btn{white-space:normal}@media(max-width:700px){.shift-export-controls{width:100%;justify-content:stretch}.shift-export-controls .input{flex:1;min-width:0}.shift-export-controls .btn{flex:none}}
.shift-name-search{margin:0 0 12px}.shift-name-search .input{width:min(100%,380px)}
.attendance-request-filters{display:grid;grid-template-columns:minmax(230px,1.6fr) repeat(2,minmax(140px,1fr)) repeat(2,minmax(150px,1fr));gap:10px;align-items:center}.attendance-request-filters .input,.attendance-request-filters .select{min-width:0;width:100%}@media(max-width:1100px){.attendance-request-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.attendance-request-filters .input[type=search]{grid-column:span 3}}@media(max-width:700px){.attendance-request-filters{grid-template-columns:1fr}.attendance-request-filters .input[type=search]{grid-column:auto}}
/* Keep all attendance filters visible and ordered at common laptop widths. */
@media (max-width:1360px){.attendance-workspace .attendance-filters{grid-template-columns:minmax(0,1.35fr) repeat(2,minmax(0,1fr))!important}.attendance-workspace .attendance-filters>input:first-child{grid-column:span 2!important}}
@media (max-width:720px){.attendance-workspace .attendance-filters{grid-template-columns:1fr!important}.attendance-workspace .attendance-filters>input:first-child{grid-column:auto!important}}

/* Compact, readable expected times without reintroducing a horizontal table scroll. */
.attendance-card .data-table th,.attendance-card .data-table td{font-size:11px}
.attendance-card .data-table th:nth-child(1),.attendance-card .data-table td:nth-child(1){width:24%}
.attendance-card .data-table th:nth-child(2),.attendance-card .data-table td:nth-child(2){width:7%}
.attendance-card .data-table th:nth-child(3),.attendance-card .data-table td:nth-child(3),.attendance-card .data-table th:nth-child(5),.attendance-card .data-table td:nth-child(5){width:10%}
.attendance-card .data-table th:nth-child(4),.attendance-card .data-table td:nth-child(4){width:14%}
.attendance-card .data-table th:nth-child(n+6):nth-child(-n+9),.attendance-card .data-table td:nth-child(n+6):nth-child(-n+9){width:5%}
.attendance-card .data-table th:nth-child(10),.attendance-card .data-table td:nth-child(10){width:9%}
.attendance-card .data-table th:nth-child(11),.attendance-card .data-table td:nth-child(11){width:6%}
.attendance-time-pair{display:grid;gap:2px;min-width:0}
.attendance-time-pair strong{font-size:11px;line-height:1.25;white-space:nowrap}
.attendance-time-pair small{color:#466995;font-size:9.5px;font-weight:750;line-height:1.25;white-space:nowrap}
.attendance-break-pair{display:grid;gap:7px;min-width:0}
.attendance-break-pair .attendance-break-line{display:grid;grid-template-columns:24px minmax(0,1fr);gap:4px;align-items:start;min-width:0}
.attendance-break-line>span{padding-top:1px;color:#718198;font-size:9px;font-weight:850;line-height:1.25;text-transform:uppercase}
.attendance-break-line .attendance-time-pair{min-width:0}
.theme-dark .attendance-time-pair small{color:#a9c4e2}
@media (max-width:900px){.attendance-card .data-table th,.attendance-card .data-table td{font-size:10.5px}.attendance-time-pair strong{font-size:10.5px}.attendance-time-pair small{font-size:9px}}

/* Daily attendance is a readable record card: all punch facts stay visible without a wide table. */
.attendance-record-list{display:grid;gap:12px;margin:0 12px 14px}
.attendance-record-card{overflow:hidden;border:1px solid #dfe9ef;border-radius:11px;background:var(--card);box-shadow:0 4px 13px rgba(22,60,93,.04)}
.attendance-record-head{display:grid;grid-template-columns:minmax(250px,1.45fr) minmax(88px,.55fr) minmax(96px,.65fr) minmax(128px,.85fr) auto;gap:14px;align-items:center;padding:13px 16px;border-bottom:1px solid #e7edf2;background:#fbfdfe}
.attendance-record-employee{display:grid;gap:2px;min-width:0}.attendance-record-employee strong{overflow-wrap:anywhere;color:#143963;font-size:13px;line-height:1.25}.attendance-record-employee small{color:#627b98;font-size:10.5px;line-height:1.25}
.attendance-record-fact,.attendance-record-status{display:grid;gap:3px;min-width:0}.attendance-record-fact>span,.attendance-record-status>span,.attendance-metrics-row span{color:#718198;font-size:9.5px;font-weight:800;text-transform:uppercase}.attendance-record-fact strong{color:#183b65;font-size:11.5px;white-space:nowrap}.attendance-record-status>div{min-width:0}.attendance-record-actions{justify-self:end}.attendance-record-actions .btn{min-width:64px}
.attendance-punch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:12px 16px}
.attendance-punch-grid.no-breaks{grid-template-columns:repeat(2,minmax(0,1fr))}
.attendance-punch-cell{display:grid;gap:5px;min-width:0;padding:10px 11px;border:1px solid #e5edf2;border-radius:8px;background:#f8fbfd}.attendance-punch-label{color:#1d4b7c;font-size:10.5px;font-weight:850}.attendance-punch-value{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}.attendance-punch-value span{flex:0 0 auto;color:#78889c;font-size:9px;font-weight:750}.attendance-punch-value strong{min-width:0;overflow:hidden;color:#173b66;font-size:11px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.attendance-punch-value.expected{padding-top:4px;border-top:1px solid #e4edf3}.attendance-punch-value.expected strong{color:#41668f;font-size:10px}
.attendance-metrics-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #e7edf2;background:#f7fafc}.attendance-metrics-row>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0;padding:8px 16px;border-inline-end:1px solid #e7edf2}.attendance-metrics-row>div:last-child{border-inline-end:0}.attendance-metrics-row strong{overflow:hidden;color:#294b72;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.attendance-record-empty{margin:0 12px 14px}.theme-dark .attendance-record-card{border-color:#40546c;background:#26364b;box-shadow:none}.theme-dark .attendance-record-head{border-color:#40546c;background:#29394e}.theme-dark .attendance-record-employee strong,.theme-dark .attendance-record-fact strong,.theme-dark .attendance-punch-value strong{color:#eef5ff}.theme-dark .attendance-record-employee small,.theme-dark .attendance-record-fact>span,.theme-dark .attendance-record-status>span,.theme-dark .attendance-metrics-row span,.theme-dark .attendance-punch-value span{color:#b8c8dc}.theme-dark .attendance-punch-cell{border-color:#40546c;background:#26364b}.theme-dark .attendance-punch-value.expected{border-color:#40546c}.theme-dark .attendance-punch-value.expected strong,.theme-dark .attendance-metrics-row strong{color:#c3d9f3}.theme-dark .attendance-metrics-row,.theme-dark .attendance-metrics-row>div{border-color:#40546c;background:#29394e}
@media (max-width:1000px){.attendance-record-head{grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(86px,.7fr)) auto;gap:10px;padding-inline:12px}.attendance-punch-grid{padding-inline:12px;gap:7px}.attendance-punch-cell{padding:9px}.attendance-metrics-row>div{padding-inline:12px}}
@media (max-width:720px){.attendance-record-head{grid-template-columns:1fr 1fr}.attendance-record-employee{grid-column:1/-1}.attendance-record-actions{justify-self:start}.attendance-punch-grid{grid-template-columns:1fr 1fr}.attendance-metrics-row{grid-template-columns:1fr 1fr}.attendance-metrics-row>div:nth-child(2){border-inline-end:0}.attendance-metrics-row>div:nth-child(-n+2){border-bottom:1px solid #e7edf2}.theme-dark .attendance-metrics-row>div:nth-child(-n+2){border-color:#40546c}}

/* The monthly-report action must retain sufficient contrast against its navy surface. */
.attendance-monthly-panel .btn{background:#0d0b1b;color:#fff!important;text-shadow:none}.attendance-monthly-panel .btn:hover,.attendance-monthly-panel .btn:focus-visible{background:#242033;color:#fff!important}
.theme-dark .attendance-monthly-panel .btn{background:#527fdc;color:#fff!important}.theme-dark .attendance-monthly-panel .btn:hover,.theme-dark .attendance-monthly-panel .btn:focus-visible{background:#6590e7;color:#fff!important}

/* Align the attendance record count with the card list below it. */
.attendance-workspace .list-result-count{margin:14px 12px 8px}
/* A subtle gradient frame separates each employee record without feeling heavy. */
.attendance-record-card{padding:10px;border:2px solid transparent;background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(90deg,#4b61d0,#249f82) border-box;box-shadow:0 7px 18px rgba(25,73,122,.07)}
.attendance-record-card:hover{box-shadow:0 11px 25px rgba(25,73,122,.15);transform:translateY(-1px)}
.attendance-record-head{border:1px solid #dce7f0;border-radius:8px;background:#fbfdfe}
.attendance-punch-grid{padding:10px 0}
.attendance-metrics-row{overflow:hidden;border:1px solid #dce7f0;border-radius:8px}
.theme-dark .attendance-record-card{background:linear-gradient(#26364b,#26364b) padding-box,linear-gradient(90deg,#6378e1,#35b893) border-box;box-shadow:0 8px 20px rgba(0,0,0,.22)}
.theme-dark .attendance-record-head,.theme-dark .attendance-metrics-row{border-color:#40546c}
/* Keep every attendance label legible against the dark card surface. */
.theme-dark .attendance-punch-cell{border-color:#4d6682;background:#2b3e56}
.theme-dark .attendance-punch-label{color:#81baff}
.theme-dark .attendance-punch-value span{color:#c0d4e9}
.theme-dark .attendance-punch-value.expected{border-color:#506d89}
.theme-dark .attendance-record-head,.theme-dark .attendance-metrics-row,.theme-dark .attendance-metrics-row>div{border-color:#4d6682;background:#2d4058}
/* The entire Attendance page uses one high-contrast dark palette, not only the record cards. */
.theme-dark .attendance-hero{border-color:#4d6682;background:radial-gradient(circle at 87% 16%,rgba(55,184,196,.22),transparent 30%),linear-gradient(120deg,#1d2c40,#2b4059)}
.theme-dark .attendance-hero p,.theme-dark .attendance-kicker,.theme-dark .attendance-date-badge span,.theme-dark .attendance-workspace-heading p{color:#c8d8e9}
.theme-dark .attendance-date-badge{background:#2b3e56;border-color:#59718d}
.theme-dark .attendance-summary-grid .attendance-metric{background:#283b53;border-color:#4d6682}
.theme-dark .attendance-metric-copy span,.theme-dark .attendance-metric-copy small{color:#c8d8e9}
.theme-dark .attendance-tabs{border-color:#4d6682}
.theme-dark .attendance-tab{color:#aee9ee}.theme-dark .attendance-tab:hover,.theme-dark .attendance-tab.active{color:#f5fbff}
.theme-dark .attendance-workspace{border-color:#4d6682;background:#223247}
.theme-dark .attendance-workspace-heading,.theme-dark .attendance-workspace .attendance-filters{background:#263a52;border-color:#4d6682}
.theme-dark .attendance-workspace .field label{color:#d5e2f0}
.theme-dark .attendance-workspace .input,.theme-dark .attendance-workspace .select,.theme-dark .attendance-workspace .custom-select-trigger{background:#2b3e56;color:#f3f7fc;border-color:#59718d}
.theme-dark .attendance-workspace .input::placeholder{color:#c0d0e2}
.theme-dark .attendance-workspace .custom-select-chevron{color:#d6e3f2}
.theme-dark .attendance-workspace .list-result-count{color:#d1deec}

/* Monthly attendance is one compact modern summary row per employee. */
.monthly-summary-list{margin:0 12px 14px;overflow:hidden;border:1px solid #dce7f0;border-radius:10px;background:#fbfdfe}
.monthly-summary-head,.monthly-summary-row{display:grid;grid-template-columns:minmax(215px,1.55fr) repeat(5,minmax(76px,.58fr)) minmax(92px,.55fr);gap:12px;align-items:center}
.monthly-summary-head{min-height:42px;padding:9px 14px;background:#f4f8fb;color:#607895;font-size:10px;font-weight:850;text-transform:uppercase}
.monthly-summary-row{min-height:66px;padding:9px 14px;border-top:1px solid #e3ebf1;background:#fff}
.monthly-summary-row:hover{background:#f8fbfd}
.monthly-summary-employee{display:grid;gap:3px;min-width:0}.monthly-summary-employee strong{overflow:hidden;color:#143963;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.monthly-summary-employee small{overflow:hidden;color:#66809d;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.monthly-summary-employee .badge{justify-self:start;max-width:100%;white-space:normal;text-align:start}
.monthly-summary-fact{display:grid;gap:2px;min-width:0}.monthly-summary-fact span{display:none;color:#6b819c;font-size:9px;font-weight:800;text-transform:uppercase}.monthly-summary-fact strong{color:#234d7d;font-size:12px;text-align:center}
.monthly-summary-row .btn{justify-self:end;min-width:88px}
.monthly-attendance-details{max-width:1040px}
.monthly-detail-records{max-height:68vh;overflow:auto;margin:12px 0 0;padding:0 4px 4px}
.theme-dark .monthly-summary-list{border-color:#4d6682;background:#263a52}.theme-dark .monthly-summary-head{background:#2d4058;color:#d0deed}.theme-dark .monthly-summary-row{border-color:#4d6682;background:#283b53}.theme-dark .monthly-summary-row:hover{background:#2d425c}.theme-dark .monthly-summary-employee strong{color:#f3f7fc}.theme-dark .monthly-summary-employee small{color:#c0d1e4}.theme-dark .monthly-summary-fact strong{color:#dbeaff}
@media (max-width:980px){.monthly-summary-list{margin-inline:8px}.monthly-summary-head{display:none}.monthly-summary-row{grid-template-columns:minmax(180px,1.3fr) repeat(3,minmax(64px,.55fr)) auto}.monthly-summary-row .monthly-summary-fact:nth-of-type(4),.monthly-summary-row .monthly-summary-fact:nth-of-type(5){display:none}.monthly-summary-fact span{display:block}.monthly-summary-fact strong{text-align:start}}
@media (max-width:650px){.monthly-summary-row{grid-template-columns:1fr 1fr;gap:8px;padding:12px}.monthly-summary-employee{grid-column:1/-1}.monthly-summary-row .monthly-summary-fact:nth-of-type(n){display:grid}.monthly-summary-row .btn{grid-column:1/-1;justify-self:stretch;width:100%}.monthly-summary-fact strong{text-align:start}}
/* Expected times are supporting values, but must remain comfortably readable. */
.attendance-card .attendance-time-pair small{font-size:12px;line-height:1.35;font-weight:650;color:#4d678a}
/* Attendance navigation wraps when needed; it must never create a browser scrollbar. */
.attendance-tabs{flex-wrap:wrap;row-gap:0;overflow:visible!important}
.attendance-tab{line-height:1}
.shift-tabs{flex-wrap:wrap;overflow:visible!important}

/* Regularisation keeps fixed and split shifts distinct while using one stable, scrollable editor. */
.attendance-edit-dialog{width:min(760px,calc(100vw - 32px))}
.attendance-edit-dialog .attendance-reason{min-height:76px}
.attendance-clock{position:relative;min-width:0}
.attendance-clock-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;text-align:start;cursor:pointer}
.attendance-clock-icon{flex:none;color:#4d6481;font-size:19px}
.attendance-clock-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(72px,.75fr);gap:7px;margin-top:7px;padding:9px;border:1px solid #dce6f0;border-radius:9px;background:#f7f9fc}
.attendance-clock-editor .select{min-width:0;padding-inline:7px}
.attendance-clock-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.attendance-clock-actions button{padding:5px 8px;border:0;background:transparent;color:#205b91;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.attendance-advanced{padding:11px 13px;border:1px solid #dce6f0;border-radius:10px;background:#f8fafc}
.attendance-advanced summary{cursor:pointer;color:#214a78;font-size:13px;font-weight:800}
.attendance-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 15px;margin-top:13px}
.attendance-checkbox{display:flex;align-items:center;gap:8px;min-height:42px}
.theme-dark .attendance-clock-editor,.theme-dark .attendance-advanced{border-color:#526982;background:#2b3e56}
.theme-dark .attendance-clock-icon,.theme-dark .attendance-advanced summary{color:#c7dcf4}
.theme-dark .attendance-clock-actions button{color:#90bdf1}
@media(max-width:620px){.attendance-edit-dialog{width:calc(100vw - 18px)}.attendance-clock-editor,.attendance-advanced-grid{grid-template-columns:1fr}.attendance-clock-actions{grid-column:1}.attendance-edit-dialog .form-grid{grid-template-columns:1fr}}
