*{box-sizing:border-box}body{margin:0;background:#f6f9fe;color:#172447;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.wrap{max-width:1440px;margin:auto;padding:20px 28px 50px}.nav{height:64px;background:#ffffffed;border:1px solid #e5edf8;border-radius:20px;display:flex;align-items:center;gap:8px;padding:0 16px;box-shadow:0 12px 40px #6b91c015;position:sticky;top:14px;z-index:20}.brand{font-size:20px;font-weight:800;margin-right:22px;display:flex;align-items:center;gap:10px}.mark{width:30px;height:30px;border-radius:10px;background:linear-gradient(145deg,#b6e9ff,#438cff);transform:rotate(-10deg);box-shadow:0 8px 18px #438cff35}.nav a{color:#667697;text-decoration:none;padding:10px 13px;border-radius:11px}.nav a:hover,.nav a.on{background:#edf5ff;color:#1768ee}.nav .right{margin-left:auto}.hero{margin-top:25px;background:linear-gradient(105deg,#fff,#edf6ff);border:1px solid #e5edf8;border-radius:22px;padding:28px}.hero h1{margin:5px 0;font-size:30px}.muted{color:#7a89a7}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px 0}.card,.panel{background:#fff;border:1px solid #e5edf8;border-radius:18px;box-shadow:0 8px 28px #7697c010}.card{padding:20px}.number{font-size:29px;font-weight:800;margin-top:7px}.panel{padding:22px;margin-top:18px}.head{display:flex;align-items:center;gap:10px}.head h2{margin:0}.head .tools{margin-left:auto;display:flex;gap:8px}input,select,textarea{border:1px solid #dfe8f4;background:#fbfdff;border-radius:11px;padding:10px 12px;color:#23345b;outline:none}.search{min-width:250px}.btn{border:0;border-radius:10px;padding:9px 13px;cursor:pointer}.blue{background:#e6f1ff;color:#1768ee}.green{background:#17c979;color:#fff}.red{background:#ff5c6c;color:#fff}.table{width:100%;border-collapse:collapse;margin-top:14px}.table th,.table td{text-align:left;padding:13px 10px;border-bottom:1px solid #edf1f7;font-size:14px}.tag{padding:6px 9px;border-radius:9px;font-size:12px;display:inline-block}.Pending{background:#fff2d9;color:#a96800}.Approved{background:#dcf8ea;color:#08794a}.Rejected{background:#ffe4e9;color:#c82d48}.type{background:#e8f2ff;color:#1768ee}.empty{text-align:center;padding:45px;color:#8a99b5}.drawer{position:fixed;top:14px;right:-460px;bottom:14px;width:430px;background:#fff;border:1px solid #dfe8f4;border-radius:24px;box-shadow:-20px 0 60px #244f8b2b;padding:24px;z-index:50;transition:.24s;overflow:auto}.drawer.show{right:14px}.x{float:right;border:0;background:#f2f6fb;border-radius:10px;padding:8px 11px}.row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f7}.actions{display:flex;gap:10px;margin-top:18px}.actions button{flex:1}.modalbg{display:none;position:fixed;inset:0;background:#15264a50;z-index:70;align-items:center;justify-content:center}.modalbg.show{display:flex}.modal{width:390px;background:#fff;border-radius:20px;padding:24px}.modal textarea{width:100%;height:100px;margin:12px 0}.bars{margin-top:18px}.bar{margin:13px 0}.track{height:10px;background:#eef3f9;border-radius:99px;overflow:hidden}.fill{height:100%;background:linear-gradient(90deg,#9bdcff,#438cff);border-radius:99px}.login{min-height:100vh;display:grid;place-items:center;background:#f5f9ff}.loginbox{width:380px;background:#fff;border:1px solid #e3edf8;border-radius:24px;padding:30px;box-shadow:0 25px 70px #6b8fb526}.loginbox input{width:100%;margin:7px 0 13px}.loginbox button{width:100%;padding:12px}@media(max-width:900px){.grid4{grid-template-columns:1fr 1fr}.nav a:nth-of-type(n+5){display:none}.wrap{padding:14px}.table th:nth-child(3),.table td:nth-child(3){display:none}}.nav-form{margin:0}.nav-logout{border:0;background:transparent;padding:10px 13px;color:#667697;cursor:pointer;border-radius:11px;font-size:inherit}.nav-logout:hover{background:#edf5ff;color:#1768ee}.settings-form{display:grid;gap:14px;max-width:480px}.settings-form label{display:grid;gap:6px;font-size:14px;font-weight:600}.settings-form input:not([type=checkbox]){width:100%}.settings-form .btn{justify-self:start}.settings-form .checkbox-label{display:flex;align-items:center;gap:9px}.flash{border-radius:12px;padding:12px 16px;margin-top:18px}.flash.success{background:#ddf8e9;color:#14603d}.flash.error{background:#ffe3e9;color:#aa2546}.error{color:#c82d48}.btn:disabled{opacity:.55;cursor:not-allowed}

/* Theme-matched status picker, independent of OS menu styling. */
.lf-select{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-width:155px;padding:10px 14px;border:1px solid #dce7f6;border-radius:12px;background:linear-gradient(180deg,#fff,#f5f9ff);color:#415879;font:inherit;font-size:14px;cursor:pointer;box-shadow:0 2px 4px #4074ad05;transition:border-color .15s,box-shadow .15s}
.lf-select::after{content:'';width:7px;height:7px;border-right:1.7px solid #7994b8;border-bottom:1.7px solid #7994b8;transform:translateY(-2px) rotate(45deg);transition:transform .15s}
.lf-select:hover{border-color:#a8c7f0;background:#f2f7ff}.lf-select:focus-visible,.lf-select[aria-expanded=true]{outline:none;border-color:#8ab8f5;box-shadow:0 0 0 3px #438cff16}.lf-select[aria-expanded=true]::after{transform:translateY(2px) rotate(225deg)}
.lf-options{position:fixed;z-index:100;padding:6px;border:1px solid #dfe9f8;border-radius:15px;background:#fffffffa;box-shadow:0 14px 40px #345c9424,0 3px 8px #345c940a;max-height:280px;overflow-y:auto;backdrop-filter:blur(16px)}.lf-options[hidden]{display:none}
.lf-option{position:relative;display:flex;align-items:center;gap:10px;padding:11px 34px 11px 12px;border-radius:9px;color:#526888;font-size:14px;cursor:pointer;margin:2px 0}.lf-option::before{content:'';width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#9eb0c9}.lf-option[data-value=Pending]::before{background:#e5ad45}.lf-option[data-value=Approved]::before{background:#24b981}.lf-option[data-value=Rejected]::before{background:#ed7b91}.lf-option:hover,.lf-option.is-active{background:#f0f6ff;color:#2565b8}.lf-option[aria-selected=true]{background:#e8f2ff;color:#1768d5;font-weight:600}.lf-option[aria-selected=true]::after{content:'';position:absolute;right:14px;width:5px;height:9px;border-right:2px solid #438cff;border-bottom:2px solid #438cff;transform:rotate(45deg)}

.saved-records{margin:22px 0 26px}.saved-records h3{font-size:14px;color:#6d83a4;font-weight:600;margin-bottom:4px}.saved-records .table{margin:0}.delete-btn{background:#fff0f3;color:#c4576e}.delete-btn:hover{background:#ffe2e9}.preview-note{display:flex;align-items:center;justify-content:space-between;color:#8393ad;font-size:12px;margin-top:20px}dialog{border:1px solid #dfe8f4;border-radius:20px;padding:28px;max-width:440px;width:90%;box-shadow:0 25px 70px #244f8b30}dialog::backdrop{background:#15264a50;backdrop-filter:blur(3px)}#preview-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#203654;color:white;border-radius:12px;padding:14px 22px;z-index:90}.saved-records{overflow:auto}button:focus-visible{outline:3px solid #9fc5ff;outline-offset:2px}

.period-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:18px 0 4px;margin-top:14px;border-top:1px solid #edf1f7}.month-group{margin-top:22px;border:1px solid #e5edf8;border-radius:14px;overflow:auto}.month-group summary{padding:15px 18px;background:#f5f9ff;cursor:pointer;color:#48668e;font-weight:600}.month-group .table{margin:0}.month-group .table tr:last-child td{border-bottom:0}.export-label{display:flex;align-items:center;justify-content:space-between;margin:20px 0}.period-bar #count{margin-left:auto}.head{flex-wrap:wrap;gap:12px}.head .tools{flex-wrap:wrap}.table td:last-child{white-space:nowrap}
/* Compact date pickers for the preview. */
.lf-select{height:40px;min-width:148px;padding:9px 14px;border-radius:12px;font-weight:500;color:#526c90;background:linear-gradient(180deg,#fff,#f7faff)}
.lf-options{padding:8px;border-color:#e3ebf7;box-shadow:0 16px 42px #375d8d1c,0 2px 6px #375d8d08;border-radius:16px;scrollbar-width:thin;scrollbar-color:#ceddef transparent}
.lf-option{padding:10px 32px 10px 13px;font-size:13px;min-height:37px;transition:background .12s,color .12s}.lf-period-options .lf-option::before{display:none}
.lf-month-options{display:grid;grid-template-columns:1fr 1fr;gap:3px 6px;max-height:min(340px,75vh)}
.lf-month-options .lf-option{margin:0;border-radius:9px;font-variant-numeric:tabular-nums;letter-spacing:.2px}.lf-month-options .lf-option:first-child{grid-column:1 / -1;margin-bottom:5px;border-bottom:1px solid #e9f0fa;border-radius:9px 9px 4px 4px;padding-bottom:12px}.lf-period-options .lf-option[aria-selected=true]{background:#eaf3ff;color:#367ada;font-weight:600}.lf-period-options .lf-option.is-active:not([aria-selected=true]){background:#f4f8ff}.lf-option[aria-selected=true]::after{width:4px;height:8px;border-width:1.6px;right:13px}.lf-month-options[hidden]{display:none}

/* Review iteration: consistent controls and secondary actions. */
.period-bar{gap:12px;align-items:center;padding:20px 0 10px}.period-bar>.muted:first-child{font-size:12px;max-width:155px;line-height:1.5}.period-bar .lf-select{min-width:154px}
.btn,a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-size:13px;font-weight:500;line-height:20px;white-space:nowrap;transition:background .15s,box-shadow .15s,transform .15s}.period-bar .btn{min-height:40px;padding:9px 15px;border-radius:12px}
.btn.apply-period{background:linear-gradient(180deg,#5294ed,#3d7ed8);color:#fff;border:1px solid #397acf;box-shadow:0 3px 7px #3373cc1c}.btn.apply-period:hover{background:#3777ce;box-shadow:0 4px 12px #3373cc2c}.btn.apply-period:active{transform:translateY(1px)}
#trash{background:#fff;border:1px solid #dfe8f5;color:#697f9f;box-shadow:0 2px 3px #4678ad04;gap:9px}#trash:hover{background:#f4f8ff;border-color:#bed3ed;color:#426d9f}.count-badge{display:inline-flex;min-width:21px;height:21px;align-items:center;justify-content:center;background:#edf3fb;color:#7a93b3;border-radius:7px;font-size:11px;padding:0 5px;font-variant-numeric:tabular-nums}
.trash-icon{width:11px;height:12px;border:1.4px solid currentColor;border-top:0;border-radius:0 0 3px 3px;position:relative;margin:3px 2px 0}.trash-icon:before{content:'';position:absolute;left:-3px;right:-3px;top:-3px;border-top:1.4px solid currentColor}.trash-icon:after{content:'';position:absolute;left:2px;top:-6px;width:4px;height:3px;border:1.4px solid currentColor;border-bottom:0;border-radius:2px 2px 0 0}.back-icon{width:8px;height:8px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:3px}
.lf-options{background:#ffffff;border:1px solid #e0e9f5;box-shadow:0 16px 38px #284d7d20,0 2px 5px #284d7d08;padding:8px;border-radius:15px}.lf-month-options{gap:4px 7px;max-height:min(354px,75vh)}.lf-period-options .lf-option{padding:11px 30px 11px 14px;color:#6c819e}.lf-period-options .lf-option:hover{background:#edf5ff;color:#3478d2}.lf-period-options .lf-option[aria-selected=true]{background:#e8f2ff;color:#2c75d7}.lf-period-options .lf-option:first-child{font-weight:600}.lf-select[aria-expanded=true]{background:#fff;border-color:#88b4ec;box-shadow:0 0 0 3px #edf4ff}.lf-select[aria-expanded=true]::after{border-color:#4384d9}
select[hidden]{display:none!important}
@media(max-width:700px){.period-bar>.muted:first-child{max-width:none;width:100%}.period-bar .lf-select{min-width:140px}.period-bar #count{width:100%;margin:0}}

/* Unified action buttons across Settings and Leave previews. */
.btn.blue,.btn:not(.green):not(.red):not(.delete-btn):not(.apply-period){background:#fff;color:#657d9d;border:1px solid #dce6f3;box-shadow:0 2px 4px #3f679307;border-radius:11px;min-height:38px;padding:8px 14px;text-decoration:none;font-weight:500}
.btn.blue:hover,.btn:not(.green):not(.red):not(.delete-btn):not(.apply-period):hover{background:#f7faff;color:#3974bd;border-color:#b9cfeb;box-shadow:0 3px 8px #3f67930b}
#export-open.btn,#export-dialog button[type=submit].btn,.settings-form>.btn.blue{background:linear-gradient(180deg,#5294ed,#3d7ed8);color:white;border:1px solid #397acf;box-shadow:0 3px 7px #3373cc1c;border-radius:11px;min-height:38px}
#export-open.btn:hover,#export-dialog button[type=submit].btn:hover,.settings-form>.btn.blue:hover{background:#3777ce;color:#fff;border-color:#397acf;box-shadow:0 4px 12px #3373cc2c}
.btn:focus-visible{outline:3px solid #aecfff;outline-offset:2px}.btn:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}

/* Compact density, with comfortable hit targets and unchanged page structure. */
body{font-size:13px}.wrap{max-width:1440px;padding:14px 22px 28px}.nav{height:52px;top:10px;border-radius:14px;padding:0 14px;gap:5px}.brand{font-size:18px;margin-right:14px}.mark{width:25px;height:25px;border-radius:8px}.nav a,.nav-logout{padding:8px 10px;font-size:13px}.preview-note{margin:10px 0;font-size:11px}.preview-note .btn{min-height:28px;padding:3px 9px;font-size:11px}.hero{margin-top:12px;padding:16px 20px;border-radius:15px}.hero h1{font-size:23px;margin:4px 0 6px}.hero>.muted{font-size:12px;line-height:1.5}.hero>.muted:first-child{font-size:10px;text-transform:uppercase;letter-spacing:.9px}
.panel{padding:16px 18px;margin-top:12px;border-radius:15px}.head{gap:8px}.head h2,.panel h2{font-size:16px;margin:0}.panel>p{font-size:12px;line-height:1.5;margin:8px 0 12px}.head .tools{gap:8px}.btn,.btn.blue,.btn:not(.green):not(.red):not(.delete-btn):not(.apply-period),#export-open.btn,#export-dialog button[type=submit].btn,.settings-form>.btn.blue{font-size:12px;line-height:18px;min-height:32px;padding:6px 11px;border-radius:9px}.lf-select{height:34px;min-width:120px;padding:7px 11px;font-size:12px;border-radius:9px;gap:20px}.period-bar{gap:8px;margin-top:12px;padding:12px 0 6px}.period-bar .lf-select{min-width:118px}.period-bar .btn{min-height:34px;padding:7px 11px;border-radius:9px}.period-bar .search{min-width:165px;width:200px;height:34px;padding:7px 10px;font-size:12px;border-radius:9px}.period-caption{display:none}.period-bar #count{font-size:11px}.count-badge{min-width:18px;height:18px;font-size:10px;border-radius:5px}.panel>.muted{font-size:11px;margin:4px 0 10px}
.month-group{margin-top:10px;border-radius:10px}.month-group summary{padding:10px 13px;font-size:12px}.table{margin-top:8px}.table th,.table td{font-size:12px;padding:9px 10px}.table th{color:#8798b0;font-weight:500;font-size:11px}.table td .btn{min-height:28px;padding:4px 9px;font-size:11px;border-radius:8px}.table .tag{padding:4px 7px;font-size:10px;border-radius:6px}.table .muted{font-size:11px}.saved-records{margin:12px 0 10px}.saved-records h3{font-size:12px;margin:8px 0 5px}.saved-records>p{font-size:11px;line-height:1.5;margin:8px 0}.compact-editor{margin-top:10px;border-top:1px solid #edf2f8;padding-top:9px}.compact-editor>summary{width:fit-content;color:#477aaf;font-size:12px;font-weight:500;cursor:pointer;padding:6px 0}.compact-editor[open]>summary{margin-bottom:8px}.settings-form{gap:10px;max-width:560px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.settings-form label{font-size:12px;gap:5px}.settings-form input:not([type=checkbox]){height:35px;padding:7px 10px;border-radius:9px}.settings-form .checkbox-label{grid-column:1/-1}.settings-form>.btn{justify-self:start}.settings-form label:has(input[name=approved_group_id]),.settings-form label:has(input[name=telegram_id]){grid-column:1/-1}.settings-form label:has(input[name=approved_group_id]) input,.settings-form label:has(input[name=telegram_id]) input{max-width:360px}.empty{padding:26px}.actions{gap:8px;margin-top:16px}dialog{padding:22px;border-radius:16px}dialog h2{font-size:18px}
@media(max-width:720px){.wrap{padding:10px}.hero{padding:14px}.panel{padding:13px}.nav{gap:2px}.brand{margin-right:5px}.period-bar .search{width:100%;min-width:0}.period-bar .lf-select{min-width:100px}.settings-form{grid-template-columns:1fr}.period-bar #count{width:auto;margin-left:auto}.table th,.table td{padding:8px}}

select.lf-native-select{display:none!important}

/* LeaveFlow: department filters and actual monthly calendar. */
.calendar-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:5px 0 20px}
.calendar-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#607799;font-weight:600}
.calendar-filters input[type=month],.calendar-filters select{height:36px;padding:6px 10px;border:1px solid #dce7f5;border-radius:9px;background:#fff;color:#234367;min-width:158px;font:inherit;font-size:13px}
.calendar-filters .lf-select{height:36px}
.calendar-filters .btn{min-height:36px}
.calendar-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}
.calendar-heading h2{font-size:22px;margin:5px 0}.calendar-nav{display:flex;gap:8px}
.calendar-scroll,.table-scroll{overflow-x:auto;max-width:100%}
.calendar-grid{min-width:720px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid #dce7f5;border-radius:12px;overflow:hidden;background:#fff}
.calendar-weekday{background:#edf4fe;color:#58759c;text-align:center;padding:12px 0;font-size:11px;font-weight:700;border-bottom:1px solid #dae7f8}
.calendar-day{min-height:112px;padding:9px 7px;min-width:0;border-right:1px solid #edf1f8;border-bottom:1px solid #edf1f8;position:relative}
.calendar-day:nth-child(7n){border-right:0}.calendar-day-number{font-size:12px;color:#365275;font-weight:700;display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center}
.calendar-outside{background:#f8faff}.calendar-outside .calendar-day-number{color:#acb9cc}.calendar-today .calendar-day-number{color:#fff;background:#357ed8;border-radius:50%}
.calendar-event{margin:4px 0;padding:5px 6px;border-radius:7px;display:flex;flex-direction:column;gap:2px;min-width:0;font-size:10px;line-height:1.3;border-left:3px solid #39a674;background:#e4f8ee;color:#255b43}
.calendar-event.Pending{border-color:#e1a447;background:#fff3e0;color:#7b5929}.calendar-event-name{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event-team{font-size:9px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-more{font-size:10px;color:#7290b7;margin-top:5px}.calendar-legacy summary{padding:8px 0;cursor:pointer;color:#476fa7;font-weight:650}.calendar-legacy p{margin:10px 0 14px}
.team-calendar-link{display:inline-block;margin-top:15px;text-decoration:none;font-size:12px;color:#3978c6;font-weight:600}
@media(max-width:700px){.calendar-filters label{width:100%}.calendar-filters input[type=month],.calendar-filters select{width:100%}.calendar-heading{align-items:start;flex-direction:column}.calendar-nav{width:100%}}

.language-switch{display:inline-flex;align-items:center;flex-shrink:0;gap:2px;padding:3px;border:1px solid #dfe8f4;border-radius:10px;background:#f5f8fe}.language-switch button{border:0;background:transparent;color:#70819e;padding:6px 9px;font-size:12px;border-radius:7px;cursor:pointer}.language-switch button[aria-pressed=true]{background:#fff;color:#1768ee;box-shadow:0 2px 7px #496b9e18}.language-switch button:focus-visible{outline:2px solid #438cff;outline-offset:2px}.loginbox .language-switch{margin-top:16px}#purge-dialog label{display:grid;gap:8px}#purge-dialog{max-width:520px}button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:850px){.nav{flex-wrap:wrap;height:auto;padding:10px;gap:4px}.nav .brand{margin-right:auto}.language-switch{margin-left:auto}}

/* Legacy language-pending markers must not blank the page. */
html[data-language-pending] body{visibility:visible}
/* Department accents: compact black badges, stable server-assigned colors. */
.department-badge{display:inline-block;background:#202126;color:var(--department-accent);border:1px solid color-mix(in srgb,var(--department-accent) 45%,#202126);border-radius:6px;padding:3px 9px;font-size:.92em;font-weight:600;line-height:1.5;white-space:nowrap;text-decoration:none}
.lf-option[data-department-color],.lf-select[data-department-color]{background:#202126!important;color:var(--department-accent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--department-accent) 45%,#202126)}
.lf-option[data-department-color]::before{display:none}
.lf-option[data-department-color] .department-badge,.lf-select[data-department-color] .department-badge{background:none;border:0;padding:0;font-size:inherit}
.lf-option[data-department-color]:hover{box-shadow:inset 0 0 0 2px var(--department-accent)}


/* Compact operational pages */
.hero{padding:16px 20px!important;margin-top:14px!important}.hero h1{font-size:25px!important;margin:4px 0 7px!important}.panel{padding:16px!important;margin-top:14px!important}.table td,.table th{padding:10px 12px!important}.employee-table{table-layout:fixed}.employee-table th:first-child{width:34%}.employee-table th:last-child{width:20%}.employee-filter{justify-content:flex-start;margin-bottom:12px;align-items:end}.employee-filter label{display:flex;gap:8px;align-items:center}.employee-filter select{min-width:150px}.employee-scroll{overflow-x:auto}.employee-editor summary{cursor:pointer;color:#3575bc}.employee-editor form{display:grid;gap:6px;margin-top:8px}.position-tag{font-weight:650;color:#456080;white-space:nowrap}.dashboard-links{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.compact-dashboard .report-header{margin:14px 0 12px}.compact-dashboard .report-header h1{font-size:24px}.compact-dashboard .report-grid{gap:12px;margin-top:12px}.compact-dashboard .chart-panel{padding:14px!important}.compact-dashboard .report-metric{padding:12px!important}.compact-dashboard .metric-value{font-size:26px}.compact-dashboard .chart-heading{margin-bottom:10px}.compact-dashboard .report-header p{display:none}@media(max-width:700px){.employee-table{min-width:680px}.hero{padding:12px!important}}

.employee-filter{display:flex;gap:10px;flex-wrap:wrap}.employee-editor{display:inline-block;vertical-align:middle;margin-right:8px}.employee-editor[open]{display:block}.employee-table td:last-child>.btn{padding:5px 9px}.employee-table th:first-child{width:32%}
/* Owner-managed staff permissions */
.access-panel{margin-bottom:18px}.access-form{display:grid;gap:15px}.access-identity,.permission-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.access-form label{display:grid;gap:6px;font-size:12px;color:#587394;font-weight:600}.access-form input:not([type=checkbox]),.access-form select{min-height:37px;padding:8px;border:1px solid #dce7f5;border-radius:9px;width:100%;background:white}.access-form .checkbox-label{display:flex;align-items:center;gap:8px;align-self:end}.access-form .checkbox-label input{width:auto}.access-form h3{margin:0}.access-form>.btn{justify-self:start}
/* Complete applicant list on calendar hover, keyboard focus and tap. */
.calendar-more-button{display:block;border:0;background:#edf5ff;padding:5px 7px;border-radius:6px;cursor:pointer;font:inherit;font-size:11px;font-weight:600;color:#326ba5;text-align:left;width:100%}.calendar-more-button:hover,.calendar-more-button:focus-visible{background:#dcecff;outline:2px solid #6a9ed7;outline-offset:1px}
.calendar-hover-detail{position:fixed;z-index:9999;width:min(355px,calc(100vw - 16px));max-height:min(450px,70vh);overflow-y:auto;padding:12px 13px;background:#fff;border:1px solid #b9d3f2;border-radius:12px;box-shadow:0 12px 32px #1c3b5d3d;box-sizing:border-box}.calendar-hover-detail[hidden]{display:none}.calendar-hover-detail h3{font-size:13px;color:#274f7c;margin:0 0 10px}.calendar-popup-row{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;border-top:1px solid #eef2f8;padding:8px 0;font-size:11px}.calendar-popup-row b{min-width:90px;color:#213f65}.calendar-popup-row span:not(.tag){color:#5a7395;flex:1;min-width:130px}.calendar-popup-row .tag{font-size:10px}

/* Department settings: one compact, self-contained configuration per department. */
.department-card > form{padding:20px}.department-destination{display:grid;grid-template-columns:2fr 1fr;gap:16px}.department-destinations{display:grid;gap:16px}.department-destination label{display:flex;flex-direction:column;gap:8px}.department-settings .reminder-table{margin:16px 0}.department-settings .reminder-table textarea{min-height:64px}.department-save{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px}.department-settings .department-card{margin-top:16px}.department-settings .reminder-table th:first-child{width:100px}@media(max-width:640px){.department-destination{grid-template-columns:1fr}.department-card > form{padding:12px}.department-save{align-items:stretch;flex-direction:column}}

.department-completeness{float:right;font-size:12px;font-weight:400;color:var(--muted,#70887f)}.reminder-match-preview{padding:16px;background:#edf5f1;border-radius:10px}.match-result{overflow-wrap:anywhere;margin-bottom:0;font-size:14px}.notification-error details{margin-top:8px;font-size:12px}.notification-error strong{font-weight:500}@media(max-width:600px){.department-completeness{float:none;display:block;margin-top:6px}}

.request-edit-form{display:grid;gap:14px;padding:20px 0;border-top:1px solid #dbe7e4;margin-top:18px}.request-edit-form label{display:flex;flex-direction:column;gap:7px}.request-edit-form input[type=checkbox]{width:auto}.edit-date-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.request-edit-form #edit-time label:has(input[type=checkbox]){flex-direction:row;align-items:center;margin-top:10px}.edit-result{color:#ac4149;overflow-wrap:anywhere}

.edit-log{padding:12px 0;border-bottom:1px solid #dbe7e4;overflow-wrap:anywhere}.edit-log small{display:block;color:#789}.edit-log p{white-space:pre-wrap;font-size:12px}

.request-edit-form{margin:16px 24px;padding:16px 0;gap:12px}.request-edit-form h3,.request-edit-form p{margin:0}.request-edit-form input,.request-edit-form select,.request-edit-form textarea{min-width:0;max-width:100%;box-sizing:border-box}.request-edit-form .edit-date-grid{min-width:0}#edit-request{margin:12px 24px;width:calc(100% - 48px)}

.request-edit-disclosure{margin:16px 24px;border:1px solid var(--border,#dbe7e4);border-radius:10px}.request-edit-disclosure>summary{padding:14px;cursor:pointer;color:var(--accent);font-weight:600}.request-edit-disclosure .request-edit-form{margin:0;padding:16px;border-top:1px solid var(--border)}.lf-calendar{position:fixed;z-index:10000;width:296px;padding:12px;background:var(--surface,#fff);color:var(--ink,#243b40);border:1px solid var(--border,#dce6e8);border-radius:12px;box-shadow:0 12px 36px #20334026}.lf-calendar-head,.lf-calendar-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.lf-calendar button{border:0;background:transparent;color:inherit;border-radius:7px;padding:8px;cursor:pointer;font:inherit}.lf-calendar button:hover,.lf-calendar button[aria-pressed=true]{background:var(--accent-soft,#eef3fa);color:var(--accent,#376b9b)}.lf-calendar button:focus-visible{outline:2px solid var(--accent)}.lf-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;margin:10px 0}.lf-calendar-grid small{text-align:center;color:var(--muted);padding:6px 0}.lf-calendar-foot{border-top:1px solid var(--border);padding-top:8px}.permission-help{margin:12px 0}.lf-select:disabled{opacity:.55;cursor:not-allowed}
