@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root { font-family: 'DM Sans', 'Noto Sans SC', sans-serif; color: #17231f; background: #f4f6f3; font-synthesis: none; --ink: #17231f; --muted: #68756f; --line: #dfe5e1; --green: #176b59; --green-dark: #0e493d; --green-soft: #e3f2ed; --blue: #315f84; --blue-soft: #e7eff6; --amber: #b56b18; --amber-soft: #fff1dc; --red: #b5473e; --red-soft: #fbe9e7; --paper: #fff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f6f3; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .65; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { letter-spacing: 0; }
svg { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 7px; color: #fff; background: var(--green); font-weight: 700; font-size: 22px; box-shadow: inset 0 0 0 1px #ffffff2e; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 20px; line-height: 1.05; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.button { border: 0; border-radius: 7px; min-height: 42px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; transition: .18s ease; }
.button svg { width: 18px; }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 5px 16px #176b5925; }
.button.primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button.secondary:hover { border-color: #9ab0a7; background: #fafcfb; }
.button.ghost { min-height: 34px; color: var(--green); padding: 0 8px; background: transparent; }
.button.danger { color: var(--red); background: var(--red-soft); }
.button.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.button.wide { width: 100%; }
.icon-button { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 7px; }
.icon-button:hover { background: #edf1ee; color: var(--ink); }
.icon-button svg { width: 20px; }
.status-badge { width: max-content; display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 4px 8px; font-size: 12px; font-weight: 600; white-space: nowrap; color: #52605a; background: #edf0ee; }
.status-badge.success { color: #12604e; background: var(--green-soft); }
.status-badge.warning { color: #8e520f; background: var(--amber-soft); }
.status-badge.danger { color: #9d352e; background: var(--red-soft); }
.status-badge.info { color: #28597c; background: var(--blue-soft); }
.status-badge svg { width: 13px; height: 13px; flex: 0 0 13px; }
label { display: grid; gap: 7px; color: #4c5a54; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 43px; color: var(--ink); border: 1px solid #d6ddd9; border-radius: 7px; padding: 9px 11px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px #176b5915; }
textarea { resize: vertical; min-height: 92px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.span-two { grid-column: span 2; }
.form-error { color: var(--red); background: var(--red-soft); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
.success-message, .toast-inline { display: flex; align-items: center; gap: 8px; color: var(--green-dark); background: var(--green-soft); padding: 11px 14px; border-radius: 7px; margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.toast-inline svg { width: 18px; }
.state-panel { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #87928d; }
.state-panel p { margin: 0; }
.state-panel svg { width: 26px; }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Public */
.public-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, .68fr) minmax(500px, 1.32fr); background: linear-gradient(125deg, #173f35 0 34%, #f6f7f4 34% 100%); position: relative; }
.public-brand { padding: 40px 6vw; align-self: start; }
.public-brand .brand { color: #fff; }
.public-brand .brand-mark { background: #f4b55f; color: #173f35; }
.public-brand .brand small { color: #c9ddd5; }
.public-shell > main { min-height: 100vh; padding: 60px 8vw; display: grid; align-items: center; justify-items: center; }
.demo-strip { position: fixed; left: 5vw; bottom: 28px; color: #aec8be; font-size: 12px; }
.auth-card, .registration-card { width: min(100%, 470px); animation: rise .45s ease both; }
.registration-card { width: min(100%, 850px); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; box-shadow: 0 18px 50px #18362b12; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.auth-card > h1 { font-size: 28px; margin-bottom: 9px; }
.auth-card > p { color: var(--muted); line-height: 1.6; font-size: 14px; }
.auth-card form { display: grid; gap: 17px; margin-top: 28px; }
.auth-icon { width: 50px; height: 50px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 8px; margin-bottom: 22px; }
.mobile-brand { display: none; }
.recent-company { width: 100%; margin-top: 15px; padding: 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 7px; }
.recent-company:hover { border-color: #9ab0a7; }
.recent-company span:nth-child(2) > * { display: block; }
.recent-company small { color: var(--muted); font-size: 10px; }
.recent-company strong { margin: 2px 0; font-size: 14px; }
.recent-company em { color: var(--muted); font-size: 11px; font-style: normal; }
.company-avatar, .mini-logo { width: 38px; height: 38px; display: grid; place-items: center; background: var(--green); color: #fff; border-radius: 6px; font-weight: 700; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: #8a948f; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }
.auth-card footer { margin-top: 25px; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--green); font-size: 13px; }
.link-button { border: 0; background: none; color: var(--green); display: inline-flex; align-items: center; gap: 5px; padding: 0; }
.back-link { border: 0; background: none; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); padding: 0; margin-bottom: 28px; }
.company-hero { text-align: center; margin-bottom: 30px; }
.company-logo { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 14px; color: #fff; background: var(--green); border-radius: 9px; font-size: 29px; font-weight: 700; }
.company-hero h1 { font-size: 23px; margin-bottom: 5px; }
.company-hero p { color: var(--muted); font-size: 12px; }
.input-with-icon { position: relative; display: block; }
.input-with-icon > svg { position: absolute; z-index: 1; top: 12px; left: 11px; width: 18px; color: #84908a; }
.input-with-icon input { padding-left: 38px; padding-right: 40px; }
.input-with-icon button { position: absolute; right: 5px; top: 4px; width: 36px; height: 36px; border: 0; background: transparent; color: #84908a; }
.input-with-icon button svg { width: 18px; }
.input-with-icon .password-eye-closed { display: none; }
.input-with-icon button.is-password-visible .password-eye-open { display: none; }
.input-with-icon button.is-password-visible .password-eye-closed { display: block; }
.demo-credentials { display: flex; gap: 8px; align-items: center; color: #65736d; background: #edf1ee; padding: 10px 12px; border-radius: 6px; margin-top: 17px; font-size: 12px; }
.demo-credentials svg { width: 16px; }
.forgot-link { display: block; color: var(--green); text-align: center; margin-top: 20px; font-size: 13px; }
.registration-heading h1 { font-size: 28px; margin-bottom: 7px; }
.registration-heading p { color: var(--muted); }
.registration-card form { display: grid; gap: 28px; margin-top: 28px; }
.registration-card fieldset { border: 0; border-top: 1px solid var(--line); padding: 25px 0 0; margin: 0; }
.registration-card legend { display: flex; align-items: center; gap: 8px; padding-right: 12px; font-size: 16px; font-weight: 700; }
.registration-card legend svg { width: 19px; color: var(--green); }
.registration-card form > .button { justify-self: end; min-width: 170px; }
.registration-success { text-align: center; }
.success-seal { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); margin: 0 auto 18px; box-shadow: 0 0 0 8px var(--green-soft); }
.success-company { display: grid; justify-items: center; gap: 6px; margin: 28px 0; padding: 23px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.success-company small { color: var(--muted); margin-top: 8px; }
.success-company code { font: 700 23px 'DM Sans'; letter-spacing: 2px; color: var(--green-dark); margin: 3px 0 12px; }

/* Employee */
.employee-shell { min-height: 100vh; max-width: 520px; margin: 0 auto; background: #f4f6f3; box-shadow: 0 0 60px #1c352b17; position: relative; }
.employee-top { height: 62px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); position: sticky; z-index: 20; top: 0; }
.employee-top .brand-mark { width: 34px; height: 34px; font-size: 18px; }
.employee-top > div { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.employee-main { min-height: calc(100vh - 70px); padding-bottom: 86px; }
.employee-tabs { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); height: 70px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 7px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fffffff2; backdrop-filter: blur(16px); }
.employee-tabs a { display: grid; justify-items: center; gap: 3px; color: #7a8781; font-size: 10px; }
.employee-tabs svg { width: 21px; }
.employee-tabs a.active { color: var(--green); }
.employee-home { padding: 14px; }
.clock-hero { color: #fff; background: #164c40; border-radius: 8px; padding: 20px; position: relative; overflow: hidden; }
.clock-hero::after { content: ''; position: absolute; right: -60px; top: 38px; width: 165px; height: 165px; border: 32px solid #ffffff0b; border-radius: 50%; pointer-events: none; }
.employee-welcome { display: flex; gap: 11px; align-items: center; }
.employee-welcome .mini-logo { background: #f5b75f; color: #173f35; }
.employee-welcome small { color: #bcd3ca; }
.employee-welcome h1 { font-size: 19px; margin: 2px 0 0; }
.live-clock { text-align: center; margin: 31px 0 14px; }
.live-clock strong, .live-clock span { display: block; }
.live-clock strong { font-size: clamp(38px, 11vw, 54px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-clock span { color: #bed2cb; font-size: 12px; margin-top: 9px; }
.status-line { display: flex; align-items: center; justify-content: center; gap: 11px; }
.status-line .status-badge { color: #d7eee5; background: #ffffff17; }
.status-line > span { display: flex; align-items: center; gap: 5px; color: #c5d9d1; font-size: 11px; }
.status-line > span > svg { width: 15px; height: 15px; flex: 0 0 15px; }
.shift-summary { display: grid; grid-template-columns: 1.4fr .6fr; margin: 20px 0 15px; border: 1px solid #ffffff16; background: #ffffff0c; border-radius: 7px; }
.shift-summary > div { padding: 12px; }
.shift-summary > div + div { border-left: 1px solid #ffffff16; }
.shift-summary small, .shift-summary strong { display: block; }
.shift-summary small { color: #b9d0c7; font-size: 10px; margin-bottom: 4px; }
.shift-summary strong { font-size: 13px; }
.clock-button { position: relative; z-index: 1; width: 100%; min-height: 64px; border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #153f35; background: #f5b75f; font-size: 18px; font-weight: 700; box-shadow: 0 8px 22px #0b2f282c; }
.clock-button.clock-out { color: #fff; background: #d66a51; }
.clock-button > svg { width: 24px; height: 24px; flex: 0 0 24px; }
.clock-loader { width: 19px; height: 19px; border: 2px solid #153f3544; border-top-color: #153f35; border-radius: 50%; animation: spin .7s linear infinite; }
.server-note { margin: 10px 0 0; display: flex; justify-content: center; gap: 6px; color: #b8cec6; font-size: 10px; }
.server-note > svg { width: 15px; height: 15px; flex: 0 0 15px; }
.mobile-section { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 13px; padding: 16px; }
.mobile-section h2 { font-size: 15px; margin-bottom: 15px; }
.section-title { display: flex; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; }
.section-title button { border: 0; background: transparent; color: var(--green); font-size: 11px; }
.timeline { margin-top: 12px; }
.timeline-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 11px 0; }
.timeline-item + .timeline-item { border-top: 1px solid #edf0ee; }
.timeline-dot { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.timeline-dot.out { color: var(--red); background: var(--red-soft); }
.timeline-dot svg { width: 16px; }
.timeline-item div strong, .timeline-item div small { display: flex; align-items: center; gap: 4px; }
.timeline-item div strong { font-size: 13px; }
.timeline-item div small { color: var(--muted); margin-top: 3px; font-size: 10px; }
.timeline-item div small > svg { width: 13px; height: 13px; flex: 0 0 13px; }
.timeline-item time { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.timeline-action { display: grid; justify-items: end; gap: 4px; }
.timeline-action button { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; color: var(--red); background: transparent; font-size: 10px; font-weight: 600; }
.timeline-action button svg { width: 12px; }
.employee-toast { position: fixed; z-index: 90; bottom: calc(78px + env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 28px), 492px); padding-top: 8px; transform: translateX(-50%); pointer-events: none; }
.employee-toast > p { margin: 0; box-shadow: 0 10px 25px #18362b2e; }
.overlay { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: #14241e91; backdrop-filter: blur(3px); }
.success-modal { width: min(100%, 390px); padding: 27px; text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px #071e1742; }
.success-modal h2 { margin-bottom: 7px; }
.success-modal > p { color: var(--muted); font-size: 12px; }
.confirm-modal { width: min(100%, 360px); padding: 25px; text-align: center; background: #fff; border-radius: 8px; box-shadow: 0 24px 60px #071e1742; }
.confirm-modal h2 { margin: 14px 0 7px; font-size: 20px; }
.confirm-modal > p { margin-bottom: 6px; font-weight: 700; }
.confirm-modal > small { display: block; color: var(--muted); line-height: 1.6; }
.confirm-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: var(--red); background: var(--red-soft); }
.confirm-icon svg { width: 23px; }
.confirm-modal .form-error { margin-top: 14px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 21px; }
.official-time { display: block; color: var(--green-dark); font-size: 38px; font-variant-numeric: tabular-nums; margin: 10px 0 20px; }
.success-details { border-block: 1px solid var(--line); margin-bottom: 20px; padding: 15px 0; display: grid; gap: 8px; }
.success-details span { display: flex; justify-content: center; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.success-details svg { width: 15px; }
.quick-correction-prompt { display: grid; gap: 10px; }
.quick-correction-prompt > p { margin-bottom: 5px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.timeline-action > small { color: var(--green); font-size: 9px; }
.timeline-item div strong .status-badge { margin-left: 6px; font-size: 9px; }
.quick-correction-detail { display: grid; gap: 18px; }
.quick-correction-detail .status-badge { justify-self: start; }
.quick-correction-detail dl { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.quick-correction-detail dl > div { display: grid; grid-template-columns: minmax(120px, .8fr) 1.2fr; gap: 16px; padding: 12px 14px; }
.quick-correction-detail dl > div + div { border-top: 1px solid var(--line); }
.quick-correction-detail dt { color: var(--muted); font-size: 12px; }
.quick-correction-detail dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.setting-choice { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.setting-choice > span strong, .setting-choice > span small { display: block; }
.setting-choice > span small { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.setting-choice.disabled { opacity: .55; }
.setting-choice .segmented { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 680px) { .setting-choice { grid-template-columns: 1fr; } .setting-choice .segmented { justify-content: stretch; } .setting-choice .segmented button { flex: 1; } }
.employee-page { padding: 18px 14px; }
.mobile-page-head { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 13px; }
.mobile-page-head h1 { font-size: 23px; margin-bottom: 4px; }
.mobile-page-head p { color: var(--muted); font-size: 11px; margin: 0; }
.summary-band { display: grid; grid-template-columns: repeat(3, 1fr); color: #fff; background: var(--green-dark); border-radius: 8px; padding: 14px 8px; margin-top: 7px; }
.summary-band div { text-align: center; }
.summary-band div + div { border-left: 1px solid #ffffff1f; }
.summary-band small, .summary-band strong { display: block; }
.summary-band small { color: #bdd2ca; font-size: 9px; }
.summary-band strong { margin-top: 4px; font-size: 16px; }
.record-filters, .request-tabs { display: flex; gap: 7px; margin: 13px 0; overflow-x: auto; }
.record-filters button, .request-tabs button, .request-tabs a { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 7px 12px; white-space: nowrap; color: var(--muted); }
.record-filters button.active, .request-tabs button.active, .request-tabs a.active { color: #fff; background: var(--green); border-color: var(--green); }
.request-tabs { align-items: center; }
.request-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.request-tabs button span { min-width: 18px; padding: 1px 5px; color: inherit; background: #edf1ee; border-radius: 10px; font-size: 10px; text-align: center; }
.request-tabs button.active span { background: #ffffff2b; }
.record-list { padding: 0 14px; }
.record-list > button, .record-list > a { width: 100%; display: grid; grid-template-columns: 38px 1fr auto auto; gap: 10px; align-items: center; padding: 14px 0; border: 0; background: #fff; color: var(--ink); text-align: left; }
.record-list > button + button, .record-list > a + a { border-top: 1px solid #edf0ee; }
.record-list time { text-align: center; }
.record-list time strong, .record-list time small, .record-list > button > span > *, .record-list > a > span > * { display: block; }
.record-list time strong { font-size: 19px; }
.record-list time small, .record-list > button > span small, .record-list > a > span small { color: var(--muted); font-size: 10px; }
.record-list > button > span strong, .record-list > a > span strong { font-size: 12px; margin-bottom: 3px; }
.record-list > button > svg, .record-list > a > svg { width: 16px; color: #a0aaa5; }
.rotate-180 { transform: rotate(180deg); }
.detail-shift small, .detail-shift strong, .detail-shift span { display: flex; align-items: center; gap: 6px; }
.detail-shift small { color: var(--muted); font-size: 10px; }
.detail-shift strong { margin: 7px 0; }
.detail-shift span { color: var(--muted); font-size: 11px; }
.detail-shift svg { width: 14px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }

/* Attendance corrections */
.correction-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.correction-identity > div small, .correction-identity > div strong { display: block; }
.correction-identity > div small { color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.correction-identity label { grid-column: span 2; }
.correction-date-range { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.correction-date-range label { display: grid; gap: 6px; }
.correction-date-range .button { grid-column: span 2; }
.correction-anomaly-list { display: grid; gap: 10px; margin-top: 14px; }
.correction-anomaly-list > article { border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.correction-anomaly-list > article.selected { border-color: #7aa99d; box-shadow: 0 0 0 2px #176b5912; }
.correction-select { min-height: 62px; padding: 11px; display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; color: var(--ink); }
.correction-select > :nth-child(2), .correction-select > :nth-child(3) { min-width: 0; }
.correction-select > :nth-child(3) { justify-self: end; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.correction-select input, .correction-confirm input, .correction-review-head input { width: 18px; min-height: 18px; accent-color: var(--green); }
.correction-select span strong, .correction-select span small { display: block; }
.correction-select span small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.correction-original { padding: 8px 11px; display: grid; gap: 3px; background: #f5f7f5; color: var(--muted); font-size: 10px; }
.correction-editor { padding: 13px; display: grid; gap: 13px; border-top: 1px solid var(--line); }
.correction-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.correction-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.correction-confirm { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px; line-height: 1.5; }
.correction-bulk-tools { margin: 12px 0; padding: 12px; background: var(--amber-soft); border-radius: 7px; }
.correction-bulk-tools p { margin: 9px 0 0; display: flex; gap: 6px; color: #805018; font-size: 11px; }
.correction-bulk-tools p svg { width: 15px; }
.correction-submit { display: grid; gap: 14px; }
.correction-history { padding: 0 14px; }
.correction-history > article { min-height: 72px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.correction-history > article > span { color: var(--green); }
.correction-history strong, .correction-history small, .correction-history em { display: block; }
.correction-history small { color: var(--muted); margin-top: 3px; font-size: 10px; }
.correction-history em { color: var(--amber); font-size: 10px; font-style: normal; }
.table-subline { display: block; color: var(--muted); margin-top: 3px; }
.correction-detail { position: fixed; z-index: 60; inset: 74px 24px 20px max(250px, 18vw); padding: 20px; overflow: auto; box-shadow: 0 22px 65px #12271f33; }
.correction-detail > header { display: flex; justify-content: space-between; align-items: flex-start; }
.correction-detail > header h2 { margin-bottom: 5px; }
.correction-detail > header p { color: var(--muted); }
.correction-detail-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 0; background: var(--line); border: 1px solid var(--line); }
.correction-detail-summary span { padding: 12px; background: #fff; color: var(--muted); font-size: 12px; }
.correction-detail-summary strong { display: block; color: var(--ink); margin-top: 4px; }
.correction-review-list { display: grid; gap: 12px; margin-top: 14px; }
.correction-review-list > article { padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.correction-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.correction-review-head > span:last-child { margin-left: auto; color: var(--muted); font-size: 12px; }
.correction-compare { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 10px; }
.correction-compare > div { padding: 11px; background: #f5f7f5; border-radius: 6px; }
.correction-compare > div > small, .correction-compare > div > strong, .correction-compare > div > span { display: block; }
.correction-compare > div > small { color: var(--muted); margin-bottom: 5px; }
.correction-compare > div > span { color: var(--muted); margin-top: 4px; font-size: 11px; }
.correction-compare .correction-time-grid label { font-size: 10px; }
.risk-row { margin-top: 10px; padding: 9px; display: flex; gap: 7px; color: #8e520f; background: var(--amber-soft); border-radius: 6px; font-size: 11px; }
.risk-row svg { width: 16px; }
.correction-review-list .review-actions { justify-content: flex-end; margin-top: 11px; }
.correction-batch-bar { position: sticky; bottom: 0; margin-top: 14px; padding: 10px; display: flex; justify-content: flex-end; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); box-shadow: 0 -8px 24px #13291f12; }
.correction-batch-bar span { margin-right: auto; font-weight: 700; }
.correction-document-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 16px; }
.correction-document-actions .button { align-items: center; }
.correction-document-actions .button svg { width: 16px; height: 16px; }
.correction-detail .correction-batch-bar svg { width: 14px; height: 14px; }
.upload-button input { display: none; }
.correction-audit { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.correction-audit summary { display: flex; gap: 7px; align-items: center; cursor: pointer; font-weight: 700; }
.correction-audit summary svg { width: 18px; }
.correction-audit > div { display: grid; grid-template-columns: 150px 180px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }

@media (max-width: 760px) {
  .correction-detail { inset: 62px 8px 8px; border-radius: 7px; }
  .correction-detail-summary { grid-template-columns: 1fr 1fr; }
  .correction-compare { grid-template-columns: 1fr; }
  .correction-review-head { flex-wrap: wrap; }
  .correction-review-head > span:last-child { width: 100%; margin-left: 28px; }
  .correction-audit > div { grid-template-columns: 1fr; gap: 3px; }
  .correction-metrics { grid-template-columns: 1fr 1fr; }
}
.detail-metrics div { padding: 14px 8px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.detail-metrics small, .detail-metrics strong { display: block; }
.detail-metrics small { color: var(--muted); font-size: 9px; }
.detail-metrics strong { margin-top: 5px; }
.request-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.request-actions > button, .request-actions > a { min-height: 133px; display: flex; flex-direction: column; align-items: flex-start; padding: 15px; color: var(--ink); text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.request-actions > button > span, .request-actions > a > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.request-actions > button > span svg { width: 18px; }
.request-actions > a > span svg { width: 18px; }
.request-actions strong { margin-top: 12px; font-size: 13px; }
.request-actions small { color: var(--muted); font-size: 9px; margin-top: 4px; line-height: 1.4; }
.request-history article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; }
.request-history article + article { border-top: 1px solid #edf0ee; }
.request-type { width: 34px; height: 34px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); border-radius: 6px; }
.request-type svg { width: 17px; }
.request-history strong, .request-history small { display: block; }
.request-history strong { font-size: 12px; }
.request-history small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.drawer-backdrop { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: flex-end; background: #0b241b40; }
.drawer { position: relative; width: min(100%, 470px); padding: 24px; overflow-y: auto; background: #fff; box-shadow: -20px 0 50px #0b241b26; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.drawer > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.drawer > header h2 { margin: 0; font-size: 20px; }
.drawer-form { display: grid; gap: 17px; }
.info-note { display: flex; align-items: flex-start; gap: 8px; color: #765122; background: var(--amber-soft); padding: 11px; border-radius: 6px; font-size: 11px; line-height: 1.5; }
.info-note svg { width: 17px; margin-top: 1px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 5px 0 14px; }
.week-strip button { min-width: 0; padding: 8px 2px; display: grid; justify-items: center; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; }
.week-strip button:hover { background: var(--green-soft); color: var(--green); }
.week-strip button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.week-strip button.active { color: #fff; background: var(--green); }
.week-strip small { font-size: 8px; }
.week-strip strong { font-size: 13px; margin-top: 3px; }
.schedule-focus { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 17px; color: #fff; background: #315f84; border-radius: 8px; }
.schedule-date { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 7px; background: #ffffff19; }
.schedule-focus small { color: #cedde8; }
.schedule-focus h2 { font-size: 16px; margin: 3px 0 0; }
.segment-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; }
.segment-row + .segment-row { border-top: 1px solid var(--line); }
.segment-row > svg { color: var(--green); }
.segment-row strong, .segment-row small { display: block; }
.segment-row strong { font-size: 13px; }
.segment-row small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.segment-row em { color: var(--muted); font-size: 11px; font-style: normal; }
.info-foot { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); margin: 16px 0; font-size: 10px; }
.info-foot svg { width: 14px; }
.profile-card { display: grid; justify-items: center; padding: 27px 15px; }
.profile-avatar { width: 62px; height: 62px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 700; }
.profile-card h1 { font-size: 21px; margin: 12px 0 4px; }
.profile-card p { color: var(--muted); font-size: 11px; }
.profile-links { padding: 0 15px; }
.list-link { width: 100%; min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border: 0; color: var(--ink); background: #fff; text-align: left; }
.list-link + .list-link { border-top: 1px solid var(--line); }
.list-icon { width: 33px; height: 33px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 6px; }
.list-icon svg { width: 17px; }
.list-link strong, .list-link small { display: block; }
.list-link strong { font-size: 12px; }
.list-link small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.list-link > svg { color: #9aa59f; }
.logout-button { width: 100%; height: 48px; display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--red); background: #fff; border: 1px solid var(--line); border-radius: 7px; margin-top: 14px; }
.logout-button svg { width: 18px; }
.version-text { color: #a2aba7; text-align: center; font-size: 9px; margin-top: 20px; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.admin-sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 248px; padding: 22px 14px; display: flex; flex-direction: column; color: #dceae4; background: #153c33; }
.admin-sidebar .brand { color: #fff; padding: 0 8px 20px; }
.admin-sidebar .brand-mark { background: #f4b55f; color: #153c33; }
.admin-sidebar .brand small { color: #9ebcb1; }
.sidebar-head { display: flex; align-items: start; justify-content: space-between; }
.sidebar-close { display: none; color: #fff; }
.admin-sidebar nav { display: grid; gap: 3px; margin-top: 13px; }
.admin-sidebar nav a, .sidebar-logout { width: 100%; min-height: 43px; padding: 0 11px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 6px; color: #bdd1ca; background: transparent; font-size: 13px; text-align: left; }
.admin-sidebar nav a svg, .sidebar-logout svg { width: 18px; }
.admin-sidebar nav a:hover { color: #fff; background: #ffffff0b; }
.admin-sidebar nav a.active { color: #fff; background: #ffffff16; box-shadow: inset 3px 0 #f4b55f; }
.sidebar-logout { margin-top: auto; }
.admin-content { grid-column: 2; min-width: 0; }
.admin-top { height: 68px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.menu-button { display: none; }
.admin-company { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #36a882; box-shadow: 0 0 0 4px #36a8821e; }
.admin-user { display: flex; align-items: center; gap: 10px; text-align: right; }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { font-size: 12px; }
.admin-user small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.avatar, .table-avatar { display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 50%; font-weight: 600; }
.avatar { width: 36px; height: 36px; font-size: 11px; }
.admin-page { padding: 28px 30px 45px; max-width: 1540px; margin: 0 auto; }
.page-header { min-height: 55px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.page-header h1 { margin-bottom: 5px; font-size: 25px; }
.page-header p { color: var(--muted); margin: 0; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions select { min-width: 160px; }
.reports-page .page-header > :first-child { flex: 0 0 auto; }
.reports-page .header-actions { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
.reports-page .header-actions select[aria-label="员工"] { width: auto; max-width: 320px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 14px; }
.metric-card { min-height: 100px; padding: 17px; display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.metric-card .metric-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.metric-card.blue .metric-icon { color: var(--blue); background: var(--blue-soft); }
.metric-card.amber .metric-icon { color: var(--amber); background: var(--amber-soft); }
.metric-card.red .metric-icon { color: var(--red); background: var(--red-soft); }
.metric-icon svg { width: 20px; height: 20px; display: block; }
.metric-card span, .metric-card strong { display: block; }
.metric-card span { color: var(--muted); font-size: 11px; }
.metric-card strong { margin-top: 4px; font-size: 25px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr); gap: 14px; margin-bottom: 14px; }
.chart-panel { padding: 19px 19px 7px; }
.chart-panel > header, .panel-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.chart-panel h2, .panel-heading h2, .quick-panel h2, .simple-panel h2 { font-size: 15px; margin-bottom: 4px; }
.chart-panel p, .panel-heading p { color: var(--muted); font-size: 10px; }
.quick-panel { padding: 19px; }
.quick-panel > header { margin-bottom: 9px; }
.quick-panel > button, .quick-panel > a { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 49px; border: 0; border-top: 1px solid #edf0ee; background: #fff; text-align: left; font-size: 12px; }
.quick-panel > button > span, .quick-panel > a > span { width: 29px; height: 29px; display: grid; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 5px; }
.quick-panel > button svg, .quick-panel > a svg { width: 15px; }
.quick-panel > button > svg, .quick-panel > a > svg { color: #9aa49f; }
.quick-panel > a:hover { color: var(--green-dark); background: #fafcfb; }
.weekly-hours-chart { height: 260px; width: 100%; }
.weekly-hours-chart svg { width: 100%; height: 100%; overflow: visible; }
.weekly-hours-chart .chart-grid line { stroke: #e7ece9; stroke-dasharray: 3 3; }
.weekly-hours-chart .expected-line { fill: none; stroke: #a7b3ae; stroke-width: 2; stroke-dasharray: 5 5; }
.weekly-hours-chart .actual-area { fill: url(#actualFill); }
.weekly-hours-chart .actual-line { fill: none; stroke: #247866; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.weekly-hours-chart .actual-dot { fill: #fff; stroke: #247866; stroke-width: 3; }
.weekly-hours-chart text { fill: #68756f; font-size: 11px; }
.panel-heading { padding: 18px 19px 8px; }
.status-list { padding: 0 19px 10px; }
.status-list article { display: grid; grid-template-columns: auto 1fr auto 60px; align-items: center; gap: 11px; min-height: 58px; border-top: 1px solid #edf0ee; }
.table-avatar { width: 32px; height: 32px; font-size: 10px; }
.status-list strong, .status-list small { display: block; }
.status-list strong { font-size: 12px; }
.status-list small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.status-time { text-align: right; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.table-panel { overflow: hidden; }
.table-tools { min-height: 68px; padding: 12px 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.admin-form-panel { margin-top: 14px; }
.admin-form-panel .panel-heading { margin: -19px -19px 18px; border-bottom: 1px solid var(--line); }
.admin-form-panel form { display: grid; gap: 17px; }
.admin-form-panel .button[type="submit"] { justify-self: start; min-width: 110px; }
.search-box { min-width: 260px; max-width: 380px; flex: 1; position: relative; }
.search-box > svg { position: absolute; left: 11px; top: 11px; width: 18px; color: #87928d; }
.search-box input { padding-left: 37px; }
.date-input { width: 150px; }
.data-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 13px; color: #718078; background: #f7f9f7; font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
td { padding: 12px 13px; border-top: 1px solid #edf0ee; font-size: 11px; white-space: nowrap; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.event-type-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; color: var(--green); background: var(--green-soft); border-radius: 50%; vertical-align: middle; }
.event-type-icon svg { width: 12px; }
.attendance-summary-panel { overflow: hidden; margin-bottom: 14px; }
.attendance-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 0; }
.attendance-summary-header h2 { margin: 0; font-size: 18px; }
.attendance-summary-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.segmented { display: inline-flex; padding: 3px; gap: 2px; background: #f1f4f2; border-radius: 8px; }
.segmented button { border: 0; border-radius: 6px; padding: 7px 12px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgb(20 45 36 / 12%); }
.attendance-totals { display: flex; gap: 28px; padding: 20px 22px; }
.attendance-totals > div { display: grid; grid-template-columns: 10px auto; column-gap: 8px; align-items: center; }
.attendance-totals span { grid-row: span 2; width: 8px; height: 8px; border-radius: 2px; }
.attendance-totals .work-dot { background: #247866; }.attendance-totals .break-dot { background: #efad45; }
.attendance-totals small { color: var(--muted); font-size: 12px; }.attendance-totals strong { font-size: 18px; }
.attendance-chart { min-width: 680px; padding: 0 22px 12px; }.attendance-bars { width: 100%; display: block; overflow: visible; }
.attendance-grid line { stroke: #e4eae7; stroke-dasharray: 3 4; }.attendance-grid text { fill: #69766f; font-size: 12px; }
.attendance-bar-name { fill: var(--muted); font-size: 12px; dominant-baseline: middle; }.attendance-work-bar { fill: #247866; pointer-events: none; }.attendance-break-bar { fill: #efad45; pointer-events: none; }.attendance-bar-hit-area { fill: transparent; cursor: pointer; }
.attendance-tooltip { pointer-events: none; }.attendance-tooltip rect { fill: #fff; stroke: #cdd6d1; stroke-width: 1; filter: drop-shadow(0 2px 4px rgb(20 45 36 / 12%)); }.attendance-tooltip text { font-size: 12px; }.attendance-tooltip-name { fill: var(--ink); font-weight: 700; }.attendance-tooltip-break { fill: #d89120; }.attendance-tooltip-work { fill: #247866; }
.event-type-icon { display: inline-flex; width: 19px; height: 19px; margin-right: 7px; vertical-align: middle; align-items: center; justify-content: center; color: #247866; background: #e5f2ed; border-radius: 50%; }.event-type-icon svg { width: 13px; height: 13px; }
.attendance-summary-header { min-height: 70px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.attendance-summary-header h2 { margin: 0 0 4px; font-size: 15px; }
.attendance-summary-header p { margin: 0; color: var(--muted); font-size: 10px; }
.attendance-totals { display: flex; gap: 30px; padding: 16px 18px 0; }
.attendance-totals > div { display: grid; grid-template-columns: 8px auto; align-items: center; column-gap: 7px; }
.attendance-totals small { color: var(--muted); font-size: 10px; }
.attendance-totals strong { grid-column: 2; margin-top: 2px; font-size: 18px; }
.attendance-chart { width: 100%; padding: 8px 18px 12px; }
.attendance-summary-table { border-top: 1px solid var(--line); }
.attendance-events-panel > .panel-heading { border-bottom: 1px solid var(--line); }
.attendance-events-panel .table-tools { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.attendance-events-panel .status-badge svg, .attendance-summary-table .status-badge svg, .quick-correction-detail .status-badge svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .attendance-summary-header { align-items: flex-start; flex-direction: column; }.attendance-totals { gap: 18px; }.attendance-chart { overflow-x: auto; }.attendance-summary-table { overflow-x: auto; }.attendance-events-panel .table-tools { align-items: stretch; }.attendance-events-panel .search-box { min-width: 0; } }
.schedule-toolbar { padding: 14px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.segmented { display: flex; padding: 3px; background: #edf1ee; border-radius: 6px; }
.segmented button { min-height: 34px; padding: 0 13px; border: 0; background: transparent; color: var(--muted); border-radius: 4px; font-size: 11px; }
.segmented button.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px #1d362c15; }
.schedule-grid { overflow: auto; }
.schedule-grid-head, .schedule-grid-row { min-width: 1040px; display: grid; grid-template-columns: 185px repeat(7, 1fr); }
.schedule-grid-head span { padding: 10px; color: var(--muted); background: #f7f9f7; border-right: 1px solid var(--line); text-align: center; font-size: 10px; }
.schedule-grid-row > * { min-height: 62px; border: 0; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.schedule-grid-row > button { padding: 7px; color: #315f84; background: #f0f5f8; font-size: 10px; line-height: 1.6; }
.schedule-grid-row > button span { display: block; }
.schedule-grid-row > button.rest-shift { color: var(--muted); background: #f5f6f5; }
.schedule-grid-row > button.temp-shift { color: #80500f; background: var(--amber-soft); }
.schedule-person { display: flex; align-items: center; gap: 8px; padding: 8px; background: #fff; font-size: 10px; }
.segment-edit { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 8px; }
.weekday-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.weekday-picker legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.weekday-picker label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.week-picker-toolbar { display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; align-items: end; }
.week-picker-toolbar > label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.month-date-picker { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.month-date-picker legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.month-picker-toolbar { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; text-align: center; }
.month-picker-toolbar .icon-button { width: 34px; height: 34px; }
.month-picker-weekdays, .month-picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.month-picker-weekdays span { color: var(--muted); font-size: 10px; text-align: center; }
.month-picker-grid > span { min-height: 34px; }
.month-picker-grid label { position: relative; min-height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #fff; cursor: pointer; }
.month-picker-grid label.selected { color: #fff; border-color: var(--green); background: var(--green); }
.month-picker-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.month-picker-grid label span { font-size: 12px; font-weight: 600; }
.month-picker-actions { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.month-picker-actions .button { min-height: 32px; padding: 0 8px; }
.schedule-employee-filter { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.schedule-employee-filter select { min-width: 180px; }
.schedule-month { padding: 0 16px 18px; }
.schedule-month-head, .schedule-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.schedule-month-head span { padding: 10px; color: var(--muted); text-align: center; font-size: 11px; }
.schedule-month-grid { border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.schedule-month-grid > button, .schedule-month-grid > .month-blank { min-height: 92px; padding: 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f7faf9; text-align: left; }
.schedule-month-grid > .month-blank { background: #f1f4f2; }
.schedule-month-grid > button strong, .schedule-month-grid > button small { display: block; }
.schedule-month-grid > button strong { margin-bottom: 13px; }
.schedule-month-grid > button small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.schedule-month-grid > button.rest-shift { background: #faf7f7; }
.copy-scope { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.copy-scope legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.copy-scope label { display: flex; align-items: center; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-row input, .setting-toggle input { width: 42px; height: 23px; accent-color: var(--green); }
.request-tabs { margin: 0 0 14px; }
.request-tabs button, .request-tabs a { display: flex; align-items: center; gap: 6px; }
.employee-request-tabs a { flex: 1; justify-content: center; }
.employee-request-tabs svg { width: 17px; height: 17px; }
.request-tabs span { min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 9px; color: inherit; background: #ffffff24; font-size: 9px; }
.reason-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.review-drawer { display: grid; gap: 17px; }
.review-person { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; }
.review-person strong, .review-person small { display: block; }
.review-person small { color: var(--muted); margin-top: 3px; }
.review-block { padding: 14px; background: #f5f7f5; border-radius: 7px; }
.review-block > * { display: flex; align-items: center; gap: 6px; }
.review-block small { color: var(--muted); }
.review-block strong { margin: 6px 0; }
.review-block p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.review-block svg { width: 15px; }
.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.review-actions .button, .review-drawer > .button.wide { justify-content: center; }
.review-actions .button svg, .review-drawer > .button.wide svg { width: 16px; height: 16px; }
.review-person .status-badge svg { width: 14px; height: 14px; }
.request-table-panel .status-badge svg { width: 14px; height: 14px; }
@media (max-width: 760px) { .request-tabs { margin-inline: 0; padding-bottom: 2px; }.review-person { grid-template-columns: auto 1fr; }.review-person .status-badge { grid-column: 2; justify-self: start; } }
.pdf-stage { padding: 25px; overflow-x: auto; background: #dfe3e0; border-radius: 8px; }
.pdf-stage .pdf-page + .pdf-page { margin-top: 24px; }
.report-pdf-stage { min-height: 760px; overflow: hidden; }
.report-pdf-preview { width: 100%; min-width: 820px; height: 1080px; display: block; border: 0; background: #fff; box-shadow: 0 12px 35px #17231f1b; }
.report-month-picker { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.report-month-picker input { width: 132px; }
.pdf-page { width: 820px; min-height: 1080px; padding: 48px 52px; margin: 0 auto; color: #202823; background: #fff; box-shadow: 0 12px 35px #17231f1b; }
.pdf-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 22px; border-bottom: 3px solid var(--green-dark); }
.pdf-header > div:last-child { text-align: right; }
.pdf-header h1 { font-size: 24px; margin-bottom: 5px; }
.pdf-header p { color: var(--muted); font-size: 11px; }
.pdf-brand { display: flex; gap: 11px; align-items: center; }
.pdf-brand > span { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--green); font-size: 22px; font-weight: 700; }
.pdf-brand strong, .pdf-brand small { display: block; }
.pdf-brand small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.pdf-identity { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 22px 0; padding: 15px; background: #f3f6f4; }
.pdf-identity div + div { padding-left: 15px; border-left: 1px solid var(--line); }
.pdf-identity small, .pdf-identity strong, .pdf-identity span { display: block; }
.pdf-identity small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.pdf-identity strong { font-size: 11px; margin: 4px 0; }
.pdf-identity span { color: var(--muted); font-size: 9px; }
.pdf-page > h2 { margin: 24px 0 9px; font-size: 13px; }
.pdf-table-wrap { border: 1px solid var(--line); }
.pdf-page th, .pdf-page td { padding: 7px 8px; font-size: 8px; }
.pdf-summary { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.pdf-summary div { padding: 10px; }
.pdf-summary div + div { border-left: 1px solid var(--line); }
.pdf-summary div:nth-child(n+6) { border-top: 1px solid var(--line); }
.pdf-summary small, .pdf-summary strong { display: block; }
.pdf-summary small { color: var(--muted); font-size: 7px; }
.pdf-summary strong { margin-top: 4px; font-size: 11px; }
.pdf-page footer { margin-top: 34px; padding-top: 10px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 7px; }
.pdf-detail-page { width: 1080px; min-height: 760px; }
.pdf-detail-page .pdf-header { align-items: flex-end; }
.pdf-detail-page .pdf-header > div:first-child { text-align: left; }
.pdf-detail-page .pdf-table-wrap { margin-top: 8px; }
.pdf-detail-page th, .pdf-detail-page td { padding: 8px 7px; vertical-align: top; }
.pdf-empty { margin: 0; padding: 24px; color: var(--muted); text-align: center; }
.back-floating { margin-top: 12px; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 14px; }
.location-card { padding: 17px; }
.location-map { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--green); background-color: #e8efeb; background-image: linear-gradient(#d7e0dc 1px, transparent 1px), linear-gradient(90deg, #d7e0dc 1px, transparent 1px); background-size: 22px 22px; border-radius: 6px; }
.location-map svg { width: 30px; }
.location-map span { color: var(--muted); font-size: 9px; }
.location-card header { margin: 15px 0; display: flex; justify-content: space-between; gap: 10px; }
.location-card h2 { font-size: 16px; margin-bottom: 4px; }
.location-card p { color: var(--muted); font-size: 10px; }
.location-card dl { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-block: 1px solid var(--line); }
.location-card dt { color: var(--muted); font-size: 9px; }
.location-card dd { margin: 3px 0 0; font-size: 12px; font-weight: 600; }
.location-card > button { margin-top: 14px; }
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.settings-nav { display: grid; gap: 4px; padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.settings-nav button { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 0; color: var(--muted); background: transparent; border-radius: 5px; text-align: left; font-size: 11px; }
.settings-nav button svg { width: 17px; }
.settings-nav button.active { color: var(--green-dark); background: var(--green-soft); font-weight: 600; }
.settings-form { padding: 25px; display: grid; gap: 20px; }
.settings-form h2 { font-size: 17px; }
.settings-form > .button { justify-self: start; min-width: 110px; }
.settings-section-title h3 { margin: 0; font-size: 15px; }
.settings-section-title p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.work-hours-batch { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)) auto; align-items: end; gap: 10px; padding: 14px; background: #f3f6f4; border: 1px solid var(--line); border-radius: 7px; }
.work-hours-batch > strong { align-self: center; font-size: 11px; }
.work-hours-batch > strong { grid-column: 1; }
.work-hours-batch .batch-scope { grid-column: 2 / -1; }
.work-hours-batch label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.work-hours-batch input { width: 100%; }
.batch-scope button { flex: 1; white-space: nowrap; }
.workday-list { display: grid; border-top: 1px solid var(--line); }
.workday-row { display: grid; grid-template-columns: minmax(110px, 1fr) repeat(4, minmax(100px, 1fr)); align-items: center; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.workday-row > label:not(.workday-switch) { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.workday-row.disabled { background: #fafbfa; }
.workday-switch { display: grid; grid-template-columns: 36px auto; align-items: center; column-gap: 10px; }
.workday-switch input { grid-row: 1 / 3; width: 36px; height: 21px; accent-color: var(--green); }
.workday-switch strong { font-size: 12px; }
.workday-switch span { color: var(--muted); font-size: 9px; }
.company-code-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 18px; color: var(--green-dark); background: var(--green-soft); border: 1px solid #cfe0d9; border-radius: 7px; }
.company-code-card small, .company-code-card strong, .company-code-card p { display: block; }
.company-code-card small { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 600; }
.company-code-card strong { font-size: 20px; letter-spacing: .06em; }
.company-code-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.company-code-card .button { flex-shrink: 0; }
.setting-toggle { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.setting-toggle strong, .setting-toggle small { display: block; }
.setting-toggle small { color: var(--muted); margin-top: 3px; font-size: 9px; font-weight: 400; }
@media (max-width: 1050px) {
  .work-hours-batch { grid-template-columns: 1fr 1fr; }
  .work-hours-batch > strong, .batch-scope { grid-column: 1 / -1; }
  .workday-row { grid-template-columns: 110px 1fr 1fr; }
  .workday-switch { grid-row: 1 / 3; }
}
@media (max-width: 700px) {
  .work-hours-batch, .workday-row { grid-template-columns: 1fr; }
  .workday-row { gap: 9px; }
}
.subscription-hero { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 25px; padding: 24px; margin-bottom: 25px; color: #fff; background: #315f84; border-radius: 8px; }
.subscription-hero > div:first-child { display: flex; align-items: center; gap: 13px; }
.subscription-icon { width: 49px; height: 49px; display: grid; place-items: center; background: #ffffff17; border-radius: 7px; }
.subscription-icon svg { width: 24px; height: 24px; }
.subscription-hero small { color: #d2e0ea; }
.subscription-hero h1 { font-size: 21px; margin: 4px 0 7px; }
.subscription-hero dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.subscription-hero dl div { padding: 0 15px; border-left: 1px solid #ffffff22; }
.subscription-hero dt { color: #d2e0ea; font-size: 9px; }
.subscription-hero dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.tier-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.tier-card { position: relative; padding: 18px; text-align: center; overflow: hidden; }
.tier-card.current { border: 2px solid var(--green); }
.tier-card > span:not(.current-ribbon) { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.tier-card h2 { font-size: 13px; margin: 13px 0 6px; }
.tier-card > strong { display: block; color: var(--muted); margin-bottom: 15px; font-size: 11px; }
.current-ribbon { position: absolute; right: -27px; top: 10px; width: 90px; padding: 4px; transform: rotate(40deg); color: #fff; background: var(--green); font-size: 7px; }
.simple-panel { padding: 19px; }
.simple-panel h2 { display: flex; align-items: center; gap: 8px; }
.simple-panel h2 svg { width: 18px; color: var(--green); }
.simple-panel p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.sidebar-scrim { display: none; }

@media (max-width: 1050px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-content { grid-column: 1; }
  .admin-sidebar { transform: translateX(-100%); transition: .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: grid; }
  .sidebar-scrim { display: block; position: fixed; z-index: 35; inset: 0; background: #10231c77; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  .subscription-hero { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .public-shell { display: block; background: #f6f7f4; }
  .public-brand, .demo-strip { display: none; }
  .public-shell > main { min-height: 100vh; padding: 28px 20px; }
  .mobile-brand { display: block; margin-bottom: 44px; }
  .registration-card { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .registration-card .form-grid, .form-grid { grid-template-columns: 1fr; }
  .span-two { grid-column: auto; }
  .admin-top { padding: 0 15px; }
  .admin-company { font-size: 11px; }
  .admin-user > span:first-child { display: none; }
  .admin-page { padding: 20px 14px 35px; }
  .page-header { align-items: flex-start; }
  .page-header h1 { font-size: 21px; }
  .page-header > .button, .page-header > .header-actions { flex-shrink: 0; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 88px; padding: 12px; }
  .metric-card .metric-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .metric-card strong { font-size: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .status-list article { grid-template-columns: auto 1fr auto; }
  .status-time { display: none; }
  .table-tools { overflow-x: auto; }
  .search-box { min-width: 210px; }
  .attendance-summary-header { align-items: flex-start; flex-direction: column; }
  .attendance-chart { padding-left: 8px; }
  .attendance-totals { gap: 18px; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .reports-page .page-header { display: block; }
  .reports-page .header-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: 12px; }
  .reports-page .header-actions select, .reports-page .report-month-picker, .reports-page .header-actions .button { width: 100%; min-width: 0; }
  .reports-page .report-month-picker { justify-content: space-between; }
  .reports-page .report-version-toggle, .reports-page .report-download-button { grid-column: 1 / -1; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { grid-template-columns: repeat(3, 1fr); }
  .settings-nav button { justify-content: center; padding: 5px; }
  .company-code-card { align-items: stretch; flex-direction: column; }
  .company-code-card .button { align-self: flex-start; }
  .location-grid, .tier-grid { grid-template-columns: 1fr; }
  .pdf-stage { padding: 10px; }
  .report-pdf-stage { min-height: 620px; overflow-x: auto; }
  .report-pdf-preview { height: 820px; }
  .report-mobile .page-header { display: block; }
  .report-mobile .header-actions { margin-top: 10px; justify-content: stretch; }
  .report-mobile .report-month-picker { width: 100%; justify-content: space-between; }
  .report-mobile .report-month-picker input { flex: 1; max-width: 180px; }
  .report-mobile .header-actions .button { width: 100%; }
.report-mobile .header-actions .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.report-mobile .header-actions .button svg { width: 17px; height: 17px; }
.report-summary { margin-top: 12px; }
.report-preview .section-title > span { color: var(--muted); font-size: 10px; }
.report-day-list > article { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 13px 0; }
.report-day-list > article + article { border-top: 1px solid #edf0ee; }
.report-day-list time { text-align: center; }
.report-day-list time strong, .report-day-list time small, .report-day-list article > div strong, .report-day-list article > div small { display: block; }
.report-day-list time strong { font-size: 19px; }
.report-day-list time small, .report-day-list article > div small { color: var(--muted); font-size: 10px; }
.report-day-list article > div strong { margin-bottom: 3px; font-size: 12px; }
  .subscription-hero dl { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .reports-page .header-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reports-page .report-version-toggle, .reports-page .report-download-button { grid-column: auto; width: 100%; min-width: 0; }
}
@media (min-width: 521px) {
  body:has(.employee-shell) { background-color: #dfe7e3; background-image: linear-gradient(#d3ddd8 1px, transparent 1px), linear-gradient(90deg, #d3ddd8 1px, transparent 1px); background-size: 28px 28px; }
}
@media print {
  .admin-sidebar, .admin-top, .page-header, .employee-top, .employee-tabs, .back-floating { display: none !important; }
  .admin-content, .admin-page, .employee-page { padding: 0; margin: 0; }
  .pdf-stage { padding: 0; background: #fff; }
  .pdf-page { box-shadow: none; }
}
.auth-icon svg{width:24px;height:24px}.button svg{width:18px;height:18px}.link-button svg{width:15px;height:15px}.demo-credentials svg{width:16px;height:16px}.input-with-icon>svg{position:absolute;z-index:1;top:12px;left:11px;width:18px;height:18px;color:#84908a}
