.attendance{font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#1c3046;max-width:1600px;margin:0 auto;padding:24px;box-sizing:border-box;min-width:0;background:#f4f7fa}.attendance *{box-sizing:border-box}.attendance h1{font-size:28px;margin:2px 0 5px}.attendance h2{font-size:19px}.attendance h3{font-size:16px}.attendance p{margin:6px 0 12px}.attendance small{display:block;font-size:12px;color:#65758a}.attendance .att-eyebrow{font-size:12px;letter-spacing:1px;color:#59738f;margin:0}.att-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:20px}.att-actions,.att-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.attendance button,.attendance input,.attendance select{font:inherit;border:1px solid #d4dfeb;border-radius:8px;background:white;color:#243b53;padding:8px 12px;min-height:38px}.attendance button{cursor:pointer}.attendance button:hover{background:#eaf1f8}.attendance button:disabled{opacity:.5;cursor:default}.attendance button:focus-visible,.attendance input:focus-visible,.attendance select:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.attendance label{display:inline-flex;flex-direction:column;gap:4px;font-size:12px;color:#526a83}.attendance .att-primary{background:#245b87;color:#fff;border-color:#245b87}.att-note{background:#eef4fa;border:1px solid #d6e4f1;border-radius:10px;padding:12px 16px;margin:12px 0;color:#49617a;font-size:13px}.attendance .att-warning{color:#9a4712;background:#fff7e9;border-color:#f1d2a0}.att-filters{margin:20px 0}.att-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.att-cards>div{background:#fff;border:1px solid #e0e7ef;border-radius:12px;padding:18px;box-shadow:0 4px 14px #234e7006}.att-cards strong{display:block;font-size:24px;color:#234e70;margin-top:6px;word-break:break-word}.att-cards em{font-style:normal;font-size:13px;font-weight:400;margin-left:5px}.att-tabs{display:flex;gap:6px;overflow:auto;margin-bottom:12px}.attendance .att-tabs button{white-space:nowrap;border-color:transparent;background:transparent}.attendance .att-tabs .active{background:#234e70;color:white}.att-panel{background:white;border:1px solid #dfe7ef;border-radius:12px;padding:16px;min-width:0}.att-table{overflow:auto;max-height:65vh;border:1px solid #e4ebf2;border-radius:8px;max-width:100%}.att-table table{border-collapse:separate;border-spacing:0;white-space:nowrap;font-size:13px;min-width:100%}.att-table th,.att-table td{padding:10px 12px;border-bottom:1px solid #e8eef4;border-right:1px solid #eef3f7;text-align:left;vertical-align:top}.att-table th{background:#eef3f8;color:#3c556e;position:sticky;top:0;z-index:2}.att-table th:first-child,.att-table td:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:110px}.att-table th:first-child{background:#eef3f8;z-index:3}.att-table tr:hover td{background:#f8fbfd}.attendance .att-link{color:#1d6397;border:0;background:transparent;min-height:0;padding:0;font-weight:600}.attendance .att-cell{border:0;background:transparent;padding:0;min-height:0}.att-tag{display:inline-block;padding:3px 8px;border-radius:5px;background:#e9f4f0;color:#26634d;font-size:12px}.att-tag.att-warn{background:#fff0d9;color:#965012}.att-tag.att-neutral{background:#eef1f5;color:#7c8998}.att-columns{margin-bottom:12px}.att-columns summary{cursor:pointer;color:#45647e}.att-columns label{display:inline-flex;flex-direction:row;align-items:center;margin:8px 14px 0 0;font-size:13px}.att-columns input{min-height:0}.att-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px}.att-empty{text-align:center!important;padding:30px!important;color:#75869a}.att-dialog{width:min(900px,92vw);max-height:86vh;padding:24px;border:1px solid #d4dfeb;border-radius:14px;color:#243b53}.att-dialog::backdrop{background:#122c4570}.att-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.att-pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 inherit;max-height:350px;overflow:auto;background:#f5f8fb;border-radius:8px;padding:12px}.att-message{color:#a43d1a;padding-top:12px}.att-person-select{margin-bottom:14px}body:has(>.attendance){margin:0;background:#f4f7fa}@media(max-width:800px){.attendance{padding:14px}.att-head{align-items:start;flex-direction:column}.att-actions{width:100%}.att-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.att-cards>div{padding:12px}.att-cards strong{font-size:20px}.att-filters label{flex:1;min-width:130px}.att-filters input,.att-filters select{width:100%;min-width:0}.att-panel{padding:10px}.att-dialog{padding:16px}.att-table{max-height:60vh}}
/* Filters share a row even on narrow phones; only the clear action wraps. */
.att-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end;gap:10px}.att-filters label{display:flex;min-width:0;width:100%;flex:none}.att-filters input,.att-filters select{height:40px;min-height:40px;width:100%;min-width:0;font-size:14px;line-height:20px;padding:8px 10px}.att-filters button{height:40px;min-height:40px;white-space:nowrap}.att-filters input[type=search]{appearance:none;-webkit-appearance:none}.attendance .att-tone{background:var(--att-tone-bg);color:var(--att-tone-fg)}.attendance .att-count-positive{background:var(--att-tone-bg);color:var(--att-tone-fg);border-radius:5px;padding:2px 7px;margin:-2px -7px}.att-abnormal-heading{color:var(--att-tone-fg);border-bottom:2px solid var(--att-tone-bg);padding-bottom:2px}.att-columns-actions{display:flex;gap:8px;margin-top:10px}.attendance .att-columns-actions button{min-height:32px;padding:4px 10px;font-size:12px}.att-columns input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none}.att-legend{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:12px;color:#657586;margin:0 0 10px}.att-legend span::before{content:"";display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:5px}.att-legend-normal::before{background:#85aaa9}.att-legend-abnormal::before{background:#bd9270}.att-legend-neutral::before{background:#b6c0cb}.att-detail-note{font-size:12px;color:#65758a}.att-dialog .att-table{max-height:45vh}.att-tag{white-space:nowrap}
@media(max-width:800px){.att-filters{gap:8px}.att-filters label{min-width:0;flex:none}.att-filters input,.att-filters select{min-width:0;width:100%}}
@media(max-width:479px){.att-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 6px}.att-filters>button{grid-column:3;justify-self:end;padding:8px 10px;font-size:13px}.att-filters input,.att-filters select{padding:8px 6px}.att-filters label{font-size:12px}.att-legend{gap:5px 10px;font-size:11px}}
/* The app's generic dialog hides overflow; attendance owns its vertical scroll. */
.attendance .att-dialog{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}.attendance .att-dialog .att-table{max-height:none;overscroll-behavior-x:contain}.att-neighbor-context{margin-top:20px;padding-top:8px;border-top:1px solid #e4ebf2}.att-neighbor-context td:nth-child(n+3){white-space:normal;min-width:180px;max-width:300px;overflow-wrap:anywhere}.att-neighbor-context td:nth-child(5){min-width:220px}.att-neighbor-context td>div+div{margin-top:7px}.att-neighbor-context .att-context-current td,.att-neighbor-context .att-context-current:hover td{background:#eef5fc}.att-neighbor-context .att-context-current td:first-child{box-shadow:inset 3px 0 #366ea0;font-weight:600}

/* Shared column editor and row selector remain usable on narrow screens. */
.att-columns-actions{flex-wrap:wrap}.att-pagination{flex-wrap:wrap;gap:8px}.attendance .att-page-size{display:flex;flex-direction:row;align-items:center;gap:6px;margin-right:auto;white-space:nowrap}.att-page-size select{min-height:38px;padding:6px 8px}.attendance .att-tag.att-tone{border:1px solid var(--att-tone-border);font-weight:600}.att-legend-abnormal::before{background:#d97755}.att-abnormal-heading{border-bottom-color:var(--att-tone-border)}
@media(max-width:479px){.att-pagination{font-size:12px;gap:6px}.attendance .att-pagination button{font-size:12px;padding:6px 8px}.attendance .att-page-size{font-size:12px;gap:4px}.attendance .att-page-size select{font-size:12px;padding:6px}}
.att-positive-heading{color:var(--att-tone-fg);border-bottom:2px solid var(--att-tone-border);padding-bottom:2px}
/* Compact actions, filters, and metrics, shared with the read-only snapshot. */
.attendance .att-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.attendance .att-head{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:10px}
.attendance .att-title{display:flex;align-items:baseline;gap:12px;flex-shrink:0}
.attendance .att-title h1{margin:0}
.attendance .att-month{font-size:13px;font-weight:400;color:#718095;white-space:nowrap}
.attendance .att-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:100%;min-width:0}
.attendance .att-period-actions,.attendance .att-export-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;min-width:0}
.attendance .att-export-actions:empty{display:none}
.attendance .att-actions button,.attendance .att-actions input{height:40px;min-height:40px;max-width:100%;margin:0;padding:8px;font-size:14px;line-height:22px;border-radius:8px;white-space:nowrap}
.attendance .att-actions label{min-width:0;gap:0}
.attendance .att-actions input[type=month]{width:140px;min-width:0}
.attendance .att-actions input[type=month]::-webkit-calendar-picker-indicator{width:16px;height:16px;margin:0 0 0 4px;padding:0}
.attendance .att-filters{grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr)) auto;gap:8px;margin:10px 0;align-items:center}
.attendance .att-filters label{gap:0;min-width:0}
.attendance .att-filters button{padding:8px 10px}
.attendance .att-cards{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) repeat(2,minmax(0,1fr));gap:0;margin:10px 0 12px;background:#eef4f8;border:1px solid #dce5ee;border-radius:10px;overflow:hidden}
.attendance .att-cards>div{min-width:0;padding:8px 10px;border:0;border-right:1px solid #dce5ee;border-radius:0;background:transparent;box-shadow:none}
.attendance .att-cards>div:last-child{border-right:0}
.attendance .att-cards small{font-size:12px;line-height:1.4}
.attendance .att-metric-context{font-size:11px;white-space:nowrap}
.attendance .att-cards strong{font-size:19px;line-height:1.35;margin-top:2px;overflow-wrap:anywhere}
.attendance .att-cards em{font-size:11px;margin-left:4px;white-space:nowrap}
@media(max-width:479px){
 .attendance .att-actions{gap:6px}.attendance .att-actions button,.attendance .att-actions input{font-size:16px;height:42px;min-height:42px}
 .attendance .att-period-actions{width:100%}.attendance .att-export-actions{max-width:100%;gap:6px}.attendance .att-export-actions button{padding:8px 6px}
 .attendance .att-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.attendance .att-filters>button{grid-column:auto;justify-self:stretch}
 .attendance .att-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance .att-cards>div{padding:7px 10px}.attendance .att-cards>div:nth-child(2){border-right:0}.attendance .att-cards>div:nth-child(-n+2){border-bottom:1px solid #dce5ee}.attendance .att-cards strong{font-size:18px}.attendance .att-title{gap:10px}
}

/* Annual leave shares the existing personnel controls and dialog. */
.att-leave-active>.att-head .att-actions,.att-leave-active>.att-head .att-month,.att-leave-active>.att-note,.att-leave-active>.att-filters,.att-leave-active>.att-cards,.att-leave-active>.att-legend{display:none}
.att-leave-head{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-bottom:12px}.att-leave-head label{min-width:0}.att-leave-head select,.att-leave-head button{min-height:40px;max-width:100%}.att-leave-value{text-align:left;white-space:normal;min-width:150px;line-height:1.6}.attendance [data-leave-root]{min-width:0}.attendance [data-leave-root] .att-table{max-width:100%}

.att-plan-dot{font-size:.55em;margin-left:.28em;color:var(--att-tone-fg,#607d8b);vertical-align:super;opacity:.8}.att-plan-pending{font-size:11px;color:#687c8f;white-space:normal}

/* Exception explanations and processing stay readable inside the scrolling table. */
.attendance.att-issues-active #attContent .att-table td:nth-child(n+4){white-space:normal;min-width:160px;max-width:320px;overflow-wrap:anywhere}

/* Monthly exchange uses the attendance page form palette and spacing. */
.offset-rule-form{display:grid;gap:16px}.offset-rule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.offset-rule-form label,.offset-approver{display:grid;gap:8px;font-size:14px;color:var(--text,#1c3046)}.offset-rule-form input,.offset-approver select{box-sizing:border-box;width:100%;border:1px solid var(--line,#d7dde5);border-radius:10px;padding:10px 12px;background:var(--card,#fff);color:inherit;font:inherit}.offset-rule-note{padding:14px 16px;background:var(--soft,#f3f7fa);border:1px solid var(--line,#e4ebf2);border-radius:12px;font-size:13px;line-height:1.7}.offset-rule-form p{margin:0;font-size:13px;line-height:1.7}.offset-rule-form footer{display:flex;gap:10px;justify-content:flex-end}.offset-rule-form button{padding:10px 18px;border:1px solid var(--line,#d7dde5);border-radius:10px;font:inherit;cursor:pointer}.offset-rule-form button[type=submit]{background:var(--brand,#0f5f7a);color:white;border-color:var(--brand,#0f5f7a)}.offset-approver{margin:14px 0}.offset-approver small{color:#65758a}@media(max-width:600px){.offset-rule-fields{grid-template-columns:1fr}.offset-rule-form footer button{flex:1}}

/* Five main lists only: dialogs retain their original sizing and density. */
.attendance.att-main-list-active #attContent>.att-table{max-height:78vh;max-height:78dvh}
.attendance.att-main-list-active #attContent>.att-table table{font-size:13px;line-height:1.45}
.attendance.att-main-list-active #attContent>.att-table th,.attendance.att-main-list-active #attContent>.att-table td{padding:6px 10px}
.attendance.att-main-list-active #attContent>.att-table small{font-size:12px;line-height:1.45}
.attendance.att-main-list-active #attContent>.att-table td:first-child .att-link{white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:180px}
.attendance.att-main-list-active #attContent>.att-table .att-leave-value{font-size:13px;line-height:1.45}
.attendance.att-main-list-active #attContent>.att-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px 8px;margin-top:8px;font-size:12px;line-height:1.45}
.attendance.att-main-list-active .att-pagination-info,.attendance.att-main-list-active .att-pagination-actions{display:flex;align-items:center;gap:6px 8px;min-width:0}
.attendance.att-main-list-active .att-pagination-info{flex-wrap:wrap}
.attendance.att-main-list-active .att-pagination-actions{flex-wrap:nowrap}
.attendance.att-main-list-active .att-pagination .att-page-size{display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
.attendance.att-main-list-active .att-pagination button,.attendance.att-main-list-active .att-pagination select{height:32px;min-height:32px;padding:4px 8px;font-size:12px;line-height:20px;border-radius:6px;white-space:nowrap}
.attendance.att-main-list-active .att-pagination select{font-size:12px!important;appearance:none;-webkit-appearance:none;padding-right:24px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23526a83' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 7px center;background-size:12px 12px}
.attendance.att-main-list-active .att-pagination svg{width:12px;height:12px;flex:none}
@media(max-width:800px){.attendance.att-main-list-active #attContent>.att-table{max-height:72vh;max-height:72dvh}}
@media(max-width:600px){.attendance.att-main-list-active #attContent>.att-pagination{flex-direction:column;align-items:stretch}.attendance.att-main-list-active .att-pagination-info{justify-content:space-between}.attendance.att-main-list-active .att-pagination-actions{justify-content:flex-end}}

/* Readable compact columns only in the three personal attendance sheets. */
.offset-sheet .home-att-table table.home-personal-table{width:100%;min-width:620px;table-layout:fixed}
.offset-sheet .home-att-table .home-personal-table th,.offset-sheet .home-att-table .home-personal-table td{box-sizing:border-box;padding:6px;font-size:13px;line-height:1.45;min-width:0;white-space:normal;overflow-wrap:anywhere}
.offset-sheet .home-att-table .home-personal-table th:nth-child(1){width:88px}
.offset-sheet .home-att-table .home-personal-table td:nth-child(1){white-space:nowrap}
.offset-sheet .home-att-table .home-personal-table th:nth-child(2){width:64px}
.offset-sheet .home-att-table .home-personal-table th:nth-child(3){width:64px}
.offset-sheet .home-att-table .home-personal-table th:nth-child(4){width:96px}
.offset-sheet .home-att-table .home-personal-table th:nth-child(5),.offset-sheet .home-att-table .home-personal-table th:nth-child(6){width:104px}
.offset-sheet .home-att-table .home-personal-table th:nth-child(7){width:100px}
.offset-sheet .home-att-table [data-home-attendance-kind=accumulation] th:nth-child(4){width:100px}
.offset-sheet .home-att-table [data-home-attendance-kind=accumulation] th:nth-child(7){width:96px}
.offset-sheet .home-att-table table[data-home-attendance-kind=issues]{min-width:680px}
.offset-sheet .home-att-table [data-home-attendance-kind=issues] th:nth-child(3),.offset-sheet .home-att-table [data-home-attendance-kind=issues] th:nth-child(4){width:156px}
.offset-sheet .home-att-table [data-home-attendance-kind=issues] th:nth-child(5){width:120px}
.offset-sheet .home-att-table [data-home-attendance-kind=issues] th:nth-child(6){width:96px}
.offset-sheet .home-personal-table .home-punch-date,.offset-sheet .home-personal-table .home-punch-time{display:block;white-space:nowrap}
.offset-sheet .home-personal-table .home-punch-date{font-size:12px;color:#65758a}
.offset-sheet .home-personal-table small{font-size:12px;line-height:1.45}

/* Home schedule and accumulation fit the drawer; other attendance tables keep their layout. */
.offset-sheet .home-att-table.home-att-fit{box-sizing:border-box;max-width:100%;overflow:visible}
.offset-sheet .home-att-fit table.home-personal-table{min-width:0;width:100%;table-layout:fixed}
.offset-sheet .home-att-fit .home-personal-table th:nth-child(n){width:auto}
.offset-sheet .home-att-fit .home-personal-table th:nth-child(1){width:13%}
.offset-sheet .home-att-fit .home-personal-table th:nth-child(2){width:15%}
.offset-sheet .home-att-fit .home-personal-table th:nth-child(5),.offset-sheet .home-att-fit .home-personal-table th:nth-child(6){width:17%}
.offset-sheet .home-att-fit .home-personal-table td:nth-child(n),.offset-sheet .home-att-fit .home-punch-date,.offset-sheet .home-att-fit .home-punch-time{min-width:0;white-space:normal;overflow-wrap:anywhere}
.offset-sheet .home-att-fit [data-open-day]{box-sizing:border-box;min-width:0;width:100%;max-width:100%;padding:0}
.offset-sheet .home-att-fit .att-tag.att-tone{box-sizing:content-box;max-width:min(4em,calc(100% - 10px));padding:3px 4px;white-space:normal;overflow-wrap:anywhere;word-break:break-all;vertical-align:top}
@media(max-width:600px){.offset-sheet .home-att-fit .home-personal-table th,.offset-sheet .home-att-fit .home-personal-table td{padding:6px 2px;font-size:12px}.offset-sheet .home-att-fit .home-personal-table small,.offset-sheet .home-att-fit .home-punch-date{font-size:11px}}

.offset-rule-form label{align-content:start}

.offset-rule-form footer{background:var(--card,#fff)}
