.attendance-board {
 --attendance-line:var(--ltn-border-color,#dfe3e8);
 --attendance-surface:#fff;
 display:grid;
 gap:12px;
 min-width:0;
}
.attendance-toolbar,.attendance-toolbar-group,.attendance-axis,.attendance-legend,.attendance-checks,.attendance-dialog-meta {
 display:flex;
 align-items:center;
 gap:8px;
 flex-wrap:wrap;
}
.attendance-toolbar {gap:8px 14px}
.attendance-toolbar h2 {font-size:18px;margin:0;line-height:32px}
.attendance-toolbar-filters {flex:1 1 auto}
.attendance-toolbar-end {margin-inline-start:auto}
.attendance-toolbar .button {min-height:32px}
.attendance-toolbar :is(input,select,.button) {margin:0}
.attendance-toolbar select {width:auto;max-width:100%}
.attendance-toolbar input[type=date] {width:135px}
.attendance-search-field {position:relative;flex:0 1 210px;min-width:160px}
.attendance-search-field input {width:100%;padding-inline-start:30px}
.attendance-search-field>span {
 position:absolute;inset-inline-start:10px;top:50%;transform:translateY(-50%);
 display:flex;color:var(--ltn-secondary-color,#525d6a);pointer-events:none;
}
.attendance-period-nav {
 display:inline-flex;align-items:center;flex:none;
 border:1px solid var(--attendance-line);border-radius:6px;background:#fff;
}
.attendance-period-nav .button {
 height:30px;min-height:30px;border:0;padding:0 8px;white-space:nowrap;
}
.attendance-period-nav .button:hover {background:var(--ltn-primary-soft,#edf4fc)}
.attendance-export {position:relative;z-index:4}
.attendance-export>summary {cursor:pointer;list-style:none}
.attendance-export>div {
 position:absolute;right:0;top:calc(100% + 5px);
 min-width:max-content;padding:6px;
 background:#fff;border:1px solid var(--attendance-line);border-radius:8px;
 box-shadow:0 6px 20px #172b4819;
}
.attendance-export>div .button {display:flex;width:100%;justify-content:flex-start}
.attendance-scroll {
 overflow:auto;max-height:65vh;background:#fff;
 border:1px solid var(--attendance-line);border-radius:8px;
}
.attendance-grid {width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:14px}
.attendance-grid.is-month {min-width:1070px}
.attendance-grid.is-week:has(thead th:nth-child(8)) {min-width:840px}
.attendance-grid th,.attendance-grid td {padding:6px;border-right:1px solid var(--attendance-line);border-bottom:1px solid var(--attendance-line);vertical-align:top}
.attendance-grid tr>*:last-child {border-right:0}
.attendance-grid tbody tr:last-child>* {border-bottom:0}
.attendance-grid thead th {position:sticky;top:0;z-index:2;background:#f3f7fc;text-align:center;font-weight:500;padding-block:9px}
.attendance-grid thead th span,.attendance-grid thead th strong {display:block}
.attendance-grid .attendance-sticky {position:sticky;left:0;z-index:1;width:150px;background:#fbfcfe;text-align:left;padding:9px}
.attendance-grid .attendance-employee-col {position:sticky;left:150px;z-index:1;width:132px;background:#fbfcfe;text-align:left}
.attendance-grid thead :is(.attendance-sticky,.attendance-employee-col) {z-index:3;background:#f3f7fc}
.attendance-grid .attendance-today {color:#005aca;background:#e9f3ff}
.attendance-grid .attendance-today strong {margin:3px auto 0;width:24px;line-height:24px;border-radius:50%;background:#0067ee;color:white}
.attendance-grid tbody th small {display:block;font-size:12px;font-weight:400;color:var(--ltn-secondary-color,#525d6a)}
.attendance-grid .attendance-empty {padding:22px 12px;text-align:center;color:var(--ltn-secondary-color,#525d6a)}
.attendance-grid .attendance-axis {justify-content:space-between}
.attendance-grid.is-month td {padding:3px}
/* Marker colors sampled from the attendance reference. Darker text stays readable on tints. */
.attendance-cell,.attendance-chip,.attendance-legend>span {
 --marker:#9aa2ac;--tone:#525d6a;--tint:#eef1f4;
}
.attendance-board .ok,.attendance-chip.ok {--marker:#1d64f0;--tone:#174ba7;--tint:#eaf3ff}
.attendance-board .late,.attendance-chip.late {--marker:#9243fd;--tone:#6430a9;--tint:#f1ebfc}
.attendance-board .partial,.attendance-chip.partial {--marker:#fa101d;--tone:#a62830;--tint:#ffeded}
.attendance-board .pending,.attendance-chip.pending {--marker:#fb7e1f;--tone:#8a470c;--tint:#fff4e2}
.attendance-board .leave,.attendance-chip.leave {--marker:#9aa2ac;--tone:#525d6a;--tint:#eef1f4}
.attendance-board .recorded,.attendance-chip.recorded {--marker:#078477;--tone:#06766c;--tint:#e8f7f2}
.attendance-cell {
 display:block;width:100%;text-align:left;padding:6px 7px;margin-bottom:4px;
 border:1px solid transparent;border-radius:6px;background:var(--tint);color:var(--tone);
 cursor:pointer;overflow-wrap:anywhere;
}
.attendance-cell:last-child {margin-bottom:0}
.attendance-cell:hover {border-color:var(--tone)}
.attendance-cell[aria-pressed=true] {outline:2px solid #0070f4;outline-offset:-2px}
.attendance-cell:disabled {opacity:.5;cursor:default}
.attendance-cell small {display:block;font-size:12px}
.attendance-cell i,.attendance-legend i {
 display:inline-block;flex:none;width:6px;height:6px;
 border-radius:50%;background:var(--marker);margin-inline-end:5px;
}
.attendance-grid.is-month .attendance-cell {
 display:grid;place-items:center;height:28px;padding:4px;
 background:transparent;
}
.attendance-grid.is-month .attendance-cell:is(:hover,:focus-visible,[aria-pressed=true]) {background:var(--tint)}
.attendance-grid.is-month .attendance-cell:is(.future,.cancelled) {background:var(--tint)}
.attendance-grid.is-month .attendance-cell i {margin:0}
.attendance-grid.is-month .attendance-cell-name {display:none}
.attendance-legend {
 color:var(--ltn-text-color,#15171a);font-size:14px;font-weight:400;
 line-height:20px;gap:6px 18px;padding:4px 0;
}
.attendance-legend>span {display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.attendance-legend i {
 position:relative;width:13px;height:13px;margin:0;
}
.attendance-legend :is(.ok,.late,.partial,.pending,.leave) i::after {
 content:"";position:absolute;left:3px;top:3px;width:6px;height:3px;
 border:solid white;border-width:0 0 1.5px 1.5px;
 transform:rotate(-45deg);
}
.attendance-chip {
 background:var(--tint);color:var(--tone);padding:3px 8px;border-radius:5px;
 font-size:14px;line-height:20px;font-weight:500;
}
.attendance-history {max-height:300px;overflow:auto}
.attendance-history>div {padding:8px;border-bottom:1px solid var(--ltn-border-color,#dfe3e8)}
.attendance-history small {display:block;color:var(--ltn-secondary-color,#525d6a)}
.attendance-dialog-meta {gap:6px 12px;margin-bottom:12px}
.attendance-dialog-tabs {margin:12px 0}
.attendance-readonly {border:0;padding:0;min-width:0}
@media(max-width:750px){
 .attendance-toolbar-end {margin-inline-start:0}
 .attendance-toolbar-filters {flex-basis:100%;min-width:0}
 .attendance-search-field {flex-basis:190px}
 .attendance-grid .attendance-sticky {width:115px}
 .attendance-grid .attendance-employee-col {left:115px;width:108px}
}
