:root{--ink:#202b40;--muted:#8590a3;--blue:#4265e9;--line:#edf0f5;--canvas:#f6f7fb;--sidebar:238px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;background:var(--canvas)}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a,input,select{touch-action:manipulation}
button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
a,button{transition:background .2s,color .2s,box-shadow .2s,transform .2s}
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #aac1ff;outline-offset:3px}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:36px 24px;z-index:20}
.brand{display:flex;gap:12px;align-items:center;font-size:14px;font-weight:700;letter-spacing:1.6px}
.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:1px;color:var(--muted);margin-top:7px}
.brand-mark{background:linear-gradient(145deg,#6685f5,#3454d4);width:40px;height:44px;border-radius:13px;color:white;display:grid;place-items:center;font-size:28px;font-style:italic;box-shadow:0 6px 15px #4768df30}
.nav-label{font-size:10px;letter-spacing:1px;color:#a2aaba;margin:58px 15px 18px}
.sidebar nav{display:grid;gap:9px}
.sidebar nav a{display:flex;gap:16px;align-items:center;padding:15px;border-radius:11px;color:#737e91;font-weight:500}
.sidebar nav a:hover{background:#f6f7fb}
.sidebar nav a.active{background:#edf1ff;color:#4565d7}
.nav-icon{font-size:19px;width:22px;text-align:center}
.sidebar-bottom{margin-top:auto;padding-top:20px;border-top:1px solid var(--line);display:flex;align-items:center;gap:10px;font-size:12px}
.sidebar-bottom small{display:block;margin-top:6px;font-size:10px;color:var(--muted)}
.sidebar-bottom form{margin-left:auto}
.avatar{width:35px;height:35px;border-radius:50%;background:#edf1f7;display:inline-grid;place-items:center;font-size:12px;flex-shrink:0}
.pastel{background:#edf0fd;color:#6572b8}
.icon-button{border:0;background:none;color:var(--muted);padding:8px}
.workspace{margin-left:var(--sidebar)}
.topbar{height:82px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;background:#fafbfe;color:#647089;letter-spacing:.3px}
.muted{color:var(--muted)}
.topbar .muted{margin-left:10px}
.today{color:var(--muted)}
main{padding:40px 42px 24px;max-width:1800px;margin:auto}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:34px}
.eyebrow{font-size:10px;letter-spacing:2px;color:#8d98ad;font-weight:600;margin-bottom:14px}
h1{font-size:29px;letter-spacing:-.7px;font-weight:650;margin:0 0 13px;line-height:1.3}
.schedule-heading-date{display:inline-flex;align-items:baseline;gap:8px;margin-left:16px;padding-left:16px;border-left:1px solid #dfe5ef;color:inherit;font-size:inherit;letter-spacing:inherit;font-weight:inherit;line-height:1.3;vertical-align:baseline;white-space:nowrap}
.schedule-heading-label{color:#687792;font-size:14px;font-weight:550;letter-spacing:0}
.schedule-heading-date em{display:inline-flex;align-items:center;height:24px;padding:0 8px;border:1px solid #dce5fb;border-radius:999px;background:#f2f5ff;color:#5872d5;font-size:11px;font-style:normal;font-weight:600}
.schedule-date-label{font-size:16px;font-weight:650;line-height:1.3;color:#27354d;letter-spacing:-.2px}
.schedule-date-label input{margin-top:8px}
h2{font-size:15px;margin:0;font-weight:600}
h3{font-size:16px;font-weight:550}
p{line-height:1.8}
.page-heading p{margin:0;font-size:12px;color:var(--muted)}
.heading-actions,.button-row,.row-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.attendance-reuse-action{position:relative}
.attendance-reuse-tip{position:absolute;top:calc(100% + 10px);right:0;z-index:40;display:grid;gap:5px;width:310px;max-width:calc(100vw - 40px);padding:14px 16px;border:1px solid #dfe7f4;border-radius:10px;background:#fff;color:#445570;box-shadow:0 8px 26px #253b6024;font-size:14px;font-weight:400;line-height:1.75;letter-spacing:0;text-align:left;white-space:normal;pointer-events:none;visibility:hidden;opacity:0;transition:opacity .15s ease}
.attendance-reuse-action:hover .attendance-reuse-tip,.attendance-reuse-action>.button:focus-visible+.attendance-reuse-tip{visibility:visible;opacity:1}
@media(max-width:600px){.attendance-reuse-tip{right:auto;left:0}}
.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid transparent;border-radius:9px;background:var(--blue);color:white;padding:12px 19px;font-size:12px;font-weight:550;min-height:42px;box-shadow:0 5px 12px #4265e922;white-space:nowrap}
.button:hover{background:#3454d8;box-shadow:0 7px 15px #4265e930;transform:translateY(-1px)}
.button.secondary{background:#fff;color:#65738c;border-color:#e5eaf2;box-shadow:none}
.button.secondary:hover{background:#f0f3fa}
.button.small{padding:9px 14px;min-height:38px}
.button.danger{background:#d85464}
.text-link{color:var(--blue);font-size:12px}
.notice{border:1px solid #eee4ce;border-radius:10px;background:#fffaf0;color:#9b782a;padding:14px 18px;margin-bottom:22px;font-size:12px;line-height:1.8}
.notice a{text-decoration:underline}
.notice.success{background:#edf8f3;color:#367d61;border-color:#d9ede3}
.notice.error{background:#fff0f1;color:#b34d5a;border-color:#f5dce0}
.month-filter{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}
.quick-months,.position-tabs{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.chip{padding:8px 16px;border-radius:8px;font-size:12px;color:#7f8aa0;min-height:36px;display:inline-flex;align-items:center}
.chip:hover{background:#eaf0fb}
.chip.selected{background:white;color:var(--blue);box-shadow:0 2px 8px #26345809}
.inline-form,.filter-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.month-filter .inline-form{flex-wrap:nowrap;white-space:nowrap;flex-shrink:0}
.inline-form input{width:155px;height:38px}
.range-filter{display:flex;gap:13px;align-items:end;margin-bottom:25px;font-size:11px;color:var(--muted)}
.range-filter label{margin:0}
.range-filter input{height:36px;font-size:11px}
.range-filter>span:not(.schedule-date-actions){padding-bottom:12px}
.dashboard-page .page-heading{margin-bottom:24px}
.dashboard-controls{background:#fff;border:1px solid #e7ebf5;border-radius:18px;padding:0 20px 18px;margin-bottom:25px;box-shadow:0 10px 26px #2439680a;overflow:hidden}
.dashboard-period-head{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:15px;margin:0 -20px 16px;padding:20px 22px;border-bottom:1px solid #e7ebf5;background:linear-gradient(135deg,#f8faff 0%,#fff 62%);overflow:hidden}
.dashboard-period-head::after{content:'';position:absolute;right:-42px;top:-56px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#dce6ff 0%,#eef3ff 42%,transparent 70%);opacity:.75;pointer-events:none}
.dashboard-period-mark{position:relative;z-index:1;display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#4d6bea,#7992f5);color:#fff;box-shadow:0 10px 18px #4265e933;line-height:1}
.dashboard-period-mark-label{font-size:8px;letter-spacing:1.3px;opacity:.76}
.dashboard-period-mark strong{font-size:22px;letter-spacing:-.7px}
.dashboard-period-title{position:relative;z-index:1;min-width:0}
.dashboard-period-kicker{display:block;margin-bottom:5px;color:#8b98b0;font-size:10px;font-weight:700;letter-spacing:1.4px}
.dashboard-period-title h2{margin:0;overflow:hidden;color:#202b40;font-size:19px;line-height:1.35;letter-spacing:-.3px;text-overflow:ellipsis;white-space:nowrap}
.dashboard-period-title h2 i{font-style:normal;color:#9aa8c0;margin:0 4px}
.dashboard-period-state{position:relative;z-index:1;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dce5fb;border-radius:999px;background:#f4f7ff;color:#5c75ca;font-size:11px;font-weight:600;white-space:nowrap}
.dashboard-period-dot{width:6px;height:6px;border-radius:50%;background:#6785ed;box-shadow:0 0 0 4px #6785ed1c}
.dashboard-controls .month-filter{margin-bottom:15px;padding-bottom:15px;border-bottom:1px solid #f0f2f7}
.dashboard-controls .range-filter{margin:0;gap:12px}
.dashboard-controls .range-filter label{display:flex;flex-direction:column;gap:7px;color:#7d899f;font-size:10px;font-weight:550;letter-spacing:.1px}
.dashboard-controls .range-filter input{width:142px;background:#fbfcff;border-color:#e3e8f2;border-radius:9px}
.dashboard-controls .range-filter>span{padding:0 1px 11px;color:#a8b1c1}
.dashboard-controls .range-filter .button{align-self:flex-end}
@media(max-width:600px){.dashboard-controls{padding:0 15px 16px}.dashboard-period-head{grid-template-columns:48px minmax(0,1fr);gap:12px;margin:0 -15px 15px;padding:16px}.dashboard-period-mark{width:48px;height:48px;border-radius:14px}.dashboard-period-mark strong{font-size:18px}.dashboard-period-state{grid-column:2;justify-self:start;margin-top:-6px}.dashboard-period-title h2{font-size:16px}}
.metrics{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr;gap:18px;margin-bottom:25px}
.metric{background:white;border:1px solid #edf0f6;border-radius:15px;padding:25px 23px;min-height:157px;position:relative;overflow:hidden;box-shadow:0 6px 20px #25355603}
.metric>span{font-size:11px;color:var(--muted)}
.metric strong{display:block;font-size:32px;letter-spacing:-1px;margin:14px 0;font-weight:600;position:relative;z-index:1;white-space:nowrap}
.metric em{font-size:11px;font-style:normal;font-weight:400;margin:0 7px;letter-spacing:0}
.metric small{font-size:10px;color:#a0aabc;position:relative;z-index:1}
.metric.featured{background:linear-gradient(125deg,#466ae8,#6685f0);border:0;color:white;box-shadow:0 9px 25px #5273e72a}
.metric.featured>span,.metric.featured small{color:#dde5ff}
.metric-orbit{width:140px;height:140px;border:1px solid #ffffff1f;position:absolute;right:-36px;top:12px;border-radius:50%;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff04}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:25px;margin-bottom:25px}
.card{background:white;border:1px solid #ebeff6;border-radius:15px;box-shadow:0 5px 20px #27395303;overflow:hidden;margin-bottom:24px}
.dashboard-grid .card{margin-bottom:0}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:26px 26px 19px}
.card-heading p{font-size:10px;color:var(--muted);margin:7px 0 0}
.card-heading>.muted{font-size:10px}
.attendance-card-heading{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:15px;margin:0;padding:20px 24px 18px;border:1px solid #e7ebf5;border-bottom:0;border-radius:18px 18px 0 0;background:linear-gradient(135deg,#f8faff 0%,#fff 62%);box-shadow:0 10px 26px #2439680a;overflow:hidden}
.attendance-card-heading::after{content:'';position:absolute;right:-42px;top:-56px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#dce6ff 0%,#eef3ff 42%,transparent 70%);opacity:.75;pointer-events:none}
.attendance-card-heading>div,.attendance-card-heading>.badge{position:relative;z-index:1}
.attendance-period-mark{display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#4d6bea,#7992f5);color:#fff;box-shadow:0 10px 18px #4265e933;line-height:1}
.attendance-period-mark span{font-size:8px;letter-spacing:1.3px;opacity:.76}
.attendance-period-mark strong{font-size:22px;letter-spacing:-.7px}
.attendance-card-heading h2{font-size:19px;letter-spacing:-.3px}
.attendance-card-heading p{font-size:11px;margin-top:6px}
@media(max-width:600px){.attendance-card-heading{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:16px 18px}.attendance-period-mark{width:48px;height:48px;border-radius:14px}.attendance-period-mark strong{font-size:18px}.attendance-card-heading>.badge{grid-column:2;justify-self:start;margin-top:-6px}}
.legend{font-size:10px;color:#6985e9}
.chart{position:relative;height:240px;margin:0 20px}
.chart canvas{width:100%;height:100%}
.chart-tooltip{position:absolute;pointer-events:none;border-radius:8px;background:#24324b;color:#fff;padding:10px;font-size:11px;white-space:nowrap;box-shadow:0 6px 20px #26364a22}
.chart-summary{display:flex;justify-content:space-around;gap:10px;border-top:1px solid var(--line);margin:10px 26px 0;padding:20px 0;font-size:10px;color:var(--muted)}
.chart-summary strong{color:#617087;font-weight:500;margin-left:9px}
.rank-row{display:flex;gap:13px;align-items:center;padding:18px 24px;border-top:1px solid #f3f5f9}
.rank-row:hover{background:#fafbff}
.rank-number{color:#a0aabb;font-size:12px;width:10px}
.rank-row:first-of-type .rank-number{color:var(--blue)}
.rank-name{flex:1;font-size:14px;font-weight:550}
.rank-name small{display:block;font-size:9px;color:#9ea9bc;margin-top:7px}
.rank-row strong{font-size:20px;font-weight:550}
.rank-row strong small{font-size:10px;color:var(--muted);font-weight:400}
.empty{text-align:center;padding:43px 20px;color:var(--muted)}
.empty h3{color:#63718a}
.empty p{font-size:12px;margin:12px 0 22px}
.empty-icon{width:60px;height:60px;border-radius:18px;margin:0 auto 20px;display:grid;place-items:center;color:#7b91d7;background:#f1f4fe;font-size:25px}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th{font-size:13px;color:#526078;font-weight:600;background:#fafbfe;padding:15px 24px;letter-spacing:.2px;line-height:1.6}
td{font-size:14px;color:#29384f;padding:18px 24px;border-top:1px solid #f0f3f8;line-height:1.65;font-variant-numeric:tabular-nums}
tbody tr:hover{background:#fcfdff}
tfoot td,tfoot th{background:#f9fbff;border-top:1px solid #e7edf8;font-weight:600}
.table-empty{text-align:center;padding:52px 20px;color:var(--muted)}
.cell-note,td>small{display:block;color:#637087;font-size:12px;margin-top:7px}
.money{color:#304fb3;font-weight:650}
.person{display:flex;gap:12px;align-items:center}
.person{font-size:15px;font-weight:550}
.person small{display:block;margin-top:6px;color:#637087;font-size:12px;font-weight:400}
table .muted{color:#637087}
table .badge{font-size:13px;font-weight:500}
table .badge.active{color:#326747}
table .badge.trial{color:#805c20}
table .badge.left{color:#566074}
.badge{border-radius:5px;padding:5px 8px;font-size:10px;background:#f1f3f6;color:#8c97aa}
.badge.active{background:#eef7f2;color:#51896b}
.badge.trial{background:#fff5e5;color:#a78345}
.badge.left{background:#f1f2f6;color:#8991a1}
.row-actions{gap:15px;font-size:13px;color:#304fb3;flex-wrap:nowrap}
.row-actions button,.text-danger{border:0;background:none;color:#a44d5c;font-size:13px;padding:0}
.employee-list-card table th{font-size:13px}
.employee-list-card table th:nth-child(2),.employee-list-card table td:nth-child(2){width:80px;padding-left:10px;padding-right:10px;white-space:nowrap}
.employee-list-card table td,.employee-list-card .row-actions,.employee-list-card .row-actions button{font-size:14px}
.employee-list-card .person{font-size:14px}
.employee-list-card .card-heading>.muted{font-size:12px}
.count{font-size:11px;background:#eff2f8;color:#8792a8;padding:3px 7px;border-radius:5px;margin-left:8px}
.filter-bar{margin-bottom:23px}
.filter-bar input{width:220px}
.filter-bar select{width:160px}
.pagination{padding:16px 24px;color:var(--muted);font-size:12px}
.pagination svg{width:20px}
.pagination nav{display:flex;justify-content:space-between}
.pagination a{margin:0 12px;color:var(--blue)}
label{display:block;color:#647187;font-size:12px;line-height:1.5;margin-bottom:20px}
input:not([type=checkbox]),select,textarea{display:block;margin-top:9px;width:100%;border:1px solid #e2e7f0;background:#fcfdff;border-radius:8px;padding:11px 12px;color:#34445d;min-height:42px;outline:none;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{border-color:#9caeec;box-shadow:0 0 0 3px #5676df12}
input::placeholder{color:#b0b8c8;font-size:11px}
input[type=time]{appearance:none;-webkit-appearance:none}
input[type=date],input[type=month]{appearance:auto;-webkit-appearance:auto}
input[type=date],input[type=month]{cursor:pointer}
label small{display:block;color:#a0aabd;font-size:10px;margin-top:9px}
.inline-form input,.filter-bar input,.filter-bar select{margin-top:0}
.form-card{max-width:980px;padding:30px}
.form-card h2{margin-bottom:26px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 26px}
.form-divider{height:1px;background:var(--line);margin:15px 0 30px}
.help{font-size:11px;color:#919db2;line-height:1.9;margin:12px 0 24px}
.form-actions{border-top:1px solid var(--line);margin-top:28px;padding-top:25px;display:flex;gap:12px;justify-content:flex-end}
.employee-form-card h2{font-size:19px}
.employee-form-card label{font-size:14px}
.employee-form-card input:not([type=checkbox]),.employee-form-card select,.employee-form-card textarea{font-size:15px}
.employee-form-card input::placeholder{font-size:13px}
.employee-form-card .help{font-size:13px;line-height:1.8}
.employee-form-card .button{font-size:13px}
.payroll-page .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.payroll-page .metric small{font-size:12px}
.payroll-page .metric em{font-size:14px;margin-right:8px}
.payroll-page .metric.featured:first-child{background:#fff;border:1px solid #e7ebf5;color:var(--ink);box-shadow:0 10px 24px #2439680c}
.payroll-page .metric.featured:first-child>span,.payroll-page .metric.featured:first-child small{color:#637087}
@media(max-width:600px){.payroll-page .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.payroll-page .card-heading{padding-left:18px;padding-right:18px}
.payroll-page .disclosure summary{padding-left:18px;padding-right:18px}
.payroll-page .detail-intro{padding-left:18px;padding-right:18px}
.payroll-page th,.payroll-page td{padding-left:14px;padding-right:14px}
.payroll-employee-row{cursor:pointer;transition:background .18s ease}
.payroll-employee-row:hover,.payroll-employee-row:focus-visible{background:#f5f7ff;outline:none}
.payroll-detail-dialog{width:min(1080px,calc(100vw - 44px));max-width:none;height:min(760px,calc(100dvh - 44px));max-height:none;padding:0;border:1px solid #ffffffcc;border-radius:22px;background:#fbfcff;box-shadow:0 28px 90px #15233c45;overflow:hidden}
.payroll-detail-dialog::backdrop{background:rgba(20,28,44,.52);backdrop-filter:blur(5px)}
.payroll-detail-dialog[open]{animation:payroll-detail-in .22s ease-out both}
.payroll-detail-shell{position:relative;height:100%;overflow:hidden}
.payroll-detail-content{display:flex;height:100%;overflow:hidden;flex-direction:column;padding:30px 32px 34px}
.payroll-detail-close{position:absolute;top:18px;right:20px;z-index:2;width:34px;height:34px;border:0;border-radius:50%;background:#eaf0f6;color:#34445d;font-size:24px;line-height:1;cursor:pointer}
.payroll-detail-close:hover{background:#dfe7f2}
.payroll-detail-panel[hidden]{display:none}
.payroll-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:28px;padding-right:48px;margin-bottom:4px}
.payroll-detail-heading .eyebrow{margin-bottom:9px}
.payroll-detail-heading h2{margin:0;font-size:24px;color:#25344d}
.payroll-detail-heading p{margin:7px 0 0;color:#7a879d;font-size:13px}
.payroll-detail-dialog .payroll-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(112px,1fr));gap:8px;max-width:520px;align-self:center}
.payroll-detail-dialog .payroll-detail-summary span{display:flex;min-height:48px;box-sizing:border-box;flex-direction:column;justify-content:center;gap:3px;padding:6px 10px;border:1px solid #e7ebf3;border-radius:10px;background:#f8faff;color:#8995a8;font-size:11px;white-space:nowrap}
.payroll-detail-dialog .payroll-detail-summary b{color:#34445d;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums}
.payroll-detail-dialog .payroll-detail-summary b.is-total{color:#4566d9}
.payroll-detail-dialog .payroll-detail-summary.has-room-pay{grid-template-columns:repeat(4,minmax(100px,1fr));max-width:560px}
.payroll-detail-dialog .payroll-detail-summary.has-room-pay .is-net{grid-column:span 2}
.payroll-detail-dialog .room-pay-calculation{max-width:220px;white-space:normal;line-height:1.6}
.payroll-detail-dialog .detail-intro{padding:16px 0 20px;font-size:12px}
.payroll-detail-panel{display:flex;min-height:0;height:100%;flex-direction:column}
.payroll-detail-panel .table-scroll{flex:1;min-height:0;overflow:auto}
.payroll-detail-panel .table-scroll table{min-width:900px}
.payroll-detail-panel .table-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 #e8edf5}
@keyframes payroll-detail-in{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:600px){.payroll-detail-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);border-radius:18px}.payroll-detail-content{padding:24px 18px}.payroll-detail-heading{display:block}.payroll-detail-dialog .payroll-detail-summary{grid-template-columns:repeat(3,1fr);margin-top:16px}.payroll-detail-dialog .payroll-detail-summary b{font-size:15px}}
@media(max-width:600px){.payroll-detail-dialog .payroll-detail-summary.has-room-pay{grid-template-columns:repeat(2,minmax(0,1fr));max-width:none}}
.checkbox-label{display:flex;align-items:center;gap:10px;margin-top:9px}
.checkbox-label input{accent-color:var(--blue);width:16px;height:16px}
.calculation-preview{background:#f4f7ff;color:#7086be;font-size:11px;padding:17px;border-radius:9px;margin:3px 0 25px;line-height:1.8}
.delete-record{max-width:980px;text-align:right;margin:10px 0 25px}
.disclosure{padding:0}
.disclosure summary{padding:23px 26px;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.disclosure summary::after{content:'\2304';color:#9ea9bd}
.disclosure summary .muted{font-size:11px;margin-left:12px}
.detail-intro{font-size:11px;color:var(--muted);padding:4px 26px 22px;line-height:1.8}
.restore-row{display:flex;align-items:center;justify-content:space-between;padding:15px 26px;border-top:1px solid var(--line);font-size:12px}
.settings-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}
.settings-grid .form-card{max-width:none}
.live-rooms-grid{grid-template-columns:1.4fr 1fr;align-items:stretch}
.retired-rooms-card{height:auto;min-height:0;padding:30px 30px 24px}
.retired-rooms-card .card-heading{padding:0 0 18px}
.retired-rooms-card .restore-row{padding-left:0;padding-right:0}
.retired-room-list{display:flex;flex-direction:column;gap:10px}
.retired-room-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 12px;border:1px solid #edf0f5;border-radius:16px;background:linear-gradient(135deg,#fbfcff,#f5f7fb);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.retired-room-item:hover{transform:translateY(-1px);border-color:#dfe5f0;box-shadow:0 8px 24px #2b416312}
.retired-room-number{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e9eefb;color:#6075bb;font-size:11px;font-weight:650;font-variant-numeric:tabular-nums}
.retired-room-info{display:flex;min-width:0;flex-direction:column;gap:3px}
.retired-room-info strong{color:#2e3c56;font-size:13px;font-weight:650}
.retired-room-info span{overflow:hidden;color:#596780;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.retired-room-info small{color:#9aa5b8;font-size:10px}
.restore-room-button{border:1px solid #dbe3f4;border-radius:10px;background:#fff;color:#5872c1;font-size:12px;padding:8px 12px;cursor:pointer;white-space:nowrap;transition:background .2s ease,color .2s ease}
.restore-room-button:hover{background:#617fe0;color:#fff}
.room-multiselect{margin:0 0 16px;padding:14px;border:1px solid #e4e9f2;border-radius:14px;background:#fafbfe}
.room-multiselect legend{padding:0 4px;color:#34445d;font-size:13px}
.room-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}
.room-option{display:flex;align-items:center;gap:9px;margin:0;padding:10px;border:1px solid #e5eaf3;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease}
.room-option:has(input:checked){border-color:#708ae3;background:#f1f4ff;box-shadow:0 4px 12px #607ad51a}
.room-option input{width:16px;height:16px;accent-color:#607fe2}
.room-option span{display:flex;min-width:0;flex-direction:column;gap:2px}
.room-option strong{color:#34445d;font-size:12px;font-weight:650}
.room-option small{overflow:hidden;color:#8995aa;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.room-multiselect .empty{grid-column:1/-1;margin:4px 0;font-size:12px}
.room-picker-label{display:block;margin:0 0 9px;color:#34445d;font-size:13px}
.room-picker{margin:0 0 16px;border:1px solid #e2e7f0;border-radius:8px;background:#fcfdff;min-height:42px;overflow:hidden;transition:border-color .2s,box-shadow .2s}
.room-picker[open]{border-color:#b9c7ed;box-shadow:0 0 0 3px #607fe212}
.room-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-height:42px;padding:11px 12px;color:#34445d;font-size:13px;cursor:pointer;list-style:none}
.room-picker>summary::-webkit-details-marker{display:none}
.room-picker>summary::after{content:'\2304';color:#8794aa;font-size:16px;transition:transform .2s ease}
.room-picker[open]>summary::after{transform:rotate(180deg)}
.room-picker>summary strong{margin-left:auto;padding:4px 8px;border-radius:8px;background:#eaf0ff;color:#6078c8;font-size:11px;font-weight:600;white-space:nowrap}
.room-picker>summary span{overflow:hidden;color:#52627b;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.room-picker-panel{max-height:190px;overflow-y:auto;padding:0 10px 10px;border-top:1px solid #e8edf5}
.room-picker-panel .room-option-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.room-picker-panel .room-option{min-height:36px;padding:7px 9px;border-radius:8px}
.room-picker-panel .room-option span{display:flex;min-width:0;flex-direction:row;align-items:center;gap:0;overflow:hidden;white-space:nowrap}
.room-picker-panel .room-option strong,.room-picker-panel .room-option small{display:inline-block;font-size:12px;line-height:1.3;vertical-align:middle}
.room-picker-panel .room-option small{margin-top:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-picker-panel .room-option small::before{content:' · ';color:#a4afc1}
.multiple-select{position:relative;margin-top:7px}
.multiple-select-trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;padding:11px 12px;border:1px solid #e2e7f0;border-radius:8px;background:#fcfdff;color:#9aa5b8;font:inherit;text-align:left;cursor:pointer}
.multiple-select-trigger::after{content:'⌄';color:#8794aa;font-size:16px;margin-left:10px}
.multiple-select-trigger.is-selected{color:#34445d}
.multiple-select-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;padding:9px;border:1px solid #dfe6f2;border-radius:12px;background:#fff;box-shadow:0 16px 34px #25355624}
.multiple-select-menu input[type=search]{margin:0 0 8px;min-height:36px;font-size:13px}
.multiple-select-options{display:grid;gap:2px;max-height:190px;overflow:auto;padding:2px}
.multiple-select-options label{display:flex;align-items:center;gap:8px;margin:0 0 2px!important;padding:6px 9px;border:1px solid transparent;border-radius:8px;background:#fbfcff;color:#34445d;font-size:13px;line-height:1.25;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.multiple-select-options label:hover{background:#f1f4ff}
.multiple-select-options label:has(input:checked){border-color:#d9e2ff;background:#eef3ff;color:#304fb3}
.multiple-select-options label:active{transform:scale(.99)}
.multiple-select-options label input{width:15px;height:15px;margin:0;accent-color:#607fe2}
.multiple-select-options label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Slight readability lift for the operational screens. */
.hr-readable-page .page-heading p,
.hr-readable-page .card-heading p,
.hr-readable-page .range-filter,
.hr-readable-page .notice,
.hr-readable-page .help,
.hr-readable-page main .muted,
.hr-readable-page label{font-size:13px}
.hr-readable-page .position-card label{font-size:13px}
.hr-readable-page .range-filter input,
.hr-readable-page .position-card input,
.hr-readable-page .position-card select,
.hr-readable-page .form-card input,
.hr-readable-page .form-card select,
.hr-readable-page .form-card textarea{font-size:14px}
.hr-readable-page .card-heading h2,
.hr-readable-page .position-card h2{font-size:17px}
.hr-readable-page .schedule-row,
.hr-readable-page .chat-line,
.hr-readable-page .restore-row{font-size:13px}
.hr-readable-page main th{font-size:14px}
.hr-readable-page main td{font-size:15px}
.hr-readable-page main .person{font-size:15px}
.hr-readable-page main .cell-note,
.hr-readable-page main td>small,
.hr-readable-page main .person small,
.hr-readable-page .section-heading p,
.hr-readable-page .rules-card li b,
.hr-readable-page .rules-card li p,
.hr-readable-page .retired-room-info span,
.hr-readable-page .empty p,
.hr-readable-page .button,
.hr-readable-page .chip,
.hr-readable-page .text-link{font-size:13px}
.hr-readable-page .retired-room-info strong{font-size:14px}
.hr-readable-page .retired-room-info small{font-size:11px}
.hr-readable-page main input,
.hr-readable-page main select,
.hr-readable-page main textarea{font-size:14px}
@media(max-width:600px){
  .hr-readable-page main input,
  .hr-readable-page main select,
  .hr-readable-page main textarea{font-size:16px}
}
.live-rooms-grid .form-card>.card-heading{padding:0 0 18px}
.live-room-card h2,.retired-rooms-card h2,.new-room-form h2{margin-bottom:0}
.live-room-row{display:grid;grid-template-columns:minmax(76px,.65fr) minmax(150px,1.5fr) auto auto;align-items:center;gap:10px;padding:14px 0;border-top:1px solid var(--line)}
.live-room-row input{width:100%;min-width:0;margin:0}
.live-room-row button{white-space:nowrap}
.new-room-form{margin-top:24px;padding-top:24px;border-top:1px solid #edf0f5}
.new-room-form .card-heading{padding:0 0 18px}
.settings-grid .card-heading{padding:0}
.rules-card{background:linear-gradient(135deg,#eef2fe,#f9faff);padding:32px}
.rules-card h2{font-size:24px;margin:20px 0 30px}
.rules-card ol{padding-left:22px;color:#6683d1}
.rules-card li{padding:0 0 17px 8px}
.rules-card li b{font-size:12px;color:#556b9d;font-weight:550}
.rules-card li p{font-size:11px;color:#95a0b8;margin:8px 0}
.section-title,.section-heading{margin:30px 0 22px}
.section-heading p{font-size:11px;color:var(--muted)}
.positions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.position-card{padding:25px}
.position-card .form-grid{gap:15px}
.position-card label{font-size:11px}
.position-delete{margin-top:15px}
.new-position{background:#fafbff;border-style:dashed}
.new-position>p{font-size:11px}
.snapshot-note{padding:10px 0;font-size:11px;color:var(--muted)}
.snapshot-note p{line-height:1.9}
.position-tabs{margin:0 0 23px}
.position-tabs .muted{margin-left:auto;font-size:10px}
.month-table{width:max-content;min-width:0;table-layout:fixed}
.month-table th:not(.sticky-date),.month-table td{width:200px;max-width:220px;padding:14px 18px;vertical-align:top}
.month-table thead th>a{font-size:15px;font-weight:600;color:#29384f}
.month-table th small{display:block;font-size:12px;margin-top:9px;font-weight:400;color:#637087}
.month-table tfoot small{display:block;font-size:13px;margin-top:3px;line-height:1.35;font-weight:500;color:#34445d}
.month-table tfoot td,.month-table tfoot th{line-height:1.35}
.sticky-date{position:sticky;left:0;z-index:2;min-width:82px;background:#fafbfe!important}
.month-table-scroll{max-height:660px}
.month-table thead{position:sticky;top:0;z-index:4}
.month-table tfoot{position:sticky;bottom:0;z-index:3}
.month-table .sticky-date{width:100px;max-width:100px;font-size:14px;color:#34445d}
.month-table .sticky-date small{display:block;margin-top:7px;font-size:12px;color:#637087}
.month-table td{border-left:1px solid #f0f3f8;padding:5px 8px}
.blank-cell{display:block;text-align:center;color:#64748b;font-size:18px;padding:8px;border-radius:6px}
.blank-cell:hover{background:#edf2ff;color:var(--blue)}
.shift-cell{display:block;border-radius:6px;padding:6px 7px;background:#f5f8ff;margin-bottom:3px;font-size:13px;line-height:1.4;font-weight:550;color:#34445d}
.shift-cell:hover{background:#eaf0ff}
.month-table tbody .shift-cell,.month-table tbody .blank-cell{box-sizing:border-box}
.shift-cell small{display:block;margin-top:0;line-height:1.45;font-size:13px;font-weight:400;color:#526078}
.shift-cell b{font-size:14px;color:#304fb3;font-weight:650}
.shift-cell.rest{background:#f7f8fa;color:#566074}
.shift-cell.leave{background:#fff8ec;color:#805c20}
.shift-cell.absent{background:#fff1f2;color:#9b4052}
.trial-dot{float:right;background:#f3e8cc;color:#76541d;border-radius:3px;padding:0 4px;font-size:12px;font-weight:500}
.subsidy-text{color:#326747;font-weight:550}
.room-text{display:block}
.month-table tbody>.today-row{background:linear-gradient(100deg,#dce8fc 0%,#e6eefd 55%,#edf3ff 100%)}
.month-table tbody>.today-row>td{background:transparent;border-left-color:#d0def5;box-shadow:inset 0 1px #c3d5f3,inset 0 -1px #c3d5f3}
.month-table tbody>.today-row>.sticky-date{color:#345c9e;background:#dce8fc!important;box-shadow:inset 3px 0 #6188d6,inset 0 1px #c3d5f3,inset 0 -1px #c3d5f3}
.month-table .today-row .sticky-date small{color:#6b83aa}
.month-table .today-row .calendar-date em{background:#527bc4;border-color:#527bc4;color:#fff}
.month-table .today-row .shift-cell:not(.rest):not(.leave):not(.absent){background:#fff;box-shadow:inset 0 0 0 1px #c7d8f2,0 2px 4px #345c9e0d}
.month-table .today-row .shift-cell:not(.rest):not(.leave):not(.absent):hover{background:#f9fbff;box-shadow:inset 0 0 0 1px #8eafe4,0 2px 6px #345c9e18}
.attendance-row-reuse{margin:7px 0 0}
.attendance-row-reuse button{display:block;margin:0 auto;padding:3px 7px;border:1px solid #d6e1f5;border-radius:6px;background:#fff;color:#5675ad;font:inherit;font-size:11px;font-weight:500;line-height:1.5;white-space:nowrap;cursor:pointer}
.attendance-row-reuse button:hover{border-color:#9bb5e2;background:#f1f5ff;color:#345c9e}
.attendance-row-reuse button:focus-visible{outline:2px solid #6188d6;outline-offset:2px}
.attendance-row-reuse button:disabled{opacity:.55;cursor:wait}
.attendance-month-reuse-confirm{width:min(480px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:26px;border:1px solid #e0e7f3;border-radius:16px;background:#fff;color:#34445d}
.attendance-month-reuse-confirm form{margin:0}
.attendance-month-reuse-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.attendance-month-reuse-heading h3{margin:0;font-size:20px;color:#26354d}
.attendance-month-reuse-heading>button{padding:0;width:28px;height:28px;border:0;background:transparent;color:#8995aa;font-size:24px;cursor:pointer}
.attendance-month-reuse-confirm p,.attendance-month-reuse-confirm li{font-size:14px;line-height:1.8;color:#65738b}
.attendance-month-reuse-confirm p{margin:14px 0}
.attendance-month-reuse-confirm ul{margin:18px 0;padding-left:20px}
.attendance-month-reuse-confirm li+li{margin-top:8px}
.attendance-month-reuse-confirm .attendance-month-reuse-reminder{padding:11px 14px;border-radius:8px;background:#f0f5ff;color:#47689d}
.attendance-month-reuse-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #e8edf5}
.attendance-month-reuse-actions .button{font-size:14px;min-height:40px;padding:0 18px}
fieldset{margin:0;padding:0;border:0;min-width:0}
footer{display:flex;gap:16px;color:#b5becf;font-size:9px;letter-spacing:1px;padding:24px 0 5px}
footer span{letter-spacing:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
dialog{border:1px solid #e7ebf5;border-radius:15px;padding:27px;max-width:400px;box-shadow:0 15px 80px #273d5533}
dialog::backdrop{background:#1b284347;backdrop-filter:blur(5px)}
dialog p{font-size:12px;color:var(--muted)}
dialog .button-row{justify-content:flex-end;margin-top:25px}
.employee-rule-dialog{width:min(520px,calc(100vw - 32px));padding:0;border:0;border-radius:20px;background:#f8faff;overflow:hidden;box-shadow:0 24px 80px #25334b35}
.employee-rule-dialog::backdrop{background:#1b28434d;backdrop-filter:blur(5px)}
.employee-rule-panel{margin:0;padding:28px 30px;border:0;box-shadow:none;background:#f8faff}
.employee-rule-panel h2{margin:0 0 8px;font-size:20px;color:#25334b}
.employee-rule-panel .help{margin:0 0 22px;font-size:13px;line-height:1.7}
.employee-rule-panel label{display:flex;align-items:center;gap:9px;margin:12px 0;padding:12px 14px;border:1px solid #e1e7f2;border-radius:11px;background:#fff;color:#34445d;font-size:14px;cursor:pointer}
.employee-rule-panel label:has(input[type=radio]:checked){border-color:#5576e8;background:#f1f4ff;box-shadow:0 0 0 2px #5576e81c}
.employee-rule-panel input[type=radio]{appearance:none;box-sizing:border-box;width:16px;height:16px;min-width:16px;max-width:16px;min-height:16px;max-height:16px;padding:0;margin:0;flex:0 0 16px;border:1.5px solid #aeb8ca;border-radius:50%;background:#fff;box-shadow:none;outline:0;position:relative}
.employee-rule-panel input[type=radio]:checked{border-color:#5576e8;background:#5576e8;box-shadow:inset 0 0 0 4px #fff}
.employee-rule-panel input[type=radio]:focus-visible{outline:2px solid #5576e855;outline-offset:2px}
.employee-rule-panel input[type=date]{margin-left:auto;width:150px;min-height:34px;font-size:13px}
.employee-rule-panel .form-actions{margin-top:22px;padding-top:18px}
.login-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 10% 10%,#ecf0ff,transparent 50%),#f5f7fb}
.login-shell{padding:0;max-width:1060px;width:calc(100% - 80px);min-height:590px;display:grid;grid-template-columns:1.15fr 1fr;background:#fff;border:1px solid #eef1f9;border-radius:24px;overflow:hidden;box-shadow:0 30px 100px #52668c16}
.login-story{padding:46px;background:linear-gradient(140deg,#f0f4ff,#e8eeff);display:flex;flex-direction:column;justify-content:space-between;position:relative}
.login-story h1{font-size:40px;line-height:1.45;letter-spacing:-1px;margin:22px 0}
.login-story p{font-size:12px;color:#8d9abb;line-height:2}
.login-story>small{font-size:10px;color:#9daaca}
.login-story .eyebrow{font-size:9px;letter-spacing:1.5px;color:#96a6cc}
.login-panel{padding:80px 54px}
.login-panel h2{font-size:25px}
.login-panel>p{font-size:12px;margin:14px 0 35px}
.login-panel form{margin-top:35px}
.login-note{text-align:center;color:#b0b8c8;margin:28px 0!important;font-size:10px!important}
@media(min-width:1650px){main{padding:48px 60px}
.metric strong{font-size:38px}
.chart{height:290px}}
@media(max-width:1200px){:root{--sidebar:205px}
.sidebar{padding:30px 18px}
.brand{font-size:12px}
.topbar{padding:0 27px}
main{padding:32px 27px}
.metrics{gap:12px;grid-template-columns:repeat(2,1fr)}
.metric{min-height:140px}
.positions-grid{grid-template-columns:repeat(2,1fr)}
.heading-actions{gap:8px}
.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}}
@media(max-width:850px){:root{--sidebar:78px}
.sidebar{padding:24px 12px}
.sidebar .brand>span:not(.brand-mark),.nav-label,.sidebar-bottom{display:none}
.sidebar .brand{justify-content:center}
.sidebar nav{margin-top:40px}
.sidebar nav a{font-size:0;justify-content:center;padding:16px 0;gap:0}
.sidebar nav a .nav-icon{font-size:23px}
.dashboard-grid,.settings-grid{grid-template-columns:1fr}
.topbar{height:65px;font-size:10px}
.topbar .muted{display:none}
.page-heading{align-items:flex-start}
.page-heading h1{font-size:24px}
.heading-actions{justify-content:flex-end}
.chart{height:240px}
.dashboard-grid .card{margin-bottom:0}
.login-shell{grid-template-columns:1fr 1fr;width:calc(100% - 40px)}
.login-story{padding:32px}
.login-story h1{font-size:30px}
.login-panel{padding:65px 32px}}
@media(max-width:600px){:root{--sidebar:0px}
.sidebar{inset:auto 0 0;width:100%;height:68px;padding:5px 8px 9px;border-right:0;border-top:1px solid #edf0f6;box-shadow:0 -5px 18px #30416105}
.sidebar .brand{display:none}
.sidebar nav{display:flex;margin:0;justify-content:space-around;gap:3px}
.sidebar nav a{font-size:9px;flex-direction:column;gap:5px;flex:1;padding:5px 0;border-radius:8px}
.sidebar nav a .nav-icon{font-size:20px}
.topbar{padding:0 20px;height:56px}
.topbar .today{font-size:9px}
main{padding:27px 18px 85px}
.page-heading{display:block;margin-bottom:25px}
.page-heading h1{font-size:24px}
.page-heading p{font-size:10px}
.heading-actions{margin-top:18px;justify-content:flex-start}
.eyebrow{font-size:8px;margin-bottom:12px}
.metrics{gap:10px}
.metric{padding:19px 15px;min-height:135px}
.metric strong{font-size:25px;margin:16px 0 13px}
.metric small{font-size:8px}
.metric>span{font-size:10px}
.metric em{font-size:9px;margin:0 3px}
.month-filter{flex-wrap:wrap;gap:12px;margin-bottom:20px}
.range-filter{gap:7px;flex-wrap:wrap}
.range-filter input{font-size:11px;width:132px;padding:8px;min-height:42px}
.range-filter .button{font-size:10px;padding:8px}
.card-heading{padding:20px 18px}
.card-heading p{font-size:9px}
.chart{margin:0 8px}
.chart-summary{margin:10px 18px 0;font-size:8px;gap:3px}
.chart-summary strong{margin-left:3px}
.rank-row{padding:17px 20px}
.form-card{padding:23px 18px}
.form-grid{grid-template-columns:1fr;gap:0}
.form-grid>div:empty{display:none}
.positions-grid{grid-template-columns:1fr}
.position-card .form-grid{grid-template-columns:1fr 1fr;gap:12px}
.position-tabs .muted{margin-left:0;width:100%;margin-top:8px}
.position-tabs{gap:4px}
.chip{padding:8px 12px;min-height:38px}
.filter-bar{gap:8px}
.filter-bar input{width:100%}
.filter-bar select{width:calc(50% - 4px)}
.disclosure summary{padding:21px 18px;font-size:12px}
.disclosure summary .muted{display:block;margin:8px 0 0}
.form-card input,.form-card select{font-size:16px;height:46px}
.checkbox-label input{height:18px;width:18px}
.login-shell{width:calc(100% - 32px);margin:25px auto;grid-template-columns:1fr;min-height:0;border-radius:18px}
.login-story{padding:24px 28px;min-height:225px}
.login-story h1{font-size:27px;margin:22px 0 10px}
.login-story .eyebrow,.login-story>small,.login-story p{display:none}
.login-story .brand-mark{width:30px;height:33px;font-size:22px;border-radius:9px}
.login-story .brand small{margin-top:4px;font-size:9px}
.login-panel{padding:32px 28px 15px}
.login-panel h2{font-size:22px}
.login-panel form{margin-top:25px}
.login-panel input{font-size:16px}
footer{font-size:8px;gap:10px}
.month-table-scroll{max-height:65vh}
.month-table th:not(.sticky-date),.month-table td{min-width:200px}
.month-table .sticky-date{min-width:58px;padding-left:18px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.topbar-actions{display:flex;align-items:center;gap:22px}
.account-link{font-size:11px;color:#7585ad}
.mobile-logout{display:none}
.nav-icon{display:flex;align-items:center;justify-content:center}
.refresh-rules{padding:0 26px 24px}
.nav-icon svg{display:block}
@media(max-width:850px){.mobile-logout{display:block}
.topbar-actions{gap:10px}
.topbar-actions .today{display:none}}
@media(max-width:600px){.account-link{font-size:9px}}
@keyframes workspace-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.page-heading,.metric,.card{animation:workspace-enter .45s ease both}.metrics .metric:nth-child(2){animation-delay:.04s}.metrics .metric:nth-child(3){animation-delay:.08s}.metrics .metric:nth-child(4){animation-delay:.12s}.metric strong{font-variant-numeric:tabular-nums}@media(max-width:600px){.metric strong{font-size:clamp(18px,5.5vw,25px)}}

/* Cell editing stays within the monthly attendance sheet. */
.month-table .sticky-date{min-width:100px;white-space:nowrap}
.month-table tbody>tr>.sticky-date{text-align:center;padding-left:12px;padding-right:12px}
.calendar-date{display:inline-grid;grid-template-columns:auto auto;align-items:center;justify-content:center;column-gap:8px;white-space:nowrap}
.month-table .calendar-date small{display:inline-block;margin:0;font-size:12px}
body.attendance-modal-open{overflow:hidden}
.attendance-dialog{width:520px;height:min(700px,calc(100dvh - 48px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);padding:0;border:1px solid #ffffffcc;border-radius:24px;background:#fbfcff;box-shadow:0 32px 100px #15233c45;overflow:hidden}
.attendance-dialog[open]{animation:attendance-fade-in .24s ease-out both;transform:none}
.attendance-dialog[open]::backdrop{animation:attendance-fade-in .24s ease-out both}
.attendance-dialog[open].is-closing,.attendance-dialog[open].is-closing::backdrop{animation:attendance-fade-out .18s ease-in both;pointer-events:none}
@keyframes attendance-fade-in{from{opacity:0}to{opacity:1}}
@keyframes attendance-fade-out{from{opacity:1}to{opacity:0}}
.attendance-dialog{scrollbar-width:none;-ms-overflow-style:none}
.attendance-dialog::-webkit-scrollbar{display:none;width:0;height:0}
.attendance-dialog::backdrop{background:rgba(20,28,44,.48);backdrop-filter:blur(6px)}
.attendance-dialog [hidden]{display:none!important}
.attendance-dialog-panel{display:flex;flex-direction:column;height:100%;box-sizing:border-box;padding:28px;overflow:hidden}
.attendance-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.attendance-dialog-heading h2{margin:4px 0 0;font-size:22px;letter-spacing:-.5px}
.attendance-dialog .modal-kicker{margin:0;color:#637087;font-size:12px}
.modal-close{border:0;background:#eaf0f6;color:#34445d;border-radius:50%;width:34px;height:34px;font-size:24px;cursor:pointer;line-height:1}
.attendance-context{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:20px 0;padding-bottom:18px;border-bottom:1px solid #e5eaf2;font-size:13px;color:#526079}
#modal-employee-name{font-weight:650;font-size:16px;color:#25334b}
.attendance-context time{margin-left:auto;background:#edf1f7;padding:6px 10px;border-radius:8px;font-variant-numeric:tabular-nums}
.attendance-dialog fieldset{border:0;padding:0;margin:0;min-width:0}
.attendance-dialog #attendance-modal-form{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden}
.attendance-dialog #attendance-modal-fields{flex:1;min-height:0;overflow:auto;padding:0 8px 6px 0;scrollbar-width:thin;scrollbar-color:#d6deed transparent}
.attendance-dialog #attendance-modal-fields::-webkit-scrollbar{width:6px}
.attendance-dialog #attendance-modal-fields::-webkit-scrollbar-thumb{border-radius:99px;background:#d6deed}
.attendance-dialog label{display:block;margin-bottom:16px;font-size:13px;color:#34445d}
.attendance-dialog input:not([type=checkbox]),.attendance-dialog select{width:100%;min-width:0;min-height:44px;font-size:15px;margin-top:7px}
.attendance-dialog .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.attendance-dialog .checkbox-label{display:flex;align-items:center;gap:8px}
.modal-end-time{min-width:0;margin-bottom:16px}
.modal-end-time-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:20px}
.attendance-dialog .modal-end-time-heading label{margin:0;white-space:nowrap}
.attendance-dialog .modal-end-time-heading .checkbox-label{margin-left:auto;gap:4px;font-size:12px}
.attendance-dialog .modal-end-time-heading input[type=checkbox]{width:14px;height:14px;margin:0;flex-shrink:0}
.modal-preview{background:#eef3fc;border-radius:12px;padding:13px;margin:0 0 16px;font-size:13px;color:#415577;line-height:1.6}
.attendance-dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;margin-top:0;padding-top:15px;border-top:1px solid #e7ebf3;background:#fbfcff}
.attendance-dialog-actions>div{display:flex;gap:10px;margin-left:auto}
.attendance-dialog-actions .text-danger{border:0;background:transparent;color:#b44249;font-size:13px;padding:10px 0;cursor:pointer}
.modal-loading{padding:24px 0;color:#526079;font-size:14px}
.attendance-toast{position:fixed;top:104px;bottom:auto;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:14px;background:#25334b;color:white;box-shadow:0 8px 32px #25334b30;z-index:1000;font-size:14px}
@media(max-width:600px){.attendance-dialog-panel{padding:22px 18px}.attendance-dialog input:not([type=checkbox]),.attendance-dialog select{font-size:16px}.attendance-dialog-actions{flex-wrap:wrap}.attendance-toast{top:78px}.month-table .sticky-date{min-width:94px}}
@media(prefers-reduced-motion:reduce){.attendance-dialog[open]{animation:none}}

/* Company artwork, shared by login and workspace branding. */
.brand .brand-mark,.login-story .brand-mark{width:48px;height:48px;flex:0 0 48px;background:#fff;border-radius:12px;box-shadow:0 3px 12px #25334b0d;overflow:hidden}
.hr-global-toast{position:fixed;right:28px;top:104px;bottom:auto;z-index:1000;padding:12px 18px;border:1px solid #d9e5ff;border-radius:14px;background:#fff;color:#36579b;box-shadow:0 14px 36px #1f37651f;font-size:14px;transition:opacity .2s,transform .2s}.hr-global-toast[hidden]{display:none}.hr-global-toast.is-error{border-color:#c9424e;background:#c9424e;color:#fff;box-shadow:0 14px 36px #a52c3930}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.deduction-text{display:block;color:#b44249}
.login-story .brand-mark{background:transparent;box-shadow:none;border-radius:0}
.login-panel .login-remember{display:flex;align-items:center;gap:8px;margin:0 0 20px;color:#526079;font-size:13px;cursor:pointer}
.schedule-row{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 38px;align-items:center;gap:12px;min-height:92px;padding:12px;border:1px solid #e9edf5;border-radius:14px;background:#fff;transition:box-shadow .2s ease,transform .2s ease}
.schedule-row:focus-within{z-index:30}
.schedule-row:hover{box-shadow:0 8px 24px #263b6412;transform:translateY(-1px)}
.schedule-row[draggable=true]{cursor:default}
.schedule-row[draggable=true]:active{cursor:default}
.schedule-row [data-search-picker]{cursor:grab}
.schedule-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 38px;gap:12px;padding:0 12px 7px;color:#8793a7;font-size:11px;font-weight:600}
.shift-time{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:center;gap:7px}
.shift-time>b{padding-bottom:12px;color:#a1aabd;font-size:12px;text-align:center;font-weight:500}
.shift-time>b{padding:0}
.schedule-row input:not([type=hidden]),.schedule-row select,.search-select-trigger{width:100%;min-width:0;height:38px;min-height:38px;margin:0;padding:8px 10px;border:1px solid #dfe5ef;border-radius:8px;background:#fff;color:#34445d;font-size:13px;line-height:20px;box-shadow:none}
.schedule-row select{appearance:none;-webkit-appearance:none;padding-right:30px;background-image:linear-gradient(45deg,transparent 50%,#8793a7 50%),linear-gradient(135deg,#8793a7 50%,transparent 50%);background-position:calc(100% - 15px) 16px,calc(100% - 10px) 16px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.schedule-row input:not([type=hidden]):focus,.schedule-row select:focus,.search-select-trigger:focus{outline:0;border-color:#9db1ed;box-shadow:0 0 0 3px #607fe214}
.shift-person{min-width:0}
.search-select{position:relative;min-width:0}
.search-select-trigger{display:block;overflow:hidden;padding:8px 28px 8px 10px;text-align:left;text-overflow:ellipsis;white-space:nowrap;position:relative;cursor:pointer}
.search-select-trigger.is-placeholder{color:#b0b8c8}
.search-select-trigger::after{content:'\2304';position:absolute;right:10px;top:8px;color:#8995aa;font-size:14px}
.search-select-clear{position:absolute;right:8px;top:3px;z-index:2;width:14px;height:14px;border:0;border-radius:50%;background:#eef1f6;color:#7d899d;font-size:11px;line-height:13px;padding:0;cursor:pointer;opacity:.7}
.search-select-clear:hover{background:#e1e7f2;color:#45536b;opacity:1}
.search-select-menu{position:absolute;top:43px;left:0;right:0;z-index:15;padding:8px;border:1px solid #dce3f0;border-radius:12px;background:#fff;box-shadow:0 15px 35px #263b641f}
.search-select-menu input{height:34px!important;margin:0 0 7px!important;background:#f7f9fc!important;font-size:12px!important}
.search-select-options{max-height:160px;overflow:auto;display:grid;gap:3px}
.search-select-options button{border:0;border-radius:7px;background:transparent;color:#3f4d65;padding:8px 9px;text-align:left;font-size:13px;cursor:pointer}
.search-select-options button:hover{background:#eef2ff;color:#4f6bd2}
.search-select-options button[hidden]{display:none}
.schedule-card{overflow:visible}
.positions-grid:has(.schedule-card){grid-template-columns:repeat(2,minmax(0,1fr))}
.schedule-card{min-width:0}
.schedule-card-head{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:15px;margin:0 0 20px;padding:20px 22px;border:1px solid #e7ebf5;border-radius:18px;background:linear-gradient(135deg,#f8faff 0%,#fff 62%);box-shadow:0 10px 26px #2439680a;overflow:hidden}
.schedule-card-head::after{content:'';position:absolute;right:-42px;top:-56px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#dce6ff 0%,#eef3ff 42%,transparent 70%);opacity:.75;pointer-events:none}
.schedule-room-mark{position:relative;z-index:1;display:grid;place-items:center;width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#4d6bea,#7992f5);color:#fff;box-shadow:0 10px 18px #4265e933;line-height:1}
.schedule-room-mark-label{font-size:8px;letter-spacing:1.3px;opacity:.76}
.schedule-room-mark strong{font-size:22px;letter-spacing:-.7px}
.schedule-room-title{position:relative;z-index:1;min-width:0}
.schedule-room-kicker{display:block;margin-bottom:5px;color:#8b98b0;font-size:10px;font-weight:700;letter-spacing:1.4px}
.schedule-room-title h2{margin:0;overflow:hidden;color:#202b40;font-size:19px;line-height:1.35;letter-spacing:-.3px;text-overflow:ellipsis;white-space:nowrap}
.schedule-room-title h2 i{font-style:normal;color:#9aa8c0;margin:0 4px}
.schedule-room-state{position:relative;z-index:1;display:flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #f2dfc5;border-radius:999px;background:#fff8ef;color:#b57932;font-size:11px;font-weight:600;white-space:nowrap}
.schedule-live-dot{width:6px;height:6px;border-radius:50%;background:#e4a34b;box-shadow:0 0 0 4px #e4a34b1c}
.schedule-room-state.is-scheduled{border-color:#dcefe7;background:#f4fbf8;color:#4b8d73}
.schedule-room-state.is-scheduled .schedule-live-dot{background:#55b992;box-shadow:0 0 0 4px #55b9921c}
.schedule-room-state.is-running{border-color:#f2cdd2;background:#fff1f3;color:#bd4d61}
.schedule-room-state.is-running .schedule-live-dot{background:#d9687a;box-shadow:0 0 0 4px #d9687a1c}
.schedule-room-state.is-completed{border-color:#d5e2f7;background:#f0f5ff;color:#547ab8}
.schedule-room-state.is-completed .schedule-live-dot{background:#7097d2;box-shadow:0 0 0 4px #7097d21c}
.schedule-shifts{display:grid;gap:10px}
.schedule-shifts{gap:0;padding:0 14px;border:1px solid #e4e9f3;border-radius:15px;background:#fff;overflow:visible}
.schedule-shifts .schedule-row{min-height:46px;border:0;border-bottom:1px solid #edf0f5;border-radius:0;background:transparent;box-shadow:none;transform:none;padding:3px 0}
.schedule-shifts .schedule-row input:not([type=hidden]),.schedule-shifts .schedule-row .search-select-trigger{height:34px;min-height:34px;padding:6px 8px}
.schedule-shifts .schedule-row:hover{background:#fafbff;box-shadow:none;transform:none}
.schedule-shifts .schedule-row:last-child{border-bottom:0}
.schedule-shifts > .schedule-empty{border:0;border-radius:0;background:transparent}
.schedule-remove{align-self:center;justify-self:end;min-width:38px;white-space:nowrap}
.schedule-operator{display:flex;align-items:center;gap:12px;margin:16px 0 20px;padding:16px 0;border-top:1px solid #edf0f5}
.schedule-field-label{color:#66738a;font-size:11px;font-weight:600;white-space:nowrap}
.schedule-operator select{flex:0 1 280px;width:280px;max-width:100%;height:38px;margin:0;padding-right:0;font-size:13px}
.schedule-operator select:has(option[value=""]:checked){color:#8995aa;font-size:12px}
.schedule-operator select option{color:var(--ink);font-size:13px}
.schedule-operator select option[value=""]{color:#8995aa;font-size:12px}
.schedule-operator .schedule-add{margin-left:auto;white-space:nowrap}
.schedule-room-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}
.schedule-room-actions .button{height:42px;min-height:42px;padding:0 14px}
.schedule-room-actions .schedule-clear{gap:6px}
.schedule-clear-icon{display:block;flex:0 0 14px}
.schedule-operator .schedule-room-actions .schedule-add{margin-left:0}
.schedule-operator:has(.schedule-room-actions) select{min-width:0}
.schedule-row [data-search-picker][draggable="true"]:hover{z-index:20}
.schedule-row:has([data-search-picker][draggable="true"]:hover){position:relative;z-index:30}
.schedule-row [data-search-picker][draggable="true"]::before{content:"拖动姓名可交换位置";position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);padding:6px 9px;border:1px solid #e5eaf2;border-radius:6px;background:#fff;color:#8793a8;font-size:11px;font-weight:400;line-height:1.5;white-space:nowrap;box-shadow:0 4px 12px #25334b12;pointer-events:none;opacity:0;visibility:hidden}
.schedule-row [data-search-picker][draggable="true"]:hover::before{opacity:1;visibility:visible}
.schedule-row [data-search-picker][draggable="true"]:focus-within::before{opacity:0;visibility:hidden}
.schedule-row [data-search-picker][draggable="true"]:has([data-picker-menu]:not([hidden]))::before{opacity:0;visibility:hidden}
.schedule-card:has([data-picker-menu]:not([hidden])) .schedule-row [data-search-picker][draggable="true"]::before{opacity:0;visibility:hidden}
.schedule-row [data-search-picker][draggable="true"][data-schedule-tip]::before{content:attr(data-schedule-tip);white-space:pre-line;width:max-content;max-width:280px;text-align:left}
.schedule-row [data-search-picker]:not([draggable="true"])::before{content:none;display:none}
.schedule-row [data-search-picker].has-schedule-conflict::before{left:0;transform:none;max-width:min(280px,calc(100vw - 40px))}
.schedule-row .shift-person:nth-child(3) .has-schedule-conflict::before{left:auto;right:0}
.schedule-row .has-schedule-conflict .search-select-trigger{background:hsl(var(--conflict-hue) 75% 96%);border-color:hsl(var(--conflict-hue) 48% 65%);color:hsl(var(--conflict-hue) 45% 32%)}
.schedule-row .has-schedule-conflict .search-select-trigger:focus{border-color:hsl(var(--conflict-hue) 48% 55%);box-shadow:0 0 0 3px hsl(var(--conflict-hue) 60% 90% / .5)}
/* Keep the existing menu/tooltip layers. While selecting, no other row may rise over the menu. */
#schedules-form:has([data-picker-menu]:not([hidden])) .schedule-row{z-index:auto}
#schedules-form:has([data-picker-menu]:not([hidden])) [data-search-picker]{z-index:auto}
#schedules-form .schedule-row:has([data-picker-menu]:not([hidden])){position:relative;z-index:30}
#schedules-form [data-search-picker]:has([data-picker-menu]:not([hidden])){z-index:20}
#schedules-form:has([data-picker-menu]:not([hidden])) [data-search-picker]::before,
#schedules-form.schedule-is-dragging [data-search-picker]::before{opacity:0;visibility:hidden}
.schedule-conflicts{margin:0 0 20px;padding:12px 16px;border:1px solid #f0dfbb;border-radius:12px;background:#fffbf2;color:#8a6630;font-size:13px}
.schedule-conflicts[hidden]{display:none}
.schedule-conflicts summary{cursor:pointer;font-weight:550}
.schedule-conflicts ul{max-height:220px;overflow:auto;margin:12px 0 0;padding:0 0 0 20px;line-height:1.8}
.schedule-card .button-row{display:grid;grid-template-columns:140px 180px;align-items:center;justify-content:space-between;gap:12px;margin-top:38px;padding-top:0}
.schedule-card .button-row .button{width:100%;min-width:0;height:42px;padding:10px 12px;white-space:nowrap}
.schedule-empty{display:flex;align-items:center;justify-content:center;min-height:92px;padding:20px;border:1px dashed #dce3ef;border-radius:14px;background:#fafbfe;color:#8995aa;font-size:12px;text-align:center}
.schedule-date-toolbar{display:flex;align-items:flex-end;gap:9px;margin-bottom:24px;min-width:0}
.schedule-date-form{flex:0 0 auto;margin-bottom:0}
.schedule-date-strip{display:flex;flex:1;min-width:0;gap:9px;margin:-2px 0 0;padding:2px 0 0;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin}
.schedule-date-chip{display:flex;flex:0 0 auto;height:42px;min-width:92px;align-items:center;gap:8px;padding:0 14px;border:1px solid #e5eaf2;border-radius:9px;background:#fff;color:#65738c;box-shadow:none;scroll-snap-align:start;text-decoration:none;transition:border-color .2s,background .2s,box-shadow .2s,transform .2s}
.schedule-date-chip:hover{border-color:#c8d2e5;background:#f8faff;box-shadow:0 5px 12px #25334b12;transform:translateY(-1px)}
.schedule-date-chip strong{color:#65738c;font-size:13px;font-weight:600;white-space:nowrap}
.schedule-date-chip span{color:#65738c;font-size:10px;white-space:nowrap}
.schedule-date-chip.selected{border-color:#5875e5;background:#eef2ff;box-shadow:0 7px 18px #526fd526}
.schedule-date-chip.selected strong{color:#4564d7}
.schedule-date-chip.selected span{color:#6f83d7}
.schedule-date-actions{display:flex;flex:0 0 auto;align-items:center;align-self:flex-end;height:42px;gap:9px;margin:0;padding-bottom:0}
.schedule-date-actions .button,.schedule-date-nav-button{height:42px;min-height:42px;font-size:12px;margin:0}
.schedule-date-actions .schedule-date-nav-button{gap:7px}
.schedule-nav-arrow{display:inline-block;font-size:10px;line-height:1}
.schedule-nav-arrow.is-previous{transform:rotate(180deg)}
@media(max-width:850px){.schedule-date-toolbar{display:block}.schedule-date-strip{margin-top:12px}}
@media(max-width:1349px){.positions-grid:has(.schedule-card){grid-template-columns:1fr}}
@media(max-width:900px){.schedule-columns{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 30px}.schedule-row{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 30px}}
@media(max-width:850px){.positions-grid:has(.schedule-card){grid-template-columns:1fr}}
@media(max-width:600px){.schedule-columns{display:none}.schedule-row{grid-template-columns:1fr 1fr 30px}.shift-time{grid-column:1/-1}.schedule-operator{padding-left:0;padding-right:0;flex-wrap:wrap}.schedule-operator select{flex:1 1 180px;width:auto;min-width:0}.schedule-operator .schedule-add{margin-left:auto}.schedule-card .button-row{grid-template-columns:1fr 1.25fr}}
@media(max-width:600px){.schedule-card-head{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:16px}.schedule-room-mark{width:48px;height:48px;border-radius:14px}.schedule-room-mark strong{font-size:18px}.schedule-room-state{grid-column:2;justify-self:start;margin-top:-6px}.schedule-room-title h2{font-size:16px}}
.chat-record{padding:12px 0;border-bottom:1px solid #edf0f5}
.chat-record:last-child{border-bottom:0}
.chat-line{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:8px 12px;background:#f7f9fc;border-radius:10px;margin-top:6px;font-size:13px}
.chat-line span{color:#8290a7;font-variant-numeric:tabular-nums}
.chat-line p{margin:0;white-space:pre-wrap;color:#2f3e57}
.chat-append{display:flex;gap:8px;margin-top:10px}
.chat-append input[name=content]{flex:1;min-width:0}
.schedule-room-selection{margin-bottom:20px;padding:18px 20px;background:#fff;border:1px solid #e7ebf5;border-radius:16px}
.schedule-room-selection>strong{display:block;margin-bottom:12px;font-size:14px;font-weight:600;color:#34445d}
.schedule-room-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:10px}
.schedule-room-option{position:relative;display:block;min-width:0;margin:0;cursor:pointer}
.schedule-room-option-body{display:flex;align-items:center;gap:10px;min-height:50px;height:100%;padding:9px 38px 9px 10px;border:1px solid #e3e8f3;border-radius:10px;background:#fafbfe;transition:background .18s,border-color .18s,box-shadow .18s}
.schedule-room-option-code{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:30px;height:30px;padding:0 5px;border-radius:8px;background:#edf1fb;color:#7282a7;font-size:12px;font-weight:600}
.schedule-room-option-name{min-width:0;color:#53617a;font-size:14px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.schedule-room-selection .schedule-room-option input[type=checkbox]{appearance:none;-webkit-appearance:none;position:absolute;z-index:1;right:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;min-width:17px;min-height:17px;padding:0;margin:0;border:1px solid #c9d2e5;border-radius:5px;background:#fff;box-shadow:none;cursor:pointer;transition:background .18s,border-color .18s}
.schedule-room-selection .schedule-room-option input[type=checkbox]:checked{border-color:var(--blue);background:var(--blue)}
.schedule-room-option input:checked::after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.schedule-room-option input:checked+.schedule-room-option-body{border-color:#a9b9fc;background:#f0f3ff}
.schedule-room-option input:checked+.schedule-room-option-body .schedule-room-option-code{background:#e0e7ff;color:var(--blue)}
.schedule-room-option input:checked+.schedule-room-option-body .schedule-room-option-name{color:#344fc4}
.schedule-room-option:hover input:not(:disabled)+.schedule-room-option-body{border-color:#a9b9fc;box-shadow:0 3px 10px #4265e90a}
.schedule-room-option input:focus-visible+.schedule-room-option-body{outline:2px solid var(--blue);outline-offset:3px}
.schedule-room-option:has(input:disabled){cursor:default}
.schedule-room-selection .schedule-room-option input:disabled{cursor:default}
@media(max-width:600px){.schedule-room-selection{padding:15px}.schedule-room-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.schedule-room-options{grid-template-columns:minmax(0,1fr)}}
.schedule-card[hidden]{display:none}
.button.schedule-reuse-button{color:#65738c;background:#fff;border:1px solid #e5eaf2;box-shadow:none}
.button.schedule-reuse-button:hover{background:#f0f3fa}
/* Schedule toolbar sample: date first, room selection below. */
.schedule-planning-panel{padding:20px;margin-bottom:24px;background:#fff;border:1px solid #e7ebf5;border-radius:16px;box-shadow:0 4px 18px #263b6803}
.schedule-planning-panel .schedule-date-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0;padding:0 0 18px}
.schedule-planning-panel .schedule-date-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0}
.schedule-planning-panel .schedule-date-label{font-size:14px;font-weight:600;line-height:1.5;letter-spacing:0;color:#34445d}
.schedule-planning-panel .schedule-date-label input{width:154px;height:42px;min-height:42px;margin-top:10px;border-radius:9px;font-size:13px;font-weight:400}
.schedule-planning-panel .schedule-date-actions{gap:10px}
.schedule-planning-panel .schedule-date-strip{flex:1 1 290px;gap:10px;margin:-4px 0;padding:4px 0;min-height:50px}
.schedule-planning-panel .schedule-date-chip{height:42px;gap:8px;padding:0 14px;border-radius:9px}
.schedule-planning-panel .schedule-date-chip strong{font-size:13px;font-weight:550}
.schedule-planning-panel .schedule-date-chip span{font-size:11px}
.schedule-planning-panel .schedule-date-actions .button,.schedule-heading-actions .button{height:42px;min-height:42px;padding:0 16px;border-radius:9px;font-size:13px;font-weight:550;line-height:1.5}
.page-heading:has(.schedule-heading-actions){flex-wrap:wrap;gap:18px}
.page-heading:has(.schedule-heading-actions)>.heading-actions{flex-shrink:0;margin-left:auto}
.schedule-heading-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.schedule-heading-actions .button{width:132px;min-width:132px;flex:0 0 132px}
.schedule-heading-actions [data-schedule-reuse],.schedule-heading-actions [data-schedule-preview]{width:auto;min-width:0;flex:0 0 auto;padding:0 12px;font-size:12px}
.schedule-preview-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:transparent;overflow:hidden;box-shadow:none;outline:0}
.schedule-preview-dialog[open]{display:flex;flex-direction:column}
body:has(.schedule-preview-dialog[open]){overflow:hidden}
.schedule-preview-dialog::backdrop{background:#17243a99;backdrop-filter:blur(4px)}
.schedule-preview-image-actions{position:fixed;display:flex;align-items:center;gap:6px;opacity:0;visibility:hidden;transition:opacity .15s;filter:drop-shadow(0 3px 8px #263b6826)}
.schedule-preview-image-actions button,.schedule-preview-image-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 12px;border:1px solid #dfe5f0;border-radius:7px;background:#fff;color:#52647f;font-size:12px;line-height:1.4;text-decoration:none;cursor:pointer}
.schedule-preview-image-actions .schedule-preview-close{width:32px;padding:0;font-size:23px}
.schedule-preview-paper:hover .schedule-preview-image-actions,.schedule-preview-paper:focus-within .schedule-preview-image-actions{opacity:1;visibility:visible}
.schedule-preview-dialog.is-image-dragging .schedule-preview-image-actions{opacity:0;visibility:hidden}
.schedule-preview-viewport{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;background:transparent;user-select:none}
.schedule-preview-stage{display:flex;align-items:center;justify-content:center}
.schedule-preview-paper{position:relative;flex:0 0 auto;box-shadow:0 5px 25px #263b6826;background:#fff}
.schedule-preview-paper img{display:block;width:100%;height:100%;max-width:none;user-select:none;-webkit-user-drag:element;cursor:grab}
.schedule-preview-toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:9px;background:#25344ded;color:#fff;font-size:13px;pointer-events:none;box-shadow:0 4px 16px #17243a26}
.schedule-preview-toast[hidden]{display:none}
@media(max-width:600px){.schedule-heading-actions{flex-wrap:wrap}.schedule-preview-dialog{width:100vw;height:100dvh}.schedule-preview-image-actions button,.schedule-preview-image-actions a{padding:6px 9px}}
.schedule-planning-panel .schedule-room-selection{padding:18px 0 0;margin:0;border:0;border-top:1px solid #edf0f5;border-radius:0;background:transparent}
.schedule-planning-panel .schedule-room-selection>strong{margin-bottom:12px;line-height:1.5}
.schedule-room-selection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.schedule-assignment-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:24px;border-top:1px solid #edf0f5;margin-top:18px;padding-top:18px}
.schedule-planning-panel .schedule-assignment-grid .schedule-room-selection{border:0;padding:0}
.schedule-people-planning{border-left:1px solid #e6ebf5;padding-left:24px;min-width:0}
.schedule-planning-note{font-size:12px;color:#8b99b1}
.schedule-rest-picker{position:relative}
.schedule-rest-picker summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 14px;border:1px solid #dce4f2;border-radius:10px;background:#fff;cursor:pointer;color:#435574}
.schedule-rest-picker summary::-webkit-details-marker{display:none}
.schedule-rest-picker summary>span:first-child{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.65}
.schedule-rest-picker[open] summary{border-color:#788cff;box-shadow:0 0 0 3px #eef1ff}
.schedule-rest-menu{position:absolute;z-index:70;top:calc(100% + 8px);left:0;right:0;background:#fff;padding:12px;border:1px solid #e0e6f4;border-radius:12px;box-shadow:0 12px 32px #263d6526}
.schedule-rest-list{max-height:280px;overflow:auto;overscroll-behavior:contain}
.schedule-rest-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:12px;margin-top:10px;border-top:1px solid #edf0f5}
.schedule-rest-actions .button{min-height:34px;padding:6px 16px;font-size:13px}
.schedule-rest-group{display:block;padding:10px 8px 5px;font-size:12px;color:#8997ae}
.schedule-rest-option{display:flex;align-items:center;gap:10px;padding:8px;border-radius:7px;cursor:pointer;margin:0}
.schedule-rest-option:hover{background:#f3f5ff}
.schedule-rest-option input[type=checkbox]{appearance:auto!important;flex:0 0 16px!important;width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;margin:0!important;accent-color:#526cf3}
.schedule-rest-option[hidden]{display:none}
.schedule-unassigned{margin-top:16px}
.schedule-unassigned>strong{font-size:12px;font-weight:500;color:#8391aa}
.schedule-unassigned>strong span{margin-left:5px;color:#536be1}
.schedule-unassigned>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px;font-size:12px;color:#8b99b1}
.schedule-unassigned>div>span{padding:4px 9px;background:#f1f4fa;border:1px solid #e7ecf5;border-radius:6px;color:#60718c}
.search-select-options [data-picker-option]:disabled{color:#b2bac9;background:#f7f8fb;cursor:not-allowed}
@media(max-width:800px){.schedule-assignment-grid{grid-template-columns:minmax(0,1fr);gap:18px}.schedule-people-planning{padding:18px 0 0;border-left:0;border-top:1px solid #edf0f5}}
.schedule-room-selection-heading strong{font-size:14px;font-weight:600;line-height:1.5;color:#34445d}
.schedule-room-selection-heading .schedule-room-names-button{min-height:30px;height:30px;padding:0 11px;font-size:12px;border-radius:7px}
.schedule-planning-organized{padding:0;box-shadow:0 6px 24px #293e6805;border-radius:18px}
.schedule-planning-organized .schedule-section-title{display:flex;align-items:center;gap:10px;min-width:0}
.schedule-planning-organized .schedule-section-title>span{display:inline-grid;place-items:center;flex:0 0 26px;height:26px;border:1px solid #dfe7ff;border-radius:8px;background:#eef3ff;color:#617bd6;font-size:11px;font-weight:650;letter-spacing:.3px}
.schedule-planning-organized .schedule-section-title strong{font-size:14px;font-weight:650;color:#34445d;line-height:1.5}
.schedule-planning-organized .schedule-date-section{padding:20px 22px;background:linear-gradient(110deg,#f5f8ff,#fcfdff 65%,#fff);border-bottom:1px solid #e7edf7;border-radius:18px 18px 0 0}
.schedule-planning-organized .schedule-date-section>.schedule-section-title{margin-bottom:14px}
.schedule-planning-organized .schedule-date-toolbar{align-items:center;gap:14px;padding:0}
.schedule-planning-organized .schedule-date-label input{margin:0;background:#fff}
.schedule-planning-organized .schedule-date-strip{flex:0 1 auto;gap:10px;margin:0;padding:4px 2px;overflow:visible;min-height:50px}
.schedule-planning-organized .schedule-assignment-grid{gap:0;margin:0;padding:22px;border:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.schedule-planning-panel.schedule-planning-organized .schedule-assignment-grid .schedule-room-selection{padding:0 24px 0 0}
.schedule-planning-organized .schedule-people-planning{padding-left:24px;border-color:#e7edf7}
.schedule-planning-organized .schedule-room-selection-heading{height:30px;margin-bottom:16px;gap:8px}
.schedule-planning-organized .schedule-room-options{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:9px}
.schedule-planning-organized .schedule-rest-picker summary{min-height:50px;background:#fafbfe;border-color:#e3e8f3;align-items:flex-start}
.schedule-planning-organized .schedule-rest-picker summary>span:last-child{align-self:center;flex:0 0 auto;color:#8d9ab2}
.schedule-planning-organized .schedule-unassigned{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:18px 0 0;padding:14px;background:#fafbfe;border:1px solid #edf1f7;border-radius:10px}
.schedule-planning-organized .schedule-unassigned>strong{flex:0 0 auto;line-height:28px;color:#7a8ba6}
.schedule-planning-organized .schedule-unassigned>strong span{display:inline-block;min-width:20px;text-align:center;background:#eaf0fe;border-radius:5px;line-height:20px}
.schedule-planning-organized .schedule-unassigned>div{margin:0;align-self:stretch}
.schedule-planning-organized .schedule-unassigned>div>span{background:#fff;border-color:#e6ebf5}
@media(max-width:1000px){.schedule-planning-organized .schedule-date-toolbar{gap:10px}.schedule-planning-organized .schedule-date-strip{flex-wrap:wrap}.schedule-planning-organized .schedule-assignment-grid{grid-template-columns:minmax(0,1fr)}.schedule-planning-panel.schedule-planning-organized .schedule-assignment-grid .schedule-room-selection{padding:0 0 20px}.schedule-planning-organized .schedule-people-planning{padding:20px 0 0;border-left:0;border-top:1px solid #e7edf7}}
@media(max-width:600px){.schedule-planning-panel.schedule-planning-organized{padding:0}.schedule-planning-organized .schedule-date-section,.schedule-planning-organized .schedule-assignment-grid{padding:16px}.schedule-planning-organized .schedule-unassigned{padding:14px 16px;gap:8px;flex-direction:column}.schedule-planning-organized .schedule-date-strip{flex-basis:auto}.schedule-planning-organized .schedule-room-selection-heading{height:auto;min-height:30px;flex-wrap:wrap}.schedule-planning-organized .schedule-room-options{grid-template-columns:minmax(0,1fr)}}
.schedule-room-names-dialog{width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:24px;border:1px solid #e5eaf4;border-radius:18px;background:#fff}
.schedule-room-names-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.schedule-room-names-heading h3{margin:0;color:#26354d;font-size:20px}
.schedule-room-names-heading button{width:30px;height:30px;padding:0;border:0;border-radius:7px;background:transparent;color:#8995aa;font-size:22px;cursor:pointer}
.schedule-room-names-dialog p{margin:10px 0 20px;font-size:13px;line-height:1.7;color:#8995aa}
.schedule-room-names-list{display:grid;gap:12px;max-height:calc(100dvh - 300px);overflow:auto;padding:2px}
.schedule-room-name-row{display:flex;align-items:center;gap:12px;margin:0;padding:10px;border:0;border-radius:10px;background:#fff}
.schedule-room-name-row>span{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:48px;flex:0 0 auto;padding:7px 9px;border:0;background:transparent;color:#708098;text-align:center;font-size:13px;font-weight:550}
.schedule-room-name-row>span::before{content:"";width:3px;height:12px;flex:0 0 3px;border-radius:2px;background:#9caeec}
.schedule-room-name-row input{flex:1;min-width:0;width:100%;height:40px;margin:0;padding:8px 10px;font-size:14px;background:#fff;border-color:#e5eaf4;color:#26354d}
.schedule-room-name-row input:focus{border-color:#9caeec}
.schedule-room-names-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;padding-top:18px;border-top:1px solid #e7ebf3}
.schedule-room-names-actions .button{height:40px;min-height:40px;padding:0 18px;font-size:13px}
.schedule-room-names-message{margin-top:14px;color:#bb475c;font-size:13px}
@media(max-width:600px){.schedule-planning-panel{padding:16px}.schedule-planning-panel .schedule-date-strip{flex-basis:100%;margin:-4px 0}.schedule-planning-panel .schedule-date-form{gap:10px}.schedule-planning-panel .schedule-date-actions .button{padding:0 12px}}
@media(max-width:600px){.page-heading:has(.schedule-heading-actions)>.heading-actions{margin-left:0}}
.account-label-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.account-disabled-tag{display:inline-flex;align-items:center;padding:2px 7px;border:1px solid #efb8bd;border-radius:6px;background:#fff1f2;color:#c33f4c;font-size:12px;line-height:1.5;font-weight:600}
.attendance-sticky-scroll{position:fixed;height:15px;padding:0;background:#f5f7fb;border:1px solid #dfe5f0;border-radius:999px;box-shadow:0 4px 14px #26385818;z-index:25;overflow-x:scroll;overflow-y:hidden;scrollbar-color:#8f99aa #f5f7fb;scrollbar-width:auto}
.attendance-sticky-scroll::-webkit-scrollbar{height:15px}
.attendance-sticky-scroll::-webkit-scrollbar-track{background:#f5f7fb;border-radius:999px}
.attendance-sticky-scroll::-webkit-scrollbar-thumb{background:#8f99aa;border:0;border-radius:999px}
.attendance-sticky-scroll::-webkit-scrollbar-thumb:hover{background:#7e899b}
.month-table-scroll{scrollbar-width:none;padding-bottom:18px}
.month-table-scroll::-webkit-scrollbar{height:0}
.month-table-scroll{cursor:grab;overflow-anchor:none}
.month-table-scroll.is-dragging{cursor:grabbing;user-select:none}
.drag-scroll-list{cursor:grab;user-select:none}
.payroll-pinned-row{position:fixed;overflow:hidden;z-index:19;pointer-events:none;background:#fafbfe}
.payroll-pinned-row[hidden]{display:none}
.payroll-pinned-row table{table-layout:fixed;min-width:0;margin:0;will-change:transform}
.payroll-pinned-head{box-shadow:0 2px 6px #25344d14}
.payroll-pinned-foot{box-shadow:0 -2px 6px #25344d14}
.month-table-scroll{max-height:none}
.month-table-scroll .month-table>thead,.month-table-scroll .month-table>tfoot{position:static}
.attendance-pinned-row .month-table>thead,.attendance-pinned-row .month-table>tfoot{position:static}
.drag-scroll-list.is-dragging,.drag-scroll-list.is-dragging *{cursor:grabbing!important;user-select:none}
.month-table-scroll a,.month-table-scroll button{-webkit-user-drag:none}
.calendar-date em{grid-column:1/-1;justify-self:center;display:block;width:max-content;margin:3px auto 0;padding:2px 6px;border:1px solid #d5defb;border-radius:999px;background:#f1f4ff;color:var(--blue);font-size:9px;line-height:1.2;font-style:normal;font-weight:700;white-space:nowrap}
.attendance-sticky-scroll>div{height:1px}
@media(max-width:600px){.attendance-sticky-scroll{left:12px;right:12px;bottom:76px}}
@media(max-width:850px){.sidebar .brand .brand-mark{width:40px;height:40px;flex-basis:40px;border-radius:10px}}
@media(max-width:600px){.live-room-row{grid-template-columns:1fr 1fr}.live-room-row button{justify-self:start}}
