:root {
  --ink: #10212d;
  --muted: #62727c;
  --line: #dbe4e8;
  --soft: #f3f7f8;
  --paper: #ffffff;
  --navy: #102b3b;
  --navy-2: #18475b;
  --teal: #159b7a;
  --teal-light: #dff6ef;
  --amber: #c98412;
  --amber-light: #fff3d5;
  --red: #c64a42;
  --red-light: #fdeceb;
  --blue: #2d7ead;
  --blue-light: #e7f4fb;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(16, 43, 59, 0.075);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 86% -10%, #e2f5ef 0, transparent 28rem), var(--soft); font-size: 16px; line-height: 1.45; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0, 1fr); }
.sidebar { background: linear-gradient(165deg, #0d2736 0%, #12384a 58%, #0d2d3d 100%); color: #fff; padding: 28px 18px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20; box-shadow: 12px 0 32px rgba(11,35,49,.08); }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 30px; }
.brand-mark { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(145deg, #205369, #173c50); color: #6ee5c5; display: grid; place-items: center; border-radius: 13px; font-weight: 850; font-size: 21px; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.brand span { color: #8fa8b5; font-size: 13px; }
.nav-list { display: grid; gap: 8px; }
.nav-item { width: 100%; border: 1px solid transparent; border-radius: 12px; color: #afc5cf; background: transparent; padding: 13px 14px; display: flex; gap: 11px; align-items: center; text-align: left; font-weight: 700; transition: .18s ease; }
.nav-item svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(2px); }
.nav-item.active { background: rgba(63,198,162,.15); border-color: rgba(97,224,191,.2); color: #fff; box-shadow: 0 8px 20px rgba(3,22,31,.13); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; background: #f3b53f; color: #25200e; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 6px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot p, .sidebar-foot strong, .sidebar-foot span { display: block; margin: 0; }
.sidebar-foot p { color: #7893a1; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
.sidebar-foot strong { font-size: 15px; }
.sidebar-foot span { color: #9eb1bb; font-size: 13px; margin-top: 2px; }

.main { min-width: 0; }
.topbar { height: 78px; background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(207,220,225,.8); padding: 0 34px; display: flex; align-items: center; gap: 24px; position: sticky; top: 0; z-index: 15; backdrop-filter: blur(18px); }
.topbar-context { margin-right: auto; }
.eyebrow, .section-kicker { color: var(--teal); text-transform: uppercase; font-size: 12px; letter-spacing: .09em; font-weight: 800; }
.topbar h1 { font-size: 20px; line-height: 1.15; margin: 3px 0 0; }
.role-switcher { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.role-switcher select, .date-control { border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 12px; color: var(--ink); box-shadow: 0 3px 10px rgba(16,43,59,.035); }
.user-chip { border-left: 1px solid var(--line); padding-left: 22px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--teal-light); color: #11765e; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.user-chip strong, .user-chip small { display: block; white-space: nowrap; }
.user-chip strong { font-size: 14px; }
.user-chip small { color: var(--muted); font-size: 12px; }
.mobile-menu { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.mobile-menu span { display: block; width: 17px; height: 2px; background: var(--ink); margin: 3px auto; }

.content { padding: 38px 38px 64px; max-width: 1580px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; animation: reveal .2s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } }
.demo-locked { overflow: hidden; }
.demo-locked .app-shell { visibility: hidden; }
.demo-login-screen[hidden] { display: none; }
.demo-login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: auto;
  color: #17162e;
  background:
    radial-gradient(circle at 16% 18%, rgba(97,84,246,.28), transparent 30%),
    radial-gradient(circle at 84% 82%, rgba(21,155,122,.25), transparent 31%),
    linear-gradient(145deg, #171633 0%, #2d2767 46%, #126f61 110%);
}
.demo-login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  margin: auto 0;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(8,7,37,.32);
  backdrop-filter: blur(20px);
}
.demo-login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; }
.demo-login-brand img { width: 45px; height: 45px; }
.demo-login-brand strong, .demo-login-brand span { display: block; }
.demo-login-brand strong { font-size: 18px; letter-spacing: -.02em; }
.demo-login-brand span { margin-top: 1px; color: #666779; font-size: 12px; font-weight: 700; }
.demo-login-badge { display: inline-flex; margin-bottom: 14px; padding: 7px 10px; border-radius: 99px; color: #5548d7; background: #eeebff; font-size: 11px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.demo-login-card h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.04; letter-spacing: -.045em; }
.demo-login-card > p { margin: 13px 0 25px; color: #6f7081; font-size: 15px; line-height: 1.5; }
.demo-login-form { display: grid; gap: 15px; }
.demo-login-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.demo-login-form input { width: 100%; min-height: 50px; border: 1px solid #d8d7e4; border-radius: 13px; padding: 11px 13px; color: #17162e; background: #fff; font: inherit; outline: none; transition: border-color .16s ease, box-shadow .16s ease; }
.demo-login-form input:focus { border-color: #6d5df6; box-shadow: 0 0 0 4px rgba(109,93,246,.12); }
.demo-login-error { min-height: 19px; margin: -3px 0 0; color: #b42345; font-size: 12px; font-weight: 750; }
.button.demo-login-submit { width: 100%; min-height: 52px; color: #fff; background: linear-gradient(135deg, #6656f4, #168f75); box-shadow: 0 12px 28px rgba(77,65,210,.24); }
.button.demo-login-submit:hover { transform: translateY(-1px); box-shadow: 0 15px 32px rgba(77,65,210,.3); }
.demo-login-card > small { display: block; margin-top: 22px; color: #858697; font-size: 11px; line-height: 1.45; text-align: center; }
.demo-login-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .55; }
.demo-login-orb-one { width: 260px; height: 260px; right: -80px; top: -70px; background: rgba(255,255,255,.14); }
.demo-login-orb-two { width: 340px; height: 340px; left: -140px; bottom: -150px; border: 58px solid rgba(255,255,255,.1); }
.demo-logout-button { min-height: 38px; padding: 8px 11px; border: 1px solid #deddea; border-radius: 10px; color: #666779; background: #fff; font-size: 12px; font-weight: 800; }
.demo-logout-button:hover { color: #312d68; border-color: #aaa3ef; background: #f7f6ff; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.workspace-head h2 { font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.03em; line-height: 1.1; margin: 5px 0 8px; }
.workspace-head p { color: var(--muted); margin: 0; }
.head-actions { display: flex; gap: 10px; align-items: flex-end; }
.employee-switcher { margin-bottom: 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(242,249,247,.96)); border: 1px solid #d5e4e2; box-shadow: 0 13px 34px rgba(16,43,59,.07); }
.employee-switcher-top { display: grid; grid-template-columns: minmax(240px, .95fr) minmax(170px, 1fr) minmax(190px, .65fr); gap: 20px; align-items: center; padding: 0 2px 16px; }
.employee-focus { display: flex; align-items: center; gap: 13px; }
.employee-focus-avatar { width: 50px; height: 50px; color: #fff; background: linear-gradient(145deg, #159b7a, #126a59); box-shadow: 0 8px 18px rgba(21,155,122,.2); }
.employee-focus strong, .employee-focus small, .employee-focus-label { display: block; }
.employee-focus strong { font-size: 17px; letter-spacing: -.01em; }
.employee-focus small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.employee-focus-label { color: var(--teal); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; margin-bottom: 2px; }
.employee-switcher-copy { text-align: center; }
.employee-switcher-copy span { color: var(--muted); font-size: 12px; font-weight: 700; }
.employee-switcher-copy h3 { margin: 2px 0 0; font-size: 17px; }
.employee-quick-select { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.employee-quick-select select { min-height: 42px; width: 100%; border: 1px solid #cad9dd; border-radius: 11px; padding: 8px 34px 8px 11px; color: var(--ink); background: #fff; }
.employee-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.employee-card { min-width: 0; position: relative; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #dce7e9; border-radius: 13px; background: rgba(255,255,255,.86); color: var(--ink); text-align: left; transition: border-color .17s ease, background .17s ease, transform .17s ease, box-shadow .17s ease; }
.employee-card:hover { border-color: #9ccfc2; background: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(16,43,59,.07); }
.employee-card.active { border-color: #159b7a; background: #eaf8f4; box-shadow: 0 0 0 2px rgba(21,155,122,.11); }
.employee-card-avatar { flex: 0 0 35px; width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; background: #e6edf0; color: #34515f; font-size: 11px; font-weight: 850; }
.employee-card.active .employee-card-avatar { color: #fff; background: var(--teal); }
.employee-card-copy { min-width: 0; }
.employee-card-copy strong, .employee-card-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-card-copy strong { font-size: 14px; }
.employee-card-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.employee-status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #a7b3b8; vertical-align: 1px; }
.employee-status-dot.valid { background: var(--teal); }
.employee-status-dot.pending { background: var(--blue); }
.employee-status-dot.issue { background: var(--red); }
.employee-status-dot.draft { background: var(--amber); }
.employee-card-check { position: absolute; right: 7px; top: 7px; width: 17px; height: 17px; border-radius: 50%; display: none; place-items: center; background: var(--teal); color: #fff; font-size: 10px; font-weight: 900; }
.employee-card.active .employee-card-check { display: grid; }
.button { border: 0; border-radius: 11px; padding: 10px 16px; font-weight: 760; min-height: 42px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button.primary { background: linear-gradient(135deg, #159b7a, #117b64); color: #fff; box-shadow: 0 8px 20px rgba(21,155,122,.22); }
.button.primary:hover { background: #168d70; }
.button.secondary { background: rgba(255,255,255,.88); color: var(--ink); border: 1px solid var(--line); }
.button.secondary:hover { border-color: #aab9bf; }
.button:not(:disabled):active { transform: translateY(1px); }
.button.dark { background: var(--navy); color: #fff; }
.button:disabled { opacity: .45; cursor: not-allowed; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 14px; margin-bottom: 20px; }
.metric { background: rgba(255,255,255,.9); border: 1px solid rgba(216,227,231,.9); border-radius: 15px; padding: 18px 19px; box-shadow: 0 7px 22px rgba(20,42,58,.045); }
.metric span { color: var(--muted); font-size: 13px; display: block; }
.metric strong { display: block; font-size: 27px; line-height: 1.1; margin-top: 6px; letter-spacing: -.03em; }
.metric small { color: var(--muted); font-size: 12px; }
.metric.highlight { background: linear-gradient(145deg, #102f40, #19495c); color: #fff; border-color: transparent; box-shadow: 0 12px 28px rgba(16,47,64,.18); }
.metric.highlight span, .metric.highlight small { color: #a9bec8; }

.overtime-panel { margin-bottom: 20px; border-color: #c9dfea; }
.overtime-head { background: linear-gradient(135deg, #f4fbfd, #edf8f5); }
.overtime-head h3 { margin-top: 3px; }
.overtime-body { padding: 20px; }
.overtime-account-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.overtime-account-strip > div { padding: 13px 14px; border: 1px solid #dce8eb; border-radius: 11px; background: #f8fbfc; }
.overtime-account-strip span, .overtime-account-strip strong { display: block; }
.overtime-account-strip span { color: var(--muted); font-size: 12px; }
.overtime-account-strip strong { margin-top: 4px; font-size: 19px; }
.overtime-account-strip .projected { border-color: #bdb6ff; background: linear-gradient(135deg, #f1efff, #e7faf5); }
.overtime-account-strip .projected span { color: #5f55c7; font-weight: 800; }
.overtime-account-strip .projected strong { color: #4e43c6; }
.overtime-mode-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.overtime-mode { min-height: 44px; padding: 9px 12px; border: 1px solid #cedde2; border-radius: 11px; background: #fff; color: #34515f; font-weight: 760; }
.overtime-mode:hover:not(:disabled) { border-color: #83bfae; background: #f4fbf9; }
.overtime-mode.active { border-color: var(--teal); background: var(--teal-light); color: #116c57; box-shadow: 0 0 0 2px rgba(21,155,122,.1); }
.overtime-mode:disabled { cursor: not-allowed; opacity: .65; }
.overtime-explainer { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; padding: 12px 14px; border: 1px solid #dcd8ff; border-radius: 12px; color: #39345e; background: #f4f2ff; }
.overtime-explainer-icon { flex: 0 0 29px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: #6658ee; font-weight: 900; }
.overtime-explainer strong, .overtime-explainer div > span { display: block; }
.overtime-explainer strong { font-size: 13px; }
.overtime-explainer div > span { margin-top: 2px; color: #747087; font-size: 12px; }
.overtime-split { overflow: hidden; border: 1px solid #dce6e9; border-radius: 12px; }
.overtime-split-head, .overtime-split-row { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(110px, .55fr)); gap: 14px; align-items: center; padding: 11px 14px; }
.overtime-split-head { background: #f5f8f9; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.overtime-split-row + .overtime-split-row { border-top: 1px solid #e5ecef; }
.overtime-split-row > span, .overtime-split-row > strong:not(:first-child) { text-align: right; }
.overtime-split-row label { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; }
.overtime-split-row input, .recovery-rules input { width: 86px; min-height: 38px; border: 1px solid #cfdbdf; border-radius: 8px; padding: 6px 8px; text-align: right; color: var(--ink); background: #fff; }
.overtime-split-row input:disabled { color: var(--ink); background: #f2f6f7; opacity: 1; }
.overtime-total { font-size: 18px; font-weight: 850; }
.overtime-pay-choice { display: grid !important; justify-items: end; gap: 4px !important; color: #5d6070; font-size: 11px; font-weight: 800; }
.overtime-input-wrap { display: inline-flex; align-items: center; gap: 5px; }
.overtime-input-wrap i { color: #5d6070; font-style: normal; font-weight: 800; }
.overtime-recovery-result { display: grid; justify-items: end; gap: 1px; padding: 8px 10px; border-radius: 10px; color: #08725e; background: #e8faf5; text-align: right; }
.overtime-recovery-result span { color: #488176; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.overtime-recovery-result strong { font-size: 19px; }
.overtime-recovery-result small { color: #6b8f87; font-size: 10px; }
.overtime-choice-summary { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; margin-top: 12px; }
.overtime-choice-summary > div { padding: 13px 15px; border: 1px solid #dedcec; border-radius: 12px; background: #fafafe; }
.overtime-choice-summary > div:last-child { border-color: #bee9dd; background: #edfbf7; }
.overtime-choice-summary span, .overtime-choice-summary strong, .overtime-choice-summary small { display: block; }
.overtime-choice-summary span { color: #77798a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.overtime-choice-summary strong { margin-top: 5px; font-size: 17px; }
.overtime-choice-summary strong i { margin-inline: 6px; color: #9996a8; font-style: normal; }
.overtime-choice-summary small { margin-top: 3px; color: #638077; font-size: 11px; }
.overtime-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.overtime-submit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.overtime-footer strong, .overtime-footer span { display: block; }
.overtime-footer strong { font-size: 14px; }
.overtime-footer span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.overtime-review { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.overtime-review-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.overtime-review-title h3 { margin-top: 3px; font-size: 15px; }
.overtime-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.overtime-review-grid > div { padding: 10px; border-radius: 9px; background: #f5f8f9; }
.overtime-review-grid span, .overtime-review-grid strong { display: block; }
.overtime-review-grid span { color: var(--muted); font-size: 11px; }
.overtime-review-grid strong { margin-top: 2px; font-size: 16px; }
.recovery-rules { display: grid; gap: 8px; margin-top: 13px; }
.recovery-rules label { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.recovery-rules input { width: 78px; }
.rule-note { padding: 9px 10px; border-radius: 8px; background: #fff8e6; color: #76571f !important; font-size: 11px !important; }
.recovery-balance-line { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.recovery-balance-line span { color: var(--muted); font-size: 12px; }
.recovery-balance-line strong { font-size: 18px; }
.overtime-review-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.panel { background: rgba(255,255,255,.94); border: 1px solid rgba(216,227,231,.95); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 19px 21px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-head.compact { padding: 17px 18px; }
.panel h3 { margin: 0; font-size: 17px; }
.panel p { color: var(--muted); margin: 4px 0 0; font-size: 13px; }
.status-pill, .muted-badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 5px 9px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-pill.draft { color: var(--amber); background: var(--amber-light); }
.status-pill.pending { color: var(--blue); background: var(--blue-light); }
.status-pill.valid { color: #147157; background: var(--teal-light); }
.status-pill.issue { color: var(--red); background: var(--red-light); }
.muted-badge { color: var(--muted); background: var(--soft); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { color: #60707a; background: #f8fafb; font-size: 12px; text-transform: uppercase; letter-spacing: .055em; font-weight: 800; text-align: left; }
th, td { padding: 13px 14px; border-bottom: 1px solid #edf1f3; vertical-align: middle; }
.timesheet thead th { position: sticky; top: 0; z-index: 2; }
.timesheet tbody tr td { transition: background .15s ease; }
.timesheet tbody tr:hover td { background: #f7fbfa; }
.timesheet th:first-child, .timesheet td:first-child { padding-left: 21px; }
.timesheet td { min-width: 116px; }
.timesheet td:first-child { min-width: 150px; }
.timesheet td:last-child { min-width: 90px; }
.timesheet .day strong, .timesheet .day span { display: block; }
.timesheet .day span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.time-input, .event-select, .duration-select { width: 100%; min-height: 40px; border: 1px solid #d3dfe3; border-radius: 9px; background: #fff; padding: 7px 8px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.time-input:focus, select:focus, input:focus { outline: 3px solid rgba(33,167,133,.16); border-color: var(--teal); }
.time-input:disabled, .duration-select:disabled { background: #f2f5f6; color: #9da9af; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.hours-value { font-weight: 800; }
.row-event td { background: #fffdf7; }
.row-issue td { background: #fff7f6; }
.panel-footer { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.save-note { color: var(--muted); font-size: 12px; }

.validation-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 18px; align-items: start; }
.validation-queue { display: grid; }
.queue-item { padding: 15px 18px; display: grid; grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(80px,.55fr)) auto; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid #edf1f3; background: #fff; color: var(--ink); text-align: left; }
.queue-item:hover, .queue-item.selected { background: #f3faf8; }
.queue-name strong, .queue-name span { display: block; }
.queue-name span, .queue-stat span { color: var(--muted); font-size: 12px; }
.queue-stat strong { display: block; font-size: 15px; margin-top: 2px; }
.detail-panel { padding: 21px; position: sticky; top: 104px; }
.detail-person { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.detail-person .avatar { width: 44px; height: 44px; }
.detail-person h3 { font-size: 18px; }
.detail-person p { margin: 2px 0 0; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 17px 0; }
.detail-stat { padding: 12px; background: var(--soft); border-radius: 9px; }
.detail-stat span { display: block; color: var(--muted); font-size: 12px; }
.detail-stat strong { font-size: 18px; }
.event-list { border-top: 1px solid var(--line); padding-top: 15px; }
.event-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13px; }
.event-row span:last-child { font-weight: 750; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }

.request-summary { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.request-list { display: grid; }
.request-card { padding: 17px 20px; border-bottom: 1px solid #edf1f3; display: grid; grid-template-columns: minmax(210px, 1.1fr) 90px minmax(160px, .9fr) minmax(180px, .85fr) auto; gap: 18px; align-items: center; }
.request-card:last-child { border-bottom: 0; }
.request-card:hover { background: #fbfdfd; }
.request-person { display: flex; align-items: center; gap: 11px; }
.request-person strong, .request-person span { display: block; }
.request-person span { color: var(--muted); font-size: 13px; margin-top: 2px; }
.request-days span, .request-comment span { display: block; color: var(--muted); font-size: 12px; }
.request-days strong, .request-comment strong { display: block; margin-top: 3px; font-size: 14px; }
.request-days strong { font-size: 18px; }
.request-decision { display: grid; justify-items: start; gap: 5px; }
.request-decision small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.request-actions { display: flex; gap: 8px; }
.request-actions .button { min-height: 38px; padding: 8px 12px; }
.request-conflict { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 11px; margin-top: -2px; padding: 12px 14px; border: 1px solid #efc466; border-radius: 12px; background: #fff8e6; color: #704b00; }
.conflict-icon { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e59a00; color: #fff; font-size: 14px; font-weight: 900; }
.request-conflict strong, .request-conflict span { display: block; }
.request-conflict > div > strong, .conflict-body > strong { font-size: 14px; }
.request-conflict > div > span, .conflict-body > span { margin-top: 2px; color: #866225; font-size: 13px; line-height: 1.4; }
.request-conflict ul { display: grid; gap: 7px; margin: 9px 0 0; padding: 0; list-style: none; }
.request-conflict li { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; gap: 12px; padding-top: 7px; border-top: 1px solid rgba(138,94,9,.17); }
.request-conflict li strong { font-size: 13px; }
.request-conflict li span { color: #76571f; font-size: 12px; }
.employee-conflict { background: #fffbf0; }
.empty-state { padding: 40px 22px; text-align: center; color: var(--muted); display: grid; gap: 4px; }
.empty-state strong { color: var(--ink); }
.leave-preview { margin: -8px 0 20px; padding: 11px 13px; background: var(--teal-light); color: #176b56; border-radius: 9px; font-size: 13px; font-weight: 700; }
.leave-conflict { display: flex; align-items: flex-start; gap: 10px; margin: -10px 0 20px; padding: 12px 13px; border: 1px solid #efc466; border-radius: 10px; background: #fff8e6; color: #704b00; }
.leave-conflict[hidden] { display: none; }
.leave-conflict strong, .leave-conflict span { display: block; }
.leave-conflict strong { font-size: 14px; }
.leave-conflict div > span { margin-top: 3px; color: #866225; font-size: 13px; line-height: 1.4; }

.close-banner { background: #e7f7f2; border: 1px solid #bfe9dc; border-radius: 12px; padding: 16px 18px; margin-bottom: 17px; display: flex; justify-content: space-between; align-items: center; }
.close-banner > div { display: flex; align-items: center; gap: 12px; }
.close-banner p { margin: 2px 0 0; color: #4e6d64; font-size: 13px; }
.close-icon { width: 32px; height: 32px; display: grid; place-items: center; background: #fff; color: var(--teal); border-radius: 50%; font-weight: 900; }
.close-banner.pending { border-color: #e8d49d; background: linear-gradient(110deg, #fff8e7, #f7f5ff); }
.close-banner.pending .close-icon { color: #aa720b; }
.close-banner.closed { border-color: #b9e7d9; background: linear-gradient(110deg, #e8faf5, #effbf8); }
.closing-checklist { margin-bottom: 17px; padding: 19px 20px 20px; }
.closing-checklist-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.closing-checklist-head h3 { margin-top: 3px; }
.closing-progress { padding: 7px 11px; border-radius: 99px; color: #5f55c7; background: #f0eeff; font-size: 12px; font-weight: 850; }
.closing-progress.complete { color: #11765e; background: #e1f7f0; }
.closing-checklist-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.closing-check { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px; border: 1px solid #e2e8eb; border-radius: 12px; background: #f8fafb; }
.closing-check.done { border-color: #c8e9df; background: #effbf7; }
.closing-check-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #8a650f; background: #fff0c9; font-size: 14px; font-weight: 900; }
.closing-check.done .closing-check-icon { color: #fff; background: #159b7a; }
.closing-check strong, .closing-check small { display: block; }
.closing-check strong { overflow-wrap: anywhere; font-size: 13px; }
.closing-check small { margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.payroll-heading { display: flex; gap: 38px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.payroll-heading span, .payroll-heading strong { display: block; }
.payroll-heading span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.payroll-heading strong { font-size: 14px; margin-top: 3px; }
.payroll-table { min-width: 1260px; }
.payroll-table td:first-child { font-weight: 750; }
.absence-cell span { display: block; }
.absence-cell small { color: var(--muted); }
.balance-control { display: inline-flex; justify-content: flex-end; align-items: center; gap: 5px; }
.balance-input { width: 72px; min-height: 36px; border: 1px solid #d7e0e4; border-radius: 8px; padding: 6px 7px; text-align: right; color: var(--ink); background: #fff; }
.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; }
[hidden] { display: none !important; }

.date-control { color: var(--muted); font-size: 13px; }
.date-control strong { color: var(--ink); }
.dialog { width: min(560px, calc(100vw - 28px)); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 24px 70px rgba(14,29,40,.25); }
.dialog::backdrop { background: rgba(8,20,28,.48); backdrop-filter: blur(3px); }
.dialog form { padding: 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; }
.dialog-head h2 { margin: 4px 0 0; font-size: 24px; }
.icon-button { border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; font-size: 23px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 23px 0; }
.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.form-grid select, .form-grid input { min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #fff; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.pdf-preview-dialog { width: min(1080px, calc(100vw - 28px)); }
.pdf-preview-dialog form { padding: 20px; }
.pdf-preview-head { margin-bottom: 14px; }
.pdf-preview-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.pdf-preview-meta span { padding: 5px 8px; border-radius: 7px; color: #5d50d2; background: #f0eeff; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.pdf-preview-frame { display: block; width: 100%; height: min(65vh, 690px); overflow: auto; border: 1px solid #d8e1e5; border-radius: 12px; padding: 24px; background: #e8edef; }
.pdf-preview-document { min-width: 840px; max-width: 1040px; margin: 0 auto; padding: 34px 36px 30px; background: #fff; box-shadow: 0 12px 30px rgba(27,42,51,.13); }
.pdf-preview-document-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 17px; border-bottom: 2px solid #222b31; }
.pdf-preview-document-head h3 { margin: 0; font-size: 22px; }
.pdf-preview-document-head span, .pdf-preview-document-head strong { display: block; text-align: right; }
.pdf-preview-document-head span { color: #66737a; font-size: 11px; }
.pdf-preview-document-head strong { margin-top: 3px; font-size: 13px; }
.pdf-preview-table { min-width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 9px; }
.pdf-preview-table th { padding: 8px 6px; border: 1px solid #cfd6da; color: #26353d; background: #e9eef0; font-size: 8px; letter-spacing: .02em; }
.pdf-preview-table td { padding: 10px 6px; border: 1px solid #d8dee1; }
.pdf-preview-table tbody tr:nth-child(even) { background: #f7f9fa; }
.pdf-preview-document-note { margin: 15px 0 0; color: #66737a; font-size: 9px; }
.pdf-preview-actions { margin-top: 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 9px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; z-index: 60; }
.toast.show { opacity: 1; transform: translateY(0); }

.previous-week-banner { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; margin: -2px 0 22px; padding: 15px 17px; border: 1px solid #dcd9ff; border-radius: 18px; background: linear-gradient(105deg, #f3f1ff, #ecfaf6); box-shadow: 0 10px 28px rgba(50,42,126,.07); }
.previous-week-banner.confirmed { border-color: #bcebdd; background: linear-gradient(105deg, #e9fbf6, #f5fffc); }
.previous-week-banner.corrected { border-color: #f1d49b; background: linear-gradient(105deg, #fff7e7, #f8f3ff); }
.previous-week-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #6759ef, #00a98a); font-size: 16px; font-weight: 900; box-shadow: 0 8px 18px rgba(80,67,207,.18); }
.previous-week-banner.corrected .previous-week-icon { background: linear-gradient(145deg, #f0a72c, #775cf3); }
.previous-week-copy span, .previous-week-copy strong, .previous-week-copy small { display: block; }
.previous-week-copy span { color: #6357dd; font-size: 11px; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.previous-week-copy strong { margin-top: 2px; font-size: 15px; }
.previous-week-copy small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.previous-week-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.previous-week-actions .button { min-height: 39px; padding: 8px 13px; }
.dialog-intro { margin: 20px 0 -4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-grid-wide { grid-column: 1 / -1; }
.absence-period-preview { display: flex; align-items: center; gap: 11px; margin: -6px 0 22px; padding: 13px 14px; border: 1px solid #c8e9df; border-radius: 13px; color: #27574c; background: #eefbf7; }
.absence-period-preview > span { flex: 0 0 31px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #00a281; font-weight: 900; }
.absence-period-preview strong, .absence-period-preview small { display: block; }
.absence-period-preview small { margin-top: 2px; color: #668078; }
.managed-absence-list { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.managed-absence-list h3 { margin: 0 0 10px; font-size: 14px; }
.managed-absence-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border-radius: 10px; background: #f5f4fc; }
.managed-absence-row + .managed-absence-row { margin-top: 7px; }
.managed-absence-row span strong, .managed-absence-row span small { display: block; }
.managed-absence-row span small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.managed-absence-row em { flex: 0 0 auto; color: #5e51d5; font-style: normal; font-weight: 850; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 76px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .brand { padding-inline: 8px; justify-content: center; }
  .brand > div:last-child, .nav-item:not(.active) .nav-count, .nav-item { font-size: 0; }
  .nav-item { justify-content: center; padding-inline: 8px; }
  .nav-item svg { width: 22px; height: 22px; }
  .nav-count { font-size: 11px; position: absolute; transform: translate(15px,-15px); }
  .sidebar-foot { display: none; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .employee-switcher-top { grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr); }
  .employee-switcher-copy { display: none; }
  .employee-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .validation-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .request-card { grid-template-columns: minmax(190px, 1.2fr) 80px minmax(150px, 1fr); }
  .request-decision { grid-column: 1 / 3; }
  .request-actions { justify-content: end; }
  .overtime-account-strip { grid-template-columns: 1fr 1fr; }
  .closing-checklist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -260px; width: 244px; transition: left .2s ease; }
  .sidebar.open { left: 0; box-shadow: 18px 0 40px rgba(0,0,0,.2); }
  .sidebar .brand > div:last-child, .sidebar .nav-item { font-size: initial; }
  .sidebar .nav-item { justify-content: flex-start; padding-inline: 13px; }
  .sidebar .sidebar-foot { display: block; }
  .previous-week-banner { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .previous-week-actions { grid-column: 1 / -1; justify-content: stretch; }
  .previous-week-actions .button { flex: 1; }
  .form-grid-wide { grid-column: auto; }
  .mobile-menu { display: block; }
  .topbar { height: 72px; padding: 0 14px; gap: 12px; }
  .topbar-context { display: none; }
  .role-switcher { margin-left: auto; }
  .role-switcher label { display: none; }
  .user-chip { padding-left: 10px; }
  .user-chip > span:last-child { display: none; }
  .content { padding: 24px 14px 44px; }
  .workspace-head { display: block; }
  .head-actions { margin-top: 17px; align-items: stretch; flex-direction: column; }
  .employee-switcher { padding: 14px; margin-inline: -1px; border-radius: 16px; }
  .employee-switcher-top { grid-template-columns: 1fr; gap: 12px; padding-bottom: 13px; }
  .employee-focus-avatar { width: 44px; height: 44px; }
  .employee-quick-select { display: grid; }
  .employee-card-grid { display: flex; overflow-x: auto; gap: 8px; padding: 2px 1px 7px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .employee-card { flex: 0 0 166px; scroll-snap-align: start; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric strong { font-size: 23px; }
  .overtime-body { padding: 14px; }
  .overtime-account-strip, .overtime-mode-group { grid-template-columns: 1fr 1fr; }
  .overtime-mode:last-child { grid-column: 1 / -1; }
  .overtime-split-head { display: none; }
  .overtime-split-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 13px; }
  .overtime-split-row > strong:first-child { grid-column: 1 / -1; }
  .overtime-split-row > span, .overtime-split-row > strong:not(:first-child) { text-align: left; }
  .overtime-split-row label { justify-content: flex-start; }
  .overtime-pay-choice { justify-items: start; }
  .overtime-recovery-result { justify-items: start; text-align: left; }
  .overtime-choice-summary { grid-template-columns: 1fr; }
  .overtime-footer { align-items: stretch; flex-direction: column; }
  .overtime-footer .button { width: 100%; }
  .overtime-submit-actions { align-items: stretch; flex-direction: column-reverse; }
  .panel-footer { align-items: stretch; flex-direction: column; }
  .queue-item { grid-template-columns: minmax(150px,1fr) auto; }
  .queue-stat { display: none; }
  .request-summary { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 1fr auto; gap: 13px; }
  .request-comment { grid-column: 1 / -1; }
  .request-decision { grid-column: 1 / -1; }
  .request-actions { grid-column: 1 / -1; justify-content: stretch; }
  .request-actions .button { flex: 1; }
  .request-conflict li { grid-template-columns: 1fr; gap: 2px; }
  .payroll-heading { gap: 18px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .close-banner { align-items: stretch; gap: 14px; flex-direction: column; }
  .close-banner .button { width: 100%; }
}

/* Expérience 2026 — vive, immédiate et pensée pour la saisie quotidienne */
:root {
  --ink: #17172f;
  --muted: #6c7084;
  --line: #e5e6f1;
  --soft: #f6f7fd;
  --paper: #ffffff;
  --navy: #15152f;
  --navy-2: #252452;
  --teal: #00a884;
  --teal-light: #dffaf3;
  --amber: #e99112;
  --amber-light: #fff4d6;
  --red: #ef5c58;
  --red-light: #fff0ef;
  --blue: #6458f5;
  --blue-light: #efedff;
  --violet: #6558f5;
  --violet-2: #8067ff;
  --coral: #ff6d5c;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(44, 38, 98, .09), 0 3px 12px rgba(25, 24, 55, .04);
  font-family: Inter, "Avenir Next", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 5%, rgba(101, 88, 245, .09), transparent 28rem),
    radial-gradient(circle at 55% 35%, rgba(0, 195, 158, .055), transparent 27rem),
    #f7f8fd;
}

.sidebar {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 2%, rgba(128, 103, 255, .38), transparent 15rem),
    radial-gradient(circle at 90% 78%, rgba(0, 200, 160, .18), transparent 18rem),
    linear-gradient(165deg, #171633 0%, #1d1b40 54%, #121c34 100%);
  box-shadow: 16px 0 44px rgba(23, 21, 57, .12);
}
.sidebar::after { content: ""; position: absolute; width: 150px; height: 150px; right: -86px; top: 42%; border: 1px solid rgba(255,255,255,.09); border-radius: 44px; transform: rotate(28deg); }
.brand { position: relative; z-index: 1; }
.brand-mark { border: 0; display: block; object-fit: contain; background: transparent; color: #fff; border-radius: 15px; box-shadow: none; }
.brand strong { font-size: 18px; letter-spacing: -.015em; }
.brand span { margin-top: 1px; color: #b4b2d2; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; }
.brand span { color: #abaaca; }
.nav-list { position: relative; z-index: 1; gap: 9px; }
.nav-item { min-height: 48px; border-radius: 14px; color: #bbbada; padding: 13px 15px; }
.nav-item:hover { background: rgba(255,255,255,.09); }
.nav-item.active { border-color: transparent; background: linear-gradient(105deg, #6658f5, #8266ff); box-shadow: 0 12px 30px rgba(80, 64, 220, .36); }
.nav-count { background: #ffcf59; color: #302300; box-shadow: 0 3px 9px rgba(0,0,0,.16); }
.sidebar-foot { position: relative; z-index: 1; border-color: rgba(255,255,255,.1); }
.sidebar-foot p { color: #8e8db5; }
.sidebar-foot span { color: #a7a6c6; }
.company-logo-card { margin: 9px 0 10px; overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 10px 26px rgba(4,3,25,.18); }
.company-logo-card img { width: 100%; height: auto; display: block; }
.sidebar-foot > span { padding-left: 2px; font-size: 11px; }

.topbar { height: 82px; background: rgba(255,255,255,.87); border-bottom-color: rgba(226,226,239,.88); box-shadow: 0 4px 24px rgba(38,33,82,.035); }
.eyebrow, .section-kicker { color: var(--violet); }
.role-switcher { padding: 5px 5px 5px 12px; border: 1px solid #e3e2f0; border-radius: 14px; background: #f8f8fd; }
.role-switcher select { border: 0; background: #fff; box-shadow: 0 3px 10px rgba(25,24,55,.06); font-weight: 750; }
.user-chip { border-left-color: #e8e8f1; }
.avatar { background: linear-gradient(145deg, #efedff, #defaf3); color: #574ad8; box-shadow: inset 0 0 0 1px rgba(101,88,245,.08); }
.content { max-width: 1640px; padding: 34px 38px 72px; }

.pulse-hero {
  min-height: 268px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  align-items: center;
  gap: 34px;
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, #4d46df 0%, #6c58f5 48%, #00a98b 120%);
  box-shadow: 0 26px 65px rgba(75, 64, 210, .25);
}
.pulse-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, #000, transparent 75%); }
.pulse-hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; color: #dcd8ff; }
.hero-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #65ffd5; box-shadow: 0 0 0 6px rgba(101,255,213,.13); }
.pulse-hero h2 { margin: 0; max-width: 760px; font-size: clamp(32px, 4.2vw, 52px); line-height: 1.02; letter-spacing: -.045em; }
.pulse-hero p { max-width: 700px; margin: 15px 0 24px; color: rgba(255,255,255,.79); font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button.hero-primary, .button.hero-secondary { min-height: 50px; border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 850; }
.button.hero-primary { background: #fff; color: #5147d5; box-shadow: 0 10px 24px rgba(23,19,90,.18); }
.button.hero-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(23,19,90,.24); }
.button.hero-secondary { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.button.hero-secondary:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.button-icon { width: 25px; height: 25px; display: inline-grid; place-items: center; margin-right: 7px; border-radius: 8px; background: rgba(101,88,245,.1); font-size: 18px; }
.hero-secondary .button-icon { background: rgba(255,255,255,.12); }
.hero-progress-wrap { position: relative; z-index: 2; justify-self: end; display: grid; justify-items: center; gap: 15px; width: min(100%, 300px); padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: rgba(23,20,79,.15); backdrop-filter: blur(12px); }
.progress-ring { --progress: 0; width: 138px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#69ffd7 calc(var(--progress) * 1%), rgba(255,255,255,.18) 0); filter: drop-shadow(0 10px 20px rgba(25,18,91,.18)); }
.progress-ring::before { content: ""; position: absolute; width: 112px; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, rgba(59,46,176,.96), rgba(56,91,169,.92)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.progress-ring > div { position: relative; z-index: 1; text-align: center; }
.progress-ring strong, .progress-ring span { display: block; }
.progress-ring strong { font-size: 29px; letter-spacing: -.04em; }
.progress-ring span { margin-top: 1px; color: rgba(255,255,255,.7); font-size: 11px; font-weight: 750; }
.hero-progress-copy { display: flex; align-items: center; gap: 9px; text-align: left; }
.hero-progress-copy strong, .hero-progress-copy span { display: block; }
.hero-progress-copy strong { font-size: 14px; }
.hero-progress-copy span { margin-top: 2px; color: rgba(255,255,255,.68); font-size: 12px; }
.progress-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #66ffd6; box-shadow: 0 0 0 6px rgba(102,255,214,.12); }
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero-orb-one { width: 240px; height: 240px; right: -80px; top: -100px; background: rgba(98,255,214,.17); }
.hero-orb-two { width: 130px; height: 130px; left: 52%; bottom: -90px; background: rgba(255,255,255,.13); }

.workspace-head h2 { font-weight: 820; }
.employee-switcher { border-color: #e5e4f1; background: rgba(255,255,255,.92); box-shadow: var(--shadow); border-radius: 21px; }
.employee-switcher.employee-self-view { padding: 14px 16px; }
.employee-switcher.employee-self-view .employee-switcher-top { padding-bottom: 12px; }
.employee-focus-avatar { background: linear-gradient(145deg, #685af5, #00ae8d); box-shadow: 0 9px 22px rgba(90,78,225,.24); }
.employee-focus-label { color: var(--violet); }
.employee-card { min-height: 62px; border-color: #e7e7f1; border-radius: 15px; background: #fafafe; }
.employee-card:hover { border-color: #b6afff; box-shadow: 0 10px 22px rgba(70,60,150,.1); }
.employee-card.active { border-color: #7063f4; background: linear-gradient(135deg, #f0efff, #e8fbf6); box-shadow: 0 0 0 3px rgba(101,88,245,.09); }
.employee-card.active .employee-card-avatar { background: linear-gradient(145deg, #6d5af6, #00ae8d); }
.employee-quick-select select { border-color: #deddec; background: #fafafe; }

.metric-grid { gap: 13px; }
.metric { min-height: 126px; display: flex; align-items: flex-start; gap: 13px; padding: 18px; border-color: #e8e8f2; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(38,33,82,.055); transition: transform .18s ease, box-shadow .18s ease; }
.metric:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(38,33,82,.095); }
.metric-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-light); color: var(--violet); font-size: 15px; font-weight: 900; }
.metric-copy { min-width: 0; display: grid; }
.metric-copy > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.metric-copy strong { font-size: 27px; margin: 6px 0 1px; letter-spacing: -.035em; }
.metric-copy small { color: #8b8da0; font-size: 11px; line-height: 1.25; }
.metric.highlight { color: #fff; border-color: transparent; background: linear-gradient(145deg, #5b50e7, #7461fa); box-shadow: 0 14px 32px rgba(85,72,220,.22); }
.metric.highlight .metric-icon { color: #fff; background: rgba(255,255,255,.15); }
.metric.highlight .metric-copy > span, .metric.highlight .metric-copy small { color: rgba(255,255,255,.74); }
.metric-contract .metric-icon { color: #008c71; background: #e2faf4; }
.metric-overtime .metric-icon { color: #bc7300; background: #fff3d8; }
.metric-overtime-strong .metric-icon { color: #dc4c43; background: #fff0ee; }
.metric-leave .metric-icon { color: #e07900; background: #fff2d7; }
.metric-balance .metric-icon { color: #008e76; background: #e2faf4; }

.panel { border-color: #e5e5f0; border-radius: 21px; box-shadow: var(--shadow); }
.panel-head { padding: 20px 22px; }
.panel-head h3 { font-size: 18px; }
.timesheet-panel { overflow: hidden; }
.timesheet-panel .table-wrap { padding: 0 12px 10px; background: #f8f8fc; }
.timesheet { border-collapse: separate; border-spacing: 0 8px; }
.timesheet thead th { padding-block: 11px; border: 0; background: transparent; color: #77798d; font-size: 10px; }
.timesheet tbody td { border-block: 1px solid #ececf4; background: #fff; padding: 11px 9px; transition: background .18s ease, box-shadow .18s ease; }
.timesheet tbody td:first-child { border-left: 1px solid #ececf4; border-radius: 13px 0 0 13px; padding-left: 14px; }
.timesheet tbody td:last-child { border-right: 1px solid #ececf4; border-radius: 0 13px 13px 0; padding-right: 14px; }
.timesheet tbody tr:hover td { background: #fbfbff; }
.timesheet .today-row td { border-color: #bfb9ff; background: #f4f2ff; }
.timesheet .today-row td:first-child { box-shadow: inset 4px 0 #6a5af5; }
.day { min-width: 152px; }
.day strong { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.day > span { color: var(--muted); font-size: 11px; }
.today-badge { padding: 3px 6px; border-radius: 99px; color: #574ad8; background: #e3dfff; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.day-state { display: inline-block; margin-top: 5px; color: #9a9bac; font-size: 9px; font-style: normal; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.day-state.complete { color: #008e73; }
.time-input, .event-select, .duration-select { min-height: 43px; border-color: #dedeea; border-radius: 11px; background: #fafafe; font-weight: 700; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.time-input:hover, .event-select:hover, .duration-select:hover { background: #fff; border-color: #b9b4e9; }
.time-input:focus, .event-select:focus, .duration-select:focus, .balance-input:focus, .form-grid select:focus, .form-grid input:focus { outline: 0; border-color: #7063f4; box-shadow: 0 0 0 4px rgba(101,88,245,.12); background: #fff; }
.hours-value { color: #4d46c9; font-weight: 850; }
.panel-footer { padding: 17px 22px 21px; border-top-color: #ececf3; }
.save-note::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 7px; border-radius: 50%; color: #008b70; background: #dff9f2; font-weight: 900; }
.button { min-height: 43px; border-radius: 12px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { border-color: transparent; background: linear-gradient(105deg, #6154ef, #7962fb); color: #fff; box-shadow: 0 9px 22px rgba(91,77,225,.2); }
.button.primary:hover:not(:disabled) { box-shadow: 0 13px 28px rgba(91,77,225,.28); }
.button.secondary { border-color: #deddec; background: #fff; color: #47445f; }
.status-pill.valid { background: #dff9f2; color: #00836b; }
.status-pill.pending { background: #eeecff; color: #5a4bd1; }
.status-pill.draft { background: #fff1d6; color: #9a6300; }

.request-card, .queue-item { border-color: #e7e7f1; border-radius: 15px; background: #fbfbfe; }
.request-card:hover, .queue-item:hover { border-color: #c2bcff; box-shadow: 0 9px 20px rgba(48,41,110,.07); }
.queue-item.active { border-color: #6a5df1; background: #f1efff; }
.close-banner { border-color: #b9ecdf; border-radius: 17px; background: linear-gradient(100deg, #e1faf4, #eef1ff); }
.close-icon { color: #fff; background: linear-gradient(145deg, #00a884, #6154ef); }
.overtime-panel { border-color: #dcd9ff; }
.overtime-head { background: linear-gradient(105deg, #f1efff, #e8faf6); }
.dialog { border-radius: 22px; box-shadow: 0 32px 90px rgba(20,18,63,.3); }
.dialog::backdrop { background: rgba(18,17,48,.55); backdrop-filter: blur(7px); }
.dialog form { padding: 27px; }
.dialog-head { margin: -27px -27px 0; padding: 23px 27px; border-radius: 22px 22px 0 0; background: linear-gradient(115deg, #f0eeff, #e2faf4); }
.form-grid select, .form-grid input { min-height: 46px; border-radius: 11px; background: #fbfbfe; }
.toast { right: 28px; bottom: 28px; border-radius: 14px; background: #1d1b40; box-shadow: 0 16px 35px rgba(25,23,64,.28); }

[hidden] { display: none !important; }

body[data-role="salarie"] .content { max-width: 1180px; padding-top: 26px; }
body[data-role="salarie"] .pulse-hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  padding: 30px 34px;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(75,64,210,.2);
}
body[data-role="salarie"] .pulse-hero h2 { font-size: clamp(30px, 3.4vw, 42px); }
body[data-role="salarie"] .pulse-hero p { margin: 11px 0 19px; }
body[data-role="salarie"] .hero-progress-wrap { width: 250px; gap: 10px; padding: 17px; border-radius: 19px; }
body[data-role="salarie"] .progress-ring { width: 86px; }
body[data-role="salarie"] .progress-ring::before { width: 68px; }
body[data-role="salarie"] .progress-ring strong { font-size: 21px; }
body[data-role="salarie"] .progress-ring span { font-size: 9px; }
body[data-role="salarie"] .employee-switcher.employee-self-view {
  padding: 18px;
  border-color: #d7d2ff;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,242,255,.97));
  box-shadow: 0 15px 36px rgba(74,63,180,.09);
}
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-switcher-top {
  grid-template-columns: minmax(230px, .9fr) minmax(220px, 1fr);
  gap: 24px;
  padding: 0 2px 15px;
}
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-switcher-copy { display: block; text-align: left; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-switcher-copy span { color: #6255dd; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-switcher-copy h3 { margin-top: 3px; font-size: 20px; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-quick-select { display: none; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card { min-height: 68px; padding: 12px 13px; border-color: #e1dfef; background: #fff; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card:hover { border-color: #968cff; box-shadow: 0 9px 20px rgba(82,69,211,.1); }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card.active { border-color: #6d5df6; background: linear-gradient(135deg, #f2f0ff, #ecfbf7); box-shadow: 0 0 0 3px rgba(109,93,246,.1); }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card-avatar { flex-basis: 40px; width: 40px; height: 40px; border-radius: 12px; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card.active .employee-card-avatar { background: linear-gradient(145deg, #6d5df6, #159b7a); }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card-copy strong { overflow: visible; white-space: normal; font-size: 15px; line-height: 1.2; }
body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card-copy small { display: none; }
body[data-role="salarie"] .employee-focus-avatar { width: 46px; height: 46px; }
body[data-role="salarie"] .employee-focus-label { display: block; color: #6255dd; }
body[data-role="salarie"] .employee-focus small { font-size: 11px; }
body[data-role="salarie"] .overtime-panel { margin-top: 16px; }

.button.hero-link { min-height: 50px; padding-inline: 11px; color: rgba(255,255,255,.86); background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.button.hero-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.button.hero-confirm { width: 100%; min-height: 42px; margin-top: 2px; border: 1px solid rgba(255,255,255,.16); color: #353064; background: #fff; box-shadow: 0 8px 18px rgba(22,18,79,.15); }
.button.hero-confirm:hover:not(:disabled) { background: #effffb; }
.button.hero-confirm:disabled { color: rgba(255,255,255,.82); background: rgba(255,255,255,.12); box-shadow: none; }

.employee-detail-bar { margin: 15px 0 18px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e4e3ef; border-radius: 17px; background: rgba(255,255,255,.88); box-shadow: 0 9px 24px rgba(38,33,82,.045); }
.employee-detail-bar strong, .employee-detail-bar span { display: block; }
.employee-detail-bar strong { font-size: 14px; }
.employee-detail-bar span { margin-top: 2px; color: #7b7c8e; font-size: 12px; }
.timesheet-panel { scroll-margin-top: 100px; }

.overtime-simple-prompt, .overtime-simple-choice { margin: 4px 0 15px; padding: 16px 17px; border: 1px solid #dfddf2; border-radius: 14px; background: #fafafe; }
.overtime-simple-prompt strong, .overtime-simple-prompt span, .overtime-simple-choice span, .overtime-simple-choice strong, .overtime-simple-choice small { display: block; }
.overtime-simple-prompt strong, .overtime-simple-choice strong { font-size: 15px; }
.overtime-simple-prompt span, .overtime-simple-choice span, .overtime-simple-choice small { margin-top: 4px; color: #77798d; font-size: 12px; }
.overtime-simple-choice { border-color: #bfeadd; background: #effbf7; }
.overtime-simple-choice > span { margin-top: 0; color: #00836b; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.notification-centre { position: relative; }
.notification-button { width: 46px; height: 46px; position: relative; display: grid; place-items: center; border: 1px solid #e1e0ed; border-radius: 14px; color: #3f3b65; background: #fff; box-shadow: 0 5px 16px rgba(38,33,82,.07); transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.notification-button:hover, .notification-button[aria-expanded="true"] { transform: translateY(-1px); border-color: #a9a1ff; color: #5e51dd; box-shadow: 0 10px 22px rgba(63,51,157,.13); }
.notification-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-badge { position: absolute; right: -6px; top: -6px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border: 3px solid #fff; border-radius: 99px; color: #fff; background: linear-gradient(145deg, #ff795f, #f24d67); font-size: 10px; font-weight: 900; line-height: 1; box-shadow: 0 5px 12px rgba(229,70,91,.3); }
.notification-panel { width: min(420px, calc(100vw - 28px)); max-height: min(670px, calc(100vh - 105px)); position: absolute; z-index: 80; top: calc(100% + 13px); right: -66px; overflow: hidden; border: 1px solid #e4e3ef; border-radius: 22px; background: rgba(255,255,255,.98); box-shadow: 0 28px 80px rgba(22,20,65,.22); backdrop-filter: blur(18px); }
.notification-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #6558f5, #00c6a0); }
.notification-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 22px 21px 16px; }
.notification-panel-head span { display: block; margin-bottom: 2px; color: #69647e; font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.notification-panel-head h2 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.mark-all-read { border: 0; padding: 5px 0; color: #6255dd; background: transparent; font-size: 12px; font-weight: 800; }
.mark-all-read:hover { text-decoration: underline; }
.notification-list { max-height: 460px; display: grid; gap: 2px; overflow-y: auto; padding: 0 9px 9px; }
.notification-item { width: 100%; position: relative; display: grid; grid-template-columns: 43px minmax(0,1fr) 8px; align-items: start; gap: 11px; border: 0; border-radius: 15px; padding: 13px 12px; color: var(--ink); background: #f6f5ff; text-align: left; transition: background .15s ease, transform .15s ease; }
.notification-item:hover { background: #efedff; transform: translateX(-2px); }
.notification-item.read { background: #fff; }
.notification-item-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #6e60f7, #5548d4); font-size: 12px; font-weight: 900; box-shadow: 0 7px 15px rgba(84,70,211,.17); }
.notification-item-icon.success { background: linear-gradient(145deg, #00bd96, #008d75); }
.notification-item-icon.warning { background: linear-gradient(145deg, #ffbe3d, #ed8315); }
.notification-item-icon.danger { background: linear-gradient(145deg, #ff7768, #e64658); }
.notification-item-icon.document { background: linear-gradient(145deg, #2284e5, #5b55dc); font-size: 10px; }
.notification-item-copy { min-width: 0; display: grid; gap: 2px; }
.notification-item-copy strong { font-size: 14px; line-height: 1.3; }
.notification-item-copy > span { color: #696b7b; font-size: 12px; line-height: 1.42; }
.notification-item-copy small { margin-top: 3px; color: #5d51d2; font-size: 11px; font-weight: 800; }
.notification-unread-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #685af3; box-shadow: 0 0 0 4px rgba(104,90,243,.1); }
.notification-item.read .notification-unread-dot { visibility: hidden; }
.notification-documents-link { width: calc(100% - 18px); display: flex; align-items: center; gap: 11px; margin: 0 9px 9px; border: 1px solid #d9d7f1; border-radius: 15px; padding: 12px; color: #373451; background: linear-gradient(110deg, #f2f0ff, #e9faf6); text-align: left; }
.notification-documents-link:hover { border-color: #afa8ff; }
.notification-documents-link strong, .notification-documents-link small { display: block; }
.notification-documents-link strong { font-size: 13px; }
.notification-documents-link small { margin-top: 2px; color: #77798b; font-size: 11px; }
.notification-documents-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #6658f5, #00aa89); font-size: 17px; font-weight: 900; }
.notification-empty { display: grid; justify-items: center; gap: 3px; padding: 34px 20px; color: #858696; text-align: center; }
.notification-empty > span { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 50%; color: #00876e; background: #e0faf3; font-weight: 900; }
.notification-empty strong { color: var(--ink); font-size: 14px; }
.notification-empty small { font-size: 12px; }

.documents-dialog { width: min(650px, calc(100vw - 28px)); }
.documents-intro { display: flex; gap: 13px; align-items: flex-start; margin: 23px 0 16px; padding: 16px; border-radius: 16px; color: #31304b; background: linear-gradient(110deg, #f0eeff, #e6faf5); }
.documents-lock { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #6558f5, #00a888); font-size: 13px; }
.documents-intro strong, .documents-intro p { display: block; margin: 0; }
.documents-intro strong { font-size: 14px; }
.documents-intro p { margin-top: 4px; color: #6f7182; font-size: 13px; line-height: 1.45; }
.document-demo-card { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px; border: 1px solid #e2e1ee; border-radius: 16px; background: #fff; }
.document-file-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #6772e5, #4d45c8); font-size: 11px; font-weight: 900; }
.document-demo-card strong, .document-demo-card div > span { display: block; }
.document-demo-card strong { font-size: 14px; }
.document-demo-card div > span { margin-top: 3px; color: #77798b; font-size: 12px; }
.document-ready { padding: 6px 9px; border-radius: 99px; color: #007a63; background: #dff9f2; font-size: 11px; font-weight: 850; }
.document-upload-preview { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 12px; padding: 15px; border: 1px dashed #cfcde0; border-radius: 16px; background: #fafafe; }
.document-upload-preview strong, .document-upload-preview span { display: block; }
.document-upload-preview strong { font-size: 14px; }
.document-upload-preview span { margin-top: 3px; color: #7b7d8e; font-size: 12px; }
.documents-disclaimer { margin: 14px 0 18px; color: #858696; font-size: 11px; line-height: 1.45; }
.attention-pulse td { animation: rowPulse .72s ease-in-out 2; }
@keyframes rowPulse { 0%, 100% { background: #f4f2ff; } 50% { background: #dcd7ff; box-shadow: inset 0 0 0 1px #7566fa; } }

@media (max-width: 1050px) {
  .pulse-hero { grid-template-columns: 1fr 240px; min-height: 245px; padding: 30px; }
  .hero-progress-wrap { padding: 16px; }
  .progress-ring { width: 116px; }
  .progress-ring::before { width: 94px; }
  .employee-self-view .employee-card-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
}

@media (max-width: 720px) {
  .content { padding-top: 18px; }
  .pulse-hero { min-height: 0; grid-template-columns: 1fr; gap: 22px; margin-inline: -2px; padding: 25px 21px; border-radius: 23px; }
  body[data-role="salarie"] .pulse-hero { grid-template-columns: 1fr; gap: 20px; padding: 25px 21px; }
  .pulse-hero h2 { font-size: 34px; }
  .pulse-hero p { margin: 12px 0 20px; font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button.hero-primary, .button.hero-secondary, .button.hero-link { width: 100%; }
  .hero-progress-wrap { width: 100%; grid-template-columns: auto 1fr; justify-items: start; padding: 14px; }
  body[data-role="salarie"] .hero-progress-wrap { width: 100%; grid-template-columns: auto 1fr; justify-items: start; }
  body[data-role="salarie"] .hero-confirm { grid-column: 1 / -1; }
  .progress-ring { width: 90px; }
  .progress-ring::before { width: 72px; }
  .progress-ring strong { font-size: 21px; }
  .progress-ring span { font-size: 9px; }
  .metric-grid { gap: 10px; }
  .metric { min-height: 116px; display: block; padding: 14px; }
  .metric-icon { width: 32px; height: 32px; margin-bottom: 9px; }
  .metric-copy strong { font-size: 23px; }
  body[data-role="salarie"] .employee-switcher.employee-self-view { padding: 15px; }
  body[data-role="salarie"] .employee-switcher.employee-self-view .employee-switcher-top { grid-template-columns: 1fr; gap: 11px; padding: 0 1px 14px; }
  body[data-role="salarie"] .employee-switcher.employee-self-view .employee-switcher-copy { display: block; }
  body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; overflow: visible; }
  body[data-role="salarie"] .employee-switcher.employee-self-view .employee-card { min-width: 0; min-height: 64px; scroll-snap-align: none; }
  body[data-role="salarie"] .employee-detail-bar { align-items: stretch; flex-direction: column; }
  body[data-role="salarie"] .employee-detail-bar .button { width: 100%; }
  .timesheet-panel .table-wrap { overflow: visible; padding: 2px 10px 10px; }
  .timesheet { min-width: 0; display: block; border-spacing: 0; }
  .timesheet thead { display: none; }
  .timesheet tbody { display: grid; gap: 13px; }
  .timesheet tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 10px; padding: 14px; border: 1px solid #e8e7f1; border-radius: 17px; background: #fff; box-shadow: 0 8px 20px rgba(38,33,82,.05); }
  .timesheet tbody tr.today-row { border-color: #a69eff; background: #f8f7ff; box-shadow: 0 0 0 3px rgba(101,88,245,.09); }
  .timesheet tbody td, .timesheet tbody td:first-child, .timesheet tbody td:last-child { min-width: 0; display: grid; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .timesheet tbody td:not(.day)::before { content: attr(data-label); color: #797b8d; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .045em; }
  .timesheet tbody .day { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; padding-bottom: 9px; border-bottom: 1px solid #ececf3; }
  .timesheet tbody .day > span { margin-right: auto; }
  .timesheet tbody .day-state { margin: 0; }
  .timesheet .hours-value { justify-content: start; text-align: left; font-size: 17px; }
  .time-input, .event-select, .duration-select { width: 100%; min-height: 46px; }
  .panel-footer .button { width: 100%; }
  .dialog form { padding: 21px; }
  .dialog-head { margin: -21px -21px 0; padding: 20px 21px; }
  .notification-panel { position: fixed; top: 76px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 90px); }
  .notification-panel-head { padding: 19px 17px 14px; }
  .notification-list { max-height: calc(100vh - 245px); }
  .notification-button { width: 42px; height: 42px; }
  .document-demo-card { grid-template-columns: 44px minmax(0,1fr); }
  .document-ready { grid-column: 2; justify-self: start; }
  .document-upload-preview { align-items: stretch; flex-direction: column; }
  .document-upload-preview .button { width: 100%; }
  .close-banner { align-items: stretch; flex-direction: column; gap: 13px; }
  .close-banner .button { width: 100%; }
  .closing-checklist-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .closing-checklist-grid { grid-template-columns: 1fr; }
  .pdf-preview-frame { height: 54vh; }
  .pdf-preview-actions { align-items: stretch; flex-direction: column-reverse; }
  .pdf-preview-actions .button { width: 100%; }
}

@media (max-width: 480px) {
  .demo-login-screen { padding: 14px; }
  .demo-login-card { padding: 26px 21px; border-radius: 23px; }
  .demo-login-brand { margin-bottom: 23px; }
  .topbar { gap: 8px; }
  .role-switcher { margin-left: auto; padding-left: 8px; }
  .role-switcher select { max-width: 142px; }
  .user-chip { display: none; }
  .demo-logout-button { width: 38px; padding: 0; overflow: hidden; color: transparent; }
  .demo-logout-button::before { content: "↪"; display: grid; place-items: center; color: #4e4c63; font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, #view-pointage, #view-validation, .close-banner, dialog { display: none !important; }
  .app-shell { display: block; }
  .content { padding: 0; max-width: none; }
  #view-prepaie { display: block !important; }
  .workspace-head { margin: 0 0 14px; }
  .workspace-head p, .section-kicker { display: none; }
  .workspace-head h2 { font-size: 21px; }
  .panel { box-shadow: none; border-color: #aaa; }
  .payroll-table { min-width: 0; font-size: 10px; }
  th, td { padding: 7px 6px; }
}
