:root {
  --orange: #ee7636;
  --orange-dark: #d75b1e;
  --orange-soft: #fff2e9;
  --ink: #23272e;
  --muted: #7e8591;
  --border: #e9ebef;
  --surface: #f7f8fa;
  --sidebar: #fff;
  --itcab-navy: #2e2864;
  --itcab-purple: #564092;
  --itcab-teal: #79c6c0;
  --green: #278b68;
  --green-soft: #eaf7f0;
  --red: #c65556;
  --radius: 13px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #ee763680; }
svg { display: block; flex-shrink: 0; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; }
.icon svg { width: 100%; height: 100%; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30; width: 232px;
  display: flex; flex-direction: column; padding: 27px 16px 19px;
  background: var(--sidebar); color: var(--itcab-navy); border-right: 1px solid var(--border);
}
.brand { display: grid; justify-items: center; gap: 13px; padding: 9px 8px 24px; margin-bottom: 23px; border-bottom: 1px solid var(--border); }
.brand-logo { display: block; width: 100%; max-width: 184px; height: auto; }
.brand-caption { font-size: 9px; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; color: var(--itcab-purple); }
.nav-group-label { padding: 0 14px; margin: 0 0 13px; font-size: 9px; text-transform: uppercase; letter-spacing: .15em; color: #7f8195; font-weight: 650; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 8px; font-weight: 500; font-size: 13px; text-align: left; background: transparent; border: 0; color: #65657c; width: 100%; transition: color .15s, background .15s; }
.nav-item:hover { background: #f5f4fa; color: var(--itcab-navy); }
.nav-item.active { color: var(--itcab-navy); background: #f0eef7; box-shadow: inset 3px 0 var(--itcab-teal); font-weight: 650; }
.nav-item.active .nav-icon { color: var(--itcab-purple); }
.nav-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; color: #87859c; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 20px; padding: 0 6px; border-radius: 5px; color: var(--itcab-navy); background: #dff2ef; font-size: 10px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.profile { border-top: 1px solid var(--border); padding: 20px 10px 0; display: flex; gap: 10px; align-items: center; }
.avatar { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 650; border-radius: 50%; color: #f5b38c; background: #554336; }
.profile-info { min-width: 0; }
.profile .avatar { color: var(--itcab-purple); background: #efebf7; }
.profile-info strong { color: var(--itcab-navy); font-size: 11px; font-weight: 600; display: block; }
.profile-info span { display: block; font-size: 10px; color: #7f8195; margin-top: 2px; }
.profile .icon { margin-left: auto; color: #8e96a2; width: 15px; height: 15px; }
.main { min-width: 0; margin-left: 232px; }
.topbar { height: 80px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: 12px; display: flex; align-items: center; gap: 10px; color: #9ba1aa; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb strong, .breadcrumb span:last-child { color: #5a626e; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.topbar-actions > .icon { color: #8a919e; }
.topbar-actions .avatar { background: #fff0e7; color: #c97540; }
.content { padding: 31px 36px 40px; max-width: 1490px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.eyebrow { text-transform: uppercase; font-size: 9px; font-weight: 700; letter-spacing: .17em; color: #a0a5ae; margin: 0 0 8px; }
h1 { font-size: clamp(25px, 2.3vw, 32px); letter-spacing: -.9px; line-height: 1.2; margin: 0; font-weight: 730; }
.subtitle { color: #8a909b; font-size: 13px; margin: 9px 0 0; }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 7px; border: 1px solid transparent; font-size: 12px; font-weight: 600; line-height: 1.5; min-height: 39px; padding: 9px 14px; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--orange); color: white; border-color: var(--orange); box-shadow: 0 3px 5px #ee763613; }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-secondary { background: white; color: #646d7a; border-color: #dfe3e8; }
.btn-secondary:hover { border-color: #b9c0c8; background: #fbfcfd; }
.btn-ghost { background: transparent; color: #8a909b; border-color: transparent; }
.btn-ghost:hover { color: var(--orange-dark); background: var(--orange-soft); }
.btn-sm { min-height: 31px; padding: 5px 10px; font-size: 11px; }
.btn-danger { background: #fff; border-color: #ebcaca; color: var(--red); }
.btn-danger:hover { background: #fff1f1; }
.btn-success { background: var(--green-soft); color: var(--green); border-color: #cfe9dc; }
.btn-success:hover { background: #dff1e7; }
.text-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: #d57542; font-size: 10px; font-weight: 600; cursor: pointer; }
.text-link .icon { width: 13px; height: 13px; }
.banner-icon { display: flex; color: #d18a58; flex-shrink: 0; }
.banner-icon svg { width: 17px; height: 17px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 25px; }
.stats-grid-employee { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card { position: relative; border: 1px solid var(--border); background: #fff; padding: 19px 20px 17px; border-radius: var(--radius); box-shadow: 0 2px 3px #1c263103; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.stat-label { font-size: 12px; font-weight: 500; color: #8a919d; }
.stat-icon { width: 31px; height: 31px; display: flex; align-items: center; justify-content: center; background: #f8f9fb; color: #9ca2ae; border-radius: 8px; }
.stat-icon svg { width: 16px; height: 16px; }
.stat-card:nth-child(2) .stat-icon { background: #fff4e9; color: #e1a067; }
.stat-card:nth-child(3) .stat-icon { background: #edf6f2; color: #65a78c; }
.stat-card:nth-child(4) .stat-icon { background: #f0f1fb; color: #8a91c1; }
.stat-value { display: flex; align-items: baseline; gap: 6px; font-size: 29px; font-weight: 730; line-height: 1.2; letter-spacing: -.7px; }
.stat-value small { font-size: 14px; font-weight: 500; color: #a0a6af; letter-spacing: 0; }
.stat-meta { font-size: 11px; color: #939ba7; margin: 10px 0 0; }
.stat-meta .positive, .positive { color: #4b9b78; }
.stat-meta .warm, .warm { color: #d38b50; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 23px; align-items: stretch; margin-bottom: 25px; }
.dashboard-grid > * { min-width: 0; }
.dashboard-left, .dashboard-right { display: grid; gap: 23px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 2px 3px #1c263103; overflow: hidden; min-width: 0; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 23px 0; }
.card-title { font-size: 14px; font-weight: 650; margin: 0; letter-spacing: -.1px; }
.card-subtitle { font-size: 11px; color: #979da8; margin: 5px 0 0; }
.card-header > .badge { margin-top: 1px; }
.card-header .btn { margin: -3px 0 0; }
.card-body { padding: 22px 23px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 14px; font-weight: 650; }
.chart { padding: 26px 24px 8px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; align-items: start; }
.chart-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b9b2cf #f5f3f9; }
.chart-scroll:focus-visible { outline-color: var(--itcab-purple); outline-offset: -2px; }
.chart-columns { position: relative; display: grid; grid-template-columns: repeat(var(--chart-days), minmax(16px, 1fr)); gap: 2px; min-width: calc(var(--chart-days) * 18px - 2px); width: 100%; }
.chart-columns::before { content: ""; position: absolute; top: 4px; height: 151px; left: 0; right: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, #edf0f3 0, #edf0f3 1px, transparent 1px, transparent 75px); }
.chart-column { display: grid; grid-template-rows: 150px 24px; gap: 8px; align-items: end; justify-items: center; min-width: 0; padding: 4px 0; border: 0; border-radius: 6px; background: transparent; position: relative; }
.chart-column.chart-weekend { background: #f7f8fa; }
.chart-column:hover, .chart-column[aria-pressed="true"] { background: #efebf7; }
.chart-column:focus-visible { outline: 2px solid var(--itcab-purple); outline-offset: -2px; }
.chart-bars { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 0; width: 100%; height: 150px; }
.chart-bar { width: min(18px, 70%); min-height: 0; background: var(--itcab-purple); border-radius: 0; position: relative; }
.chart-bar.pending, .chart-bar.pending-bar { background: var(--itcab-teal); }
.chart-label { color: #687284; font-size: 10px; font-weight: 600; line-height: 24px; text-align: center; }
.chart-hint { margin: 0; padding: 7px 24px 13px; color: #818b9b; font-size: 10px; line-height: 1.7; }
.chart-day-detail { margin: 0; min-height: 62px; padding: 13px 24px; border-top: 1px solid var(--border); color: #59657a; font-size: 11px; line-height: 1.7; background: #fbfafc; }
.monthly-activity .legend-dot { background: var(--itcab-purple); }
.monthly-activity .legend-dot.light { background: var(--itcab-teal); }
.chart-legend { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 4px 0 0; font-size: 10px; color: #9299a4; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--orange); }
.legend-dot.pending, .legend-dot.light { background: #f8d9c4; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
.data-table th { padding: 13px 15px; font-size: 10px; color: #939aa6; font-weight: 500; background: #fbfcfd; border-bottom: 1px solid #edf0f3; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { padding-left: 23px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 23px; }
.data-table td { padding: 14px 15px; border-bottom: 1px solid #f0f2f5; color: #737c89; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fdfaf8; }
.data-table .numeric { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .hours { color: #39424f; font-weight: 600; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.person-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; height: 29px; width: 29px; border-radius: 50%; background: #edf1fa; color: #788aaf; font-size: 9px; font-weight: 650; }
.person-avatar.orange { background: #fcf0e8; color: #be8a65; }
.person-avatar.green { background: #ecf5f1; color: #709f8c; }
.person-avatar.purple { background: #f2edf8; color: #a18bbb; }
.person-name { color: #414954; font-size: 12px; font-weight: 550; }
.person-sub { display: block; color: #a0a6b1; font-size: 10px; margin-top: 2px; }
.site-dot { display: inline-block; width: 5px; height: 5px; background: #bdc5d0; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; padding: 4px 8px; font-size: 10px; font-weight: 500; white-space: nowrap; background: #f0f2f5; color: #8c94a1; }
.badge.pending { color: #c58b42; background: #fff5e4; }
.badge.approved { color: #589a7c; background: #eef8f2; }
.badge.rejected { color: #bb6b6b; background: #fff0f0; }
.badge.draft { color: #888fb2; background: #f0f1fb; }
.badge .icon { width: 11px; height: 11px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 23px; border-top: 1px solid #f0f2f5; font-size: 9px; color: #a0a7b1; }
.table-footer .text-link { font-size: 9px; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.progress-list { display: grid; gap: 16px; }
.progress-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #555f6d; margin-bottom: 8px; }
.progress-label strong { font-size: 12px; color: #565f6a; font-weight: 600; }
.progress-label span:last-child { color: #9199a5; font-size: 9px; }
.progress-track { height: 6px; width: 100%; background: #f3f4f7; border-radius: 5px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 5px; }
.progress-item:nth-child(2) .progress-fill { background: #f1a479; }
.progress-item:nth-child(3) .progress-fill { background: #f4c9ad; }
.progress-item:nth-child(4) .progress-fill { background: #d8dde5; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 10px; color: #a1a7b0; }
.activity-list { display: grid; gap: 19px; }
.activity-item { position: relative; display: flex; gap: 11px; }
.activity-item:not(:last-child)::after { content: ""; position: absolute; top: 26px; bottom: -16px; left: 11px; width: 1px; background: #f0f1f4; }
.activity-marker { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: #eef7f1; color: #70a58b; display: flex; align-items: center; justify-content: center; }
.activity-marker .icon { width: 12px; height: 12px; }
.activity-marker.orange { background: #fff2e9; color: #d7986d; }
.activity-marker.blue { background: #eff2fb; color: #889cc5; }
.activity-text { font-size: 10px; color: #868e9a; line-height: 1.7; }
.activity-text strong { color: #596372; font-weight: 550; }
.activity-time { display: block; font-size: 9px; color: #aab0b9; margin-top: 2px; }
.filter-bar { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 20px 23px; border-bottom: 1px solid var(--border); }
.filter-field { min-width: 145px; flex: 1; max-width: 230px; }
.filter-field label { display: block; font-size: 10px; color: #828b98; margin-bottom: 6px; }
.filter-bar > .btn { margin-left: auto; }
.field label { display: block; font-size: 11px; color: #596371; font-weight: 550; margin-bottom: 7px; }
.field label small { font-weight: 400; color: #959ba6; }
.field input, .field select, .field textarea, .filter-field input, .filter-field select { width: 100%; color: #525c6b; background: #fff; border: 1px solid #dfe4e9; border-radius: 7px; padding: 10px 11px; min-height: 39px; font-size: 12px; }
.field input::placeholder, .field textarea::placeholder, .filter-field input::placeholder { color: #a1a8b3; }
.field input:focus, .field select:focus, .field textarea:focus, .filter-field input:focus, .filter-field select:focus { border-color: #ee763680; }
.field textarea { min-height: 76px; resize: vertical; }
.field .hint { font-size: 10px; color: #939aa6; margin: 5px 0 0; }
.field input[type="checkbox"], .field input[type="radio"] { min-height: auto; width: 15px; height: 15px; accent-color: var(--orange); }
.empty-state { text-align: center; padding: 48px 24px; color: #969eaa; font-size: 12px; }
.empty-state .icon { margin: 0 auto 12px; width: 30px; height: 30px; color: #c5cbd4; }
.empty-state strong { display: block; color: #5f6977; font-size: 14px; margin-bottom: 5px; }
.summary-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 21px 23px; background: #fffaf6; border-top: 1px solid #f6eadd; font-size: 12px; color: #89694f; }
.summary-total strong { color: #343d47; font-size: 19px; font-weight: 650; }
.summary-total .hint { font-size: 10px; color: #a38c79; }
.employee-grid, .site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.team-note { margin: -8px 0 22px; color: var(--muted); font-size: 12px; }
.employee-phone { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; min-height: 44px; margin-top: 16px; padding: 10px 12px; border: 1px solid #f1dfd2; border-radius: 7px; background: #fff8f2; color: #a75c30; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.employee-phone:hover { background: #fff0e5; border-color: #e9bc9e; }
.employee-phone .icon { width: 16px; height: 16px; }
.directory-card { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.directory-card .person-avatar { width: 45px; height: 45px; font-size: 13px; }
.directory-card h3 { font-size: 14px; margin: 0 0 4px; }
.directory-card p { font-size: 11px; color: #949ca8; margin: 0; }
.directory-card .person-cell { gap: 12px; }
.directory-card .directory-stats { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 17px; display: flex; justify-content: space-between; font-size: 11px; color: #87909c; }
.directory-card .directory-stats strong { display: block; margin-top: 4px; color: #424c59; font-size: 16px; font-weight: 650; }
.site-card-icon { width: 38px; height: 38px; border-radius: 9px; background: #fff1e7; color: #dd9365; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.site-card-icon .icon { width: 20px; height: 20px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: #1b243664; backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade-in .15s ease; }
.modal { width: 100%; max-width: 590px; max-height: calc(100dvh - 48px); overflow-y: auto; background: #fff; border-radius: 15px; box-shadow: 0 20px 70px #15243538; animation: modal-in .18s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 20px; border-bottom: 1px solid var(--border); }
.modal-header h2 { font-size: 19px; letter-spacing: -.4px; margin: 0; }
.modal-header p { font-size: 11px; color: #8b939f; margin: 5px 0 0; }
.modal-header .btn { padding: 7px; min-height: 30px; }
.modal-body { padding: 23px 26px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 26px; border-top: 1px solid var(--border); background: #fbfcfd; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field.full { grid-column: 1 / -1; }
.form-error { padding: 10px 13px; color: #b34e4e; background: #fff0f0; border: 1px solid #f3d3d3; font-size: 11px; border-radius: 7px; margin-bottom: 16px; }
.hours-preview { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 15px; background: #fff5ed; border: 1px solid #f7e5d5; border-radius: 8px; color: #a07555; font-size: 11px; }
.hours-preview strong { color: #d06e36; font-size: 18px; }
.allowance-options { display: grid; gap: 9px; }
.allowance-option { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e3e7ec; border-radius: 7px; cursor: pointer; font-size: 11px; color: #596575; }
.allowance-option:has(input:checked) { border-color: #ee763680; background: #fffbf8; }
.allowance-option input { accent-color: var(--orange); width: 15px; height: 15px; margin: 0; min-height: 0; }
.allowance-option span { flex: 1; }
.allowance-option small { color: #9aa2ac; }
.allowance-option strong { color: #7f8895; font-size: 11px; font-weight: 550; }
.allowance-note { margin: 9px 0 0; font-size: 10px; color: #9ba3ae; }
.toast { position: fixed; bottom: 26px; right: 28px; z-index: 150; max-width: calc(100vw - 40px); padding: 15px 20px; border-radius: 10px; color: white; background: #293731; border: 1px solid #43564b; box-shadow: 0 8px 30px #14272025; font-size: 12px; display: flex; align-items: center; gap: 9px; animation: modal-in .18s ease; }
.toast .icon { color: #9ad3b2; }
.mobile-menu-button { display: none; padding: 7px; min-height: 32px; }
.sidebar-scrim { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.helper-note { font-size: 11px; color: #949ba6; margin: 16px 0 0; line-height: 1.8; }
.welcome-card { padding: 23px; background: #fff5ec; border: 1px solid #f4e2d2; border-radius: var(--radius); }
.welcome-card h3 { font-size: 13px; color: #936445; margin: 0 0 8px; }
.welcome-card p { font-size: 11px; color: #ae8a70; margin: 0; line-height: 1.8; }
.welcome-card .btn { margin-top: 16px; }
.status-note { font-size: 10px; color: #929ca9; }
.accounting-note { display: flex; align-items: flex-start; gap: 10px; background: #f7f9fc; border: 1px solid #e7edf4; border-radius: 9px; padding: 15px 18px; font-size: 11px; color: #7d8b9e; line-height: 1.8; margin-bottom: 22px; }
.accounting-note .icon { margin-top: 2px; color: #92a1b6; }
.page-footnote { font-size: 9px; text-align: center; color: #a8aeb8; margin-top: 30px; }

/* Shared components used by the daily entry, validation, and accounting views. */
.directory-label { margin-top: 24px; margin-bottom: 8px; }
.sidebar-note { padding: 0 12px; margin: -12px 0 13px; color: #7f8794; font-size: 11px; line-height: 1.8; }
.sidebar-bottom > .btn { margin: 0 2px 14px; color: #74718b; font-size: 10px; }
.sidebar-bottom > .btn:hover { color: var(--itcab-purple); background: #f0eef7; }
.profile-info strong { font-size: 12px; }
.profile-info span { font-size: 10px; }
.topbar-avatar { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-size: 10px; font-weight: 650; color: #bd875c; background: #fff0e6; }
.period-picker { display: inline-flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #dfe3e8; border-radius: 7px; min-height: 39px; background: #fff; color: #9099a6; }
.period-picker > .icon { width: 15px; height: 15px; }
.period-picker select { min-height: 37px; padding: 0 16px 0 0; border: 0; background: transparent; color: #626c79; font-size: 12px; font-weight: 500; }
.tiny-orange-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 2px; }
.status-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.person-avatar { color: var(--avatar-color, #788aaf); background: color-mix(in srgb, var(--avatar-color, #788aaf) 11%, white); }
.site-name { display: inline-flex; align-items: center; gap: 2px; color: #747e8d; }
.site-dot { width: 6px; height: 6px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; padding: 0; border: 1px solid transparent; background: transparent; color: #a4acb8; border-radius: 6px; vertical-align: middle; transition: color .15s, background .15s; }
.icon-button .icon { width: 15px; height: 15px; }
.icon-button:hover { color: #677589; background: #f0f3f7; }
.approve-button { color: #77a991; background: #f0f8f3; }
.approve-button:hover { color: #3f8a64; background: #e1f1e8; }
.row-actions { text-align: right; }
.actions-heading { text-align: right; }
.card-small-icon { color: #b7bec8; padding-top: 3px; }
.card-small-icon .icon { width: 17px; height: 17px; }
.card-bottom-link { margin-top: auto; padding: 0 15px 14px; }
.card-bottom-link .btn { color: #9099a6; }
.card-bottom-link .btn .icon { order: 2; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; height: 21px; min-width: 21px; padding: 0 6px; background: #fff1e8; color: #d28957; font-size: 10px; font-weight: 600; border-radius: 5px; vertical-align: 1px; }
.dashboard-grid > .card { display: flex; flex-direction: column; }
.table-card > .card-header { padding-bottom: 18px; }
.card > .table-wrap { margin-top: 18px; }
.table-card > .table-wrap { margin-top: 0; }
.chart-scale { height: 150px; margin-top: 4px; display: flex; flex-direction: column; justify-content: space-between; color: #818b9b; font-size: 9px; line-height: 1; }
.pending-bar, .chart-bar.pending { border-radius: 4px 4px 0 0; }
.chart-bar:last-child { border-radius: 4px 4px 0 0; }
.pending-bar + .chart-bar { border-radius: 0; }
.legend-dot.light { background: #f8d5bd; }
.export-callout { display: flex; align-items: center; gap: 15px; margin-top: 24px; padding: 22px 23px; background: #f0f2f5; border: 1px dashed #dce1e8; border-radius: 10px; }
.export-callout-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 43px; color: #8996a8; background: #fff; border: 1px solid #e2e7ee; border-radius: 7px; flex-shrink: 0; }
.export-callout-icon .icon { width: 20px; height: 20px; }
.export-callout h3 { margin: 0 0 5px; font-size: 12px; font-weight: 600; color: #667181; }
.export-callout p { margin: 0; color: #919cab; font-size: 11px; }
.export-callout .btn { margin-left: auto; }
.export-explanation { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #959eac; margin: 20px 0 0; }
.export-explanation .icon { width: 16px; height: 16px; }
.summary-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin: 24px 0 20px; }
.summary-stats > div { display: flex; flex-direction: column; gap: 9px; padding: 18px 20px; background: white; border: 1px solid var(--border); border-radius: 10px; }
.summary-stats span { color: #8d97a5; font-size: 11px; }
.summary-stats strong { color: #394352; font-size: 24px; font-weight: 650; letter-spacing: -.4px; }
.validation-notice { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; padding: 13px 16px; border: 1px solid #e4eaf2; border-radius: 8px; background: #f0f4fa; color: #8593a7; font-size: 12px; line-height: 1.8; }
.validation-notice > .icon { margin-top: 3px; width: 17px; height: 17px; color: #93a3ba; }
.validation-notice p { margin: 0; }
.validation-notice strong { font-weight: 600; color: #6e8098; }
.correction-note { background: #fff6ec; color: #aa8357; padding: 12px 15px; border: 1px solid #f4e5ce; border-radius: 7px; font-size: 12px; line-height: 1.7; }
.correction-note p { margin: 5px 0 0; }
.summary-sites { margin-top: 23px; }
.summary-sites .progress-list { grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.data-table tfoot td { background: #f8f9fc; color: #4b586a; font-weight: 600; padding-top: 15px; padding-bottom: 15px; border-top: 1px solid #e6ebf2; }
.filter-field > span { display: block; font-size: 11px; color: #8993a1; margin-bottom: 6px; }
.filter-bar .period-picker { margin-bottom: 1px; }
.filter-bar { margin-bottom: 20px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.directory-card h2 { font-size: 16px; color: #45505f; margin: 15px 0 5px; font-weight: 650; letter-spacing: -.25px; }
.directory-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.site-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.site-card-actions .btn-ghost { padding-left: 0; }
.project-deletion-control { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 260px; }
.project-delete-note { color: #697589; font-size: 11px; line-height: 1.5; }
.row-actions .icon-button.danger { color: var(--red); }
.row-actions .icon-button.danger:hover { color: var(--red); background: #fff1f1; }
.badge.site-closed { background: #f0f2f5; color: #737e8d; }
.site-closure-note { margin-top: 10px !important; color: #7d8795 !important; line-height: 1.7; }
.closed-site-card { background: #fcfcfd; }
.directory-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #edf0f4; border-radius: 9px; background: #fafbfd; }
.directory-icon .icon { width: 21px; height: 21px; }
.directory-metrics { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); margin-top: 20px; padding: 17px 0 12px; gap: 15px; }
.directory-metrics span { display: block; color: #9aa3b0; font-size: 10px; }
.directory-metrics strong { display: block; font-size: 20px; font-weight: 650; margin-top: 5px; color: #4b5767; }
.directory-client { margin-top: 12px; color: #a5adba; font-size: 10px; }
.project-filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .45fr) minmax(170px, .5fr); align-items: end; gap: 16px; padding: 18px 22px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.project-filter-bar > * { min-width: 0; }
.project-search-field > span, .project-state-field > span, .project-sort-field > span { display: block; margin-bottom: 7px; color: #8993a1; font-size: 11px; }
.project-search-field input, .project-state-field select, .project-sort-field select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #dfe4e9; border-radius: 7px; background: #fff; color: #626f80; font-size: 12px; }
.project-search-field input::placeholder { color: #a1a8b3; }
.project-search-field input:focus, .project-state-field select:focus, .project-sort-field select:focus { border-color: #ee763680; }
.project-results-count { margin: 0 0 20px; color: #9aa5b3; font-size: 11px; }
.project-card-address { display: flex; align-items: flex-start; gap: 8px; margin-top: 15px; color: #909eaf; font-size: 11px; line-height: 1.8; }
.project-card-address > .icon { width: 15px; height: 15px; margin-top: 3px; color: #b4becc; }
.project-card-address > div { min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.project-assignment-summary { margin: 11px 0 0; color: #98a5b5; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.project-assignment-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.project-assignment-fieldset legend { padding: 0; margin-bottom: 9px; color: #697586; font-size: 12px; font-weight: 550; }
.project-assignment-all { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 12px; margin-bottom: 9px; border: 1px solid #e3e7ec; border-radius: 7px; color: #69778a; font-size: 12px; cursor: pointer; }
.project-assignment-all:has(input:checked) { border-color: #ee763680; background: #fffbf8; }
.project-assignment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-assignment-option { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #e3e7ec; border-radius: 7px; color: #738095; font-size: 11px; cursor: pointer; }
.project-assignment-option:has(input:checked) { border-color: #efcfb8; background: #fff9f4; }
.project-assignment-option > span { min-width: 0; overflow-wrap: anywhere; }
.project-assignment-all input, .project-assignment-option input { width: 16px; height: 16px; min-height: 0; padding: 0; margin: 0; flex-shrink: 0; accent-color: var(--orange); }
.project-assignment-help { display: block; margin-top: 9px; color: #9aa4b3; font-size: 10px; line-height: 1.8; }
.directory-card > .btn { padding-left: 0; color: #ce8d63; }
.directory-card > .btn .icon { order: 2; }
.large-avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; font-size: 14px; font-weight: 650; color: var(--avatar-color, #788aaf); background: color-mix(in srgb, var(--avatar-color, #788aaf) 11%, white); }
.detail-person { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.detail-person .person-avatar { width: 36px; height: 36px; font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin: 0; }
.detail-grid dt { color: #949eab; font-size: 11px; margin: 0 0 5px; }
.detail-grid dd { color: #526071; font-size: 13px; margin: 0; }
.detail-note { padding: 13px 15px; margin-top: 22px; background: #f8fafc; border: 1px solid #edf0f4; border-radius: 7px; color: #7f8b9c; font-size: 12px; }
.detail-note strong { color: #69778a; font-size: 11px; font-weight: 550; }
.detail-note p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal-open { overflow: hidden; }
.modal-wide { max-width: 670px; }
.modal-intro { margin: 0 0 21px; color: #939caa; font-size: 12px; }
.modal-body > p:not([class]) { color: #7f8a99; font-size: 13px; line-height: 1.8; margin: 0 0 17px; }
.field > span { display: block; margin-bottom: 7px; font-size: 12px; color: #697586; font-weight: 550; }
.field > span > small { color: #a1aab6; font-weight: 400; }
.field input, .field select, .field textarea { min-height: 42px; font-size: 13px; }
.full { grid-column: 1 / -1; }
.hours-preview { align-self: end; min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.hours-preview strong { font-size: 17px; }
.allowance-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.allowance-fieldset legend { padding: 0; margin-bottom: 9px; color: #697586; font-size: 12px; font-weight: 550; }
.allowance-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.allowance-options .allowance-option { margin: 0; padding: 12px 11px; min-height: 69px; }
.allowance-option strong { display: block; color: #6f7c8e; font-size: 11px; }
.allowance-option small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; }
.allowance-option input { min-height: 0; }
.field-help { display: block; margin: 9px 0 0; font-size: 10px; color: #9aa4b3; font-weight: 400; line-height: 1.7; }
.empty-state h3 { font-size: 14px; color: #637184; margin: 0 0 7px; font-weight: 600; }
.empty-state p { margin: 0; }
.empty-state > .icon { display: block; }
.danger { color: #c76a6a; }
.muted { color: #bbc1ca; }
.nowrap { white-space: nowrap; }
.app-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border); padding: 19px 36px; color: #a8b0bc; font-size: 10px; }
.mobile-menu-button { border: 0; border-radius: 5px; background: transparent; }
.help-steps { margin: 0; padding-left: 24px; display: grid; gap: 19px; color: #8995a6; font-size: 13px; line-height: 1.8; }
.help-steps li { padding-left: 5px; }
.help-steps li::marker { color: var(--orange); font-weight: 650; }
.help-steps strong { display: block; margin-bottom: 3px; color: #5b6a7e; font-size: 13px; font-weight: 600; }
.help-steps p { margin: 0; }
.help-steps .icon { display: inline-block; vertical-align: -4px; width: 16px; height: 16px; }
.stat-icon { flex-shrink: 0; }

/* The employee calendar keeps each date readable and clickable on small screens. */
.employee-calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 23px; align-items: start; }
.employee-calendar-layout > * { min-width: 0; }
.employee-calendar-layout > .calendar-card { grid-column: 1; grid-row: 1; }
.employee-calendar-layout > .calendar-sidebar { grid-column: 2; grid-row: 1; }
.calendar-card { border: 1px solid var(--border); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 3px #1c263103; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 22px; }
.calendar-period { margin: 0; color: #45505f; font-size: 18px; font-weight: 650; letter-spacing: -.35px; text-transform: capitalize; }
.calendar-header h2 { margin: 0; }
.calendar-header .card-subtitle { margin-top: 5px; }
.calendar-toolbar { display: flex; gap: 6px; align-items: center; }
.calendar-toolbar .icon-button { width: 32px; height: 32px; border-color: #e7ebf0; color: #8c97a6; }
.calendar-toolbar .icon-button:hover { color: #d17c4c; border-color: #f2d4c0; background: #fff6ef; }
.calendar-today { margin: 0 5px 0 0; min-height: 32px; padding: 6px 10px; font-size: 10px; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; background: #fafbfd; }
.calendar-weekdays span { padding: 13px 8px; color: #9ca5b1; text-align: center; font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-day { display: flex; flex-direction: column; min-width: 0; min-height: 126px; padding: 10px; background: #fff; border: 0; border-right: 1px solid #eef1f5; border-bottom: 1px solid #eef1f5; text-align: left; overflow: hidden; color: #657286; position: relative; transition: background .15s, box-shadow .15s; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day:nth-last-child(-n + 7) { border-bottom: 0; }
.calendar-day:hover { background: #fffaf6; }
.calendar-day.weekend { background: #fcfcfd; }
.calendar-day.weekend:hover { background: #fffaf6; }
.calendar-day.outside-month { color: #c1c8d2; background: #fbfcfd; }
.calendar-day.outside-month .calendar-day-hours, .calendar-day.outside-month .calendar-entry-pill, .calendar-day.outside-month .calendar-day-status { opacity: .5; }
.calendar-day.today { background: #fffdfb; }
.calendar-day.selected { background: #fff7f0; box-shadow: inset 0 0 0 2px #eea37a; z-index: 1; }
.calendar-day:focus-visible { outline-offset: -4px; z-index: 2; }
.calendar-day-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 24px; }
.calendar-day-number { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; font-size: 12px; font-weight: 600; }
.calendar-day.today .calendar-day-number { background: var(--orange); color: white; border-radius: 50%; }
.calendar-today-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.calendar-day-hours { color: #526074; font-size: 15px; font-weight: 650; margin-top: 7px; line-height: 1.4; letter-spacing: -.3px; }
.calendar-day-hours strong { font-size: 15px; font-weight: 650; letter-spacing: -.3px; }
.calendar-entry-pill { display: block; color: var(--site-color, #b77c57); background: color-mix(in srgb, var(--site-color, #b77c57) 10%, white); border-radius: 4px; padding: 3px 5px; margin-top: 5px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; line-height: 1.5; font-weight: 500; }
.calendar-day-status { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 7px; color: #909ab1; font-size: 9px; line-height: 1.3; }
.calendar-day-status .status-dot { width: 4px; height: 4px; }
.calendar-day-status > i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.calendar-day-status.approved { color: #689b83; }
.calendar-day-status.pending { color: #c69b61; }
.calendar-day-status.rejected { color: #bb7878; }
.calendar-day-status.draft { color: #9398b7; }
.calendar-more { display: block; color: #a1abba; font-size: 8px; margin-top: 3px; }
.calendar-empty { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; color: #d9dfe7; min-height: 40px; font-size: 9px; }
.calendar-empty .icon { width: 14px; height: 14px; }
.calendar-day:hover .calendar-empty, .calendar-day.selected .calendar-empty { color: #e4aa82; }
.calendar-legend { display: flex; align-items: center; justify-content: flex-start; gap: 18px; padding: 15px 22px; background: #fbfcfd; border-top: 1px solid #eef1f5; flex-wrap: wrap; font-size: 10px; color: #9ba5b4; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend .calendar-day-status { margin-top: 0; padding-top: 0; font-size: 10px; }
.calendar-legend .legend-dot { width: 5px; height: 5px; border-radius: 50%; }
.calendar-legend .approved { color: #689b83; }
.calendar-legend .pending { color: #c69b61; }
.calendar-legend .rejected { color: #bb7878; }
.calendar-legend .draft { color: #9398b7; }
.calendar-hint { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; margin: 14px 16px 16px; background: #fff5ed; border: 1px solid #f3e3d6; border-radius: 8px; color: #b68c6c; font-size: 11px; line-height: 1.8; }
.calendar-hint .icon { width: 15px; height: 15px; margin-top: 3px; color: #d69f75; }
.calendar-hint p { margin: 0; }
.calendar-sidebar { display: grid; gap: 18px; align-self: start; min-width: 0; }
.day-panel { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; min-width: 0; }
.day-panel-header { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid #edf0f5; }
.day-panel-header .eyebrow { margin-bottom: 4px; }
.day-panel-header h2, .day-panel-header h3 { margin: 0; font-size: 14px; font-weight: 650; color: #546174; text-transform: capitalize; }
.day-panel-header p { margin: 4px 0 0; font-size: 10px; color: #a0aaba; }
.day-panel-header > .icon { color: #b7c0cc; width: 17px; height: 17px; }
.day-panel-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; color: #95a0b0; font-size: 11px; }
.day-panel-summary strong { color: #556477; font-size: 21px; font-weight: 650; letter-spacing: -.5px; }
.day-panel > .btn { width: 100%; margin-top: 12px; font-size: 11px; }
.day-panel > .card-body { padding: 0; }
.day-panel > .card-body > .btn { width: 100%; font-size: 11px; }
.day-panel .empty-state { padding: 25px 4px 17px; font-size: 11px; }
.day-panel .empty-state h3 { font-size: 12px; }
.day-entry-card { padding: 13px 14px; border: 1px solid #e8edf3; border-radius: 8px; background: #fcfdfe; margin: 12px 0; min-width: 0; }
.day-entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; color: #69778b; font-size: 12px; }
.day-entry-top strong { color: #5c6b80; font-size: 12px; font-weight: 600; }
.day-entry-top .badge { font-size: 9px; padding: 3px 6px; }
.day-entry-top .site-name { white-space: normal; min-width: 0; }
.day-entry-times { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #9ba5b4; font-size: 10px; margin: 8px 0 0; line-height: 1.8; }
.day-entry-times .icon { width: 13px; height: 13px; }
.day-entry-times strong { color: #748298; font-weight: 550; }
.day-entry-allowance { display: flex; align-items: center; gap: 6px; color: #b08e70; font-size: 10px; margin-top: 7px; }
.day-entry-allowance .icon { width: 13px; height: 13px; color: #cca888; }
.day-entry-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; padding-top: 9px; border-top: 1px solid #edf1f5; }
.day-entry-actions .btn { font-size: 10px; padding: 5px 8px; min-height: 27px; }
.day-entry-actions .btn-ghost { margin-left: auto; color: #ad906f; }
.calendar-month-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.calendar-sidebar .calendar-month-summary { grid-template-columns: 1fr; margin-bottom: 0; gap: 10px; }
.calendar-summary-item { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #e7ebf1; border-radius: 9px; padding: 16px 18px; background: #fff; color: #95a0b0; }
.calendar-summary-item span { font-size: 11px; }
.calendar-summary-item strong { color: #5c6a7d; font-size: 19px; letter-spacing: -.4px; font-weight: 650; }
.forfait-lock-note, .site-form-note { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; border: 1px solid #f0e0ce; border-radius: 7px; background: #fff8ef; color: #ad8a66; font-size: 11px; line-height: 1.8; }
.forfait-lock-note .icon, .site-form-note .icon { width: 15px; height: 15px; margin-top: 3px; color: #cea377; }
.forfait-lock-note p, .site-form-note p { margin: 0; }
.site-form-note { margin: 0 0 19px; }
.site-created-by { color: #b0b8c4; font-size: 9px; margin: 13px 0 0; }
.chevron-left { transform: rotate(180deg); }

.site-combobox { position: relative; min-width: 0; width: 100%; }
.site-combobox-control { position: relative; display: flex; align-items: stretch; min-width: 0; }
.site-combobox-control input { flex: 1; min-width: 0; width: 100%; min-height: 44px; padding-right: 43px; }
.site-picker-toggle { position: absolute; top: 1px; right: 1px; bottom: 1px; display: flex; align-items: center; justify-content: center; width: 39px; padding: 0; background: #fff; border: 0; border-radius: 0 6px 6px 0; color: #a0aaba; }
.site-picker-toggle .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.site-picker-toggle:hover { background: #fff8f3; color: #d18b60; }
.site-picker-toggle:focus-visible { outline-offset: -4px; }
.site-options { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 15; width: 100%; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 5px; border: 1px solid #e1e6ed; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px #25374c1c; }
.site-option { display: block; width: 100%; min-width: 0; min-height: 51px; padding: 9px 10px; border: 0; border-radius: 5px; background: #fff; text-align: left; color: #69778a; }
.site-option:hover, .site-option.is-active, .site-option[aria-selected="true"] { background: #fff3e9; }
.site-option:focus-visible { outline-offset: -2px; }
.site-option-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.site-option-name .site-dot { flex-shrink: 0; margin-right: 0; }
.site-option-name strong { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #657386; font-size: 12px; font-weight: 550; }
.site-option-location { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: 4px 0 0 12px; color: #a0a9b7; font-size: 10px; line-height: 1.5; }
.site-search-empty { padding: 15px 11px; color: #9aa5b5; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.site-search-help { display: block; margin: 6px 0 0; color: #a0aaba; font-size: 10px; font-weight: 400; line-height: 1.7; }

.allowance-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.allowance-catalog-grid > * { min-width: 0; }
.allowance-catalog-card { display: flex; flex-direction: column; padding: 23px; min-width: 0; }
.allowance-catalog-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.allowance-catalog-heading > .icon { width: 34px; height: 34px; padding: 8px; color: #d59061; background: #fff2e9; border-radius: 9px; }
.allowance-catalog-heading h2, .allowance-catalog-heading h3 { margin: 0; color: #586578; font-size: 14px; font-weight: 650; line-height: 1.6; overflow-wrap: anywhere; }
.allowance-catalog-heading strong { color: #586578; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.allowance-catalog-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin: 21px 0 12px; color: #546377; font-size: 29px; font-weight: 650; letter-spacing: -.65px; line-height: 1.3; }
.allowance-catalog-amount strong { font-size: inherit; font-weight: inherit; }
.allowance-catalog-amount small { color: #a4aeba; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.allowance-catalog-meta { color: #a0aab8; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.allowance-catalog-meta p { margin: 0; }
.allowance-catalog-card .allowance-catalog-comment { margin: 0 0 16px; padding: 11px 12px; border: 1px solid #edf0f5; border-radius: 7px; background: #fafbfd; color: #8796a9; font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.allowance-catalog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0f5; }
.allowance-catalog-meta + .allowance-catalog-actions { margin-top: 17px; }
.allowance-catalog-actions .btn { font-size: 11px; }
.allowance-catalog-note { display: flex; align-items: flex-start; gap: 10px; padding: 14px 17px; margin: 0 0 23px; border: 1px solid #e2eaf4; border-radius: 9px; background: #f0f5fb; color: #8898ae; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.allowance-catalog-note > .icon { margin-top: 3px; width: 17px; height: 17px; color: #94a6bf; }
.allowance-catalog-note p { margin: 0; }
.allowance-catalog-note strong { color: #7489a4; font-weight: 600; }
.allowance-catalog-rule { display: flex; align-items: flex-start; gap: 8px; color: #a0abba; font-size: 11px; line-height: 1.8; margin: 19px 0 0; }
.allowance-catalog-rule .icon { color: #b4c0ce; width: 15px; height: 15px; margin-top: 3px; }
.allowance-catalog-rule p { margin: 0; }
.site-allowance-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 12px; border-top: 1px solid #edf0f5; margin: 4px 0 13px; padding: 14px 0 0; }
.site-allowance-total > span { color: #929faf; font-size: 11px; overflow-wrap: anywhere; }
.site-allowance-total > strong { color: #6a7c92; font-size: 18px; font-weight: 650; letter-spacing: -.35px; }
.site-allowance-total > small { grid-column: 1 / -1; color: #a7b1be; font-size: 10px; }
.site-allowance-total:has(.project-allowance-row) { grid-template-columns: minmax(0, 1fr); gap: 11px; }
.project-allowance-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; }
.project-allowance-row > span { min-width: 0; color: #929faf; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.project-allowance-row > strong { color: #6a7c92; font-size: 18px; font-weight: 650; letter-spacing: -.35px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.allowance-breakdown { display: grid; gap: 6px; min-width: 150px; max-width: 250px; white-space: normal; }
.allowance-breakdown-item { display: flex; justify-content: space-between; align-items: baseline; gap: 13px; color: #8997aa; font-size: 10px; line-height: 1.7; white-space: normal; }
.allowance-breakdown-item > span { min-width: 0; overflow-wrap: anywhere; }
.allowance-breakdown-item > strong { color: #76869a; font-size: 11px; font-weight: 550; white-space: nowrap; flex-shrink: 0; }
.allowance-options > * { min-width: 0; }
.allowance-option > input { flex-shrink: 0; }
.allowance-option > span { min-width: 0; }
.allowance-option strong { min-width: 0; overflow-wrap: anywhere; }
.allowance-option .allowance-option-comment { display: block; margin-top: 6px; color: #97a4b5; font-size: 10px; font-weight: 400; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.allowance-name { display: block; max-width: 230px; overflow-wrap: anywhere; white-space: normal; }
.day-entry-allowance { overflow-wrap: anywhere; }

.site-title-button { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; }
.site-title-button:hover { color: #c78052; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-back-link { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 19px; padding: 0; border: 0; background: transparent; color: #97a3b3; font-size: 11px; font-weight: 500; }
.site-back-link:hover { color: #c68a62; }
.site-back-link .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.project-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 23px; align-items: start; }
.project-detail-layout > * { min-width: 0; }
.project-statistics { min-width: 0; }
.project-month-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin: 0 0 18px; }
.project-month-heading h2 { margin: 0; color: #5b697d; font-size: 15px; font-weight: 650; }
.project-month-heading p { margin: 4px 0 0; color: #a0aaba; font-size: 10px; }
.project-statistics .summary-stats { margin: 0 0 20px; gap: 13px; }
.project-statistics .summary-stats > div { padding: 16px; }
.project-statistics .summary-stats span { font-size: 10px; }
.project-statistics .summary-stats strong { font-size: 23px; }
.project-statistics > .card { margin-top: 22px; }
.project-period-notice { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 21px; padding: 12px 15px; border: 1px solid #e3eaf3; border-radius: 8px; background: #f1f5fa; color: #8d9bb0; font-size: 11px; line-height: 1.8; }
.project-period-notice p { margin: 0; }
.project-period-notice > .icon { margin-top: 3px; width: 15px; height: 15px; color: #9aadc5; }
.project-information { align-self: start; padding: 22px; }
.project-info-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-info-heading h2 { margin: 0; color: #5f6e81; font-size: 14px; font-weight: 650; }
.project-info-heading .icon { width: 17px; height: 17px; color: #a7b4c5; }
.project-info-list { display: grid; gap: 19px; margin: 22px 0 0; }
.project-info-list > div { min-width: 0; }
.project-info-list dt { color: #a1abba; font-size: 10px; font-weight: 500; margin: 0 0 5px; }
.project-info-list dd { margin: 0; color: #748297; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; white-space: pre-line; }
.project-info-list dd strong { display: block; color: #6b7a8f; font-size: 12px; font-weight: 550; }
.project-address-city { display: block; margin-top: 2px; color: #9ba8bb; font-size: 11px; }
.project-contact-empty { display: block; color: #aeb9c8; font-size: 10px; line-height: 1.9; }
.project-contact-link { display: flex; align-items: center; gap: 7px; width: fit-content; max-width: 100%; min-height: 44px; padding: 8px 0; color: #c38e69; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.project-contact-link:hover { color: #b87a4e; text-decoration: underline; text-underline-offset: 3px; }
.project-contact-link .icon { width: 12px; height: 12px; }
.project-contact-link > span:not(.icon) { min-width: 0; overflow-wrap: anywhere; }
.project-lifetime-summary { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid #edf0f5; }
.project-lifetime-summary h3 { margin: 0 0 14px; color: #8796a9; font-size: 11px; font-weight: 550; }
.project-lifetime-summary > .site-allowance-total { width: 100%; margin-bottom: 0; }
.project-lifetime-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; color: #98a5b6; font-size: 11px; }
.project-lifetime-item > span { min-width: 0; overflow-wrap: anywhere; }
.project-lifetime-item > strong { color: #64758c; font-size: 18px; font-weight: 650; letter-spacing: -.4px; white-space: nowrap; }

/* Account forms use the same typography and orange accents as the working area. */
.auth-page { display: grid; place-items: center; min-height: 100dvh; padding: 32px 20px; background: radial-gradient(ellipse at 15% 0, #fff0e5, transparent 55%), var(--surface); }
.auth-card { width: 100%; max-width: 440px; padding: 34px; border: 1px solid var(--border); border-radius: 17px; background: #fff; box-shadow: 0 14px 45px #2634430a; }
.auth-card-wide { max-width: 660px; }
.auth-brand { margin-bottom: 28px; }
.auth-brand-logo { display: block; width: 280px; max-width: 100%; height: auto; }
.auth-eyebrow { margin: 0 0 9px; color: #c77748; font-size: 10px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.auth-card h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.6px; }
.auth-description { margin: 12px 0 27px; color: #8994a3; font-size: 13px; line-height: 1.8; }
.auth-fields { display: grid; gap: 19px; }
.auth-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 17px; }
.auth-form .field { min-width: 0; }
.auth-form .field input { min-height: 46px; font-size: 16px; }
.auth-form .field > small { display: block; margin-top: 7px; color: #96a0af; font-size: 11px; line-height: 1.7; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 23px; font-size: 13px; }
.auth-error { margin: 17px 0 0; padding: 12px 14px; border: 1px solid #efd3d3; border-radius: 7px; background: #fff3f3; color: #b76161; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.auth-help { margin: 20px 0 0; color: #91a0b0; font-size: 12px; line-height: 1.8; }
.auth-help a { color: #c98254; text-decoration: underline; text-underline-offset: 3px; }
.auth-security-note { margin: 25px 0 0; padding-top: 20px; border-top: 1px solid #edf0f5; color: #a0abba; font-size: 11px; line-height: 1.8; }
.auth-loading { margin: 0; padding: 12px 0; color: #8694a7; font-size: 13px; line-height: 1.8; }
.auth-links { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.auth-links .btn { min-height: 44px; }
.auth-notice { margin: 0 0 20px; padding: 13px 15px; border: 1px solid #d8eadd; border-radius: 8px; background: #f1f8f3; color: #6e927d; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.account-form { min-width: 0; }
.account-form .field { min-width: 0; }
.account-form .field input, .account-form .field select { min-height: 44px; }
.account-form .field > small { display: block; margin-top: 7px; color: #96a0af; font-size: 11px; line-height: 1.7; }
.account-form > .auth-error { grid-column: 1 / -1; margin: 0; }
.account-role-value { display: flex; align-items: center; min-height: 44px; padding: 10px 11px; border: 1px solid #edf0f5; border-radius: 7px; background: #f9fafc; color: #8898ad; font-size: 12px; }
.account-status-field { color: #77879c; font-size: 12px; }
.account-status-field label { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; }
.account-status-field > small { display: block; margin-top: 5px; color: #99a5b5; font-size: 10px; line-height: 1.8; }
.account-status-field input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex-shrink: 0; margin: 0; accent-color: var(--orange); }
.modal:has(.account-form) .modal-footer .btn, .modal:has(.invitation-panel) .modal-footer .btn { min-height: 44px; }
.modal-footer .auth-submit { width: auto; margin: 0; }
.form-intro { margin: 0 0 21px; color: #939caa; font-size: 12px; line-height: 1.8; }
.invitation-panel { padding: 17px; border: 1px solid #e4eaf2; border-radius: 9px; background: #f8fafc; }
.invitation-panel > p { margin: 0 0 15px; color: #8191a5; font-size: 12px; line-height: 1.8; }
.invitation-panel > label { display: block; margin-bottom: 8px; color: #7f8da1; font-size: 11px; font-weight: 550; }
.invitation-link-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.invitation-link-input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #dde4ed; border-radius: 7px; background: #fff; color: #7b8aa1; font-size: 12px; }
.invitation-link-controls .btn { min-height: 44px; }
.invitation-panel > .invitation-warning { margin: 13px 0 0; color: #a39075; font-size: 11px; }
.invitation-panel > .invitation-copy-help { margin: 13px 0 0; font-size: 11px; }
.account-topbar-name { min-width: 0; max-width: 250px; color: #68788e; font-size: 12px; text-align: right; }
.account-topbar-name strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.account-topbar-name span { display: block; margin-top: 2px; color: #a0aaba; font-size: 10px; }
.account-header-menu { position: relative; }
.account-header-menu > summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 9px; border: 1px solid #e4e9ef; border-radius: 8px; background: #fff; color: #8998ac; list-style: none; cursor: pointer; }
.account-header-menu > summary::-webkit-details-marker { display: none; }
.account-header-menu > summary > .icon { width: 12px; height: 12px; transform: rotate(90deg); }
.account-header-menu[open] > summary > .icon { transform: rotate(270deg); }
.account-header-menu[open] > summary { color: #c98254; border-color: #efcfb9; background: #fff8f3; }
.account-menu-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 45; display: grid; gap: 4px; width: 240px; max-width: calc(100vw - 36px); padding: 7px; border: 1px solid #e2e7ee; border-radius: 9px; background: #fff; box-shadow: 0 12px 32px #23384e1a; }
.account-menu-popover > button { justify-content: flex-start; min-height: 44px; text-align: left; white-space: normal; }
.view-account-choice { display: grid; gap: 6px; padding: 9px 7px 12px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.view-account-choice select { width: 100%; min-width: 0; min-height: 44px; padding: 9px 28px 9px 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; text-overflow: ellipsis; }
.view-account-banner { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 36px; border-bottom: 1px solid #d9cdee; background: #f3eefb; color: #4b3479; }
.view-account-banner > div { min-width: 0; overflow-wrap: anywhere; }
.view-account-banner strong { display: block; font-size: 13px; line-height: 1.5; }
.view-account-banner span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.5; }
.view-account-banner .btn { flex-shrink: 0; min-height: 44px; border-color: #d9cdee; white-space: normal; text-align: left; }
@media (max-width: 600px) {
  .view-account-banner { flex-wrap: wrap; gap: 10px; padding: 12px 18px; }
  .view-account-banner > div { flex-basis: 100%; }
  .view-account-banner .btn { width: 100%; justify-content: center; }
}
.account-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f5; }
.account-card-actions > .btn { min-height: 44px; white-space: normal; }
.directory-card .account-email { display: block; margin-top: 9px; color: #8d9caf; font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.employee-card h2 { overflow-wrap: anywhere; }
.employee-card > .badge { margin-top: 10px; }
.employee-card > .team-note { margin: 16px 0 0; color: #a0abba; font-size: 11px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) { .content { padding-top: 38px; } }
@media (max-width: 1200px) {
  .sidebar { width: 211px; }
  .main { margin-left: 211px; }
  .topbar { padding: 0 25px; }
  .content { padding: 28px 25px 35px; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 17px 15px; }
  .stat-value { font-size: 26px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 18px; }
  .dashboard-left, .dashboard-right { gap: 18px; }
  .card-header { padding-left: 18px; padding-right: 18px; }
  .card-body { padding: 20px 18px; }
  .data-table th, .data-table td { padding-left: 10px; padding-right: 10px; }
  .employee-grid, .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-statistics .summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-right { grid-template-columns: 1fr 1fr; align-items: start; }
  .dashboard-right > .welcome-card { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid-employee .stat-card:last-child { grid-column: 1 / -1; }
  .page-heading { align-items: flex-start; }
  .heading-actions { justify-content: flex-end; }
  .heading-actions .btn { padding: 8px 10px; }
  .summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .export-callout { flex-wrap: wrap; gap: 12px; }
  .export-callout .btn { margin-left: 53px; }
  .employee-calendar-layout { grid-template-columns: 1fr; gap: 20px; }
  .employee-calendar-layout > .calendar-card { grid-column: 1; grid-row: 1; }
  .employee-calendar-layout > .calendar-sidebar { grid-column: 1; grid-row: 2; }
  .calendar-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
  .calendar-day { min-height: 114px; }
  .calendar-month-summary { align-content: start; }
  .allowance-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .project-detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .project-information { order: -1; }
  .project-info-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 25px; }
  .project-lifetime-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 15px 30px; }
  .project-lifetime-summary h3 { margin: 0; }
  .project-lifetime-item { margin-top: 0; gap: 12px; }
  .project-filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-search-field { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .auth-page { padding: 24px 17px; }
  .auth-card { padding: 27px 25px; border-radius: 14px; }
  .auth-card h1 { font-size: 26px; }
  .account-topbar-name { max-width: 155px; font-size: 11px; }
  .account-header-menu > summary { min-width: 44px; height: 44px; }
  .sidebar { width: 232px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim.is-open { display: block; position: fixed; inset: 0; z-index: 25; border: 0; background: #17213077; }
  .main { margin-left: 0; }
  .topbar { height: 63px; padding: 0 18px; gap: 12px; }
  .mobile-menu-button { display: inline-flex; color: #626b79; }
  .breadcrumb { gap: 7px; margin-right: auto; font-size: 10px; min-width: 0; }
  .breadcrumb strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .breadcrumb > .icon, .breadcrumb > span { display: none; }
  .topbar-actions { gap: 10px; }
  .topbar-actions > .icon { display: none; }
  .topbar-actions .avatar { width: 30px; height: 30px; font-size: 10px; }
  .topbar-avatar { width: 29px; height: 29px; }
  .content { padding: 25px 18px 30px; }
  .page-heading { flex-direction: column; gap: 17px; margin-bottom: 20px; }
  h1 { font-size: 27px; }
  .eyebrow { font-size: 8px; margin-bottom: 7px; }
  .subtitle { font-size: 11px; }
  .heading-actions { justify-content: flex-start; width: 100%; gap: 8px; }
  .btn { font-size: 11px; }
  .stats-grid { gap: 11px; margin-bottom: 19px; }
  .stat-card { padding: 15px 14px 14px; border-radius: 10px; }
  .stat-label { font-size: 11px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat-icon svg { width: 14px; height: 14px; }
  .stat-value { font-size: 25px; }
  .stat-value small { font-size: 12px; }
  .stat-meta { font-size: 10px; margin-top: 8px; }
  .dashboard-right { grid-template-columns: 1fr 1fr; }
  .card-header { padding: 19px 17px 0; }
  .card-title { font-size: 13px; }
  .card-body { padding: 20px 17px; }
  .chart { padding: 23px 17px 8px; grid-template-columns: 32px minmax(0, 1fr); gap: 6px; }
  .chart-hint { padding: 7px 17px 13px; }
  .chart-day-detail { padding: 13px 17px; min-height: 76px; }
  .dashboard-grid > .card:first-child > .card-header { flex-wrap: wrap; }
  .table-card > .card-header { flex-wrap: wrap; }
  .chart-legend { gap: 12px; padding-top: 1px; font-size: 10px; }
  .chart-columns { grid-template-columns: repeat(var(--chart-days), minmax(44px, 1fr)); gap: 4px; min-width: calc(var(--chart-days) * 48px - 4px); }
  .data-table { min-width: 535px; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 17px; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 17px; }
  .table-footer { padding: 13px 17px; }
  .filter-bar { padding: 17px; gap: 11px; }
  .filter-field { min-width: calc(50% - 6px); max-width: none; }
  .filter-bar > .btn { margin-left: 0; }
  .employee-grid, .site-grid { gap: 14px; }
  .directory-card { padding: 18px; }
  .directory-card .person-avatar { width: 37px; height: 37px; }
  .directory-card h3 { font-size: 12px; }
  .modal-backdrop { padding: 13px; }
  .modal { max-height: calc(100dvh - 26px); border-radius: 12px; }
  .modal-header { padding: 20px; }
  .modal-header h2 { font-size: 18px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 15px 20px; }
  .modal-footer { flex-wrap: wrap; }
  .modal-footer .btn { flex: 1 1 135px; white-space: normal; }
  .modal-footer .btn-primary { flex-basis: 100%; }
  .allowance-options { grid-template-columns: 1fr; gap: 8px; }
  .allowance-options .allowance-option { min-height: 52px; padding: 10px 12px; }
  .allowance-option span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .allowance-option small { margin-top: 0; }
  .sidebar-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: #17213077; }
  .app-footer { padding: 17px 18px; flex-direction: column; gap: 4px; font-size: 9px; }
  .summary-stats > div { padding: 15px; }
  .summary-stats strong { font-size: 22px; }
  .summary-stats span { font-size: 10px; }
  .summary-sites .progress-list { grid-template-columns: 1fr; }
  .export-callout { padding: 18px; }
  .export-callout > div { flex: 1; }
  .export-callout h3 { font-size: 12px; }
  .export-callout p { font-size: 10px; }
  .export-callout .btn { margin-left: 53px; }
  .export-explanation { align-items: flex-start; font-size: 10px; }
  .validation-notice { font-size: 11px; padding: 12px 14px; }
  .filter-bar .period-picker { width: 100%; }
  .filter-bar .period-picker select { width: 100%; min-height: 39px; font-size: 13px; }
  .help-steps { font-size: 12px; }
  .employee-calendar-layout { gap: 18px; }
  .calendar-header { padding: 16px 13px; gap: 9px; }
  .calendar-period { font-size: 15px; }
  .calendar-toolbar { gap: 4px; }
  .calendar-toolbar .icon-button { width: 29px; height: 29px; }
  .calendar-today { padding: 5px 8px; min-height: 29px; margin-right: 2px; font-size: 9px; }
  .calendar-weekdays span { padding: 11px 2px; font-size: 8px; letter-spacing: .04em; }
  .calendar-day { padding: 5px; min-height: 88px; }
  .calendar-day-top { height: 22px; }
  .calendar-day-number { font-size: 11px; min-width: 21px; height: 21px; }
  .calendar-day-hours { margin-top: 5px; font-size: 12px; }
  .calendar-day-hours strong { font-size: 12px; letter-spacing: -.3px; }
  .calendar-entry-pill { padding: 2px 3px; font-size: 7px; margin-top: 4px; line-height: 1.5; }
  .calendar-day-status { font-size: 7px; padding-top: 5px; gap: 3px; }
  .calendar-day-status .status-dot { width: 3px; height: 3px; }
  .calendar-more { font-size: 7px; margin-top: 2px; }
  .calendar-empty { min-height: 35px; }
  .calendar-empty .icon { width: 12px; height: 12px; }
  .calendar-empty > span { display: none; }
  .calendar-legend { padding: 12px 13px; gap: 11px; font-size: 9px; }
  .calendar-legend .calendar-day-status { font-size: 9px; }
  .calendar-hint { font-size: 10px; padding: 11px 12px; }
  .calendar-sidebar { grid-template-columns: 1fr; gap: 15px; }
  .calendar-month-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .calendar-summary-item { align-items: flex-start; flex-direction: column; gap: 8px; padding: 13px 11px; }
  .calendar-summary-item span { font-size: 9px; line-height: 1.5; }
  .calendar-summary-item strong { font-size: 17px; }
  .day-panel { padding: 18px; }
  .forfait-lock-note, .site-form-note { font-size: 10px; }
  .site-combobox-control input { font-size: 16px; }
  .site-options { max-height: min(220px, 40dvh); }
  .site-option { min-height: 54px; padding: 10px; }
  .site-option-name strong { font-size: 12px; }
  .allowance-catalog-grid { gap: 15px; }
  .allowance-catalog-card { padding: 19px; }
  .allowance-catalog-amount { font-size: 26px; margin: 18px 0 11px; }
  .allowance-catalog-heading h2, .allowance-catalog-heading h3, .allowance-catalog-heading strong { font-size: 13px; }
  .allowance-catalog-note { font-size: 11px; padding: 13px 14px; }
  .allowance-catalog-rule { font-size: 10px; }
  .allowance-option small { flex-shrink: 0; }
  .allowance-option > span:has(.allowance-option-comment) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
  .allowance-option .allowance-option-comment { grid-column: 1 / -1; margin-top: 2px; }
  .project-filter-bar { padding: 16px 17px; gap: 12px; }
  .project-search-field input, .project-state-field select, .project-sort-field select { font-size: 16px; }
  .project-results-count { margin-bottom: 17px; font-size: 10px; }
  .project-allowance-row > span { font-size: 10px; }
  .project-allowance-row > strong { font-size: 17px; }
  .project-assignment-list { gap: 8px; }
  .project-assignment-option { padding: 10px; }
  .site-back-link { margin-bottom: 17px; font-size: 10px; }
  .project-detail-layout { gap: 20px; }
  .project-information { padding: 19px; }
  .project-info-list { gap: 17px 18px; margin-top: 18px; }
  .project-info-list dd { font-size: 11px; }
  .project-contact-link { font-size: 11px; }
  .site-title-button[data-action="project-info"] { display: inline-flex; align-items: center; min-height: 44px; }
  .site-card-actions > .btn { min-height: 44px; white-space: normal; text-align: left; }
  .project-month-heading h2 { font-size: 14px; }
  .project-statistics .summary-stats { gap: 11px; }
  .project-statistics .summary-stats > div { padding: 15px; }
  .project-statistics .summary-stats strong { font-size: 22px; }
  .project-period-notice { font-size: 10px; padding: 11px 13px; }
  .project-lifetime-summary { gap: 14px 24px; }
  .project-lifetime-summary h3 { width: 100%; }
  .project-lifetime-item { flex: 1 1 130px; }
  .project-lifetime-item > strong { font-size: 17px; }
  .toast { bottom: 18px; right: 18px; left: 18px; max-width: none; font-size: 11px; }
}
@media (max-width: 470px) {
  .auth-page { padding: 17px 13px; }
  .auth-card { padding: 25px 22px; }
  .auth-fields-grid { grid-template-columns: minmax(0, 1fr); }
  .account-form { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { margin-bottom: 27px; }
  .auth-description { font-size: 12px; }
  .invitation-link-controls { grid-template-columns: minmax(0, 1fr); }
  .invitation-link-input { font-size: 16px; }
  .account-topbar-name { max-width: 120px; }
  .dashboard-right { grid-template-columns: 1fr; }
  .topbar-avatar { display: none; }
  .breadcrumb { font-size: 9px; }
  .breadcrumb span:first-child { display: none; }
  .topbar-actions .avatar { display: none; }
  .stat-label { font-size: 10px; }
  .stat-icon { width: 24px; height: 24px; }
  .stat-meta { font-size: 9px; }
  .employee-grid, .site-grid { grid-template-columns: 1fr; }
  .form-grid { gap: 15px 12px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .filter-field input, .filter-field select { font-size: 16px; }
  .form-grid > .field.full { grid-column: 1 / -1; }
  .modal-footer .btn { flex: 1; }
  .summary-total strong { font-size: 17px; }
  .detail-grid { gap: 17px 12px; }
  .detail-grid dd { font-size: 12px; }
  .detail-grid dt { font-size: 10px; }
  .detail-person { gap: 10px; }
  .calendar-header { flex-wrap: wrap; }
  .calendar-toolbar { margin-left: auto; }
  .calendar-header .calendar-today { display: none; }
  .calendar-day-status { overflow: hidden; text-overflow: clip; white-space: nowrap; width: 100%; }
  .calendar-legend .calendar-day-status { width: auto; white-space: normal; }
  .calendar-entry-pill { display: none; }
  .calendar-day-hours { margin-top: 7px; }
  .calendar-day-status { font-size: 8px; gap: 2px; }
  .allowance-catalog-grid { grid-template-columns: 1fr; }
  .project-info-list { grid-template-columns: 1fr; }
  .project-filter-bar { grid-template-columns: minmax(0, 1fr); }
  .project-assignment-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  :root { background: #fff; font-size: 10px; }
  .sidebar, .topbar, .heading-actions, .filter-bar, .table-actions, .btn, .toast, .modal-backdrop, .sidebar-scrim, .text-link, .page-footnote { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; max-width: none; }
  .page-heading { margin-bottom: 20px; }
  .subtitle { color: #555; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { display: block; }
  .dashboard-left, .dashboard-right { display: block; }
  .card { margin-bottom: 15px; box-shadow: none; break-inside: avoid; }
  .card, .stat-card { border-color: #ccc; }
  .card-header { padding: 13px 15px; }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; font-size: 10px; }
  .data-table th, .data-table td { padding: 8px; }
  .data-table th { color: #333; }
  .data-table td { color: #333; }
  .person-avatar { display: none; }
  .badge { color: #444 !important; border: 1px solid #bbb; background: white !important; }
  .chart-bars, .progress-fill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .chart-scroll { overflow: visible; }
  .chart-columns { grid-template-columns: repeat(var(--chart-days), minmax(0, 1fr)); min-width: 0; gap: 2px; }
  .chart-hint { display: none; }
  .employee-calendar-layout { display: block; }
  .calendar-sidebar { display: none; }
  .calendar-toolbar, .calendar-empty, .calendar-hint { display: none; }
  .calendar-day { min-height: 90px; }
  .calendar-day.selected { box-shadow: none; }
  .calendar-entry-pill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  a[href]::after { content: none; }
}
