:root{--ink:#17263b;--muted:#7d8a9d;--line:#e8edf3;--bg:#f5f8fc;--blue:#3d6be8;--blue-dark:#254bb8;--mint:#16a59a;--amber:#e4a839;--danger:#d76163;--violet:#8067d8;--shadow:0 12px 32px rgba(22,41,72,.04);font-family:"Microsoft YaHei UI","PingFang SC","Segoe UI",sans-serif;color:var(--ink)}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);min-width:320px}
button,input,select{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,.drop-zone:focus-visible{outline:3px solid #9ab3ff;outline-offset:2px}
[hidden]{display:none!important}
.app-shell{display:flex;min-height:100vh}
:root{--attendance-sidebar-width:252px}
.sidebar-collapse{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;border:1px solid #dce5f0;border-radius:8px;background:#fff;color:#59718f;padding:6px 9px;font-size:19px;line-height:1.2}
.sidebar-collapse span{font-size:11px;white-space:nowrap}
.wecom-workspace-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#6f809b;font-size:12px;padding:0 4px 8px;flex-shrink:0}
#view-other.wecom-active>.attendance-mode-tabs,#view-other.wecom-active>.page-heading .eyebrow{display:none}
#view-other.wecom-active>.page-heading{margin-bottom:6px}
#view-other.wecom-active>.page-heading h1{font-size:22px}
.wecom-workspace-tools .secondary-btn{padding:6px 10px;font-size:11px}
#view-other.wecom-expanded{position:fixed;inset:86px 16px 12px calc(var(--attendance-sidebar-width) + 16px);z-index:26;background:#f5f8fc;padding:10px;border:1px solid #dbe5f1;border-radius:12px}
#view-other.wecom-expanded>.page-heading,#view-other.wecom-expanded>.attendance-mode-tabs,#view-other.wecom-expanded>.other-source-tabs{display:none}
@media(min-width:661px){
  body.sidebar-collapsed{--attendance-sidebar-width:67px}
  body.sidebar-collapsed .content{max-width:none;width:100%}
  body.sidebar-collapsed .sidebar{width:67px;flex-basis:67px;padding:20px 9px}
  body.sidebar-collapsed .brand{padding:0 6px;margin-bottom:28px}
  body.sidebar-collapsed .brand>div:last-child,body.sidebar-collapsed .sidebar-label,body.sidebar-collapsed .side-help div,body.sidebar-collapsed .side-version,body.sidebar-collapsed .nav-count{display:none}
  body.sidebar-collapsed .nav-item{font-size:0;justify-content:center;padding:12px 0;gap:0}
  body.sidebar-collapsed .nav-glyph{font-size:19px}
  body.sidebar-collapsed .side-help{justify-content:center;padding:6px}
  body.sidebar-collapsed .nav-more>summary{font-size:0;padding:9px 5px;text-align:center}
  body.sidebar-collapsed .nav-more>summary::after{content:'⋯';font-size:18px}
  body.sidebar-expanded{--attendance-sidebar-width:252px}
  body.sidebar-expanded .sidebar{width:252px;flex-basis:252px;padding:28px 15px 18px}
  body.sidebar-expanded .brand>div:last-child,body.sidebar-expanded .sidebar-label,body.sidebar-expanded .side-help div,body.sidebar-expanded .side-version{display:block}
  body.sidebar-expanded .nav-item{font-size:13px;justify-content:flex-start;padding:12px 15px}
  body.sidebar-expanded .brand{padding:0 12px}
  body.sidebar-expanded .side-help{justify-content:flex-start;padding:11px}
  body.sidebar-expanded .nav-item .nav-count{display:grid}
  body.sidebar-collapsed .matrix-expanded{left:calc(var(--attendance-sidebar-width) + 20px)}
}
@media(max-width:660px){.sidebar-collapse{display:none}#view-other.wecom-expanded{inset:76px 8px 8px}}
.sidebar{position:sticky;top:0;width:252px;height:100vh;flex:0 0 252px;background:#13223c;color:#d8e3f4;display:flex;flex-direction:column;padding:28px 15px 18px;z-index:20}
.brand{display:flex;align-items:center;gap:12px;padding:0 12px;margin-bottom:42px}
.brand strong{font-size:16px;color:#fff;letter-spacing:.02em;display:block}
.brand small{display:block;color:#8fa4c4;font-size:11px;letter-spacing:.13em;margin-top:3px}
.brand-mark{width:36px;height:36px;flex-shrink:0;border-radius:11px;background:linear-gradient(145deg,#698efa,#356adf);display:flex;align-items:end;gap:3px;padding:9px;box-shadow:0 7px 18px rgba(17,72,194,.25)}
.brand-mark span{display:block;width:5px;border-radius:3px;background:#fff}.brand-mark span:nth-child(1){height:9px;opacity:.75}.brand-mark span:nth-child(2){height:15px}.brand-mark span:nth-child(3){height:12px;opacity:.88}
.sidebar-label{padding:0 18px;color:#7f94b3;font-size:11px;font-weight:700;letter-spacing:.13em;margin-bottom:10px}
.second-label{margin-top:28px}
.main-nav{display:grid;gap:3px}
.nav-item{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#b6c6df;text-align:left;width:100%;padding:12px 15px;border-radius:10px;font-size:13px;font-weight:600;transition:background .18s,color .18s}
.nav-item:hover{background:#223654;color:#fff}.nav-item.is-active{background:#294264;color:#fff;box-shadow:inset 3px 0 0 #7fa3ff}
.nav-glyph{display:inline-grid;place-items:center;width:20px;color:#91b0e4;font-size:17px;font-weight:400}
.nav-count{margin-left:auto;font-size:10px;background:#3f5575;color:#e6eefb;min-width:21px;height:20px;border-radius:8px;display:grid;place-items:center}
.sidebar-bottom{margin-top:auto}
.side-help{display:flex;align-items:center;gap:10px;border:1px solid #345071;border-radius:12px;padding:11px;background:#1d3351}
.side-help strong{display:block;color:#f6f9ff;font-size:12px}.side-help small{display:block;color:#90a6c7;font-size:10px;margin-top:4px}
.help-icon{display:grid;place-items:center;border-radius:50%;width:28px;height:28px;background:#365780;color:#bfdbff;font-size:14px;font-weight:700}
.side-version{font-size:10px;color:#7289aa;margin:17px 13px 0}
.main-wrap{min-width:0;flex:1}
.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:16px}
.top-title{display:flex;align-items:center;gap:10px;font-size:13px}.top-title span{color:#9aa7b6}.top-title span:after{content:"/";padding-left:10px;color:#c2cbd6}.top-title strong{font-weight:700}
.top-actions{display:flex;align-items:center;gap:17px}
.period-chip{font-size:12px;color:#526783;background:#f3f6fb;border:1px solid #e7edf5;border-radius:10px;padding:9px 12px;white-space:nowrap}
.chip-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#20b7aa;margin-right:7px}
.role-preview{font-size:11px;color:#94a0af;display:flex;align-items:center;gap:8px;white-space:nowrap}
.role-preview select{border:1px solid #e4eaf2;background:#fff;color:#435671;border-radius:9px;padding:8px 11px;font-size:12px}
.avatar{width:32px;height:32px;border-radius:10px;background:#e4edff;color:#4169ce;display:grid;place-items:center;font-size:12px;font-weight:800}
.menu-toggle{display:none;background:none;border:0;color:#263951;font-size:20px}
.content{max-width:1550px;margin:auto;padding:25px 34px 70px}
.demo-banner{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#fff9e9;border:1px solid #f5e6b8;border-radius:10px;padding:11px 15px;color:#8a6a29;font-size:11px;margin-bottom:27px}
.demo-banner strong{font-size:11px}.demo-dot{display:inline-block;background:#ebb345;width:7px;height:7px;border-radius:50%}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:23px}
.eyebrow{text-transform:uppercase;color:#6283bd;font-size:10px;font-weight:800;letter-spacing:.12em;margin-bottom:10px}
h1,h2,p{margin-top:0}h1{font-size:28px;letter-spacing:-.04em;line-height:1.25;margin-bottom:8px}h2{font-size:16px;letter-spacing:-.02em}
.page-heading p{color:#8b99a9;font-size:12px;margin:0}
.primary-btn,.secondary-btn{border:0;border-radius:10px;padding:11px 17px;display:inline-flex;align-items:center;gap:12px;justify-content:center;white-space:nowrap;font-size:12px;font-weight:700;transition:transform .15s,box-shadow .15s}
.primary-btn{background:#3868e8;color:#fff;box-shadow:0 6px 15px rgba(52,100,217,.18)}.primary-btn:hover{background:#2e5bd3;transform:translateY(-1px)}
.secondary-btn{background:#fff;border:1px solid #dfe7f0;color:#556b8a}.secondary-btn:hover{background:#f8faff}
.page-badge{font-size:11px;font-weight:700;color:#5975a3;background:#e8efff;border-radius:8px;padding:9px 11px;white-space:nowrap}.amber-badge{color:#a57a2a;background:#fff2d4}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:18px}
.metric-card,.panel{background:#fff;border:1px solid #e7edf4;border-radius:15px;box-shadow:var(--shadow)}
.metric-card{padding:20px 21px;min-height:144px}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#718095;font-size:12px;margin-bottom:15px}.metric-card strong{font-size:29px;letter-spacing:-.04em;display:block;line-height:1.1}.metric-card small{font-size:11px;color:#9ca8b5;display:block;margin-top:12px}
.metric-icon,.upload-symbol{display:grid;place-items:center;border-radius:9px;width:29px;height:29px;font-size:16px}.blue{color:#4f78df;background:#eaf0ff}.mint{color:#16a59a;background:#e4f6f2}.amber{color:#d5a039;background:#fff4d9}.violet{color:#866ad9;background:#f1ebff}
.overview-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:17px;margin-bottom:18px}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:21px}.panel-head h2{margin:0 0 5px}.panel-head p{font-size:11px;color:#9aa7b4;margin:0}
.flow-panel,.attention-panel,.recent-panel{padding:22px 24px}.subtle-link{font-size:11px;color:#a0adbd}
.flow-list{display:grid;gap:0}.flow-step{display:flex;align-items:center;gap:14px;padding:11px 0;position:relative}.flow-step:not(:last-child):after{content:"";position:absolute;left:14px;top:41px;bottom:-9px;width:1px;background:#e8edf4}
.step-index{z-index:1;display:grid;place-items:center;background:#f3f6fa;border:1px solid #e8edf3;color:#8795a6;border-radius:50%;width:30px;height:30px;flex:0 0 30px;font-size:10px;font-weight:700}
.flow-step.done .step-index{background:#e5f7f1;color:#15a685;border-color:#d1efe7}.flow-step.current .step-index{background:#e8efff;color:#416de0;border-color:#dae5ff}
.flow-step div{min-width:0;flex:1}.flow-step strong{display:block;font-size:12px}.flow-step small{display:block;color:#a1acb9;font-size:10px;margin-top:4px}.step-state{font-size:10px;color:#9aa7b5;white-space:nowrap}.flow-step.done .step-state{color:#35a98c}.flow-step.current .step-state{color:#5e83e4}
.text-button{border:0;background:none;color:#3e6bdd;font-size:11px;font-weight:700;padding:0}.text-button:hover{text-decoration:underline}
.attention-item{display:flex;align-items:center;gap:11px;border-top:1px solid #f0f3f7;padding:16px 0}.attention-item:first-of-type{border-top:0;padding-top:2px}.attention-item:last-child{padding-bottom:0}
.attention-icon{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:9px;font-size:13px;font-weight:800}.attention-icon.danger{color:#d76b6b;background:#fff0f0}.attention-icon.warn{color:#d6a34b;background:#fff6e4}.attention-icon.info{color:#5987cf;background:#eaf2ff}
.attention-item div{min-width:0;flex:1}.attention-item strong{display:block;font-size:11px}.attention-item small{display:block;font-size:10px;color:#9ca8b5;margin-top:5px}.attention-time{font-size:10px;color:#a2afbd;white-space:nowrap}
.recent-panel .panel-head{margin-bottom:14px}.table-scroll{overflow-x:auto}
.data-table{border-collapse:collapse;width:100%;min-width:720px;text-align:left}.data-table th{color:#91a0b0;font-size:10px;font-weight:700;background:#f9fbfd;padding:12px 15px;border-bottom:1px solid #e9eef4;white-space:nowrap}.data-table td{font-size:11px;padding:14px 15px;border-bottom:1px solid #edf1f5;color:#53657e;white-space:nowrap}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#f8fbff}.employee-cell strong{display:block;color:#24364e;font-size:11px}.employee-cell small{display:block;color:#9eaabb;font-size:10px;margin-top:4px}
.status{display:inline-flex;align-items:center;gap:5px;border-radius:6px;padding:5px 8px;font-size:10px;font-weight:700}.status:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor}.status.success{background:#eaf8f2;color:#29a37e}.status.pending{background:#fff5e5;color:#c69743}.status.disputed{background:#fff0f0;color:#cf6f6f}.status.neutral{background:#edf2fc;color:#6c87b7}
.row-link{border:0;background:none;color:#4d75d1;font-size:11px;font-weight:700}.row-link:hover{text-decoration:underline}
.info-strip{display:flex;gap:10px;align-items:center;color:#5e7ca4;background:#ecf3ff;border:1px solid #dce9ff;border-radius:10px;font-size:11px;padding:13px 16px;margin-bottom:18px}.info-strip span{font-size:17px;color:#638be0}
.upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.upload-card{background:#fff;border:1px solid #e5ebf3;border-radius:15px;padding:21px;box-shadow:var(--shadow)}
.upload-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.upload-symbol{height:35px;width:35px}.kind-tag{font-size:10px;background:#f4f7fb;color:#8293a9;border-radius:6px;padding:6px 8px}.upload-card h2{font-size:15px;margin:0 0 7px}.upload-card p{font-size:11px;color:#99a6b5;line-height:1.6;min-height:36px;margin:0 0 16px}
.drop-zone{border:1.5px dashed #d6e1ed;border-radius:10px;background:#fbfcfe;min-height:118px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#607da6;transition:.15s;position:relative}.drop-zone:hover,.drop-zone.dragging{border-color:#698ce2;background:#f1f5ff}.drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}.drop-icon{font-size:22px;color:#7392cf;line-height:1}.drop-zone strong{font-size:11px}.drop-zone small{font-size:10px;color:#a3b0bf}.selected-file{font-size:10px;color:#98a5b3;padding-top:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selected-file.has-file{color:#4371d1}
.import-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 21px;margin-top:17px}.import-footer strong{font-size:12px}.import-footer p{font-size:11px;color:#9aa8b7;margin:5px 0 0}
.table-panel{overflow:hidden}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.toolbar-left{display:flex;gap:9px;flex-wrap:wrap}.search-field{display:flex;align-items:center;gap:7px;padding:0 11px;background:#f8fafc;border:1px solid #e6edf4;border-radius:9px}.search-field span{font-size:18px;color:#9cabbb}.search-field input{background:none;border:0;outline:0;width:170px;font-size:11px;color:#50637f}.toolbar-left select{border:1px solid #e6edf4;border-radius:9px;padding:9px 28px 9px 10px;background:#fff;font-size:11px;color:#647791}.table-count{font-size:10px;color:#a0adbb;white-space:nowrap}
.confirmation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.confirm-card{padding:20px}.confirm-top{display:flex;justify-content:space-between;align-items:center}.confirm-card h2{margin:14px 0 4px}.confirm-card p{font-size:11px;color:#9aa8b6;margin-bottom:16px}.confirm-stats{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;border-top:1px solid #eef2f5;padding-top:13px}.confirm-stats span{color:#9eacba;font-size:10px}.confirm-stats strong{display:block;color:#253a56;font-size:14px;margin-top:5px}.confirm-card .secondary-btn{margin-top:18px;width:100%}
.review-summary{display:flex;gap:12px;margin-bottom:16px}.review-summary div{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px;min-width:130px}.review-summary strong{font-size:18px}.review-summary span{font-size:10px;color:#9aa7b6}
.review-panel{padding:6px 22px}.review-item{display:flex;align-items:flex-start;gap:13px;padding:17px 0;border-bottom:1px solid #eef2f6}.review-item:last-child{border:0}.review-item div{flex:1}.review-item h2{font-size:12px;margin:1px 0 6px}.review-item p{font-size:11px;color:#8999aa;margin:0 0 7px;line-height:1.6}.review-item small{font-size:10px;color:#b0bdca}
.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.permission-card{padding:23px;min-height:190px}.permission-symbol{color:#5f82d9;background:#edf3ff;border-radius:9px;width:35px;height:35px;display:grid;place-items:center;font-size:12px;font-weight:800;margin-bottom:22px}.permission-card h2{margin-bottom:8px}.permission-card p{font-size:11px;color:#8e9dad;line-height:1.7;min-height:39px}.permission-card span{font-size:10px;color:#5678cd;font-weight:700}.identity-panel{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:23px;margin-top:17px}.identity-panel h2{margin:0 0 8px}.identity-panel p{margin:0;color:#8e9dad;font-size:11px;line-height:1.7;max-width:610px}.identity-path{display:flex;gap:8px;align-items:center;white-space:nowrap}.identity-path span{background:#eff4ff;color:#4d72cd;border-radius:7px;padding:9px;font-size:10px;font-weight:700}.identity-path b{color:#a9b7c9}
.audit-panel{text-align:center;padding:70px 24px}.audit-panel h2{margin-bottom:8px}.audit-panel p{font-size:11px;color:#9ca9b7}.empty-icon{font-size:26px;display:grid;place-items:center;margin:auto auto 15px;background:#eff4ff;color:#6b88c7;width:52px;height:52px;border-radius:15px}.audit-columns{display:flex;justify-content:center;gap:9px;margin-top:20px;flex-wrap:wrap}.audit-columns span{font-size:10px;color:#7c91b4;background:#f3f6fb;border:1px solid #e9eef6;border-radius:6px;padding:7px}
.drawer-backdrop{position:fixed;inset:0;background:rgba(20,35,58,.34);z-index:50}.detail-drawer{position:fixed;right:0;top:0;height:100vh;width:min(410px,100vw);background:#fff;z-index:51;box-shadow:-15px 0 35px rgba(26,42,66,.12);padding:25px;transform:translateX(102%);transition:transform .22s ease;overflow:auto}.detail-drawer.open{transform:translateX(0)}.drawer-head{display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:20px}.drawer-head small{font-size:10px;color:#9daabb}.drawer-head h2{font-size:22px;margin:6px 0 0}.drawer-head button{border:0;background:#f2f5fa;color:#58708e;width:28px;height:28px;border-radius:8px;font-size:20px}.drawer-subtitle{font-size:11px;color:#8fa0b3;margin-bottom:18px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detail-cell{background:#f8fafd;border:1px solid #edf1f6;border-radius:10px;padding:13px}.detail-cell span{display:block;color:#9babba;font-size:10px}.detail-cell strong{display:block;color:#263c59;font-size:18px;margin-top:8px}.detail-note{margin-top:18px;border-left:3px solid #7c9ced;background:#f3f7ff;border-radius:7px;padding:12px;font-size:11px;color:#61799d;line-height:1.7}
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);opacity:0;pointer-events:none;color:#fff;background:#1e304b;padding:12px 17px;border-radius:9px;box-shadow:0 10px 25px rgba(12,29,56,.18);font-size:12px;z-index:80;transition:.2s;max-width:calc(100vw - 32px)}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1190px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.confirmation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.identity-panel{align-items:flex-start;flex-direction:column}}
@media(max-width:950px){.sidebar{width:67px;flex-basis:67px;padding:20px 9px}.brand{padding:0 6px;margin-bottom:34px}.brand>div:last-child,.sidebar-label,.nav-item:not(.is-active) .nav-count,.side-help div,.side-version{display:none}.nav-item{justify-content:center;padding:12px 0;font-size:0}.nav-glyph{font-size:19px}.side-help{justify-content:center;padding:6px}.overview-grid{grid-template-columns:1fr}.content{padding-left:23px;padding-right:23px}.topbar{padding:0 23px}}
@media(max-width:660px){.sidebar{position:fixed;left:0;top:0;width:240px;transform:translateX(-101%);transition:transform .2s;padding:28px 15px}.sidebar.open{transform:translateX(0)}.brand>div:last-child,.sidebar-label,.side-help div,.side-version{display:block}.nav-item{justify-content:flex-start;padding:12px 15px;font-size:13px}.nav-item:not(.is-active) .nav-count{display:grid}.menu-toggle{display:block}.topbar{height:66px;padding:0 16px}.top-title{font-size:12px}.period-chip{display:none}.role-preview{font-size:0}.role-preview select{font-size:11px}.avatar{display:none}.content{padding:20px 15px 55px}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:24px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-card{padding:15px;min-height:123px}.metric-card strong{font-size:24px}.metric-card small{font-size:10px}.upload-grid,.confirmation-grid,.permission-grid{grid-template-columns:1fr}.flow-panel,.attention-panel,.recent-panel{padding:18px}.import-footer{flex-direction:column;align-items:stretch}.toolbar-left{width:100%}.search-field{flex:1}.search-field input{width:100%}.table-toolbar{flex-wrap:wrap}.review-summary{flex-wrap:wrap}.review-summary div{min-width:0;flex:1}.identity-path{flex-wrap:wrap}.demo-banner{line-height:1.6}}
.demo-banner.offline{background:#fff0f0;border-color:#f5cccc;color:#9b4343}
.flow-link{width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #edf1f6}
.flow-link:hover{background:#f7faff}.flow-link:last-child{border-bottom:0}
.flow-link .step-state{color:#4b70ce;font-weight:700}
.sheet-label{display:block;color:#687c99;font-size:11px;margin-top:12px;font-weight:700}
.sheet-select,.text-input{display:block;width:100%;border:1px solid #dce5f0;border-radius:9px;background:#fff;color:#324761;padding:11px 12px;font-size:12px;min-height:41px}
.sheet-label .sheet-select{margin-top:6px}
.action-panel{display:flex;align-items:end;gap:13px;margin-top:17px;padding:21px;flex-wrap:wrap}
.action-panel>div:first-child{min-width:230px;flex:1}
.action-panel strong{font-size:13px}.action-panel p{font-size:11px;color:#8d9cac;margin:5px 0 0;line-height:1.6}
.action-panel>.sheet-select{max-width:290px}.action-panel.stacked{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}
.action-panel.stacked>div:first-child,.action-panel.stacked .button-row{grid-column:1/-1}
.button-row{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.button-row button{min-width:160px}
.result-area{margin-top:18px;display:grid;gap:15px}
.output-panel{padding:22px}.output-panel h2{font-size:18px;margin:11px 0 7px}.output-panel p{color:#72839a;font-size:12px;line-height:1.7}
.result-head{display:flex;justify-content:space-between;gap:20px;align-items:start}
.error-panel{border-color:#f2cece;background:#fffafa}.error-panel h2{color:#bd5555}
.download-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin-top:16px}
.download-link{display:flex;align-items:center;gap:9px;border:1px solid #dce6f4;border-radius:10px;background:#f7faff;padding:12px;color:#395ca2;text-decoration:none;font-size:11px}
.download-link:hover{background:#eaf1ff}.download-link span{font-size:20px}.download-link strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.download-link small{color:#9aa8b8;white-space:nowrap}
.download-link b{flex-shrink:0;font-size:13px}
.kefu-download-panel{padding:18px 20px;margin-bottom:18px;border:2px solid #8eaff4;scroll-margin-top:16px;background:#f2f6ff}
.kefu-download-panel>div>strong{font-size:16px;color:#294fa5}
.kefu-download-panel p{margin:7px 0 0;color:#637b99;font-size:12px;line-height:1.6}
.kefu-download-panel .download-grid{margin-top:12px;grid-template-columns:minmax(0,1fr)}
.kefu-download-panel .download-link{min-width:0;background:#3d6be8;color:#fff;border-color:#3d6be8;min-height:50px}
.kefu-download-panel .download-link small{color:#e4edff}
body:has(#view-kefu:not([hidden])) .content{height:auto;max-height:none;overflow:visible;display:block}
.result-issues{border-top:1px solid #e9eef5;margin-top:20px;padding-top:16px;font-size:12px}
.result-issues>strong{display:block;margin-bottom:9px}.issue-line{display:flex;align-items:flex-start;gap:12px;border-top:1px solid #eff2f7;padding:11px 0}
.issue-line div{min-width:0}.issue-line strong{display:block;font-size:11px}.issue-line small{display:block;color:#8d9cac;font-size:10px;line-height:1.5;margin-top:5px;white-space:normal;overflow-wrap:anywhere}
.source-note{font-size:11px;color:#6e83a0;overflow-wrap:anywhere}.warning-text{color:#b88137!important;font-size:11px}
.mapping-card{padding:20px}.mapping-card h2{margin:0 0 7px}.mapping-card p{font-size:11px;color:#8fa0b2;line-height:1.6}
.mapping-card .data-table{min-width:520px}.mapping-card .data-table td{white-space:normal}
.legacy-panel{padding:26px;display:flex;gap:20px;align-items:center}.legacy-panel>div:nth-child(2){flex:1}.legacy-panel h2{margin:0 0 8px}.legacy-panel p{color:#8090a3;font-size:12px;line-height:1.8}.legacy-panel small{color:#a1adbb;font-size:11px}
.legacy-panel .primary-btn{text-decoration:none}.legacy-icon{width:56px;height:56px;flex:0 0 56px;background:#ebf1ff;color:#486fce;border-radius:16px;display:grid;place-items:center;font-size:25px}
.history-layout{display:grid;grid-template-columns:minmax(250px,.42fr) minmax(0,1fr);gap:16px}
.run-list{overflow:hidden}.run-item{width:100%;border:0;border-bottom:1px solid #ecf0f5;background:#fff;text-align:left;display:flex;align-items:center;gap:12px;padding:15px 17px;color:#596f8e}
.run-item:hover{background:#f8faff}.run-item:last-child{border-bottom:0}.run-item>span:nth-child(2){min-width:0;flex:1}
.run-item strong{display:block;color:#293c57;font-size:12px}.run-item small{display:block;color:#9baaba;font-size:10px;margin-top:5px}
.run-dot{background:#d8a14a;width:8px;height:8px;flex:0 0 8px;border-radius:50%}.run-dot.ok{background:#2caf87}.run-dot.bad{background:#dc7272}
.detail-panel{padding:22px;min-height:220px;font-size:12px;color:#778aa2;overflow:hidden}
.detail-panel>.output-panel{box-shadow:none;border:0;padding:0}.detail-section{border-top:1px solid #e7edf4;margin-top:20px;padding-top:18px}
.detail-section h2{font-size:13px;margin-bottom:12px}.detail-section .mapping-card{box-shadow:none;margin-top:10px}
.input-list{display:grid;gap:8px}.input-list div{display:grid;grid-template-columns:105px 1fr;gap:10px;font-size:11px}
.input-list dt{color:#9aa8b9}.input-list dd{margin:0;color:#455b79;overflow-wrap:anywhere}
.empty-state{padding:28px;text-align:center;color:#9baaba;font-size:11px}
button:disabled{cursor:not-allowed;opacity:.55;transform:none!important}
@media(max-width:950px){.history-layout{grid-template-columns:1fr}}
@media(max-width:660px){.action-panel,.legacy-panel{align-items:stretch;flex-direction:column}.action-panel>.sheet-select{max-width:none}.action-panel.stacked{grid-template-columns:1fr}.button-row>*{flex:1}.result-head{flex-direction:column}.download-grid{grid-template-columns:1fr}.input-list div{grid-template-columns:1fr;gap:3px}}
.portal-link{color:#456bba;font-size:12px;text-decoration:none;white-space:nowrap}
.module-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.module-tabs button{border:1px solid #dfe6f2;border-radius:9px;background:#fff;color:#6d7e97;padding:10px 15px;font-size:12px}
.module-tabs button.is-active{border-color:#547ce5;background:#eaf0ff;color:#355bc3;font-weight:700}
.other-frame{display:block;width:100%;height:700px;border:0;border-radius:12px;background:#f5f8fc}
.wecom-launch{padding:28px;line-height:1.7}.wecom-launch h2{margin:0 0 8px}.wecom-launch p{margin:8px 0 18px;color:#607697}.wecom-launch .primary-btn{display:inline-block;text-decoration:none}.wecom-launch[hidden],.wecom-frame[hidden]{display:none!important}
body:has(#view-other:not([hidden])) .content{height:calc(100dvh - 76px);overflow:hidden;display:flex;flex-direction:column;padding-top:14px;padding-bottom:14px}
body:has(#view-other:not([hidden])) .main-wrap{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body:has(#view-other:not([hidden])) .topbar{flex-shrink:0}
body:has(#view-other:not([hidden])) #connection-banner:not(.offline){display:none}
#view-other:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
#view-other>.page-heading,#view-other>.attendance-mode-tabs,#view-other>.module-tabs{flex-shrink:0;margin-bottom:10px}
#view-other>.page-heading h1{font-size:25px;margin:0}
#view-other>.page-heading p{font-size:12px;margin:4px 0 0}
#view-other>.other-frame{height:0;flex:1;min-height:240px;width:100%}
@media(max-width:700px){body:has(#view-other:not([hidden])) .content{height:calc(100dvh - 66px);padding:10px}#view-other>.page-heading p{display:none}#view-other>.other-frame{min-height:220px}}
body:has(#view-other:not([hidden])) .content{height:auto;flex:1;min-height:0;width:100%;margin:0 auto}
.staff-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:17px}
.staff-summary>div{display:flex;align-items:center;gap:12px;padding:18px 21px;background:#fff;border:1px solid #e5ebf3;border-radius:13px}
.staff-summary strong{font-size:23px;color:#263a5b}.staff-summary span{font-size:11px;color:#8999ac}
.employee-import-box{padding:20px;margin-bottom:18px}.employee-import-box .upload-card{box-shadow:none;border:0;padding:0}
.employee-import-box>.button-row{margin:16px 0}
.import-summary{background:#edf5ff;border:1px solid #deebff;color:#53709e;border-radius:9px;padding:13px;font-size:12px;margin:12px 0}
.employee-table{min-width:960px}.employee-table small{font-size:10px;color:#93a2b6}
.employee-drawer{width:min(680px,100vw)}.employee-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}
.employee-edit-grid label{display:block;color:#7c8ea7;font-size:11px}.employee-edit-grid input,.employee-edit-grid select{margin-top:6px}
.credential-box{margin-top:13px;border:1px solid #d5e3ff;border-radius:10px;background:#eff5ff;padding:15px;color:#425f92;font-size:12px}
.credential-box p{margin:9px 0}.credential-box small{color:#7b91b1;line-height:1.6}.credential-box code{user-select:all;font-size:14px}
.history-import-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:16px}
.history-import-controls{padding:20px;display:grid;gap:13px}.history-import-controls label,.history-import-controls strong{font-size:11px;color:#7c8fa8}
.history-import-controls input,.history-import-controls select{margin-top:6px}
.sheet-checkboxes{max-height:160px;overflow:auto;margin-top:9px;border:1px solid #e4eaf4;background:#f9fbff;border-radius:8px;padding:10px;display:flex;gap:8px 15px;flex-wrap:wrap;font-size:11px}
.sheet-checkboxes label{display:flex;gap:6px;align-items:center}.sheet-checkboxes input{margin:0;accent-color:#416cdb}
.attendance-history-layout{margin-top:20px;grid-template-columns:minmax(240px,.34fr) minmax(0,1fr)}
.compact-panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 17px;border-bottom:1px solid #e9eef6}
.compact-panel-head h2{margin:0;font-size:13px}.history-batch-detail{padding:20px;min-width:0}
.history-batch-detail h2{font-size:14px;margin-bottom:6px}.history-batch-detail .table-toolbar{padding:10px 0}
.history-batch-detail .sheet-select{max-width:180px;min-height:34px;padding:7px}
.batch-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:15px 0}
.batch-metrics>div{padding:11px;background:#f7faff;border:1px solid #e6edf7;border-radius:9px}
.batch-metrics strong{display:block;color:#31547f;font-size:18px}.batch-metrics span{display:block;font-size:10px;color:#889bb2;margin-top:5px}
.history-table{min-width:760px}.history-table td{padding:12px 10px}.block-note{display:block;color:#bc8540;font-size:10px;margin-top:4px}
.ignore-link{color:#9caabc}.mapping-details{margin-top:12px;border:1px solid #e3eaf5;border-radius:9px;background:#fff;overflow:hidden}
.mapping-details summary{cursor:pointer;padding:13px;color:#6480a3;font-size:11px}.mapping-details .data-table{min-width:420px}
.personal-record{padding:22px;margin-bottom:17px}.personal-record-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}
.personal-record-head h2{margin:0;font-size:17px}.personal-record-head>strong{font-size:17px;color:#29486d}
.personal-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.personal-metrics>div{background:#f7faff;border:1px solid #e5ecf7;border-radius:10px;padding:13px}
.personal-metrics span{display:block;color:#8b9db6;font-size:11px}.personal-metrics strong{display:block;color:#305584;font-size:23px;margin-top:9px}
.metric-chips{display:flex;flex-wrap:wrap;gap:7px;margin:15px 0}
.metric-chips span{background:#f1f5fb;border:1px solid #e2eaf5;border-radius:7px;color:#6380a5;padding:7px 9px;font-size:11px}
.record-note{background:#f8fafc;border-left:3px solid #9eb9ec;border-radius:6px;color:#6b819f;padding:12px;white-space:pre-wrap;line-height:1.7;font-size:12px}
.record-source{color:#9aabc0;font-size:10px;display:block;margin-top:12px}
.daily-record-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin-top:13px}
.daily-record-grid>div{min-height:63px;background:#f7faff;border:1px solid #e6edf8;border-radius:8px;padding:8px}
.daily-record-grid span{color:#a0aec1;font-size:10px;display:block}.daily-record-grid strong{color:#577495;font-size:11px;display:block;margin-top:8px;overflow-wrap:anywhere}
.personal-record details summary{font-size:12px;color:#567bae;cursor:pointer;padding:8px 0}
.admin-record{background:#fff;border:1px solid #e5ebf5;border-radius:12px;padding:17px;margin-top:12px}.admin-record .personal-metrics{gap:7px}.admin-record .personal-metrics>div{padding:10px}.admin-record .personal-metrics strong{font-size:18px}
.modal-backdrop{position:fixed;inset:0;z-index:90;background:rgba(18,35,61,.4);display:flex;align-items:center;justify-content:center;padding:20px}
.match-dialog{background:#fff;border-radius:16px;padding:24px;width:min(600px,100%);box-shadow:0 20px 80px #15284d33}
.match-select{display:block;width:100%;height:245px;border:1px solid #dce6f5;border-radius:9px;padding:9px;margin:12px 0 18px;color:#587193;font-size:12px}
.match-select option{padding:8px}.match-dialog .drawer-head{margin-bottom:16px}.match-dialog h2{font-size:18px}
.employee-portal{background:#f3f7fc}.portal-header{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1060px)/2));background:#fff;border-bottom:1px solid #e2eaf4}
.portal-brand{display:flex;align-items:center;gap:12px;color:#213b61;font-size:18px}
.portal-brand-name{min-width:0}.portal-brand-name strong{display:block;line-height:1.35}.portal-brand-name small{display:block;margin-top:3px;font-size:11px;letter-spacing:.13em;color:#7187a7}
.portal-content{max-width:1060px;margin:34px auto;padding:0 22px 40px}
.portal-login{max-width:470px;margin:60px auto;padding:34px}.portal-login h1{font-size:26px}
.portal-login>p{font-size:12px;color:#8d9eb5;line-height:1.7}
.portal-login form{display:grid;gap:18px;margin-top:26px}.portal-login label{font-size:12px;color:#7187a7}
.portal-login input{margin-top:8px;font-size:14px;min-height:46px}.portal-login form .primary-btn{min-height:44px;font-size:13px}
.portal-login-note{margin-top:24px!important;font-size:11px!important}.login-message{color:#c57847;font-size:12px;margin-top:13px;line-height:1.6}
.portal-content .page-heading p{font-size:12px}.portal-content .page-heading .sheet-select{max-width:210px}
.personal-actions{display:flex;gap:10px;margin-top:18px}.dispute-form{margin-top:16px;display:grid;gap:12px}
.personal-record>.personal-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.personal-metrics span{line-height:1.6;overflow-wrap:anywhere}
.personal-objections{margin-top:16px;padding:16px;background:#fff8ee;border:1px solid #f1dfc4;border-radius:10px}
.personal-objections h3{font-size:13px;margin:0 0 10px;color:#826039}
.personal-objections article+article{border-top:1px solid #efdfc9;margin-top:12px;padding-top:12px}
.personal-objections p,.feedback-item p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:7px 0;font-size:13px}
.personal-objections small{font-size:11px;color:#8b795d}
.personal-confirmed{padding:12px 15px;background:#eaf8f2;border:1px solid #c1e5d5;border-radius:9px;color:#20805c;font-size:13px}
.personal-actions button:disabled{cursor:default;opacity:.65}
.personal-actions [data-confirm]:disabled{background:#e8f4ee;color:#267653;border-color:#c1ddcd;box-shadow:none}
.feedback-open{white-space:nowrap}
.team-stat{font:inherit;text-align:left;border:1px solid #e4ebf5;background:#fff;border-radius:12px;padding:22px;cursor:pointer;color:#263d5d;transition:border-color .15s,background .15s}
.team-stat span,.team-stat small{display:block;color:#7b8fa9;font-size:12px}.team-stat strong{display:block;font-size:29px;margin-top:12px}.team-stat small{font-size:10px;margin-top:10px;color:#8298b5}
.team-stat:hover{border-color:#9fb8f1}.team-stat.is-active{background:#edf3ff;border-color:#5a7de6;box-shadow:0 0 0 1px #5a7de6}
.team-stat.is-active small{color:#4165c7}.team-stat:focus-visible{outline:3px solid #b8cbfa;outline-offset:3px}
.team-objection-preview{max-width:260px;font-size:11px;color:#a06b34;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}
.feedback-list{max-height:58vh;overflow:auto;overscroll-behavior:contain}
.feedback-item{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 0;border-bottom:1px solid #e3eaf4}
.feedback-item>div:first-child{min-width:0}.feedback-item small{display:block;font-size:11px;color:#7890a8;margin-top:7px}
.feedback-item strong{font-size:13px}.feedback-live{position:fixed;right:20px;top:85px;z-index:95;background:#fff4dd;border:1px solid #e8ce96;border-radius:9px;padding:13px;font-size:12px;box-shadow:0 5px 22px #21304920;max-width:85vw}
@media(max-width:660px){.feedback-item{flex-direction:column}.feedback-open{padding:8px;font-size:10px}.personal-record>.personal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.personal-objections{padding:12px}.team-stat{padding:15px}}
.dispute-form label{font-size:12px;color:#7389a7}.dispute-form textarea{width:100%;min-height:90px;margin-top:8px;padding:12px;border:1px solid #dce5f3;border-radius:9px;font:inherit;resize:vertical}
@media(max-width:1190px){.attendance-history-layout{grid-template-columns:1fr}.staff-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:660px){.history-import-grid{grid-template-columns:1fr}.employee-edit-grid{grid-template-columns:1fr}.staff-summary>div{padding:15px}.portal-link{font-size:10px}.module-tabs button{padding:9px 11px;font-size:11px}.personal-metrics{grid-template-columns:repeat(2,1fr)}.portal-login{padding:25px;margin:20px auto}.portal-content{padding:0 15px}.portal-header{height:66px;padding:0 18px}.personal-record{padding:17px}.daily-record-grid{gap:4px}.daily-record-grid>div{padding:6px;min-height:57px}.personal-actions{flex-wrap:wrap}.personal-actions button{flex:1}}
.schedule-setup{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-bottom:18px;padding:20px}
.schedule-setup label{display:grid;gap:7px;min-width:175px}
.schedule-import-grid{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:24px;margin-bottom:20px;padding:22px}
.schedule-table{min-width:1500px}
.schedule-table td{vertical-align:top}
.schedule-review-text{max-width:260px;max-height:100px;overflow:auto;font-size:12px;line-height:1.65;margin-top:7px}
.departure-row td:first-child{color:#b42318;background:#fff0ec}
.schedule-dialog{width:min(900px,92vw);max-height:90vh;border:1px solid #e0e7ef;border-radius:18px;padding:28px;color:#22334c;box-shadow:0 24px 80px #14243c35}
.schedule-dialog::backdrop{background:#0d1d3c66}
.schedule-dialog label{display:grid;gap:7px;margin:12px 0}
.schedule-dialog label:has(input[type=checkbox]){display:flex;align-items:center}
.schedule-dialog textarea{min-height:90px}
.schedule-day-inputs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.schedule-day-inputs label{font-size:12px;color:#68758a}
.schedule-day-inputs input{padding:8px;min-width:0;width:100%}
@media(max-width:780px){.schedule-import-grid{grid-template-columns:1fr}.schedule-day-inputs{grid-template-columns:repeat(4,minmax(0,1fr))}.schedule-dialog{padding:18px}}
.history-daily-edit{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.history-daily-edit textarea{font-size:12px;min-height:80px}
.history-daily-edit label{min-width:0}
#history-edit-body>label{display:grid;gap:8px;margin:18px 0}
#history-edit-body>label textarea{min-height:80px}
@media(max-width:660px){.history-daily-edit{grid-template-columns:repeat(2,minmax(0,1fr))}}
.table-toolbar>label:has(input[type=checkbox]){display:flex;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto;font-size:12px}
#history-edit-title{position:sticky;top:-28px;z-index:2;background:white;margin:0;padding:16px 0;border-bottom:1px solid #e5ebf4}
.confirmation-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0}
.confirmation-summary>div{background:#fff;border:1px solid #e1e8f3;border-radius:12px;padding:19px}
.confirmation-summary span{display:block;color:#657d9e;font-size:12px}
.confirmation-summary strong{display:block;font-size:28px;color:#233d60;margin-top:12px}
.confirmation-channel{padding:20px 24px;margin-bottom:20px}.confirmation-channel strong{font-size:13px}
.confirmation-channel p{font-size:12px;line-height:1.8;color:#6d7f97;margin:8px 0 0}
.confirmation-table{min-width:1150px}.confirmation-table small{display:block;color:#798ba4;font-size:11px;margin-top:7px}
.confirmation-note{max-width:270px;white-space:normal;line-height:1.7}
.legacy-confirmation{margin-top:28px;padding:20px;border:1px dashed #d7e0ed;border-radius:12px}
.legacy-confirmation>summary{color:#637b9b;font-size:13px;cursor:pointer;padding:3px}
.legacy-confirmation .upload-grid{margin-top:20px}
.confirmation-fields{margin:20px 0}.confirmation-fields>div{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #e5ebf4}
.confirmation-fields dt{color:#6f829c}.confirmation-fields dd{font-weight:600;margin:0}
.confirmation-ack{display:flex!important;align-items:center;gap:10px!important;padding:12px;background:#f3f7fc;border-radius:8px}
.confirmation-ack input{width:auto}.schedule-dialog p{line-height:1.9}
#view-confirmations .action-panel label{display:grid;gap:8px;font-size:12px;color:#647b99}
@media(max-width:1100px){.confirmation-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.confirmation-summary{grid-template-columns:repeat(2,1fr)}.confirmation-summary>div{padding:15px}.confirmation-summary strong{font-size:24px}}
.nav-more{margin-top:18px;border-top:1px solid #2a3d59;padding-top:15px}.nav-more>summary{font-size:12px;color:#9ab0ce;padding:9px 15px;cursor:pointer}.nav-more .nav-item{font-size:12px}
.main-nav{max-height:calc(100vh - 255px);overflow-y:auto}.admin-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}
.admin-workflow>button{text-align:left;border:1px solid #dfe7f4;border-radius:17px;background:#fff;padding:25px;box-shadow:var(--shadow);color:var(--ink)}
.admin-workflow>button:hover{border-color:#8aa8f5;box-shadow:0 12px 32px #3764c711}.workflow-number{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#eef3ff;color:#416bd4;font-weight:700;margin-bottom:24px;font-size:13px}
.admin-workflow h2{font-size:20px;margin-bottom:12px}.admin-workflow p{font-size:13px;color:#74849a;line-height:1.9;min-height:74px}.admin-workflow strong{color:#3a67d5;font-size:12px}
.role-boundary{display:flex;flex-wrap:wrap;align-items:center;gap:15px 22px;padding:20px 24px;margin-bottom:22px;font-size:12px;color:#73859d}.role-boundary strong{color:#344c6c}.leader-inbox{padding:25px;margin-bottom:24px}
.overview-details>summary,.rule-options>summary{font-size:12px;color:#71839d;cursor:pointer;padding:15px 0}.overview-details>.metric-grid{margin-top:12px}
.attendance-mode-tabs,.portal-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.attendance-mode-tabs button,.portal-tabs button{border:1px solid #dfe7f3;border-radius:10px;background:white;color:#697c98;padding:12px 18px;font-size:13px;font-weight:600}
.attendance-mode-tabs button.is-active,.portal-tabs button.is-active{color:#3462cf;background:#eaf0ff;border-color:#cad9fc}
.rule-options{margin:0 0 20px}.permission-matrix{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:22px}.permission-matrix article{padding:24px}.permission-matrix span{font-size:12px;color:#577dbe}.permission-matrix h2{font-size:21px;margin:12px 0}.permission-matrix p{font-size:13px;color:#75879e;line-height:1.9;margin:0}
.permissions-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.role-editor{padding:25px;min-width:0}.role-editor>label{display:grid;gap:9px;margin-bottom:18px;font-size:13px;color:#647b9a}.role-editor input,.role-editor select{font-size:13px}
#role-person{height:170px;width:100%}#role-person option{padding:8px}#role-groups-box>strong{font-size:13px}#role-group-search{margin:12px 0}
#role-group-options{max-height:260px;overflow:auto;border:1px solid #e2e9f3;border-radius:10px;margin-bottom:17px;padding:8px}.group-option{display:flex;gap:10px;align-items:center;padding:10px;font-size:11px;color:#7d8da4}.group-option input{flex-shrink:0}.group-option strong{display:block;color:#38536f;margin-top:4px;font-size:13px}
.role-person-card{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;width:100%;border:1px solid #e2e9f3;background:#f9fbfe;text-align:left;padding:17px;border-radius:12px;margin-bottom:12px;color:#354e6d}.role-person-card small{display:block;font-size:11px;color:#8293aa;margin-top:5px}.role-person-card p{flex:0 0 100%;font-size:11px;line-height:1.8;color:#74849b;margin:0}
.inbox-item{display:flex;gap:18px;align-items:center;justify-content:space-between;border-top:1px solid #e8edf5;padding:16px 0}.inbox-item>div{min-width:0}.inbox-item strong{font-size:13px}.inbox-item small{display:block;color:#8b9bb2;font-size:11px;margin:6px 0}.inbox-item p{font-size:13px;color:#6a7e98;margin:0;line-height:1.8;overflow-wrap:anywhere}
.portal-header-actions{display:flex;align-items:center;gap:15px}.portal-tabs{margin-top:15px}.login-role-guide{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.login-role-guide span{font-size:10px;color:#7189af;background:#f0f5fd;padding:6px 9px;border-radius:6px}
.personal-breakdown>summary{font-size:12px;color:#6983ab;cursor:pointer;padding:16px 0}.personal-breakdown .metric-chips{margin:2px 0 16px}
.team-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.team-summary>div{background:white;border:1px solid #e3eaf4;border-radius:12px;padding:20px}.team-summary span{display:block;color:#7c8ea7;font-size:12px}.team-summary strong{display:block;color:#294568;font-size:27px;margin-top:12px}
.team-table{min-width:890px}.team-table small{display:block;font-size:11px;color:#8798af;margin-top:7px}.employee-portal .action-panel{flex-wrap:wrap;padding:20px;margin-top:18px}.employee-portal .action-panel label{display:grid;gap:7px;font-size:12px;color:#7086a3}
#team-scopes{margin-bottom:17px}#portal-team .page-heading p{line-height:1.8}.employee-portal .portal-content{min-width:0}.employee-portal .table-panel{overflow:hidden}
@media(max-width:1150px){.admin-workflow{gap:12px}.admin-workflow>button{padding:20px}.permissions-layout{grid-template-columns:1fr}.permission-matrix article{padding:20px}}
@media(max-width:800px){.admin-workflow{grid-template-columns:1fr}.admin-workflow>button{position:relative;padding:22px 22px 22px 82px}.workflow-number{position:absolute;left:23px;top:24px;margin:0}.admin-workflow p{min-height:0}.permission-matrix{grid-template-columns:1fr}.team-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.role-boundary{display:grid;gap:10px}.inbox-item{align-items:flex-start;flex-direction:column}.team-summary{grid-template-columns:repeat(2,1fr)}.team-summary>div{padding:16px}.portal-header-actions{gap:8px}.portal-header-actions .status{font-size:9px}.portal-brand{font-size:15px;gap:8px}.portal-header{padding:0 12px}.portal-tabs button{padding:11px 13px;font-size:12px}.attendance-mode-tabs button{font-size:11px;padding:10px 12px}}
.erp-panel{padding:24px;margin-bottom:22px}.erp-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:18px 0}.erp-controls>label{display:grid;gap:8px;font-size:12px;color:#6a809f}.erp-controls .erp-batch-select{flex:1;min-width:250px}
.erp-boundary{padding:12px 16px;background:#f5f8fd;border:1px solid #e6edf7;border-radius:10px;font-size:12px;line-height:1.9;color:#72849d}.erp-credential{margin:15px 0;font-size:12px;color:#6c83a4}.erp-credential>summary{cursor:pointer;padding:10px 0}.erp-credential form{display:flex;gap:12px}.erp-credential input{flex:1}
.erp-table{min-width:920px}.erp-table small{display:block;color:#8798ae;font-size:11px;margin-top:7px;line-height:1.8;white-space:normal;max-width:290px}.erp-table .erp-key{font-family:Consolas,monospace;overflow-wrap:anywhere;max-width:260px}
.erp-panel>.table-scroll{max-height:300px;overflow:auto;overscroll-behavior:contain}.erp-table thead th{position:sticky;top:0;z-index:2}
#erp-bind-person{height:210px;width:100%}#erp-bind-person option{padding:8px}#erp-bind-source{font-size:13px;overflow-wrap:anywhere;color:#6d819d}
@media(max-width:600px){.erp-panel{padding:17px}.erp-credential form{flex-direction:column}.erp-controls>label{width:100%}.erp-controls>button{flex:1}}

/* Bounded data workspaces: only the table scrolls; tools and pagination stay visible. */
.viewport-table{display:flex;flex-direction:column;height:clamp(360px,calc(100dvh - 150px),850px);margin-top:18px;min-height:0}
.bounded-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;flex:1}
.bounded-scroll thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 #dce5ef}
.table-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #e5ecf4;background:#fff;flex-shrink:0;font-size:12px;color:#6c7f99}
.table-pagination label{display:flex;align-items:center;gap:7px;white-space:nowrap}
.table-pagination select{padding:6px;border:1px solid #dce5f0;border-radius:7px;color:#324761;background:#fff}
.table-pagination button{min-height:33px;padding:7px 12px}.table-pagination button:disabled{opacity:.42;cursor:default}
.table-pagination .button-row button,.matrix-heading .button-row button,.matrix-source-bar .button-row button{min-width:0}
.view-switch{display:flex;padding:3px;background:#eef3fa;border-radius:10px;border:1px solid #dce5f0}
.view-switch button{padding:9px 15px;border:0;background:none;color:#73869e;border-radius:7px;font-size:12px;font-weight:600;white-space:nowrap}
.view-switch button[aria-pressed=true]{background:white;color:#315fcb;box-shadow:0 2px 7px #18334c12}
.matrix-heading{padding-bottom:12px;flex-shrink:0}.matrix-heading h2{font-size:16px;margin:0 0 7px}
.matrix-filters{justify-content:flex-start;flex-wrap:wrap;gap:9px;padding-top:0;padding-bottom:10px;flex-shrink:0}
.matrix-filters>label:not(.search-field){display:flex;gap:7px;align-items:center;font-size:11px;color:#6a7e99}
.matrix-filters .sheet-select{width:auto;max-width:190px;min-height:34px;padding:7px 10px;font-size:11px}
.matrix-filters .search-field input{height:33px;width:185px}.matrix-compare{white-space:nowrap}
.matrix-caption{padding:0 16px 10px;color:#7a8ca3;font-size:11px;line-height:1.7;flex-shrink:0}
.matrix-source-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 10px;flex-wrap:wrap;flex-shrink:0}
.matrix-source-bar>label{display:flex;align-items:center;gap:8px;min-width:0;font-size:11px;color:#6a7e99;flex:1}
.matrix-source-bar select{max-width:580px;min-width:0;width:100%;min-height:32px;padding:6px 9px;font-size:11px}
#schedule-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
#schedule-grid th{height:64px;white-space:normal;min-width:105px;max-width:150px;line-height:1.6;color:#3d5773;font-size:11px;border-right:1px solid #e3eaf2}
#schedule-grid td{vertical-align:top;border-right:1px solid #edf1f5;padding:11px 12px;font-size:12px;background:#fff}
#schedule-grid .freeze-name{position:sticky;left:0;min-width:125px;max-width:125px;width:125px;z-index:2;background:#fff}
#schedule-grid .freeze-dept{position:sticky;left:125px;min-width:155px;max-width:155px;width:155px;z-index:2;background:#fff}
#schedule-grid .freeze-group{min-width:150px;width:150px;max-width:150px;white-space:normal}
#schedule-grid thead .freeze-name,#schedule-grid thead .freeze-dept{z-index:5;background:#edf3fc}
#schedule-grid .metric-yellow{background:#fff29c;color:#635718}#schedule-grid .metric-cyan{background:#b6e8f8;color:#14566c}#schedule-grid .metric-soft{background:#dfebfd}
#schedule-grid .source-value-head{background:#f0f3f7;color:#74869c}
#schedule-grid .source-value{color:#8795a7;background:#fafbfd}
#schedule-grid .metric-cell{font-variant-numeric:tabular-nums;text-align:center;min-width:105px}
#schedule-grid .comparison-different{color:#b73629;background:#fff0e9;font-weight:700}
#schedule-grid .comparison-same{color:#187f64;background:#eff9f3}
#schedule-grid .day-header{min-width:80px;max-width:80px;width:80px;text-align:center}
#schedule-grid th small{display:block;font-size:10px;font-weight:400;color:#8495ad;margin-top:3px}
#schedule-grid .day-header.weekend{background:#eef5fa}
#schedule-grid .day-cell{min-width:80px;max-width:80px;width:80px;padding:0;text-align:center}
.day-cell button{border:0;background:none;width:100%;min-height:47px;padding:10px 7px;color:#3d5776;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.day-cell button:hover{background:#e8efff}.day-cell button small{display:block;font-size:10px;color:#907445}
#schedule-grid .day-rest{background:#f0f7f5}#schedule-grid .day-invalid{background:#fff1e9}
#schedule-grid .matrix-note{min-width:240px;max-width:280px;white-space:normal;line-height:1.7}
.matrix-note>div{max-height:90px;overflow:auto;margin-top:5px;overflow-wrap:anywhere}
#schedule-grid td:last-child .row-link{display:block;margin:0 0 9px;white-space:nowrap}
#schedule-grid .departure-row .freeze-name{background:#fff0ec;color:#b42318}
/* Complete Excel-like totals in both views; dense rows, readable details on demand. */
.matrix-overview{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 16px 10px;flex-shrink:0}
.matrix-overview button{border:1px solid #dfe7f2;border-radius:7px;background:#fff;padding:5px 9px;color:#60738f;font:inherit;font-size:11px;cursor:pointer}
.matrix-overview button[aria-pressed=true]{border-color:#91a8ec;background:#eef3ff;color:#345ec2}
.matrix-overview strong{font-size:14px;margin-left:4px;font-variant-numeric:tabular-nums}
.matrix-overview>span{font-size:11px;color:#7c8ca3;margin-left:auto}
.schedule-issue-groups{padding:0 16px 10px;flex-shrink:0}.schedule-issue-groups[hidden]{display:none!important}.issue-group-buttons{display:flex;gap:6px;flex-wrap:wrap}.issue-group-buttons button{border:1px solid #dae3ef;border-radius:6px;background:#fff;padding:5px 9px;font-size:12px;color:#536b8d;cursor:pointer}.issue-group-buttons button[aria-pressed=true]{border-color:#91a8ec;background:#eef3ff;color:#345ec2}.issue-group-buttons strong{margin-left:4px;font-variant-numeric:tabular-nums}.issue-group-note{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:#788ba8;margin-top:6px}.issue-group-note .row-link{white-space:nowrap}
#schedule-grid.matrix-issues{width:100%;min-width:900px;table-layout:fixed;font-size:12px}#schedule-grid.matrix-issues th{height:40px;min-width:0;max-width:none;font-size:12px;padding:8px;text-align:left}#schedule-grid.matrix-issues td{height:auto;min-height:46px;vertical-align:top;padding:8px;font-size:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.55}#schedule-grid.matrix-issues .freeze-name{width:12%;min-width:110px;max-width:none}#schedule-grid.matrix-issues th:nth-child(2){width:15%}#schedule-grid.matrix-issues th:nth-child(3){width:11%}#schedule-grid.matrix-issues th:nth-child(4){width:29%}#schedule-grid.matrix-issues th:nth-child(5){width:22%}#schedule-grid.matrix-issues th:nth-child(6){width:11%}
#schedule-grid.matrix-issues .issue-kind{display:inline-block;padding:3px 6px;border-radius:5px;background:#fff3dd;color:#9c6010;font-size:11px}#schedule-grid.matrix-issues details{font-size:11px;color:#7b8ba4;margin-top:4px}#schedule-grid.matrix-issues summary{cursor:pointer}#schedule-grid.matrix-issues details ul{padding-left:17px;margin:4px 0;max-height:180px;overflow:auto}#schedule-grid.matrix-issues .issue-also{display:block;color:#ad6838;margin-top:4px}#schedule-grid.matrix-issues .issue-todo{color:#516d8c}#schedule-grid.matrix-issues .grid-actions{width:auto;min-width:0;max-width:none}#schedule-grid.matrix-issues td.grid-actions .row-link{display:block;margin:0 0 7px;padding:0;font-size:12px;white-space:normal}#schedule-grid.matrix-issues .block-note{font-size:10px;line-height:1.5}
#schedule-grid th{height:62px;min-width:82px;max-width:100px;padding:7px 7px;line-height:1.4;font-size:11px}
#schedule-grid td{vertical-align:middle;padding:5px 8px;font-size:11px;height:44px;line-height:1.35}
#schedule-grid .freeze-name{width:115px;min-width:115px;max-width:115px}
#schedule-grid .freeze-dept{left:115px;width:125px;min-width:125px;max-width:125px;white-space:normal}
#schedule-grid .freeze-group{width:110px;min-width:110px;max-width:110px;white-space:normal}
#schedule-grid .metric-cell{min-width:82px;max-width:100px;width:86px;font-size:12px}
#schedule-grid .metric-data-yellow{background:#fffdf0}
#schedule-grid .metric-data-cyan{background:#f0fbff}
#schedule-grid .metric-data-soft{background:#f8faff}
#schedule-grid tbody tr:hover td{box-shadow:inset 0 1px #cbdcf6,inset 0 -1px #cbdcf6}
#schedule-grid .day-header,#schedule-grid .day-cell{width:54px;min-width:54px;max-width:54px;padding:0}
#schedule-grid .day-cell button{min-height:42px;max-height:52px;padding:4px 3px;line-height:1.3;font-size:11px;overflow:hidden}
#schedule-grid .day-cell button small{font-size:9px}
#schedule-grid .matrix-note{width:170px;min-width:150px;max-width:190px;line-height:1.4}
#schedule-grid .grid-visible-notes{width:320px;min-width:320px;max-width:360px;vertical-align:top;white-space:normal;line-height:1.55}
#schedule-grid .grid-xiaotuo-notes{width:270px;min-width:270px;max-width:300px;vertical-align:top;white-space:normal;line-height:1.55;background:#f5faf8}
#schedule-grid.matrix-with-source-notes .grid-visible-notes{width:250px;min-width:250px;max-width:280px}
#schedule-grid .grid-source-note-block{margin-top:8px;padding-top:6px;border-top:1px solid #e3eaf2}
#schedule-grid .grid-visible-note{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
#schedule-grid .grid-visible-messages{margin:5px 0;padding-left:17px;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
#schedule-grid .grid-visible-messages li{margin:3px 0}
#schedule-grid .matrix-review{width:115px;min-width:115px;max-width:135px;white-space:normal}
#schedule-grid .status{font-size:10px;padding:3px 6px;white-space:nowrap}
#schedule-grid .grid-review-open{display:block;margin-top:3px;font-size:10px;white-space:nowrap}
#schedule-grid .grid-actions{width:136px;min-width:136px;max-width:148px;white-space:normal}
#schedule-grid td.grid-actions:last-child .row-link{display:inline-block;margin:1px 3px 1px 0;padding:1px 2px;font-size:10px;line-height:1.5;white-space:nowrap}
#schedule-grid .block-note{font-size:9px;margin-top:2px;line-height:1.3}
#schedule-grid-scroll{scrollbar-width:thin}
#schedule-table-panel.matrix-expanded{height:auto;min-height:0}
@media(max-width:660px){#schedule-grid .freeze-name{width:95px;min-width:95px;max-width:95px}.matrix-overview{padding:0 12px 8px;gap:5px}.matrix-overview>span{margin-left:0}.matrix-overview button{font-size:10px}}
.matrix-expanded{position:fixed;inset:90px 20px 16px 272px;z-index:25;height:auto;max-height:none;margin:0;box-shadow:0 14px 90px #1a31442a}
#view-schedules:has(.matrix-expanded)>:not(#customer-formal){visibility:hidden;pointer-events:none}
#customer-formal:has(.matrix-expanded)>:not(#schedule-table-panel){visibility:hidden;pointer-events:none}
body:has(#view-employees:not([hidden])) .content{height:calc(100dvh - 76px);overflow:hidden;padding-top:18px;padding-bottom:18px;display:flex;flex-direction:column}
body:has(#view-employees:not([hidden])) #connection-banner{margin-bottom:12px;flex-shrink:0}
#view-employees:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
#view-employees .page-heading{margin-bottom:12px;flex-shrink:0}
#view-employees .page-heading h1{font-size:24px}
#view-employees .staff-summary{gap:10px;margin-bottom:12px;flex-shrink:0}
#view-employees .staff-summary>div{padding:12px 17px}#view-employees .staff-summary strong{font-size:22px}
#employee-table-panel{display:flex;flex-direction:column;flex:1;min-height:0}
#employee-table-panel .table-toolbar{flex-shrink:0;padding:12px 16px}
#employee-table-panel td{padding:10px 15px}
#employee-import-box{max-height:35dvh;overflow:auto;flex-shrink:0}
@media(max-width:950px){.matrix-expanded{left:82px}}
@media(max-width:660px){
  .matrix-expanded{inset:76px 8px 8px;z-index:25}.matrix-heading{flex-wrap:wrap;padding:12px}
  .matrix-heading>.button-row{width:100%;justify-content:space-between}.view-switch button{padding:8px 10px}
  .matrix-filters{padding:0 12px 8px}.matrix-filters .search-field input{width:120px}
  .table-pagination{flex-wrap:wrap;padding:9px 12px;gap:8px;font-size:11px}.table-pagination .button-row{gap:7px}
  #schedule-grid .freeze-name{min-width:95px;max-width:95px;width:95px}
  #schedule-grid .freeze-dept{position:static}
  body:has(#view-employees:not([hidden])) .content{height:calc(100dvh - 66px);padding:12px}
  #view-employees .page-heading{flex-direction:row;gap:10px}#view-employees .page-heading h1{font-size:20px}
  #view-employees .page-heading p,#view-employees .eyebrow{display:none}
  #view-employees .staff-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  #view-employees .staff-summary>div{padding:8px}#view-employees .staff-summary strong{font-size:17px}
  #view-employees .staff-summary span{font-size:9px}#employee-table-panel .table-toolbar{padding:8px}
  #employee-table-panel .toolbar-left{gap:5px}#employee-table-panel .search-field{flex-basis:100%}
}

/* Confirmation and historical ledgers share the bounded employee-list layout. */
body:has(:is(#view-confirmations,#view-monthly):not([hidden])) .content{
  height:calc(100dvh - 76px);overflow:hidden;padding-top:18px;padding-bottom:18px;display:flex;flex-direction:column
}
body:has(:is(#view-confirmations,#view-monthly):not([hidden])) #connection-banner:not(.offline){display:none}
body:has(:is(#view-confirmations,#view-monthly):not([hidden])) #connection-banner{margin-bottom:10px;flex-shrink:0}
:is(#view-confirmations,#view-monthly):not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
:is(#view-confirmations,#view-monthly)>.page-heading{margin-bottom:10px;flex-shrink:0}
:is(#view-confirmations,#view-monthly)>.page-heading h1{font-size:24px}
:is(#view-confirmations,#view-monthly)>.page-heading .eyebrow{display:none}
:is(#view-confirmations,#view-monthly)>.page-heading p{font-size:11px}
:is(#online-confirm-table-panel,#ledger-table-panel){display:flex;flex-direction:column;flex:1;min-height:0}
:is(#online-confirm-table-panel,#ledger-table-panel)>.table-toolbar{flex-shrink:0;padding:10px 14px;flex-wrap:wrap}
:is(#online-confirm-table-panel,#ledger-table-panel) .sheet-select{width:auto;min-height:34px;padding:7px 10px;max-width:220px}
:is(#online-confirm-table-panel,#ledger-table-panel) .search-field input{height:33px}
:is(#online-confirm-table-panel,#ledger-table-panel) td{padding:10px 14px}
:is(#online-confirm-table-panel,#ledger-table-panel) :is(td,th):first-child{position:sticky;left:0;min-width:125px;width:125px;background:#fff;z-index:2}
:is(#online-confirm-table-panel,#ledger-table-panel) thead th:first-child{z-index:5;background:#f9fbfd}
#online-confirm-table-panel .confirmation-table small{margin-top:4px}
#online-confirm-table-panel .list-update-bar{padding:7px 14px;border-top:1px solid #edf1f5;gap:8px}
.list-update-bar .source-note{font-size:10px;margin:0;line-height:1.5}
#online-confirm-table-panel .confirmation-note{max-width:250px}
.confirmation-note small{max-width:230px;white-space:normal;line-height:1.5}
#view-confirmations>.info-strip{padding:7px 12px;margin-bottom:8px;font-size:11px;flex-shrink:0}
#view-confirmations>.action-panel{margin:0 0 8px;padding:10px 14px;align-items:center;flex-shrink:0;gap:10px}
#view-confirmations>.action-panel label{display:flex;align-items:center;gap:8px;font-size:11px}
#view-confirmations>.action-panel select{width:170px;max-width:100%}
#view-confirmations .confirmation-summary{margin:0 0 8px;gap:8px;flex-shrink:0;grid-template-columns:repeat(6,minmax(0,1fr))}
#view-confirmations .confirmation-summary>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;min-height:50px}
#view-confirmations .confirmation-summary span{font-size:10px;line-height:1.6}
#view-confirmations .confirmation-summary strong{font-size:23px;margin:0}
#view-confirmations .confirmation-channel{padding:8px 12px;margin-bottom:8px;font-size:11px;flex-shrink:0;max-height:130px;overflow:auto}
.confirmation-channel>summary{cursor:pointer;color:#637b99}
#view-confirmations .legacy-confirmation{margin-top:8px;padding:7px 12px;flex-shrink:0;max-height:30dvh;overflow:auto}
#view-confirmations .legacy-confirmation>summary{font-size:11px}
#history-import-section{max-height:35dvh;overflow:auto;flex-shrink:0;margin-top:10px}
#ledger-table-panel .table-toolbar{justify-content:flex-start;gap:9px}
#ledger-table-panel .table-toolbar>label{font-size:11px;white-space:nowrap}
#ledger-table-panel .table-toolbar>.secondary-btn{padding:8px 12px;min-height:34px}
.customer-start{padding:19px 22px;margin-bottom:16px}
.customer-main-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.customer-main-actions>label{display:grid;gap:8px;font-size:12px;color:#617a99;min-width:180px}
.customer-watch{display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:11px;color:#7085a2;border-top:1px solid #e6edf6;margin-top:12px;padding-top:12px}
.customer-watch>label{display:flex;gap:7px;align-items:center}
.customer-more>summary{padding:13px 0;font-size:12px;color:#6a81a3;cursor:pointer}
.customer-alerts{padding:18px;margin:12px 0 18px;max-height:320px;overflow:auto;border-color:#ecd2a0}
.customer-alerts h2{font-size:15px}.customer-alerts article{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #ece4d5;padding:12px 0}
.customer-alerts article p{font-size:12px;line-height:1.7;color:#946a37}.customer-alerts article small{font-size:10px;color:#8293aa}
.holiday-date-row{display:grid;grid-template-columns:180px minmax(150px,1fr) 80px;gap:9px;margin:8px 0}
.notice-day-list{max-height:270px;overflow:auto;padding:8px 12px;border:1px solid #e1e9f3;border-radius:9px}.notice-day-list details{margin:8px 0}
.notice-day-list summary{cursor:pointer;font-size:12px}.notice-day-list p{font-size:11px;overflow-wrap:anywhere}
.local-edit-table{min-width:740px}.local-edit-table input{padding:7px;min-height:33px;font-size:12px}
.local-edit-table td{padding:7px!important}.local-edit-table td:nth-child(3){min-width:170px}
.local-edit-table td:nth-child(n+4){width:110px}.local-edit-table th{position:sticky;top:0;z-index:2}
#customer-local-content>.table-scroll{max-height:320px;overflow:auto}
.erp-local-conflict{padding:15px;background:#fff6ec;border:1px solid #efdcc4;border-radius:9px;margin:12px 0}
.erp-local-conflict .button-row button{min-width:0}
@media(max-width:660px){.customer-start{padding:14px}.customer-main-actions{gap:8px}.customer-main-actions>label{width:100%}.customer-main-actions>button{flex:1;font-size:11px;padding:9px;min-width:0}.holiday-date-row{grid-template-columns:1fr 1fr}.holiday-date-row>.row-link{grid-column:2}.customer-alerts article{flex-wrap:wrap}}
@media(max-height:820px){
  :is(#view-confirmations,#view-monthly)>.page-heading p{display:none}
  :is(#view-confirmations,#view-monthly)>.page-heading h1{margin:0}
}
@media(max-width:1000px){
  #view-confirmations .confirmation-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  #view-confirmations .confirmation-summary>div{padding:7px 10px;min-height:39px}
}
@media(max-height:700px) and (min-width:661px){
  #view-confirmations>.info-strip{display:none}
  #view-confirmations>.action-panel{display:grid;grid-template-columns:1fr 1fr;padding:8px 12px;gap:7px}
  #view-confirmations>.action-panel label{min-width:0}
  #view-confirmations>.action-panel select{flex:1;width:100px;min-width:0;min-height:34px;padding:7px}
  #view-confirmations>.action-panel button{min-height:33px;padding:7px 12px}
  #view-confirmations .confirmation-summary>div{padding:7px 9px;gap:5px;min-height:43px}
  #view-confirmations .confirmation-summary strong{font-size:21px}
  #online-confirm-table-panel>.table-toolbar{padding:8px 12px}
}
@media(max-width:660px){
  body:has(:is(#view-confirmations,#view-monthly):not([hidden])) .content{height:calc(100dvh - 66px);padding:12px}
  :is(#view-confirmations,#view-monthly)>.page-heading{flex-direction:row;gap:10px}
  :is(#view-confirmations,#view-monthly)>.page-heading h1{font-size:20px}
  :is(#view-confirmations,#view-monthly)>.page-heading p{display:none}
  :is(#view-confirmations,#view-monthly)>.page-heading .secondary-btn{font-size:10px;padding:8px}
  #view-confirmations>.action-panel{display:grid;grid-template-columns:1fr 1fr;padding:8px;gap:7px}
  #view-confirmations>.action-panel label{display:grid;gap:4px}
  #view-confirmations>.action-panel select{width:100%;min-width:0;font-size:11px;padding:7px}
  #view-confirmations>.action-panel button{font-size:11px;padding:8px;min-width:0;min-height:34px}
  #view-confirmations .confirmation-summary{gap:5px}
  #view-confirmations .confirmation-summary strong{font-size:19px}
  #view-confirmations .confirmation-channel{padding:6px 9px}
  :is(#online-confirm-table-panel,#ledger-table-panel)>.table-toolbar{padding:8px;gap:6px}
  :is(#online-confirm-table-panel,#ledger-table-panel) .sheet-select{max-width:150px}
  #online-confirm-table-panel .list-update-bar .source-note{max-width:100%;font-size:9px}
}
/* Shared production/test header layout; demo identity controls stay test-only. */
/* Customer historical test: one action, compact differences, separate from formal. */
.customer-simple-heading{margin-bottom:14px}
.customer-mode-switch{display:flex;gap:8px;margin-bottom:16px}
.customer-mode-switch button{border:1px solid #dbe3f4;border-radius:10px;padding:10px 20px;background:#fff;color:#5a6b8c;font:inherit;font-weight:650;cursor:pointer}
.customer-mode-switch button.is-active{background:#eaf0ff;color:#365fdb;border-color:#b9caff}
.trial-start{padding:20px 24px;margin-bottom:16px}
.trial-start-actions{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.trial-start-actions label{display:grid;gap:7px;color:#637392;font-size:13px}
.trial-start-actions select{min-width:170px}
.trial-safe{align-self:center;font-size:12px;color:#506b62;background:#eff8f2;padding:7px 10px;border-radius:7px}
#trial-progress{margin:12px 0 0;color:#50607e;font-size:13px}
#trial-sources{margin-top:12px;font-size:12px;color:#657596}
#trial-sources summary{cursor:pointer;width:fit-content}
#trial-source-text p,#trial-mapping p{margin:7px 0;overflow-wrap:anywhere;line-height:1.7}
.trial-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}
.trial-summary button{background:white;border:1px solid #e1e8f5;border-radius:12px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#687b9d;font:inherit;cursor:pointer}
.trial-summary strong{font-size:24px;color:#304965}
.trial-summary button.is-active{border-color:#829ef4;background:#eef2ff;box-shadow:0 0 0 1px #829ef4}
#trial-table-panel .table-toolbar{padding:14px 18px;gap:12px}
#trial-table-panel h2{font-size:16px;margin:0}
#trial-table-panel p{margin:5px 0 0}
#trial-table-panel .search-field{max-width:250px}
#trial-list-scroll{max-height:clamp(190px,calc(100dvh - 465px),540px);overflow:auto}
.trial-list{width:100%;table-layout:fixed}
.trial-list th:nth-child(1){width:25%}.trial-list th:nth-child(2){width:13%}.trial-list th:nth-child(4){width:120px}
.trial-list td{padding:12px 16px;vertical-align:middle}
.trial-list td small,.trial-comparison th small{display:block;font-size:11px;font-weight:400;color:#7e8daa;margin-top:5px}
.trial-person{font-size:14px;font-weight:650}
.trial-issue{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
.trial-list .status.danger{background:#fff0ed;color:#b34932}
#trial-table-panel .table-pagination{padding:10px 16px}
#trial-scope{margin:10px 0;font-size:11px}
#trial-person-dialog{width:min(920px,95vw);max-width:95vw;max-height:90dvh;overflow:auto;padding:22px}
#trial-person-dialog>.drawer-head{position:sticky;top:-22px;background:white;z-index:2;padding:12px 0}
#trial-person-dialog h2{font-size:21px}
.trial-comparison{width:100%;min-width:600px}
.trial-comparison th,.trial-comparison td{padding:10px 14px;text-align:right}
.trial-comparison th:first-child{text-align:left}
.trial-cell-diff{background:#fff2dc;color:#9c4a19}
.trial-person-notices{border-left:3px solid #edba5a;padding:5px 12px;margin:10px 0;background:#fffbef;font-size:12px;line-height:1.7}
.trial-person-notices p{margin:4px 0}
.trial-calculation-note{padding:10px 14px;background:#f7f9fd;border-radius:8px;font-size:12px;line-height:1.7;margin:12px 0}
.trial-calculation-note p{margin:4px 0;overflow-wrap:anywhere}
.trial-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:10px 0}
.trial-days>div{border:1px solid #e4e9f3;border-radius:7px;padding:8px;min-height:56px;overflow-wrap:anywhere}
.trial-days small{color:#8a97ac;display:block;font-size:11px;margin-bottom:5px}
.trial-days strong{font-size:12px;font-weight:550}
#customer-formal>.page-heading h1{font-size:23px}
body:has(#view-schedules:not([hidden]) #customer-trial-panel:not([hidden])) .content{height:calc(100dvh - var(--attendance-header-height,76px));overflow:auto;display:flex;flex-direction:column;padding-top:14px;padding-bottom:14px;width:100%}
body:has(#view-schedules:not([hidden]) #customer-trial-panel:not([hidden])) #connection-banner:not(.offline){display:none}
#view-schedules:not([hidden]):has(#customer-trial-panel:not([hidden])){display:flex;flex-direction:column;flex:1;min-height:0}
#view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading{flex-shrink:0;margin-bottom:10px}
#view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading h1{font-size:27px}
#view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading p{font-size:12px;margin-top:4px}
.customer-mode-switch{flex-shrink:0;margin-bottom:12px}
#customer-trial-panel:not([hidden]),#trial-results:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
.trial-start{flex-shrink:0;padding-top:14px;padding-bottom:14px;margin-bottom:12px}
#trial-sources[open]{max-height:140px;overflow:auto}
.trial-summary{flex-shrink:0}
#trial-table-panel{display:flex;flex-direction:column;flex:1;min-height:280px;overflow:hidden}
#trial-list-scroll{flex:1;min-height:0;max-height:none}
#trial-table-panel>.table-toolbar,#trial-scope{flex-shrink:0}
#view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading .eyebrow{display:none}
#view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading h1{font-size:25px;margin:0;line-height:1.25}
#view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading p{margin:3px 0 0}
.customer-mode-switch button{padding:8px 16px}
.trial-start{display:grid;grid-template-columns:1fr auto;gap:8px 12px;padding:12px 16px}
.trial-start-actions{grid-column:1/-1;align-items:center}
.trial-start-actions label{display:flex;align-items:center;gap:9px}
#trial-progress,#trial-sources{margin:0}
#trial-sources[open]{grid-column:1/-1}
.trial-summary button{padding:8px 12px}
#trial-table-panel>.table-toolbar{padding:10px 14px}
#trial-stale{flex-shrink:0;margin-bottom:10px;padding:9px 12px;font-size:12px}
#trial-grid-dialog{width:min(1480px,96vw);height:92dvh;max-width:96vw;max-height:92dvh;padding:0;overflow:hidden}
#trial-grid-dialog[open]{display:flex;flex-direction:column}
#trial-grid-dialog #trial-table-panel{margin:0;border:0;min-height:0;height:100%}
#trial-grid-dialog #trial-list-scroll{min-height:0;max-height:none}
.customer-inbox-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid #e5ebf5}
.customer-inbox-row p{font-size:12px;line-height:1.7;color:#7c8aa2;margin:6px 0}
.customer-inbox-row small{color:#7c8aa2}
#customer-notice-inbox{max-height:86dvh;overflow:auto}
#customer-notice-inbox>.button-row{position:sticky;bottom:-20px;padding:12px 0;background:white}
#customer-notices-open{white-space:nowrap;color:#9b6d20}
.customer-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:12px}
.erp-review-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;margin-bottom:12px;border-color:#cbd8ff;flex-shrink:0}
.erp-review-entry p{font-size:12px;color:#7182a1;margin:5px 0 0;line-height:1.6}
.erp-review-entry button{white-space:nowrap}
#erp-review-dialog{width:min(1240px,96vw);max-height:92dvh;overflow:auto;padding:20px;border:1px solid #dce4f2;border-radius:18px;color:#314562}
#erp-review-dialog::backdrop{background:#10203c75}
#erp-review-dialog .drawer-head{position:sticky;top:-20px;background:#fff;padding:12px 0;z-index:3}
#erp-review-dialog h2{font-size:20px;margin:0}
#erp-review-progress{font-size:13px;line-height:1.7;background:#eff4ff;border-radius:8px;padding:10px 12px}
.erp-review-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
.erp-review-summary>div{display:grid;gap:4px;border:1px solid #e0e7f2;border-radius:10px;padding:10px 14px}
.erp-review-summary strong{font-size:22px;color:#344d74}.erp-review-summary small{font-size:12px;color:#7182a1}
.erp-review-tabs{margin:12px 0}.erp-review-tabs [aria-pressed=true]{background:#edf2ff;border-color:#91a9fa;color:#3e60dd}
.erp-review-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}
.erp-source-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:14px 0}.erp-source-toolbar input{max-width:300px}.erp-source-toolbar [aria-pressed=true]{background:#eaf0ff;border-color:#92a8ed;color:#294fc4}.erp-source-scroll{max-height:360px;overflow:auto}.erp-source-scroll th{position:sticky;top:0;z-index:1;background:#eef3fc}.group-match-good{color:#187550!important}
.erp-review-filters input{width:220px}.erp-review-filters select{min-width:150px}
.erp-review-scroll{max-height:34dvh;min-height:140px;overflow:auto;border:1px solid #e2e8f4;border-radius:10px}
.erp-review-scroll table{min-width:850px;width:100%}.erp-review-scroll th{position:sticky;top:0;z-index:1;background:#eef3fc}
.erp-review-scroll td{vertical-align:top;padding:10px 12px;font-size:13px}.erp-review-scroll small{display:block;line-height:1.6;color:#7182a1;margin-top:4px;overflow-wrap:anywhere}
.erp-review-scroll td:nth-child(2){min-width:210px}.erp-review-scroll select{max-width:390px;width:100%;font-size:12px;margin-bottom:7px}
.erp-review-scroll details{font-size:11px;margin-top:5px}.erp-review-scroll input[type=checkbox]{width:18px;height:18px;cursor:pointer}
.candidate-comparison{border:1px solid #e0e7f2;border-radius:8px;padding:10px 12px;margin:0;font-size:13px;line-height:1.7}.candidate-comparison small{display:block;overflow-wrap:anywhere;color:#61728c}.candidate-recommended{border-color:#94cdbb;background:#f2faf6}.candidate-schedule{color:#256b55!important;font-weight:600}#erp-bind-person{max-width:100%;height:110px}#erp-bind-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#erp-bind-comparison>p{grid-column:1/-1;margin:4px 0;font-size:12px;line-height:1.6}@media(max-width:640px){#erp-bind-comparison{grid-template-columns:1fr}}
#erp-review-dialog .table-pagination{padding:10px 0;font-size:12px}#erp-review-dialog .table-pagination button{min-height:30px;padding:7px 12px}
#erp-review-form{border-top:1px solid #e1e8f3;padding-top:10px;display:grid;gap:9px;font-size:13px}
#erp-review-form textarea{display:block;width:100%;min-height:48px;margin-top:6px}#erp-review-form .confirmation-ack{line-height:1.6}
#erp-review-form .button-row{justify-content:space-between}#erp-review-coverage>label{font-size:13px}
#erp-review-reference{max-width:100%;margin-left:10px}#erp-review-by-day{line-height:2}
@media(max-width:720px){.erp-review-entry{align-items:flex-start;flex-direction:column}#erp-review-dialog{padding:12px}#erp-review-dialog .drawer-head{top:-12px}.erp-review-summary{gap:5px}.erp-review-summary>div{padding:8px}.erp-review-summary strong{font-size:19px}#erp-review-form .button-row{align-items:flex-start;flex-direction:column}}
.customer-start .source-note{line-height:1.6}
.customer-month-status{background:#edf5ff;border-left:3px solid #5675e5;border-radius:5px;padding:10px 12px;color:#355380;font-size:13px!important;line-height:1.7}
.customer-bulk-main{border:2px solid #6985ed;color:#3459ce;background:#f3f6ff;font-weight:700}
.customer-month-empty{padding:18px 22px;margin-bottom:12px;color:#617a99;font-size:13px;line-height:1.7}
#customer-background-progress{padding:7px 10px;background:#fff8eb;border-radius:6px;color:#927031}
#customer-settings{margin:16px 0 8px;padding:12px 0}
#customer-settings>summary{cursor:pointer;color:#7182a1;font-size:12px}
#customer-settings[open]{background:#fff;border:1px solid #e4eaf5;border-radius:12px;padding:16px}
#customer-formal .customer-main-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
#customer-formal .customer-start{padding:18px 22px;margin-bottom:14px;flex-shrink:0}
#customer-formal .customer-start p{margin:8px 0 0;font-size:12px;line-height:1.6}
#customer-formal #schedule-table-panel{min-height:320px}
#customer-delivery-dialog{width:min(860px,95vw);max-height:88dvh;overflow:auto}
#customer-delivery-dialog .button-row{position:sticky;bottom:-20px;background:white;padding:12px 0;z-index:2}
#customer-delivery-dialog details{margin:12px 0;font-size:13px}
#customer-delivery-dialog summary{cursor:pointer;color:#637596}
#customer-delivery-dialog .confirmation-ack{line-height:1.7;margin-top:16px}
.customer-delivery-table{max-height:260px;overflow:auto}
.customer-delivery-table table{min-width:620px}
body:has(#view-schedules:not([hidden]) #customer-formal:not([hidden])) .content{height:calc(100dvh - var(--attendance-header-height,76px));overflow:auto}
body:has(#view-schedules:not([hidden]) #customer-formal:not([hidden])) #connection-banner:not(.offline){display:none}
#view-schedules:has(#customer-formal:not([hidden]))>.customer-simple-heading .eyebrow{display:none}
#view-schedules:has(#customer-formal:not([hidden]))>.customer-simple-heading h1{font-size:25px;margin:0}
#view-schedules:has(#customer-formal:not([hidden]))>.customer-simple-heading p{font-size:12px;margin:4px 0 0}
#customer-formal #schedule-calculation-summary .output-panel{padding:12px 18px;margin:0 0 12px}
#customer-formal #schedule-calculation-summary .result-head h2{font-size:16px;margin:0}
#customer-formal #schedule-calculation-summary p{font-size:12px;margin:5px 0;line-height:1.6}
#customer-formal #schedule-calculation-summary .button-row button{padding:8px 12px;min-height:34px}
@media(max-height:820px){
  #customer-formal .customer-start{padding:12px 18px;margin-bottom:12px}
  #customer-formal .customer-start>.source-note:first-of-type{display:none}
  #customer-formal .customer-shortcuts{margin-top:8px}
  #view-schedules:has(#customer-formal:not([hidden]))>.customer-simple-heading{margin-bottom:8px}
}
@media(max-width:720px){
  .trial-start{padding:14px}.trial-start-actions{gap:10px}.trial-safe{font-size:10px}
  .trial-summary{gap:5px}.trial-summary button{padding:10px 5px;display:grid;text-align:center;font-size:10px;gap:3px}.trial-summary strong{font-size:21px}
  #trial-table-panel .table-toolbar{padding:12px;flex-wrap:wrap}#trial-table-panel .search-field{max-width:100%;width:100%}
  .trial-list{min-width:580px}.trial-list td{padding:10px 12px}#trial-list-scroll{max-height:45dvh}
  #trial-person-dialog{padding:14px}.trial-days{grid-template-columns:repeat(5,minmax(0,1fr))}
  body:has(#view-schedules:not([hidden]) #customer-trial-panel:not([hidden])) .content{height:calc(100dvh - var(--attendance-header-height,105px));padding:12px}
  #view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading .eyebrow{display:none}
  #view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading h1{font-size:22px}
  #view-schedules:has(#customer-trial-panel:not([hidden]))>.customer-simple-heading p{display:none}
  #trial-list-scroll{max-height:none}
  #trial-table-panel .table-toolbar .source-note{display:none}
  .trial-start{grid-template-columns:1fr}
  .trial-start-actions label{display:grid;gap:5px}
  #trial-table-panel{min-height:300px}
  .customer-inbox-row{align-items:flex-start;flex-direction:column;gap:8px}
}
@media(max-width:720px){
  .employee-portal .portal-header{height:auto;min-height:74px;gap:10px;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}
  .portal-header-actions{width:100%;flex-wrap:wrap;justify-content:flex-end}
  .topbar{height:auto;min-height:76px;flex-wrap:wrap;gap:8px;padding-top:10px;padding-bottom:10px}
  .top-actions{width:100%;flex-wrap:wrap;justify-content:flex-end}
}
