.shell > main,
.desktop-page {
  min-width: 0;
}

.schedule-card,
.table-scroll {
  max-width: 100%;
}

.table-scroll {
  overflow-x: auto;
}

.schedule-card table {
  min-width: 900px;
}

.team-heading,
.team {
  width: 105px;
}

.summary-heading,
.row-summary {
  width: 125px;
}

/* Monthly Attendance Ledger · Figma Golden 602:41 */
.ledger-golden{border-radius:10px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.ledger-golden>.title-row{padding:18px 20px;border-bottom:1px solid #e2e8f0}
.ledger-golden>.title-row h2{margin:0;font-size:18px}
.ledger-golden>.title-row p{margin:4px 0 0;color:#64748b;font-size:12px}
.ledger-golden .table-scroll{max-height:none;overflow-x:auto;overflow-y:visible}
.ledger-golden table{width:1140px;min-width:1140px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.ledger-golden thead th{position:sticky;top:0;z-index:3;height:55px;border-bottom:1px solid #e2e8f0;background:#fff;font-weight:500}
.ledger-golden th,.ledger-golden td{height:34px;border-right:0;border-bottom:1px solid #e2e8f0;font-size:12px}
.ledger-golden thead .date{width:29px;padding:8px 0;vertical-align:middle}
.ledger-golden thead .date b{color:#0f172a;font-size:11px;font-weight:500}
.ledger-golden thead .date small{margin-top:4px;color:#94a3b8;font-size:10px;font-weight:400}
.ledger-golden thead .date.weekend{background:#f8fafc}
.ledger-golden thead .date.weekend small{color:#ef4444}
.ledger-golden .ledger-label-heading,.ledger-golden .person-cell{position:sticky;left:0;z-index:4;width:130px;padding:0 12px;background:#f8fafc;text-align:left}
.ledger-golden .ledger-label-heading{height:55px;color:#475569;font-size:13px;font-weight:700}
.ledger-golden .person-cell{z-index:2;color:#0f172a;font-size:13px;font-weight:600}
.ledger-golden .ledger-total-heading,.ledger-golden .ledger-total{position:sticky;right:0;z-index:4;width:110px;border-left:1px solid #e2e8f0;background:#f8fafc}
.ledger-golden .ledger-total-heading{color:#475569;font-size:13px;font-weight:700}
.ledger-golden .ledger-total{z-index:2;color:#0f172a;font-size:12px}
.ledger-golden .ledger-section-label th{position:sticky;left:0;z-index:2;height:30px;padding:0 16px;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#475569;text-align:left;font-size:12px}
.ledger-golden .ledger-section-label i{display:inline-block;width:4px;height:14px;margin-right:8px;border-radius:2px;background:#3b82f6;vertical-align:-2px}
.ledger-golden .ledger-section-label b{font-weight:700}
.ledger-golden .ledger-data-row td{border-left:1px solid #e2e8f0;color:#94a3b8;background:#fff}
.ledger-golden .ledger-data-row td.weekend{background:#f9fafb}
.ledger-golden .ledger-data-row td.has-value{color:#0f172a;font-weight:700}
.ledger-golden .ledger-basic-row td.has-value{color:#2563eb}
.ledger-golden .ledger-basic-row td.ledger-total{color:#0f172a}
.ledger-golden .current{border-right:1px solid #3b82f6!important;border-left:1px solid #3b82f6!important;background:#eff6ff!important}
.ledger-golden thead .date.current b,.ledger-golden thead .date.current small{color:#2563eb;font-weight:700}
.ledger-golden thead .date.current b{display:block;width:auto;height:auto;background:transparent}
.ledger-golden .holiday-dot{display:block;width:4px;height:4px;margin:4px auto 0;border-radius:50%;background:#f97316}
.ledger-golden .pending-chip{display:inline-block;padding:2px 6px;border-radius:4px;color:#475569;background:#f1f5f9;font-size:10px;font-weight:600}
.ledger-golden .ledger-total .pending-chip{padding:4px 8px;font-size:11px;font-weight:700}
@media(max-width:800px){.ledger-golden table{width:1140px;min-width:1140px}.ledger-golden .ledger-label-heading,.ledger-golden .person-cell{width:130px}.ledger-golden .ledger-total-heading,.ledger-golden .ledger-total{width:110px}}

/* Desktop Golden · Attendance 607:18 + Overview 609:18 */
.shell>main{min-width:0}.desktop-page{padding:32px;gap:24px}.desktop-page header h1{font-size:28px;line-height:36px}.breadcrumb{font-size:13px;font-weight:500}.sidebar{padding:24px 16px}.sidebar nav{margin-top:32px;gap:6px}.nav-item{width:188px}
.attendance-golden-page{gap:24px}.golden-page-header{position:relative;display:flex;min-height:150px;flex-direction:column;gap:12px}.golden-page-header .title-row{min-height:100px;align-items:flex-end}.golden-page-header .title-row h1{margin:0}.attendance-title-context h2{margin:6px 0 0;color:#0f172a;font-size:26px;line-height:1.25;font-weight:700}.golden-page-header .attendance-title-context p{margin:5px 0 0;color:#64748b;font-size:13px;font-weight:500}.attendance-summary{display:flex;align-items:center;gap:8px}.attendance-summary span{padding:8px 16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:13px;white-space:nowrap}.attendance-summary span.blue{color:#475569;background:#eff6ff}.attendance-summary span.blue b{color:#2563eb}.attendance-summary span.green{color:#475569;background:#ecfdf5}.attendance-summary span.green b{color:#059669}.attendance-controls{display:flex;align-items:center;justify-content:space-between;gap:20px}.attendance-controls select{height:42px;max-width:260px;padding:0 36px 0 12px;border:1px solid #dbe3ee;border-radius:8px;color:#334155;background:#fff;font-size:13px;font-weight:600}.month-navigator{display:flex;align-items:center;overflow:hidden;border:1px solid #dbe3ee;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04)}.month-navigator strong{min-width:170px;padding:0 18px;color:#0f172a;font-size:21px;line-height:42px;text-align:center;font-weight:700}.month-navigator button{width:44px;height:44px;border:0;background:#fff;color:#475569;font-size:24px;line-height:1;cursor:pointer}.month-navigator button:hover{background:#f1f5f9;color:#1d4ed8}.month-navigator button:active{background:#e2e8f0}.month-navigator button:focus-visible{position:relative;z-index:1;outline:2px solid #2563eb;outline-offset:-2px}.employment-context-banner{display:flex;align-items:flex-start;gap:12px;padding:13px 16px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a}.employment-context-banner>span{font-size:18px;line-height:1.2}.employment-context-banner b{font-size:14px}.employment-context-banner p{margin:3px 0 0;color:#475569;font-size:13px}
.attendance-matrix{width:100%;border-radius:12px}.attendance-matrix .table-scroll{overflow:visible}.attendance-matrix table{width:100%;min-width:0;table-layout:fixed}.attendance-matrix .person-heading,.attendance-matrix .person-cell{width:130px}.attendance-matrix .summary-heading,.attendance-matrix .row-summary{width:110px}.attendance-matrix thead th{height:55px}.attendance-matrix thead .date{width:auto;padding:8px 0}.attendance-matrix .date b{font-size:11px;font-weight:500}.attendance-matrix .date small{font-size:10px}.attendance-matrix .holiday-dot{display:block;width:4px;height:4px;margin:4px auto 0;border-radius:50%;background:#f97316}.attendance-matrix .attendance-section th{height:36px;padding:0 16px;color:#475569;background:#f8fafc;text-align:left;font-size:13px}.attendance-matrix .attendance-section i{display:inline-block;width:4px;height:14px;margin-right:8px;border-radius:2px;background:#2563eb;vertical-align:-2px}.attendance-matrix .attendance-section.green i{background:#059669}.attendance-matrix .attendance-row th,.attendance-matrix .attendance-row td{height:41px}.attendance-matrix .attendance-row td{border-left:1px solid #e2e8f0;color:#94a3b8;font-size:12px}.attendance-matrix .attendance-row td.weekend{background:#f9fafb}.attendance-matrix .attendance-row td.current{background:#eff6ff!important}.attendance-matrix .attendance-row.actual-row td,.attendance-matrix .attendance-row.credit-row td{font-weight:600}.attendance-matrix .attendance-row.actual-row td.current{color:#2563eb}.attendance-matrix .attendance-row.credit-row td.current{color:#059669}.attendance-matrix .row-summary{border-left:1px solid #e2e8f0;color:#0f172a;background:#f8fafc}.attendance-matrix .pending-chip{padding:2px 6px;font-size:10px}.attendance-legend{gap:16px;font-size:12px}.attendance-legend .shift{width:22px;height:22px}
.overview-page{gap:32px}.overview-page>header{display:flex;flex-direction:column;gap:8px}.overview-page>header .title-row h1{font-size:24px}.overview-page>header .title-row p{color:#64748b;font-size:14px;font-weight:500}.overview-section{display:flex;width:100%;flex-direction:column;gap:16px}.overview-section h2{display:flex;margin:0;align-items:center;gap:8px;font-size:16px}.overview-section h2>i{width:4px;height:16px;border-radius:2px;background:#2563eb}.overview-card{width:100%;padding:24px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.overview-note{margin:16px 0 0;padding-top:16px;border-top:1px solid #e2e8f0;color:#64748b;font-size:12px}.flow-row{display:flex;align-items:center;gap:4px}.flow-step{display:flex;min-width:0;padding:16px;flex:1;align-items:center;flex-direction:column;gap:8px;border-radius:12px}.flow-step b{font-size:14px}.flow-step span{color:#334155;font-size:12px}.flow-step.blue{color:#2563eb;background:#eff6ff}.flow-step.gold{color:#9a6e1a;background:#fdf8f0}.flow-step.green{color:#059669;background:#ecfdf5}.flow-step.slate{color:#0f172a;background:#f1f5f9}.flow-arrow{padding:8px;color:#94a3b8}.rule-table{padding:20px}.rule-head,.rule-row{display:grid;padding:12px;grid-template-columns:120px 1fr 150px;align-items:center;border-bottom:1px solid #e2e8f0;font-size:13px}.rule-head{color:#334155;background:#f8fafc}.rule-head>*:last-child,.rule-row>*:last-child{text-align:right}.rule-row:last-of-type{border-bottom:0}.rule-kicker{color:#2563eb;font-size:11px;font-weight:700}.gold-text{color:#d97706}.two-card{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-card article{padding:18px;border-radius:8px;background:#f8fafc}.two-card h3,.overview-grid h3{margin:8px 0 4px;font-size:18px;color:#2563eb}.two-card p,.overview-grid p{margin:0;color:#64748b;font-size:12px}.overview-warning{grid-column:1/-1;margin:0;padding:12px;color:#92400e;background:#fffbeb;font-size:12px}.status-tag,.review-tag{display:inline-block;padding:4px 8px;border-radius:4px;color:#475569;background:#f1f5f9;font-size:11px}.overview-grid{display:grid;width:100%;grid-template-columns:1fr 1fr;gap:12px}.holiday-definition article{display:flex;padding:20px;align-items:center;justify-content:center;gap:36px;border-radius:8px;background:#fef2f2;color:#dc2626;font-weight:700}.holiday-definition p{margin:16px 0 0;color:#64748b;font-size:12px}.representation-card>p{margin:0 0 18px;color:#334155;font-size:13px}.mini-ledger{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.mini-ledger span{padding:12px;border-right:1px solid #e2e8f0;color:#94a3b8;text-align:center;font-size:11px}.mini-ledger span:last-child{border:0}.mini-ledger b{color:#334155}.edge-card{position:relative}.edge-card ul{display:grid;margin:0;padding-left:20px;grid-template-columns:1fr 1fr;gap:10px;color:#334155;font-size:13px}.edge-card .review-tag{position:absolute;right:24px;bottom:20px;color:#d97706;background:#fffbeb}.principle-card{display:grid;gap:12px}.principle-card p{display:flex;margin:0;gap:8px;color:#334155;font-size:13px}.principle-card p i{color:#059669;font-style:normal}.standard-card{border:1.5px solid #0b192e}.standard-card dl{display:grid;margin:0;grid-template-columns:1fr 1fr;gap:12px 36px}.standard-card dl div{display:grid;grid-template-columns:120px 1fr;gap:8px;font-size:13px}.standard-card dt{color:#64748b;font-weight:700}.standard-card dd{margin:0;font-weight:600}
@media(max-width:1200px){.attendance-summary{flex-wrap:wrap;justify-content:flex-end}.attendance-matrix .table-scroll{overflow-x:auto}.attendance-matrix table{min-width:1156px}.flow-row{align-items:stretch;flex-direction:column}.flow-arrow{transform:rotate(90deg);text-align:center}.overview-grid,.two-card,.standard-card dl{grid-template-columns:1fr}}

/* Holiday Desktop Golden · Figma 601:583 */
.holiday-golden-page{gap:24px;padding:40px}.holiday-golden-page>header{display:flex;flex-direction:column;gap:8px}.holiday-golden-page>header h1{margin:0}.holiday-golden-page>header p:last-child{margin:4px 0 0;color:#475569;font-size:14px}.holiday-filter-bar{display:flex;width:100%;padding:16px;align-items:center;justify-content:space-between;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.holiday-filter-bar>div{display:flex;gap:12px}.holiday-filter-bar select{height:36px;padding:0 34px 0 14px;border:1px solid #e2e8f0;border-radius:6px;color:#475569;background:#fff;font-size:13px;font-weight:500}.holiday-filter-bar select:first-child{color:#0f172a}.holiday-add-button{height:38px;padding:0 16px;border:0;border-radius:6px;color:#fff;background:#2563eb;font-size:13px;font-weight:700}.holiday-form-panel{width:100%;padding:16px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff}.holiday-form-panel[hidden]{display:none}.holiday-form-panel form{display:grid;grid-template-columns:160px 160px minmax(160px,1fr) minmax(180px,1.5fr) 72px;align-items:end;gap:12px}.holiday-form-panel label{display:grid;gap:6px;color:#475569;font-size:12px;font-weight:600}.holiday-form-panel :is(input,select,button){height:38px;border:1px solid #cbd5e1;border-radius:6px;background:#fff}.holiday-form-panel input,.holiday-form-panel select{padding:0 10px}.holiday-form-panel button{color:#fff;border-color:#2563eb;background:#2563eb;font-weight:700}.holiday-form-panel [role=alert]{grid-column:1/-1;margin:0;color:#dc2626;font-size:12px}.holiday-table-card{width:100%;overflow:hidden;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.holiday-table-card table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}.holiday-table-card th,.holiday-table-card td{height:58px;padding:0 20px;text-align:left}.holiday-table-card th{height:46px;color:#475569;background:#f8fafc;font-size:13px;font-weight:600}.holiday-table-card td{color:#475569;font-size:14px}.holiday-table-card td:first-child{color:#0f172a;font-weight:500}.holiday-table-card td:nth-child(3){color:#0f172a}.holiday-table-card th:nth-child(1),.holiday-table-card td:nth-child(1){width:120px}.holiday-table-card th:nth-child(2),.holiday-table-card td:nth-child(2){width:120px}.holiday-table-card th:nth-child(3),.holiday-table-card td:nth-child(3){width:160px}.holiday-table-card th:nth-child(5),.holiday-table-card td:nth-child(5){width:100px}.holiday-table-card th:nth-child(6),.holiday-table-card td:nth-child(6){width:90px;text-align:right}.holiday-type,.holiday-status{display:inline-flex;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:700;white-space:nowrap}.holiday-type.public{color:#2563eb;background:#eff6ff}.holiday-type.company{color:#d97706;background:#fffbeb}.holiday-type.designated{color:#312e81;background:#eef2ff}.holiday-type.other{color:#475569;background:#f1f5f9}.holiday-status.active{color:#059669;background:#d1fae5}.holiday-status.inactive{color:#475569;background:#f1f5f9}.holiday-actions{position:relative;display:inline-block}.holiday-actions summary{display:grid;width:28px;height:28px;cursor:pointer;list-style:none;place-items:center;border-radius:6px;background:#f8fafc;color:#475569;font-size:12px;font-weight:700}.holiday-actions summary::-webkit-details-marker{display:none}.holiday-actions>div{position:absolute;z-index:8;right:0;top:34px;width:120px;padding:6px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;box-shadow:0 4px 8px rgba(15,23,42,.08)}.holiday-actions button{width:100%;padding:8px 12px;border:0;border-radius:4px;color:#475569;background:#fff;text-align:left;font-size:13px}.holiday-actions button:hover{background:#f8fafc}.holiday-pagination{display:flex;padding:12px 16px;align-items:center;justify-content:space-between;background:#f8fafc}.holiday-pagination button{height:32px;padding:0 12px;border:1px solid #e2e8f0;border-radius:6px;color:#94a3b8;background:#fff}.holiday-pagination span b{display:grid;width:30px;height:30px;place-items:center;border-radius:6px;color:#fff;background:#2563eb;font-size:13px}.holiday-rule-note{margin:0;color:#64748b;font-size:12px}.holiday-rule-note:before{content:"ⓘ";margin-right:6px;color:#2563eb}.holiday-golden-page tr[hidden]{display:none}
@media(max-width:1200px){.holiday-golden-page{padding:32px}.holiday-form-panel form{grid-template-columns:1fr 1fr}.holiday-table-card{overflow-x:auto}.holiday-table-card table{min-width:980px}}

/* Desktop Golden Top System */
.desktop-page,.holiday-golden-page{padding:20px 32px 32px;gap:16px}
.desktop-page>header{display:flex;min-height:0;flex-direction:column;gap:10px}
.desktop-page>header .breadcrumb{margin:0 0 2px;color:#94a3b8;font-size:14px;line-height:20px;font-weight:500}
.desktop-page>header .title-row{min-height:0;align-items:center}
.desktop-page>header h1{margin:0;color:#0f172a;font-size:30px;line-height:36px;font-weight:700}
.desktop-page.overview-page>header .title-row h1{font-size:30px;line-height:36px}
.desktop-page>header .title-row p{margin:4px 0 0;color:#475569;font-size:16px;line-height:22px;font-weight:400}
.attendance-golden-page{gap:4px}
.attendance-golden-page>.golden-page-header{min-height:0;margin-bottom:12px;gap:10px}
.attendance-golden-page .attendance-title-context p{margin:4px 0 0;color:#475569;font-size:16px;line-height:22px;font-weight:500}
.attendance-controls{display:flex;min-height:40px;align-items:center;justify-content:space-between;gap:20px}
.attendance-control-right{display:flex;min-width:0;align-items:center;justify-content:flex-end;gap:12px}
.attendance-summary{gap:6px}
.attendance-summary span{padding:7px 10px}
.month-navigator{flex:0 0 auto}
.attendance-controls select{height:40px}
.month-navigator strong{line-height:40px}
.month-navigator button{width:40px;height:40px}
.employment-context-banner{margin:0}
@media(max-width:1350px){.attendance-controls{align-items:stretch;flex-direction:column}.attendance-control-right{justify-content:space-between}.attendance-summary{flex-wrap:wrap}.attendance-controls select{align-self:flex-start}}

/* Attendance Rule Settings + Simulator · Figma 613:18 */
.sidebar .settings-nav{position:absolute;right:16px;bottom:24px;left:16px;width:188px}
.attendance-rules-page{padding:24px 24px 18px;gap:16px}
.attendance-rules-page>header{gap:4px}
.attendance-rules-page>header h1{font-size:24px;line-height:31px}
.attendance-rules-page>header .title-row p{font-size:14px;line-height:18px;font-weight:500}
.rule-summary-chips{display:flex;padding-top:4px;align-items:center;gap:6px}
.rule-summary-chips span{padding:4px 10px;border:1px solid #e2e8f0;border-radius:6px;color:#475569;background:#fff;font-size:11px;font-weight:600}
.rule-summary-chips .blue{border:0;color:#2563eb;background:#eff6ff}.rule-summary-chips .purple{border:0;color:#8b5cf6;background:#f5f3ff}.rule-summary-chips .red{border:0;color:#ef4444;background:#fef2f2}.rule-summary-chips .orange{border:0;color:#ea580c;background:#fff7ed}
.rule-settings-layout{display:grid;width:100%;grid-template-columns:minmax(580px,680px) minmax(390px,1fr);align-items:start;gap:18px}
.rule-settings-column{display:flex;min-width:0;flex-direction:column;gap:10px}
.rule-column-heading,.sim-heading{display:flex;flex-direction:column;gap:4px}.rule-column-heading b,.sim-heading b{font-size:16px}.rule-column-heading span,.sim-heading span{color:#475569;font-size:12px}
.rule-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.rule-card{display:flex;min-width:0;padding:12px;flex-direction:column;gap:8px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.rule-card h2{display:flex;margin:0;align-items:center;gap:8px;color:#0f172a;font-size:14px}.rule-card h2:before{width:4px;height:14px;border-radius:2px;background:#94a3b8;content:""}.rule-card h2.blue:before{background:#2563eb}.rule-card h2.purple:before{background:#8b5cf6}.rule-card h2.red:before{background:#ef4444}.rule-card h2.orange:before{background:#f59e0b}.rule-card h2.green:before{background:#059669}
.rule-card label{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px;color:#475569;font-size:12px;font-weight:600}.rule-card :is(input,select){height:34px;min-width:0;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;background:#fff;font-size:13px;font-weight:500}.rule-card label>select{width:50%}.rule-card p{margin:0;color:#94a3b8;font-size:11px;line-height:16px}
.inline-times{display:flex;width:65%;align-items:center;gap:5px}.inline-times input{width:calc(50% - 10px)}.inline-times i{color:#94a3b8;font-style:normal}
.holiday-rule-card>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.holiday-rule-card>div>span{display:flex;padding:8px 10px;flex-direction:column;border-radius:8px;background:#fff7ed}.holiday-rule-card>div>span:first-child{background:#fff1ed}.holiday-rule-card small{color:#94a3b8;font-size:10px}.holiday-rule-card b{color:#ea580c;font-size:18px}.holiday-rule-card>div>span:first-child b{color:#ef4444}
.holiday-rule-card>div>label{display:flex;padding:8px 10px;align-items:flex-start;flex-direction:column;border-radius:8px;background:#fff7ed}.holiday-rule-card>div>label:first-child{background:#fff1ed}.holiday-rule-card .rule-number-input{width:100%}
.rule-number-input{display:flex;width:50%;height:34px;align-items:center;gap:5px;padding:0 9px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.rule-card .rule-number-input input{width:100%;height:30px;padding:0;border:0;background:transparent}.rule-number-input i{flex:none;color:#64748b;font-size:12px;font-style:normal}.rule-actions button:disabled{cursor:not-allowed;border-color:#e2e8f0;color:#94a3b8;background:#e2e8f0}
.rule-wide{gap:8px}.wide-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wide-fields label{display:grid;align-items:start;gap:4px}.wide-fields label>input,.wide-fields label>select{width:100%}.pending-rule,.active-rule{float:right;padding:2px 5px;border-radius:4px;font-size:10px;font-style:normal}.pending-rule{color:#d97706;background:#fffbeb}.active-rule{color:#059669;background:#ecfdf5}
.rule-actions{display:flex;min-height:42px;align-items:center;justify-content:flex-end;gap:10px}.rule-actions p{margin:0 auto 0 0;color:#dc2626;font-size:12px}.rule-actions button,.simulate-button{height:38px;padding:0 18px;border:1px solid #e2e8f0;border-radius:8px;color:#475569;background:#fff;font-weight:700}.rule-actions button:last-child,.simulate-button{color:#fff;border-color:#0b192e;background:#0b192e}
.rule-simulator{display:flex;min-width:0;padding:16px;flex-direction:column;gap:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.preset-row{display:flex;margin:0;padding:0;flex-wrap:wrap;gap:6px;border:0}.preset-row legend{width:100%;margin-bottom:4px;color:#475569;font-size:12px;font-weight:600}.preset-row button{padding:6px 11px;border:1px solid #bfdbfe;border-radius:14px;color:#2563eb;background:#fff;font-size:11px}.preset-row button.active{color:#b84780;border-color:#b84780;background:#fdf2f8}
.sim-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.sim-input-grid label{display:grid;min-width:0;gap:4px;color:#475569;font-size:12px;font-weight:600}.sim-input-grid :is(input,select){width:100%;height:34px;min-width:0;padding:0 8px;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;background:#fff;font-size:12px}.sim-input-grid .holiday-input{grid-column:1/-1}.simulate-button{width:100%}.rule-simulator form>[role=alert]{margin:4px 0 0;color:#dc2626;font-size:12px}
.simulator-result{padding-top:12px;border-top:1px solid #e2e8f0}.sim-placeholder{margin:0;color:#94a3b8;font-size:12px}.sim-result-head{display:flex;align-items:center;justify-content:space-between}.sim-result-head b{font-size:14px}.sim-result-head span{padding:2px 6px;border-radius:4px;color:#059669;background:#ecfdf5;font-size:10px}.sim-result-list{display:grid;margin-top:10px;gap:8px}.sim-result-list>div{display:flex;align-items:center;justify-content:space-between;color:#475569;font-size:13px}.sim-result-list .is-zero{opacity:.45}.sim-result-list span{display:flex;align-items:center;gap:8px}.multiplier{padding:2px 6px;border-radius:4px;font-size:10px;font-style:normal}.multiplier.blue{color:#2563eb;background:#eff6ff}.multiplier.red{color:#ef4444;background:#fef2f2}.multiplier.orange{color:#ea580c;background:#fff7ed}.multiplier.purple{color:#8b5cf6;background:#f5f3ff}
.sim-overlap{display:flex;margin-top:12px;padding:10px;flex-wrap:wrap;gap:6px;border-radius:8px;background:#f8fafc}.sim-overlap span{padding:4px 8px;border:1px solid #e2e8f0;border-radius:4px;color:#475569;background:#fff;font-size:10px}.sim-explanations{display:grid;margin-top:10px;gap:2px}.sim-explanations b{margin-bottom:4px;font-size:12px}.sim-explanations p{margin:0;color:#475569;font-size:11px;line-height:16px}.simulator-result>small,.demo-note{display:block;margin-top:8px;color:#94a3b8;font-size:10px}.demo-note{margin:0;text-align:center}
@media(max-width:1200px){.rule-settings-layout{grid-template-columns:1fr}.rule-simulator{position:static}.attendance-rules-page{padding:20px}.rule-card-grid{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.rule-card-grid,.wide-fields,.sim-input-grid{grid-template-columns:1fr}.sim-input-grid .holiday-input{grid-column:auto}.rule-summary-chips{flex-wrap:wrap}}
.overtime-fact-button{min-width:64px;padding:4px 6px;border:1px solid #bfdbfe;border-radius:6px;color:#1d4ed8;background:#eff6ff;font-size:10px;white-space:nowrap}.overtime-editor{display:flex;margin:8px 0;padding:12px;align-items:end;gap:10px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff}.overtime-editor>div{display:flex;margin-right:auto;flex-direction:column}.overtime-editor label{display:flex;gap:4px;flex-direction:column;color:#475569;font-size:11px}.overtime-editor :is(input,select,button){height:34px;padding:0 9px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.overtime-editor button{color:#fff;background:#0b192e;font-weight:700}

.assignment-panel{display:grid;padding:16px 20px;gap:12px;border:1px solid var(--border);border-radius:12px;background:#fff}.assignment-panel>div{display:flex;align-items:center;gap:10px}.assignment-panel>div span{color:var(--muted);font-size:12px}.assignment-row{display:grid;grid-template-columns:120px 120px 80px 150px 64px;align-items:center;gap:10px}.assignment-row small{color:var(--soft)}.assignment-row :is(select,input,button){height:34px;border:1px solid var(--border);border-radius:6px;background:#fff}.assignment-row button{color:#fff;border-color:var(--blue);background:var(--blue);font-weight:700}.worker-error{margin-top:14px;padding:12px;border-radius:10px;color:#9f3333;background:#fff0f0;font-size:13px;text-align:center}.off-card h1{color:var(--green);font-size:28px}.off-card p{color:var(--muted)}.fatal-error{padding:30px}.primary-action:disabled{opacity:.65}
.clockout-overtime-confirmation{margin-top:16px;padding:18px;border:1px solid #dbe4ee;border-radius:16px;background:#fff;box-shadow:0 12px 30px rgba(15,42,68,.1);display:grid;gap:10px}.clockout-overtime-confirmation h2{margin:0;font-size:20px}.clockout-overtime-confirmation>p,.clockout-overtime-confirmation small{margin:0;color:#64748b}.clockout-overtime-confirmation strong{font-size:18px;color:#0f2a44}.clockout-overtime-confirmation label{display:grid;gap:6px;font-size:13px;font-weight:700}.clockout-overtime-confirmation select,.clockout-overtime-confirmation input{width:100%;min-height:44px;border:1px solid #d7e0ea;border-radius:10px;padding:0 12px;background:#fff}.clockout-overtime-confirmation .recognized-preview{padding:10px 12px;border-radius:10px;background:#eef7f2;color:#166534}.clockout-overtime-confirmation button{min-height:46px;border:0;border-radius:11px;background:#0f2a44;color:#fff;font-weight:800}
.clockout-overtime-confirmation [hidden]{display:none}
.excel-export-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 15px;border:1px solid #b9c8d8;border-radius:10px;background:#fff;color:#0f2a44;font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}.excel-export-button:hover{background:#f4f8fb;border-color:#7892aa}.excel-export-button:focus-visible{outline:3px solid rgba(37,99,235,.22);outline-offset:2px}
.excel-export-open{overflow:hidden}.excel-export-overlay{position:fixed;z-index:1000;inset:0;display:grid;padding:24px;place-items:center;background:rgba(15,23,42,.46);backdrop-filter:blur(2px)}.excel-export-dialog{position:relative;display:flex;width:min(440px,100%);padding:28px;flex-direction:column;gap:20px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 24px 64px rgba(15,23,42,.22)}.excel-dialog-close{position:absolute;top:16px;right:16px;display:grid;width:32px;height:32px;padding:0;place-items:center;border:0;border-radius:8px;color:#64748b;background:transparent;font-size:22px}.excel-dialog-close:hover{background:#f1f5f9}.excel-dialog-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;color:#2563eb;background:#eff6ff;font-size:24px;font-weight:800}.excel-dialog-icon.success{color:#059669;background:#ecfdf5}.excel-dialog-icon.error{color:#dc2626;background:#fef2f2}.excel-export-dialog header{display:grid;gap:7px}.excel-export-dialog h2{margin:0;color:#0f172a;font-size:22px;line-height:30px}.excel-export-dialog header p,.excel-export-progress p{margin:0;color:#64748b;font-size:14px;line-height:21px}.excel-export-summary{display:grid;margin:0;padding:14px 16px;gap:10px;border-radius:10px;background:#f8fafc}.excel-export-summary div{display:flex;align-items:center;justify-content:space-between}.excel-export-summary dt{color:#64748b;font-size:13px}.excel-export-summary dd{margin:0;color:#0f172a;font-size:13px;font-weight:700}.excel-export-includes{display:grid;gap:7px}.excel-export-includes b{color:#475569;font-size:12px}.excel-export-includes p{margin:0;color:#64748b;font-size:12px;line-height:19px}.excel-export-dialog footer{display:flex;justify-content:flex-end;gap:10px}.excel-export-dialog footer :is(button,a){display:inline-flex;height:42px;padding:0 18px;align-items:center;justify-content:center;border-radius:9px;font-size:13px;font-weight:800;text-decoration:none}.excel-dialog-secondary{border:1px solid #cbd5e1;color:#475569;background:#fff}.excel-dialog-primary{border:1px solid #0f2a44;color:#fff;background:#0f2a44}.excel-export-progress{display:flex;padding:18px 8px;align-items:center;flex-direction:column;gap:9px;text-align:center}.excel-export-progress small{color:#94a3b8;font-size:12px}.excel-spinner{width:38px;height:38px;border:3px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;animation:excel-spin .8s linear infinite}@keyframes excel-spin{to{transform:rotate(360deg)}}.excel-export-file{display:flex;padding:14px 16px;align-items:center;gap:12px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.excel-export-file>span{display:grid;width:34px;height:38px;place-items:center;border-radius:7px;color:#fff;background:#16834b;font-size:13px;font-weight:900}.excel-export-file div{display:grid;min-width:0;gap:4px}.excel-export-file b{overflow:hidden;color:#0f172a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.excel-export-file small{color:#64748b;font-size:12px}@media(max-width:700px){.excel-export-overlay{padding:16px}.excel-export-dialog{padding:22px}.excel-export-dialog footer :is(button,a){flex:1}}

/* New Worker Registration · Figma 630:18 */
.worker-add-button{height:40px;margin-left:auto;padding:0 18px;border:0;border-radius:8px;color:#fff;background:#0b192e;font-size:13px;font-weight:700}.worker-registration-page{height:100vh;padding:20px 24px 18px;gap:16px;overflow-y:auto}.worker-registration-columns{display:grid;min-height:0;grid-template-columns:1fr 1fr;align-items:start;gap:24px}.worker-registration-column{display:grid;gap:14px}.worker-registration-card{display:flex;padding:18px 20px;flex-direction:column;gap:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.worker-registration-card h2{display:flex;margin:0;align-items:center;gap:8px;color:#0f172a;font-size:16px}.worker-registration-card h2:before{width:4px;height:14px;border-radius:2px;background:#94a3b8;content:""}.worker-registration-card.blue h2:before{background:#2563eb}.worker-registration-card.orange h2:before{background:#ea580c}.worker-registration-card h2 em,.worker-registration-card label>em{color:#ef4444;font-style:normal}.worker-registration-card>label,.shift-registration-fields label{display:grid;gap:6px;color:#475569;font-size:13px;font-weight:650}.worker-registration-card :is(input,select){width:100%;height:38px;padding:0 12px;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;background:#fff;font:inherit}.worker-registration-card label small{color:#94a3b8;font-size:11px;font-weight:400}.fixed-role{display:flex;height:38px;padding:0 12px;align-items:center;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;background:#f8fafc}.initial-work-type{display:grid;grid-template-columns:1fr 1fr;gap:10px}.initial-work-type label{position:relative;cursor:pointer}.initial-work-type input{position:absolute;width:1px;height:1px;opacity:0}.initial-work-type span{display:flex;min-height:76px;padding:13px;flex-direction:column;gap:6px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.initial-work-type b{color:#0f172a;font-size:14px}.initial-work-type small{color:#94a3b8;font-size:11px}.initial-work-type input:checked+span{border:2px solid #2563eb;color:#2563eb;background:#eff6ff}.initial-work-type input:checked+span b{color:#2563eb}.initial-work-detail{min-height:90px;padding:14px 16px;border-radius:10px;color:#64748b;background:#f8fafc;font-size:12px}.initial-work-detail>p{margin:24px 0;text-align:center}.training-detail,.shift-detail{display:grid;gap:9px}.training-detail header,.shift-detail header{display:flex;align-items:center;justify-content:space-between}.training-detail header b,.shift-detail header b{color:#2563eb}.training-detail header span,.shift-detail header span{padding:2px 7px;border:1px solid #2563eb;border-radius:4px;color:#2563eb;background:#fff;font-size:10px;font-weight:700}.training-detail p,.shift-detail p{margin:0;color:#475569}.training-detail small{padding-top:7px;border-top:1px solid #dbeafe;line-height:17px}.shift-registration-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.shift-registration-fields[hidden]{display:none}.registration-summary{gap:12px}.registration-summary>h2:before{display:none}.registration-contract-summary{display:grid;margin:0;gap:0}.registration-contract-summary>div{display:grid;min-height:36px;padding:8px 0;grid-template-columns:120px 1fr;align-items:center;border-bottom:1px solid #e2e8f0}.registration-contract-summary>div:last-child{border-bottom:0}.registration-contract-summary dt{color:#64748b;font-size:12px}.registration-contract-summary dd{margin:0;color:#0f172a;font-size:13px;font-weight:700}.worker-registration-error{min-height:18px;margin:0;color:#dc2626;font-size:12px}.worker-registration-actions{display:flex;margin-top:auto;padding-top:2px;justify-content:flex-end;gap:10px}.worker-registration-actions button{height:40px;padding:0 24px;border:1px solid #e2e8f0;border-radius:8px;color:#475569;background:#fff;font-weight:700}.worker-registration-actions button[type=submit]{color:#fff;border-color:#0b192e;background:#0b192e}.worker-registration-success{margin:0;padding:10px 14px;border:1px solid #a7f3d0;border-radius:8px;color:#047857;background:#ecfdf5;font-size:13px;font-weight:600}@media(max-width:1050px){.worker-registration-columns{grid-template-columns:1fr}.worker-registration-page{height:auto}.worker-registration-actions{position:static}}
