:root{font-family:"Microsoft JhengHei","Noto Sans TC",system-ui,sans-serif;color:#18383e;background:#f2f5f6;font-size:16px;--teal:#136b68;--line:#dce5e7}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);background:white;color:#23474d;padding:10px 17px;border-radius:9px;min-height:44px;font-weight:600}button:hover{background:#edf5f4}button:disabled{cursor:default;opacity:.5}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#105856}.danger{color:#a53838}.small{font-size:.875rem;padding:6px 12px}input,select,textarea{border:1px solid #cbd9dc;border-radius:8px;padding:10px;background:#fff;color:#18383e;max-width:100%;min-height:44px}textarea{width:100%;resize:vertical}input[type=checkbox]{min-height:auto;width:18px;height:18px;accent-color:var(--teal)}a{color:#146e70}h1,h2,h3,p{margin-top:0}h1{font-size:1.7rem;letter-spacing:.03em;margin-bottom:8px}h2{font-size:1.25rem;margin-bottom:18px}h3{font-size:1rem}p{line-height:1.7}.muted{color:#60767d;font-size:.875rem}.eyebrow{font-size:.875rem;letter-spacing:.15em;color:#58b9af;font-weight:700}.topbar{background:#123e45;color:#fff;padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:13px}.brandmark{width:42px;height:42px;border:1px solid #679293;border-radius:12px;display:grid;place-items:center;font-weight:700;font-size:1.3rem}.brand small{display:block;color:#a4c7c8;margin-top:5px;font-size:.875rem}.topright{display:flex;align-items:center;gap:15px;font-size:.875rem}.topright button{background:transparent;border-color:#588087;color:white}.shell{max-width:1520px;padding:28px 32px 50px;margin:auto}.notice{background:#e6efee;border:1px solid #ccdeda;padding:12px 16px;border-radius:10px;font-size:.875rem;line-height:1.7;margin-bottom:22px}.notice.warn{background:#fff5df;border-color:#eddbaf;color:#72521b}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}.pagehead p{margin-bottom:0}.tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:24px;overflow:auto}.tabs button{white-space:nowrap;background:transparent;border:0;border-radius:0;padding:14px 22px;color:#5e767c}.tabs button.active{border-bottom:3px solid var(--teal);color:var(--teal)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat,.card{background:white;border:1px solid var(--line);border-radius:13px}.stat{padding:19px 22px;display:flex;justify-content:space-between;align-items:center}.stat strong{display:block;font-size:1.7rem;margin-top:7px}.stat .icon{font-size:1.4rem;color:#739b98}.stat span{font-size:.875rem;color:#637c81}.card{padding:24px;margin-bottom:20px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px;flex-wrap:wrap}.legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:.875rem}.badge{border-radius:6px;display:inline-block;font-size:.875rem;font-weight:600;padding:4px 8px;background:#edf2f4;color:#59737b}.O{background:#e8eafb;color:#5558a1}.R{background:#e0f0fa;color:#276c99}.H{background:#fcebe6;color:#ae5541}.ok{background:#e2f3ea;color:#276a4c}.pending{background:#fff0d4;color:#86601f}.sheetwrap{overflow:auto;border:1px solid var(--line);border-radius:9px;max-height:620px}.sheet{border-collapse:separate;border-spacing:0;min-width:1450px;width:100%;font-size:.875rem}.sheet th,.sheet td{border-right:1px solid #e7edef;border-bottom:1px solid #e7edef;text-align:center;height:49px;padding:4px}.sheet thead th{position:sticky;top:0;z-index:3;background:#f5f8f9;height:98px;min-width:38px;font-weight:500}.sheet .person{position:sticky;left:0;background:white;z-index:2;min-width:170px;text-align:left;padding:11px 13px;box-shadow:2px 0 4px #173e3c0b}.sheet thead .person{z-index:4;background:#f5f8f9}.sheet .mine .person{border-left:3px solid var(--teal);background:#f1f8f6}.sheet .daynum{display:block;font-size:1.1rem;font-weight:700;margin-bottom:3px}.sheet .event{font-size:.75rem;display:block;line-height:1.3;margin-top:5px;color:#856b34;min-height:31px}.sheet .weekend{background:#fdf6f0}.sheet td.weekend{background:#fffcf8}.sheet td button{border:0;min-height:35px;min-width:31px;padding:4px;border-radius:6px}.sheet .empty{background:transparent;color:#9bacaf}.sheet td .empty:hover{background:#e5eeeb}.sheet .person small{display:block;color:#72878b;font-size:.75rem;margin-top:4px}.sheet .summary{min-width:110px}.footerline{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:18px;flex-wrap:wrap}.checks{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.checkpanel{background:#f5f8f9;border-radius:9px;padding:16px;margin-top:18px;font-size:.875rem;line-height:1.9}.checkpanel ul{margin:6px 0;padding-left:20px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:.875rem}.field.full{grid-column:1/-1}.field input,.field select{width:100%}.peoplewrap{overflow:auto}.people{width:100%;border-collapse:collapse;font-size:.875rem}.people td,.people th{padding:10px 6px;text-align:left;border-bottom:1px solid var(--line)}.people input{width:130px}.people .nameinput{width:150px}.people th{background:#f5f8f9;font-weight:500}.groupbox{padding:16px;background:#f5f8f9;border:1px solid var(--line);border-radius:9px;margin-bottom:12px}.groupmembers{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.groupmembers label{display:flex;align-items:center;gap:6px;font-size:.875rem}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.calhead{text-align:center;font-size:.875rem;padding:9px}.calday{border:1px solid var(--line);border-radius:9px;padding:12px;min-height:110px;background:white}.calday.holiday{border-color:#e7b69c;background:#fff7f0}.calday strong{font-size:1.15rem}.calday .event{font-size:.875rem;margin-top:8px;color:#71633c;line-height:1.5}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.loginintro{background:#123e45;color:white;padding:10vh 9%;display:flex;flex-direction:column;justify-content:center}.loginintro h1{font-size:2.7rem;line-height:1.4;margin:28px 0 18px}.loginintro p{color:#b8d4d4;max-width:430px}.introline{height:1px;background:#3b6268;margin:35px 0}.introfeatures{display:flex;gap:25px;flex-wrap:wrap;color:#d1e4e3;font-size:.875rem}.loginform{display:flex;align-items:center;justify-content:center;padding:35px}.loginbox{max-width:390px;width:100%}.loginbox h2{font-size:1.7rem}.loginbox .field{margin:20px 0}.loginbox button{width:100%;margin:10px 0}.loginerror{color:#a53838;min-height:24px;font-size:.875rem}.loginsub{line-height:1.7}.exportcard{border-top:4px solid var(--teal)}.exportcard button{margin-top:10px}.networkurl{display:block;margin-top:9px;font-size:1.05rem;word-break:break-all}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#163f43;color:white;padding:13px 22px;border-radius:10px;box-shadow:0 6px 30px #0002;z-index:20;display:none;max-width:92%;font-size:.875rem}dialog{border:1px solid var(--line);border-radius:15px;box-shadow:0 10px 70px #1234;padding:25px;width:350px;max-width:92%}dialog::backdrop{background:#123e4555}dialog .codes{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:20px 0}dialog .codes button{font-size:1.2rem;padding:16px 5px}.error{color:#a53838}.statusrow{padding:12px 0;border-bottom:1px solid var(--line)}.resultlink{display:block;margin-top:15px}.exportstatus{line-height:1.8;font-size:.875rem;color:#526d74}.policy{font-size:.875rem;color:#667d83;line-height:1.8}.emptyview{text-align:center;padding:60px 25px}.audit{font-size:.875rem;line-height:1.9}.mobileonly{display:none}@media(max-width:900px){.grid2{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.login{grid-template-columns:1fr}.loginintro{padding:32px}.loginintro h1{font-size:1.8rem;margin:14px 0}.introline,.introfeatures{display:none}.loginform{padding:32px}.loginintro p{margin-bottom:0}.calendar{gap:4px}.calday{padding:8px;min-height:95px}.topbar{padding:17px 20px}.shell{padding:24px 20px}.topright .userlabel{display:none}}@media(max-width:540px){h1{font-size:1.4rem}.pagehead{align-items:flex-start;flex-direction:column}.shell{padding:20px 12px 35px}.card{padding:16px}.stats{gap:9px}.stat{padding:14px}.stat strong{font-size:1.4rem}.stat .icon{display:none}.tabs button{padding:12px 15px}.formgrid{grid-template-columns:1fr}.calendar{gap:3px}.calday{min-height:99px;padding:7px 4px}.calday .event{font-size:.75rem}.brand small{font-size:.75rem}.brandmark{width:35px;height:35px}.topbar{padding:14px 13px}.topright{gap:6px}.sheet .person{min-width:123px;max-width:123px;font-size:.875rem}.toolbar .tools{width:100%}.toolbar .tools select{flex:1;width:0}.mobileonly{display:block}.notice{padding:10px 12px}.sheetwrap{max-height:560px}.loginintro{padding:25px}.loginform{padding:28px 22px}}

.sheet .event,.sheet .person small{font-size:.875rem}

.month-controls{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.month-field{display:flex;flex-direction:column;gap:6px;font-size:.875rem;color:#60767d}.month-field select{color:#18383e}.month-controls button{white-space:nowrap}@media(max-width:540px){.month-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:10px}.month-field{grid-row:1}.month-field select{width:100%;min-width:0}.month-controls #create{grid-column:1/-1}.month-controls button{width:100%}}

.month-field{min-width:0}.month-controls{max-width:100%}

/* Compact worksheet: fixed square date cells, without stretching to the window. */
.shell{padding:16px 16px 36px}.topbar{padding:12px 20px}.notice{padding:7px 12px;margin-bottom:12px}.pagehead{margin-bottom:12px}.pagehead .eyebrow{display:none}.pagehead h1{font-size:1.4rem;margin:0 0 5px!important}.tabs{margin-bottom:12px}.tabs button{padding:9px 17px;min-height:38px}.stats{gap:10px;margin-bottom:12px}.stat{padding:9px 14px}.stat>div:first-child{display:flex;align-items:center;gap:14px}.stat strong{font-size:1.25rem;margin:0}.stat .icon{display:none}.card{padding:12px;margin-bottom:12px}.toolbar{margin-bottom:10px;gap:8px}.toolbar select{min-height:36px;padding:6px 10px}.sheetwrap{max-height:70vh;border-radius:2px}.sheet{--cell:30px;--person:170px;--status:100px;table-layout:fixed;min-width:0;width:calc(var(--person) + var(--day-count)*var(--cell) + var(--status));font-size:.875rem}.sheet th,.sheet td{width:var(--cell);min-width:0;height:var(--cell);padding:0;line-height:1.1;border-color:#cdd8dc}.sheet thead th{height:90px;min-width:0;width:var(--cell);vertical-align:top;padding-top:5px}.sheet .person{width:var(--person);min-width:var(--person);max-width:var(--person);padding:0 6px;height:var(--cell);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.sheet thead .person{padding:8px 6px;vertical-align:middle}.sheet .person-name{font-weight:600}.sheet .person small{display:inline;margin:0 0 0 5px;font-size:.875rem;line-height:1.1}.sheet .person .me-tag{padding:1px 3px;font-size:.875rem;line-height:1.1}.sheet .summary,.sheet tbody td:last-child{width:var(--status);min-width:var(--status);max-width:var(--status)}.sheet tbody td:last-child .badge{padding:2px 4px;line-height:1.2;white-space:nowrap}.sheet .daynum{font-size:.95rem;line-height:1.1;margin-bottom:3px}.sheet .event{font-size:.875rem;line-height:1.2;margin-top:5px;min-height:0;overflow-wrap:anywhere}.sheet td button{display:block;width:100%;height:calc(var(--cell) - 1px);min-height:0;min-width:0;line-height:calc(var(--cell) - 1px);padding:0;border:0;border-radius:0;font-size:.875rem;font-weight:600}.sheet td button:hover{outline:2px solid #478e89;outline-offset:-2px}.sheet .mine .person{border-left-width:2px}.footerline{margin-top:10px}.checkpanel{padding:10px;margin-top:10px}.checkpanel ul{margin:3px 0}.checks{gap:12px}
@media(max-width:900px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat>div:first-child{flex-direction:column;align-items:flex-start;gap:4px}.stat{padding:9px}.pagehead{align-items:flex-start;flex-direction:column}.month-controls{justify-content:flex-start}}
@media(max-width:540px){.shell{padding:12px 10px 28px}.card{padding:9px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.stat>div:first-child{flex-direction:row;align-items:center;gap:10px}.stat strong{font-size:1.1rem}.sheet{--cell:36px;--person:130px;--status:100px}.sheet .person small{display:none}.sheet .person{font-size:.875rem}.sheet thead th{height:100px}.sheetwrap{max-height:65vh}.sheet .person .me-tag{margin-left:2px}.tabs button{padding:9px 13px}.toolbar .legend{gap:8px}.mobileonly{margin-bottom:9px;line-height:1.5}}

/* Roster-only column split and aligned event/date header rows. */
.sheet{--employee:80px;--person:90px;--status:76px;--action:130px;--events-height:76px;--dates-height:42px;width:calc(var(--employee) + var(--person) + var(--day-count)*var(--cell) + var(--status) + var(--action))}
.sheet .employee-id{position:sticky;left:0;width:var(--employee);min-width:var(--employee);max-width:var(--employee);background:white;z-index:3;font-size:.875rem;font-weight:500;white-space:nowrap;padding:0 4px}
.sheet .person{left:var(--employee);width:var(--person);min-width:var(--person);max-width:var(--person);padding:0 4px;z-index:3}
.sheet thead .employee-id,.sheet thead .person{background:#f5f8f9;z-index:6;top:0;height:auto;vertical-align:middle;padding:4px}
.sheet thead .event-row{height:var(--events-height)}.sheet thead .date-row{height:var(--dates-height)}
.sheet thead th.date-event{height:var(--events-height);padding:3px 0;vertical-align:bottom;top:0;border-bottom:1px solid #cdd8dc}
.sheet .date-event .event{margin:0;line-height:1.18;min-height:0;font-size:.875rem}
.sheet thead th.date-head{height:var(--dates-height);padding:3px 0;top:var(--events-height);vertical-align:middle}
.sheet thead th.summary,.sheet thead th.row-action{height:auto;vertical-align:middle;padding:4px 0}
.sheet .row-action,.sheet tbody td.row-action{width:var(--action);min-width:var(--action);max-width:var(--action);padding:0;background:white}
.sheet .status-cell{width:var(--status);min-width:var(--status);max-width:var(--status)}
.sheet td .row-complete{background:var(--teal);color:white;width:100%;height:calc(var(--cell) - 1px);line-height:1.1;white-space:nowrap;font-size:.875rem;padding:0 3px}
.sheet .mine .employee-id,.sheet .mine .person{background:#eaf6f2}.sheet .mine .employee-id{border-left:2px solid var(--teal)}.sheet .mine .person{border-left:0}
.quota-stat{min-width:0}.quota-stat strong{white-space:nowrap;font-size:1.1rem}.stats{grid-template-columns:1fr 1fr 1.6fr 1fr}
.holiday-field h3{margin:0}.holiday-field p{margin:0}.holiday-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:8px 0}
.holiday-option{display:flex;align-items:center;gap:10px;border:1px solid #d7e3e2;border-radius:8px;padding:10px 12px;background:#f7faf9;cursor:pointer;font-size:.875rem}
.holiday-option input{flex-shrink:0}.holiday-option>span{flex:1;min-width:0}.holiday-option strong,.holiday-option>span>span{display:block;line-height:1.5}.holiday-option b{color:var(--teal);white-space:nowrap;font-size:.875rem}.holiday-option:has(input:checked){border-color:#5c9b91;background:#eef8f3}.holiday-total{padding:10px 12px;border-radius:8px;background:#e6f1ed;color:#245d51;font-weight:600}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.sheet{--employee:72px;--person:90px;--action:130px}.quota-stat strong{font-size:.95rem}.quota-stat>div:first-child{flex-wrap:wrap;gap:4px}.holiday-list{grid-template-columns:1fr}.holiday-option{padding:10px}}

/* Center staff identifiers and names on the monthly scheduling page only. */
.sheet .employee-id,.sheet .person{text-align:center;vertical-align:middle}

.sync-toolbar{display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap;font-size:.875rem;margin:0 0 10px;color:#296d56}.sync-toolbar #save-state{font-weight:600}.sheet{--counts:90px;width:calc(var(--employee) + var(--person) + var(--day-count)*var(--cell) + var(--counts)*2 + var(--status) + var(--action))}.sheet .count-cell,.sheet .remain-cell{width:var(--counts);min-width:var(--counts);max-width:var(--counts);font-variant-numeric:tabular-nums;white-space:nowrap}.sheet thead th.count-cell,.sheet thead th.remain-cell{height:auto;vertical-align:middle;padding:4px 0;line-height:1.5}.sheet tbody .count-cell{background:#f2f7fa}.sheet tbody .remain-cell{background:#f0f8f4}.sheet .count-cell,.sheet .remain-cell{font-size:.875rem}#sync-notice span{display:block}#sync-notice button{margin-top:6px}

/* Review changes: original Excel count order, compact rows and proxy brackets. */
.stats{grid-template-columns:1.1fr 1.6fr 1fr}.people-stat>div:first-child{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%}.people-stat>div>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.people-stat strong{font-size:1.1rem}
.sheet{--group:66px;--status:230px;--action:150px;--counts:96px;width:calc(var(--group) + var(--employee) + var(--person) + var(--day-count)*var(--cell) + 4*var(--cell) + var(--counts) + var(--status) + var(--action))}
.sheet .group-col{position:sticky;left:0;width:var(--group);min-width:var(--group);max-width:var(--group);background:white;z-index:4;vertical-align:middle;font-weight:500}.sheet thead .group-col{z-index:7;background:#f5f8f9;height:auto;vertical-align:middle}.sheet .employee-id{left:var(--group)}.sheet .person{left:calc(var(--group) + var(--employee))}
.group-brace{position:relative;min-height:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:5px 18px 5px 3px;overflow-wrap:anywhere}.group-brace svg{position:absolute;right:3px;top:3px;height:calc(100% - 6px);width:12px;min-height:48px;fill:none;stroke:#4f8c85;stroke-width:1.8;vector-effect:non-scaling-stroke}.sheet tbody th.group-col{height:calc(var(--cell)*2)}
.sheet .total-cell,.sheet .code-count{width:var(--cell);min-width:var(--cell);max-width:var(--cell);font-variant-numeric:tabular-nums;vertical-align:middle}.sheet thead .total-cell,.sheet thead .code-count{height:auto;padding:0;vertical-align:middle}.sheet tbody .total-cell,.sheet tbody .code-count{background:#f2f7fa}
.sheet .status-cell,.sheet .summary{width:var(--status);min-width:var(--status);max-width:var(--status)}.sheet td .status-description{text-align:left;padding:0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;background:#fff9ee}.sheet td .status-description.ok{background:#e2f3ea;color:#276a4c}.sheet .status-cell:hover{box-shadow:inset 0 0 0 1px #5c9b91}
.sheet .row-action,.sheet thead .row-action,.sheet tbody td.row-action{width:var(--action);min-width:var(--action);max-width:var(--action);border:0!important;background:white;padding:0 7px}.sheet td .row-complete{border-radius:7px;line-height:1.1;height:calc(var(--cell) - 6px);font-size:.8rem;width:auto;max-width:100%;padding:0 7px;margin:auto}.sheet td .row-complete:hover{outline:0;background:#105856}
.group-board{border-collapse:collapse;width:max-content;font-size:.875rem}.group-board th,.group-board td{border:1px solid #dce5e7;text-align:center;padding:0;height:34px;min-width:30px}.group-board th{background:#f5f8f9;font-weight:500}.group-board th:first-child{position:sticky;left:0;min-width:170px;max-width:220px;z-index:1;padding:6px 9px;text-align:left}.group-board small{display:block;color:#60767d;font-size:.75rem;margin-top:4px}.group-board button{min-height:32px;width:100%;padding:0;border:0;border-radius:0;font-size:.875rem}.conflict{background:#fbe2e2;color:#a12a2a}.department-list{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.people .personrow td{padding:3px 5px}.people .personrow input,.people .personrow select{min-height:32px;padding:5px 7px;border-radius:5px}.people .personrow button{min-height:30px;padding:4px 8px}.actual-id,.actual-name{white-space:nowrap;text-align:center!important}.actualcode{width:150px!important}.actualnote{min-width:220px}
#clear-my-month{display:block;width:100%;margin-bottom:12px}dialog .codes button{font-size:1rem}.holiday-option:has(input:disabled){opacity:.7;cursor:default}
.sheet tbody th.group-col[rowspan="1"]{height:var(--cell)}.sheet tbody th.group-col[rowspan="3"]{height:calc(var(--cell)*3)}.sheet tbody th.group-col[rowspan="4"]{height:calc(var(--cell)*4)}

/* Round 2: aligned holiday rows and explicit actions. */
.field .holiday-list{display:flex;flex-direction:column;gap:7px;width:100%;max-width:680px}.field .holiday-option{display:grid;grid-template-columns:110px minmax(0,1fr) 20px;align-items:center;gap:14px;padding:10px 12px;margin:0;min-height:42px}.holiday-option .holiday-date{white-space:nowrap;font-variant-numeric:tabular-nums}.holiday-option .holiday-name{line-height:1.5;overflow-wrap:break-word}.field .holiday-option input.h-date{width:18px;height:18px;min-width:18px;min-height:18px;padding:0;margin:0;justify-self:end}.calendar-confirm{width:fit-content;max-width:100%;align-self:flex-start;min-height:42px;margin-top:5px;border-color:#6b9f96;color:#245f56;background:#fff}.calendar-confirm.confirmed{background:#e2f3ea;border-color:#549f80;color:#276a4c}
.department-chip{display:inline-flex;align-items:center;gap:5px;background:#edf2f4;border:1px solid #dce5e7;border-radius:6px;padding:2px 3px 2px 9px;font-size:.875rem}.department-chip .delete-department{font-size:1.1rem;line-height:1;min-height:28px;min-width:28px;padding:2px;border:0;background:transparent;border-radius:4px;color:#697c82}.department-chip .delete-department:hover{background:#fbe2e2;color:#a12a2a}
.people .drag-cell{width:38px;min-width:38px;text-align:center;padding:1px}.people .personrow .drag-handle{touch-action:none;cursor:grab;min-width:30px;min-height:30px;padding:0;background:transparent;border:0;font-size:1.15rem;color:#6c858b}.people .personrow.dragging{background:#e0f1ef;outline:2px solid #4f8c85;outline-offset:-2px}.row-dragging{user-select:none;cursor:grabbing}.people .personrow td:last-child{white-space:nowrap}.people .personrow button.movedown,.people .personrow button.moveup{padding:4px 6px}
.sheet{width:calc(var(--group) + var(--employee) + var(--person) + var(--day-count)*var(--cell) + 4*var(--cell) + var(--status) + var(--action))}
dialog .codes{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}dialog .codes button{line-height:1.3;min-height:65px;padding:10px 3px;font-size:1rem}dialog .codes #clear-my-month{display:block;width:100%;margin:0;border:1px solid #e7c5c5}
.sheet td.interval-problem,.sheet td.interval-problem button{animation:interval-alert 1s ease-in-out 3;background:#ffe1e1;color:#9d2020}.sheet td.interval-problem{box-shadow:inset 0 0 0 2px #d94f4f}.sheet tr.interval-row .employee-id,.sheet tr.interval-row .person{background:#fff0ed}
@keyframes interval-alert{0%,100%{background:#ffe1e1}50%{background:#f1a3a3}}
@media(prefers-reduced-motion:reduce){.sheet td.interval-problem,.sheet td.interval-problem button{animation:none}}
@media(max-width:540px){.field .holiday-option{grid-template-columns:100px minmax(0,1fr) 20px;gap:9px;padding:8px}.people .personrow .drag-handle{min-height:38px}.department-chip .delete-department{min-width:34px;min-height:34px}}

/* Round 3: vertical event notes and compact actual-attendance inputs. */
.sheet .date-event .event{display:flex;justify-content:center;align-items:flex-end;gap:2px;width:100%;margin:0}.sheet .event-label{display:inline-block;writing-mode:vertical-rl;text-orientation:upright;line-height:1.05;letter-spacing:1px;white-space:nowrap;font-size:.8rem}.sheet .group-hint{display:block;font-size:.65rem;line-height:1.35;color:#60767d;font-weight:400;margin-top:9px}.sheet .status-hint{display:block;font-size:.75rem;color:#60767d;margin-top:8px}.status-description{touch-action:manipulation}
.actual-table td{padding:3px 5px}.actual-table .actual-control{display:flex;align-items:center;gap:7px}.actual-table .actualchoice{min-height:32px;height:32px;padding:4px 7px;border-radius:5px;width:165px}.actual-table .actualcode{min-height:32px;height:32px;padding:4px 7px;border-radius:5px;width:150px}.actual-table .actualnote{display:block;min-height:32px;height:32px;padding:4px 7px;border-radius:5px;font-size:.875rem;line-height:22px;min-width:220px;resize:vertical}.actual-table .actual-name,.actual-table .actual-id{height:38px}
@media(max-width:540px){.actual-table .actualchoice,.actual-table .actualcode,.actual-table .actualnote{min-height:38px;height:38px}.actual-table .actual-name,.actual-table .actual-id{height:44px}}

/* Prominent monthly allowance and open/closed switch. */
.stats{grid-template-columns:1fr 1fr}.stats .quota-stat{grid-column:1/-1;grid-row:1;padding:15px 20px;border:2px solid #297d70;background:#eef8f4}.stats .quota-stat>div:first-child{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:18px;width:100%}.stats .quota-stat .quota-title{font-size:1.1rem;font-weight:700;color:#205c51}.quota-numbers{display:flex;align-items:stretch;gap:13px}.quota-numbers .quota-code{font-size:1rem;border-radius:9px;padding:8px 16px;text-align:center;white-space:nowrap}.quota-numbers b{font-size:2rem;line-height:1.1}.quota-numbers small{display:block;font-size:.8rem;margin-top:4px}.stats .quota-stat .quota-total{font-size:1.05rem;color:#205c51;white-space:nowrap}.quota-total b{font-size:1.5rem}.stats .stat:last-child{grid-column:auto}
.open-switch{display:flex;align-items:center;gap:12px;justify-content:flex-start;width:fit-content;padding:8px 12px;min-height:44px}.switch-track{width:44px;height:25px;border-radius:20px;background:#97a6aa;display:block;padding:3px;flex-shrink:0}.switch-track>span{display:block;width:19px;height:19px;background:white;border-radius:50%;transition:transform .15s}.open-switch[aria-checked=true]{color:#23684e;background:#e6f5ec;border-color:#6fae92}.open-switch[aria-checked=true] .switch-track{background:#277e59}.open-switch[aria-checked=true] .switch-track>span{transform:translateX(19px)}
dialog.import-preview{width:760px;max-height:85vh;overflow:auto}#peoplefile[hidden]{display:none}
@media(max-width:700px){.stats .quota-stat{padding:13px 10px}.stats .quota-stat>div:first-child{flex-wrap:wrap;gap:12px}.quota-title{flex-basis:100%}.quota-numbers{flex:1;gap:7px}.quota-numbers .quota-code{padding:7px 10px;flex:1}.quota-numbers b{font-size:1.65rem}.stats .quota-stat .quota-total{font-size:.9rem}}
@media(max-width:540px){.stats{grid-template-columns:1fr 1fr}.stats .quota-stat{grid-column:2;grid-row:1}.stats .stat:last-child{grid-column:1/-1}.sheet{--group:60px;--status:210px}.people .personrow input,.people .personrow select,.people .personrow button{min-height:38px}.group-board button{min-height:36px}}

.shell #content .stats > .quota-stat{grid-column:1/-1;grid-row:1}.shell #content .stats > .stat:last-child{grid-column:auto}

/* Completion comes from validation; there is no per-person action column. */
.sheet{width:calc(var(--group) + var(--employee) + var(--person) + var(--day-count)*var(--cell) + 4*var(--cell) + var(--status))}
.sheet tbody td.status-cell{width:var(--status);min-width:var(--status);max-width:var(--status)}
