/* Employee attendance detail, after the shared theme in the cascade. */
.attendance-record-detail{container:attendance-detail / inline-size;display:grid;width:min(100%,1380px);min-width:0;grid-template-columns:minmax(0,1fr);gap:16px;margin-inline:auto}
.attendance-record-detail .attendance-back{display:inline-flex;width:max-content;min-height:40px;align-items:center;gap:8px;padding:8px 13px;color:#475569;font-size:13px;font-weight:550}
.attendance-record-detail .attendance-back:hover{border-color:#a9bce5;color:#245bd8}
.attendance-record-detail .attendance-back svg,.attendance-record-detail .attendance-hero aside svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.attendance-record-detail .attendance-hero{display:grid;min-height:0;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:16px;border:1px solid #e1e8f1;border-radius:15px;background:#fff;padding:18px 20px;color:#172033;box-shadow:0 1px 3px rgba(15,23,42,.05)}
.attendance-record-detail .attendance-avatar.large{width:52px;height:52px;border-radius:13px;background:#eef4ff;color:#3264e8;font-size:16px;font-weight:750}
.attendance-record-detail .attendance-hero>div{display:flex;min-width:0;flex-wrap:wrap;align-items:center;gap:4px 10px}
.attendance-record-detail .attendance-hero h1{margin:0;color:#172033;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.02em}
.attendance-record-detail .attendance-hero p,.attendance-record-detail .attendance-hero small{width:100%;margin:0;color:#64748b;font-size:12px;line-height:1.45}
.attendance-record-detail .attendance-hero em{border-radius:999px;background:#eaf1ff;padding:4px 9px;color:#245bd8;font-size:11px;font-weight:650;font-style:normal}
.attendance-record-detail .attendance-hero aside{display:flex;min-width:0;align-items:center;gap:8px}
.attendance-record-detail .attendance-hero aside button{display:inline-flex;min-width:0;min-height:40px;align-items:center;justify-content:center;gap:8px;white-space:nowrap;font-size:13px;font-weight:600}
.attendance-record-detail .attendance-hero .secondary{border:1px solid #d8e1ed;color:#334155}
.attendance-record-detail .attendance-detail-metrics{grid-template-columns:repeat(5,minmax(0,1fr));min-width:0;gap:14px}
.attendance-record-detail .attendance-detail-metrics article{min-height:94px;border-color:#e1e8f1;border-radius:13px;padding:17px 18px}
.attendance-record-detail .attendance-detail-metrics span{color:#64748b;font-size:12px;font-weight:500}
.attendance-record-detail .attendance-detail-metrics strong{color:#172033;font-size:24px;font-weight:700;line-height:1.2}
.attendance-record-detail .attendance-detail-metrics i{right:18px;top:22px;width:38px;height:38px}
.attendance-record-detail .attendance-detail-metrics svg{width:19px;height:19px}
.attendance-record-detail .attendance-daily{min-width:0;border-color:#e1e8f1;border-radius:13px}
.attendance-record-detail .attendance-daily h2{padding:17px 18px;color:#172033;font-size:16px;font-weight:700}
.attendance-record-detail .attendance-table-wrap{width:100%;overflow-x:auto}
.attendance-record-detail .attendance-daily table{min-width:970px;width:100%}
.attendance-record-detail .attendance-daily th{padding:12px 15px;color:#64748b;font-size:11px;font-weight:700;letter-spacing:.04em}
.attendance-record-detail .attendance-daily td{padding:14px 15px;color:#475569;font-size:13px;line-height:1.4}
.attendance-record-detail .attendance-daily td:first-child strong{color:#172033;font-size:13px}
.attendance-record-detail .attendance-daily td:first-child small{font-size:11px}
.attendance-record-detail .attendance-time-cell{min-width:0;gap:8px}
.attendance-record-detail .attendance-time-button{font-size:13px}
.attendance-record-detail .attendance-selfie,.attendance-record-detail .attendance-no-selfie{font-size:11px}
.attendance-record-detail .punctuality,.attendance-record-detail .attendance-row-status{padding:5px 9px;font-size:11px;font-weight:650}
.attendance-record-detail .attendance-actions{gap:10px;min-width:0;align-items:center}
.attendance-record-detail .attendance-actions button{width:40px;height:40px;flex-shrink:0}
.attendance-record-detail .attendance-actions [data-edit-lunch]{display:grid;gap:4px;width:200px;max-width:100%;height:auto;min-height:48px;padding:8px 11px;border:0;border-radius:10px;background:var(--fc-surface,#fff);box-shadow:0 2px 8px rgba(15,23,42,.10),0 1px 2px rgba(15,23,42,.04);color:var(--fc-ink,#334155);white-space:normal;line-height:1.4;text-align:left;transition:background .15s ease,box-shadow .15s ease}
.attendance-lunch-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:11px}
.attendance-lunch-heading strong{font-weight:650}
.attendance-lunch-heading>span{color:var(--fc-blue,#2563eb);font-size:10px;font-weight:600}
.attendance-lunch-times{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;width:100%;gap:6px;font-size:11px;font-weight:600;white-space:nowrap}
.attendance-lunch-times>span:last-child{text-align:right}
.attendance-lunch-times>span[aria-hidden]{color:var(--fc-muted,#64748b);font-weight:400}
.attendance-afternoon-note{display:grid;gap:3px;font-size:11px;line-height:1.4}
.attendance-afternoon-note small{color:var(--fc-muted,#64748b);font-size:10px}
.attendance-record-detail .attendance-actions [data-edit-lunch]:hover{background:var(--theme-raised,#f8faff);box-shadow:0 3px 10px rgba(15,23,42,.15),0 1px 3px rgba(15,23,42,.06)}
@layer appearance{html[data-theme=dark] body .attendance-record-detail .attendance-actions [data-edit-lunch]{box-shadow:0 2px 8px rgba(0,0,0,.30),0 1px 2px rgba(0,0,0,.18)!important}}
.attendance-record-detail .attendance-actions button:focus-visible{outline:2px solid #2563eb;outline-offset:3px}
.attendance-record-detail .attendance-actions svg{width:17px;height:17px}
.attendance-record-detail .attendance-detail-metrics .attendance-absence-card{padding:0;border-color:#fecdd3;background:#fff1f2}
.attendance-absence-trigger{box-sizing:border-box;position:relative;display:grid;align-content:center;gap:4px;width:100%;height:100%;min-height:inherit;border:0;border-radius:inherit;background:transparent;padding:17px 18px;font:inherit;text-align:left;cursor:pointer}
.attendance-record-detail .attendance-absence-card span,.attendance-record-detail .attendance-absence-card strong{color:#b91c1c}.attendance-absence-trigger:hover{background:#ffe4e6}.attendance-absence-trigger:focus-visible{outline:2px solid #ef4444;outline-offset:3px}
.attendance-absence-modal{display:flex;flex-direction:column;width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 28px)}.attendance-absence-modal>header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid #e1e8f1}.attendance-absence-modal h2{margin:0;font-size:18px}.attendance-absence-modal h2 span{margin-left:6px;border-radius:999px;background:#ffe4e6;padding:3px 8px;color:#b91c1c;font-size:12px}.attendance-absence-body{min-height:0;overflow:auto;padding:18px 20px}.attendance-absence-body>p{margin:0 0 14px;font-size:13px;line-height:1.6}.attendance-absence-body .attendance-absence-help{color:#64748b;font-size:12px}.attendance-absence-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.attendance-absence-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #fecdd3;border-radius:10px;background:#fff1f2;padding:12px;font-size:13px}.attendance-absence-list time{font-weight:600;color:#b91c1c}.attendance-absence-list span{color:#64748b;font-size:12px}.attendance-absence-empty{border:1px dashed #dce4ef;border-radius:10px;padding:20px;text-align:center;color:#64748b}
.attendance-absence-date{display:grid;min-width:0;gap:3px}.attendance-absence-date small{color:#64748b;font-size:11px;line-height:1.4}.attendance-absence-days{flex:none;border-radius:999px;background:#ffe4e6;padding:5px 9px;color:#b91c1c;font-size:12px;white-space:nowrap}
@container attendance-detail (max-width:900px){.attendance-record-detail .attendance-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-detail-metrics>article:last-child{grid-column:1/-1}}
html[data-theme=dark] body .attendance-detail-metrics .attendance-absence-card,html[data-theme=dark] body .attendance-absence-list li{background:#361c25!important;border-color:#7f3344!important}html[data-theme=dark] body .attendance-absence-trigger:hover{background:#48222d}html[data-theme=dark] body .attendance-absence-card strong,html[data-theme=dark] body .attendance-absence-card span,html[data-theme=dark] body .attendance-absence-list time{color:var(--theme-red,#fb7185)!important}
@media(max-width:950px){.attendance-record-detail .attendance-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){
  .attendance-record-detail{gap:13px}
  .attendance-record-detail .attendance-hero{grid-template-columns:44px minmax(0,1fr);align-items:start;gap:12px;padding:16px}
  .attendance-record-detail .attendance-avatar.large{width:44px;height:44px}
  .attendance-record-detail .attendance-hero h1{font-size:18px}
  .attendance-record-detail .attendance-hero aside{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .attendance-record-detail .attendance-hero aside button{width:100%}
  .attendance-record-detail .attendance-detail-metrics{gap:9px}
  .attendance-record-detail .attendance-detail-metrics article{min-height:88px;padding:14px}
  .attendance-record-detail .attendance-detail-metrics strong{font-size:21px}
  .attendance-record-detail .attendance-detail-metrics i{right:12px;top:14px;width:32px;height:32px}
  .attendance-record-detail .attendance-detail-metrics svg{width:17px;height:17px}
}

/* Wide attendance directory with an adjacent employee detail. */
.attendance-workspace-page{container-name:attendance-workspace;container-type:inline-size;display:grid;width:100%;min-width:0;gap:16px}
.attendance-workspace-page>.page-title,.attendance-workspace-page>.attendance-search,.attendance-master{display:none}
.attendance-workspace-page .attendance-split,.attendance-detail-pane{min-width:0}
.attendance-workspace-page .attendance-record-detail{width:100%}
.attendance-master{min-width:0;align-content:start;gap:10px}
.attendance-compact-card{display:grid;min-width:0;min-height:91px;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:11px;border:1px solid #e1e8f1;border-radius:13px;background:#fff;padding:12px;color:#172033;text-align:left;box-shadow:0 1px 3px rgba(15,23,42,.05);cursor:pointer}
.attendance-compact-card:hover{border-color:#a9c4f7;background:#fbfdff}
.attendance-compact-card.selected{border-color:#8daff5;background:#f5f8ff;box-shadow:0 0 0 1px rgba(59,102,237,.12)}
.attendance-compact-card:focus-visible{outline:2px solid #3768ec;outline-offset:2px}
.attendance-compact-card .attendance-avatar{width:42px;height:42px;font-size:13px}
.attendance-compact-person{display:grid;min-width:0;gap:2px}
.attendance-person-badges{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.attendance-compact-person strong{overflow:hidden;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.attendance-compact-person small{overflow:hidden;color:#64748b;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.attendance-compact-person em{width:max-content;border-radius:999px;background:#eaf1ff;padding:2px 7px;color:#245bd8;font-size:10px;font-style:normal}
.attendance-compact-summary{margin-top:3px;color:#536985;font-size:11px;font-weight:600}
.attendance-compact-arrow{color:#7388a9;font-size:20px}
.attendance-master-empty{margin:0;border:1px dashed #dce4ef;border-radius:12px;background:#fff;padding:24px;color:#64748b;font-size:13px;text-align:center}
@container attendance-workspace (min-width:1300px){
  .attendance-workspace-page>.page-title{display:flex}
  .attendance-workspace-page>.attendance-search{display:flex}
  .attendance-split{display:grid;grid-template-columns:clamp(240px,22%,300px) minmax(0,1fr);align-items:start;gap:16px}
  .attendance-master{display:grid}
  .attendance-split .attendance-record-detail .attendance-back{display:none}
  .attendance-split .attendance-record-detail{margin:0}
}
.attendance-time-missing,.attendance-time-missing .attendance-time-button{color:#dc2626}
.attendance-row-status.missing{background:#fee2e2;color:#b91c1c}
.attendance-record-detail .attendance-detail-metrics .attendance-unscheduled strong,.history-stats strong.attendance-not-scheduled{font-size:13px;line-height:1.4;max-width:calc(100% - 40px)}.attendance-record-detail .attendance-hero em.attendance-on-call,.attendance-person em.attendance-on-call,.attendance-compact-person em.attendance-on-call{background:#fff7ed;color:#9a3412}.punctuality.not_scheduled{background:#f1f5f9;color:#64748b}
.attendance-record-detail .attendance-detail-metrics .attendance-absence-card.attendance-unscheduled{background:#f8fafc;border-color:#e2e8f0}.attendance-record-detail .attendance-detail-metrics .attendance-absence-card.attendance-unscheduled span,.attendance-record-detail .attendance-detail-metrics .attendance-absence-card.attendance-unscheduled strong{color:#64748b}.attendance-unscheduled .attendance-absence-trigger:hover{background:#f1f5f9}html[data-theme=dark] body .attendance-detail-metrics .attendance-absence-card.attendance-unscheduled{background:#1e293b!important;border-color:#475569!important}html[data-theme=dark] body .attendance-absence-card.attendance-unscheduled strong,html[data-theme=dark] body .attendance-absence-card.attendance-unscheduled span{color:#cbd5e1!important}
.attendance-record-detail .attendance-time-edit{display:grid;grid-template-columns:198px 28px 28px;gap:5px;align-items:center;min-width:264px}
.attendance-record-detail .attendance-time-edit input[data-native-attendance]{box-sizing:border-box;width:198px;min-width:0;height:30px;min-height:30px;padding:4px 8px;border:1px solid #cbd5e1;border-radius:10px;font-family:inherit;font-size:12px;line-height:20px;background:var(--fc-card,#fff);color:inherit;color-scheme:light}
.attendance-record-detail .attendance-time-edit input[data-native-attendance]:focus{border-color:#8ca7ff;outline:1px solid #8ca7ff;outline-offset:0;box-shadow:none}
.attendance-record-detail .attendance-time-edit>.attendance-save,.attendance-record-detail .attendance-time-edit>.attendance-cancel{width:28px;height:28px;min-height:28px;padding:0;border-radius:9px;font-size:18px;line-height:1}

/* Mobile daily records retain the existing cells and actions in an expandable row. */
.attendance-record-toggle{display:none}
.attendance-punctuality-pair{display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px}
@media screen and (min-width:761px){
  .attendance-record-detail .attendance-daily table{min-width:900px}
  .attendance-record-detail .attendance-daily th{padding:12px 10px}
  .attendance-record-detail .attendance-daily td{padding:14px 10px}
  .attendance-punctuality-pair{flex-wrap:nowrap;white-space:nowrap}
  .attendance-punctuality-pair .punctuality{flex-shrink:0}
  .attendance-record-detail .attendance-actions{gap:6px}
  .attendance-record-detail .attendance-actions [data-edit-lunch]{width:160px;min-height:42px;padding:6px 9px;gap:2px;border-radius:8px}
  .attendance-record-detail .attendance-actions .attendance-delete{width:36px;height:36px}
  .attendance-lunch-heading{gap:8px}
  .attendance-lunch-times{gap:4px}
}
/* Six summary cards form complete rows at the available detail width. */
@media screen and (min-width:761px){
  @container attendance-detail (max-width:1100px){
    .attendance-record-detail .attendance-time-cell:not(.attendance-time-edit){flex-direction:column;align-items:flex-start;gap:2px}
    .attendance-record-detail .attendance-daily th:nth-child(3),.attendance-record-detail .attendance-daily th:nth-child(4){white-space:normal}
    .attendance-record-detail .attendance-daily td:nth-child(2){white-space:normal;overflow-wrap:anywhere;max-width:160px}
  }
}
.attendance-record-detail .attendance-detail-metrics:has(.overtime-summary-card)>article:last-child{grid-column:auto}
@container attendance-detail (min-width:901px){
  .attendance-record-detail .attendance-detail-metrics:has(.overtime-summary-card){grid-template-columns:repeat(3,minmax(0,1fr))}
}
@container attendance-detail (min-width:1200px){
  .attendance-record-detail .attendance-detail-metrics:has(.overtime-summary-card){grid-template-columns:repeat(6,minmax(0,1fr))}
}
.punctuality.pending,.punctuality.excused,.punctuality.not_worked{background:var(--theme-raised,#f1f5f9);color:var(--fc-muted,#64748b)}
.punctuality.missing{background:#fff1f2;color:#be123c}
.attendance-record-detail .attendance-mobile-punctuality{display:none}
@media screen and (max-width:760px){
  .attendance-record-detail .attendance-daily tr[data-attendance-row]>td:nth-child(6){display:none}
  .attendance-status-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:5px}
  .attendance-record-detail .attendance-mobile-punctuality{display:inline-flex;justify-content:flex-end}
  .attendance-record-detail .attendance-mobile-punctuality .punctuality{padding:3px 7px;font-size:10px;white-space:nowrap}
  .attendance-record-detail .attendance-daily .attendance-table-wrap{overflow:visible;padding:0 10px 10px}
  .attendance-record-detail .attendance-daily table{display:block;min-width:0;width:100%;white-space:normal}
  .attendance-record-detail .attendance-daily thead{display:none}
  .attendance-record-detail .attendance-daily tbody{display:grid;gap:7px}
  .attendance-record-detail .attendance-daily tr{display:block;min-width:0}
  .attendance-record-detail .attendance-daily tr[data-attendance-row]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:7px 6px;padding:10px 11px;border:1px solid var(--fc-line,#dce4ee);border-radius:9px;background:var(--fc-surface,#fff)}
  .attendance-record-detail .attendance-daily td{min-width:0;padding:0;border:0;font-size:11px;white-space:normal}
  .attendance-record-detail tr[data-attendance-row]>td:first-child{grid-column:1;grid-row:1;display:flex;align-items:center;gap:4px}
  .attendance-record-detail tr[data-attendance-row]>td:first-child strong{display:none}
  .attendance-record-detail tr[data-attendance-row]>td:first-child small{display:none}
  .attendance-record-detail tr.is-expanded>td:first-child{flex-wrap:wrap}
  .attendance-record-detail tr.is-expanded>td:first-child small{display:block;flex-basis:100%}
  .attendance-record-detail .attendance-record-toggle{display:inline-block;width:auto;min-height:0;border:0;border-radius:3px;background:transparent;padding:0;color:var(--fc-ink,#172033);font:inherit;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap;cursor:pointer}
  .attendance-record-detail .attendance-record-toggle:focus-visible{outline:2px solid var(--fc-blue,#2563eb);outline-offset:2px}
  .attendance-record-detail tr[data-attendance-row]>td:nth-child(7){grid-column:2/4;grid-row:1;text-align:right}
  .attendance-record-detail .attendance-row-status{font-size:10px;padding:3px 7px;white-space:normal}
  .attendance-record-detail tr[data-attendance-row]>td:nth-child(3){grid-column:1;grid-row:2}
  .attendance-record-detail tr[data-attendance-row]>td:nth-child(4){grid-column:2;grid-row:2}
  .attendance-record-detail tr[data-attendance-row]>td:nth-child(5){grid-column:3;grid-row:2;text-align:right}
  .attendance-record-detail .attendance-time-cell{display:flex;align-items:baseline;gap:3px}
  .attendance-record-detail .attendance-time-button{padding:0;font-size:11px;white-space:nowrap}
  .attendance-record-detail tr[data-attendance-row]>td:nth-child(3) .attendance-time-cell:before{content:'In';font-size:10px;color:var(--fc-muted,#64748b)}
  .attendance-record-detail tr[data-attendance-row]>td:nth-child(4) .attendance-time-cell:before{content:'Out';font-size:10px;color:var(--fc-muted,#64748b)}
  .attendance-record-detail tr[data-attendance-row]:not(.is-expanded)>td:is(:nth-child(2),:nth-child(6),:nth-child(8)),
  .attendance-record-detail tr[data-attendance-row]:not(.is-expanded) :is(.attendance-selfie,.attendance-no-selfie){display:none}
  .attendance-record-detail tr.is-expanded>td:is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(8)){grid-column:1/-1;grid-row:auto;text-align:left;padding-top:6px;border-top:1px solid var(--fc-line,#dce4ee);overflow-wrap:anywhere}
  .attendance-record-detail tr.is-expanded>td:nth-child(2):before{content:'Location: ';color:var(--fc-muted,#64748b)}
  .attendance-record-detail tr.is-expanded>td:nth-child(5):before{content:'Hours: ';color:var(--fc-muted,#64748b)}
  .attendance-record-detail tr.is-expanded .attendance-time-cell{flex-wrap:wrap;gap:8px}
  .attendance-record-detail .attendance-time-edit{min-width:0;grid-template-columns:minmax(0,1fr) 28px 28px}
  .attendance-record-detail .attendance-time-edit input[data-native-attendance]{width:100%;min-width:0;max-width:100%}
  .attendance-record-detail .attendance-daily td[colspan]{display:block;padding:8px;overflow-wrap:anywhere}
}
/* Compact mobile employee summaries and softly separated daily records. */
@media screen and (max-width:760px){
  .attendance-employee-card{grid-template-columns:32px minmax(0,1fr) 16px;min-height:0;gap:8px 10px;padding:11px 12px;border-radius:12px}
  .attendance-employee-card>.attendance-avatar{grid-column:1;grid-row:1;width:32px;height:32px;font-size:12px}
  .attendance-employee-card>.attendance-person{grid-column:2;grid-row:1;gap:1px}
  .attendance-employee-card .attendance-person strong{font-size:12px;line-height:1.3}
  .attendance-employee-card .attendance-person small{font-size:10px;line-height:1.3}
  .attendance-employee-card .attendance-person em{padding:2px 6px;font-size:9px;line-height:1.3}
  .attendance-employee-card>.attendance-chevron{grid-column:3;grid-row:1;align-self:center;font-size:20px;font-weight:400}
  .attendance-employee-card>.attendance-card-metrics{grid-column:1/-1;grid-row:2;gap:6px;padding-top:7px}
  .attendance-employee-card .attendance-card-metrics strong{font-size:14px;line-height:1.3}
  .attendance-employee-card .attendance-card-metrics small{font-size:9px;line-height:1.3}
  .attendance-record-detail .attendance-daily,
  .attendance-record-detail .attendance-daily .attendance-table-wrap,
  .attendance-record-detail .attendance-daily table{border:0!important;box-shadow:none!important}
  .attendance-record-detail .attendance-daily .attendance-table-wrap{border-radius:0;padding:2px 10px 12px}
  .attendance-record-detail .attendance-daily tbody{gap:8px}
  .attendance-record-detail .attendance-daily tr[data-attendance-row]{border:0;box-shadow:0 2px 7px rgba(15,23,42,.10)}
  html[data-theme=dark] .attendance-record-detail .attendance-daily tr[data-attendance-row]{box-shadow:0 2px 8px rgba(0,0,0,.35)}
}

@media screen and (max-width:760px){
  .attendance-record-detail .attendance-detail-metrics:has(.overtime-summary-card){grid-template-columns:repeat(2,minmax(0,1fr))}
  .attendance-record-detail .attendance-detail-metrics:has(.overtime-summary-card)>article{grid-column:auto}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:first-child{grid-column:1;grid-row:1;max-width:70px;align-self:center}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(7){grid-column:1/-1;grid-row:1;padding-left:75px;pointer-events:none}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(3){grid-column:1;grid-row:2}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(4){grid-column:2;grid-row:2}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(2){grid-column:1;grid-row:3}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(5){grid-column:2;grid-row:3;text-align:right}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(6){grid-column:1/-1;grid-row:4}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(8){grid-column:1/-1;grid-row:4}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row] .attendance-actions{justify-content:flex-end}
}
@media screen and (max-width:760px){
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]{align-items:stretch;column-gap:12px;row-gap:8px}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td{align-content:center}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:is(:nth-child(2),:nth-child(3),:nth-child(4),:nth-child(5),:nth-child(6),:nth-child(8)){min-height:30px;padding-top:7px;padding-bottom:3px}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row]>td:nth-child(5){text-align:left}
  .attendance-record-detail .attendance-daily tr.is-expanded:not(.editing)[data-attendance-row] .attendance-actions{justify-content:flex-start}
  .attendance-record-detail .attendance-actions [data-edit-lunch]{width:auto;max-width:none;flex:1;min-width:0}
  .attendance-record-detail .attendance-actions .attendance-delete{width:44px;height:44px}
}

.attendance-session-hours{display:block;white-space:nowrap;font-size:9px;line-height:1.5;color:var(--fc-muted,#64748b)}

.attendance-period-controls{display:flex;gap:10px;flex-wrap:wrap}.attendance-period-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted,#7484a0)}.attendance-period-controls select{min-width:112px;height:40px;border:1px solid var(--border,#dbe3f0);border-radius:10px;background:var(--card,#fff);color:var(--text,#112244);padding:0 12px;font:inherit}@media(max-width:600px){.attendance-title-actions{max-width:100%}.attendance-period-controls{gap:8px}.attendance-period-controls select{min-width:90px}}
