@charset "UTF-8";

:root {
  --red: #be263b;
  --red-dark: #a91f32;
  --ink: #233044;
  --muted: #68778a;
  --border: #dce5ef;
  --canvas: #f2f6fb;
  --shadow: 0 8px 28px rgba(34, 58, 88, .055);
  --radius: 12px;
  --blue: #1466c3;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}

body { background: var(--canvas); }
a { color: var(--blue); }
button, .button { min-height: 50px; padding: 12px 21px; border-radius: 7px; font-size: 15px; background: var(--blue); font-weight: 650; }
button:hover, .button:hover { background: #0b56ab; }
.secondary { background: #fff; color: #33435b; border-color: #cbd8e8; }
.secondary:hover { background: #eaf2fb; }
.text-button { background: none; color: var(--blue); }
.text-button:hover { background: none; }
input, select, textarea { min-height: 52px; padding: 13px 15px; margin-top: 9px; border-color: #cbd8e8; border-radius: 7px; font-size: 16px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #68a9f4a6; }
label { color: #33435b; font-size: 15px; font-weight: 650; }
form > label { margin-bottom: 22px; }
h1 { font-size: 34px; line-height: 1.2; letter-spacing: -.8px; font-weight: 750; }
h2 { font-size: 22px; letter-spacing: -.35px; margin-bottom: 22px; font-weight: 700; }
h3 { font-size: 16px; }
small { font-size: 13px; }
.muted { color: var(--muted); font-size: 14px; }
.brand-logo { display: block; width: 100%; max-width: 240px; max-height: none; height: auto; object-fit: contain; }
.brand-logo-light { display: none; }

.sidebar { width: 290px; padding: 0 15px 23px; border: 0; overflow: hidden; background: linear-gradient(150deg, #a70818 0%, #bd1828 42%, #70000b 100%); color: white; }
.sidebar::before,.sidebar::after{content:"";position:absolute;inset:auto -120px 22% 35px;height:230px;background:#e02a36aa;transform:skewY(-42deg);pointer-events:none}.sidebar::after{inset:55% -90px auto -50px;background:#65000c99;transform:skewY(44deg)}
.sidebar .brand { position:relative;z-index:2;height:82px;min-height:82px;margin:0 -15px;padding:6px 24px;border:0;box-shadow:none;background:white; }
.sidebar .brand-logo { display: block; max-width: 245px; }
.sidebar .brand-logo-light { display: none; }
.workspace-label, .nav-label { position:relative;z-index:2;color: #ffd5d8; font-size: 11px; letter-spacing: 1.7px; padding-left: 17px; padding-right: 17px; }
.workspace-label { padding-top: 9px; padding-bottom: 19px; }
.nav-label { padding-top: 27px; padding-bottom: 10px; }
.sidebar nav { position:relative;z-index:2;gap: 4px; }
.sidebar nav > a { min-height: 51px; padding: 12px 16px; border-radius: 9px; color: white; font-size: 15px; font-weight: 500; gap: 15px; }
.sidebar nav > a:hover { background: #ffffff16; color: white; }
.sidebar nav > a[aria-current] { background: linear-gradient(90deg, #f42c38, #d81d2c); color: white; font-weight: 680; box-shadow: 0 6px 18px #49000b66; }
.sidebar .icon { width: 21px; height: 21px; }
.nav-count { background: #d72c48; font-size: 12px; }
.sidebar-bottom { position:relative;z-index:2;padding: 25px 16px 4px; color: white; font-size: 12px; }
.sidebar-bottom small { color: #ffe3e5; font-size: 11px; }

.shell { margin-left: 290px; }
.topbar { position:relative;isolation:isolate;overflow:hidden;height:82px;padding:0 34px;border-color:#8c0714;background:linear-gradient(150deg,#a70818 0%,#bd1828 52%,#70000b 100%);color:white; }
.topbar::before,.topbar::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:310px;height:150px;right:30%;top:-105px;background:#e02a3655;transform:rotate(-39deg)}
.topbar::after{right:-70px;top:30px;background:#65000c80;transform:rotate(38deg)}
.topbar .breadcrumb,.topbar .breadcrumb strong,.topbar .bell,.topbar .profile,.topbar .profile small,.topbar .logout button{color:white}
.topbar .breadcrumb{color:#ffe5e8}.topbar .breadcrumb span{color:#ffb7bf}.topbar .breadcrumb strong{font-weight:650}.topbar .bell b{background:#f52b3a;border-color:#8d0614}.topbar .avatar{background:white;color:#a70818}.topbar .mobile-menu{background:#ffffff18;color:white;border-color:#ffffff66}.topbar .mobile-menu:hover{background:#ffffff2b}
.acknowledgement-required{border-color:#efc1c6;background:#fff3f4;color:#86101c}
.breadcrumb { font-size: 14px; color: var(--muted); }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.topbar-right { gap: 17px; }
.bell { color: #586b80; }
.bell b { background: #d93651; font-size: 10px; }
.avatar { width: 42px; height: 42px; background: #e8f0fa; color: #1b62aa; font-size: 14px; }
.avatar.small { width: 36px; height: 36px; font-size: 12px; }
.profile { font-size: 14px; }
.profile small { font-size: 12px; }
.logout button { font-size: 13px; }
main#content { width: 100%; max-width: none; padding: 38px 38px 65px; }
.page-heading { margin: 3px 0 27px; }
.eyebrow { color: var(--red); font-size: 11px; letter-spacing: 1.8px; }
.subtitle { color: var(--muted); font-size: 16px; }
.date-label { padding: 13px 17px; font-size: 13px; border-color: var(--border); }

.metrics { gap: 18px; margin-bottom: 26px; }
.metric { padding: 26px; min-height: 165px; border-color: var(--border); }
.metric-top { color: #53667c; font-size: 15px; }
.metric-top .icon { width: 21px; height: 21px; }
.metric > strong { font-size: 34px; margin: 14px 0 9px; font-weight: 750; }
.metric > small { font-size: 13px; }
.dashboard-grid { gap: 24px; }
.card { padding: 29px; border-color: var(--border); box-shadow: var(--shadow); }
.section-heading { margin-bottom: 22px; }
.section-heading > a { font-size: 14px; font-weight: 650; }
.tag { font-size: 12px; padding: 7px 10px; border-color: var(--border); }
.clock-state { font-size: 15px; margin-top: 31px; }
.live-clock { font-size: 60px; font-weight: 670; }
.clock-caption { font-size: 14px; margin-bottom: 27px; }
.clock-history { width: 100%; margin-top: 12px; }
.scheduled-breaks h3 { font-size: 14px; }
.break-slot { font-size: 14px; }
.break-slot small, .break-slot button, .clock-card details { font-size: 13px; }
.activity-item strong { font-size: 15px; }
.activity-item p { font-size: 13px; }
.activity-item small { font-size: 12px; }
.status { font-size: 13px; padding: 7px 11px; }
.hint { font-size: 14px; padding: 18px; background: #e7f1fd; color: #275a91; }
.hint:hover { background: #dcecff; }
.empty { padding: 45px 20px; }
.empty h3 { font-size: 17px; }
.empty p { font-size: 14px; }
.empty-check { width: 48px; height: 48px; font-size: 21px; }
.main-footer { font-size: 12px; padding: 5px 38px 25px; }

table { font-size: 14px; }
th { font-size: 13px; padding: 16px; color: #62758a; }
td { padding: 17px 16px; color: #43536a; }
td strong { font-size: 14px; }
td > a, .person-cell small { font-size: 13px; }
.form-grid { gap: 20px; }
.admin-entry-grid,.correction-grid,.rules-grid,.year-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:26px}.admin-entry-grid .card,.correction-grid .card,.rules-grid .card,.year-grid .card{margin:0}.compact-form{display:grid;gap:12px}.compact-form>label{margin:0}.year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.year-month h2{margin-bottom:12px}.year-person{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--border);font-size:13px}.year-person span{color:var(--muted);white-space:nowrap}.rule-card p{line-height:1.65}.report-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}.report-form>label{margin:0}.device-readonly{margin-top:20px}
.leave-review{display:grid;grid-template-columns:minmax(300px,.75fr) minmax(520px,1.25fr);gap:22px;margin:22px 0;padding-top:22px;border-top:1px solid var(--border)}.leave-review-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.leave-stat{padding:18px;border:1px solid var(--border);border-radius:9px;background:#f5f9fd}.leave-stat.after{background:#edf9f0}.leave-stat small{display:block;color:var(--muted);margin-bottom:8px}.leave-stat strong{font-size:20px}.mini-team-calendar{min-width:0;padding:15px;border-radius:10px;background:#f5f9fd}.mini-team-calendar .section-heading{margin-bottom:10px}.mini-matrix{min-width:1050px;font-size:11px}.mini-matrix th,.mini-matrix td{min-width:27px;width:27px;height:30px;padding:4px;text-align:center}.mini-matrix th:first-child{position:sticky;left:0;z-index:2;width:135px;min-width:135px;text-align:left;background:#f5f9fd}.mini-matrix td.leave{background:#bcebc5;color:#17652a}.mini-matrix td.request-current{background:#2375cc;color:white}.document-review-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:14px}.document-review-form>label{min-width:210px;margin:0}.audit-filter-form{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;align-items:end}.audit-filter-form>label{margin:0}.audit-downloads{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.audit-downloads form{margin:0}
.filter-bar, .inline-form { gap: 16px; }
.filter-bar label, .inline-form label { min-width: 195px; }
.notice { font-size: 15px; padding: 17px 19px; }
.balance-strip small { font-size: 13px; }
.balance-strip strong { font-size: 29px; }
.balance-strip strong span { font-size: 13px; }
.request-mini strong, .task-item, .employee-row summary, .audit-entry summary { font-size: 15px; }
.request-mini > p, .request-mini details, .task-item button, .task-item a, .employee-row > p, .audit-entry summary > span { font-size: 14px; }
.detail-list, .document-item { font-size: 15px; }
.detail-list { grid-template-columns: 120px 1fr; }
.audit-entry pre { font-size: 13px; }
.check input { width: 19px; min-height: 19px; accent-color: var(--blue); }

.calendar-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 18px; }
.month-switch { display: inline-flex; align-items: center; gap: 8px; margin-right: 24px; }
.month-switch strong { display: inline-flex; min-width: 235px; min-height: 50px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid #cbd8e8; border-radius: 7px; background: white; font-size: 20px; font-weight: 700; }
.month-arrow { display: inline-flex; width: 50px; height: 50px; align-items: center; justify-content: center; border: 1px solid #cbd8e8; border-radius: 7px; background: white; color: #2a3b50; font-size: 33px; line-height: 1; }
.month-arrow:hover { background: #eaf2fb; text-decoration: none; }
.calendar-controls .add-entry { margin-left: auto; }
.legend { gap: 13px 22px; padding: 0; font-size: 13px; color: #34445b; }
.legend-top { margin: 8px 0 23px; }
.legend span { gap: 8px; font-weight: 550; }
.legend i { width: 20px; height: 20px; border-radius: 4px; }
.calendar-card { padding: 0; border-radius: 6px; }
.calendar-scroll { max-height: min(75vh, 850px); }
.matrix { min-width: 100%; table-layout: fixed; }
.matrix th, .matrix td { width: 43px; min-width: 43px; height: 49px; border-color: #d6e0eb; font-size: 13px; }
.matrix thead th { background: #edf4fb; font-size: 13px; font-weight: 750; color: #27374c; }
.matrix th:first-child { width: 204px; min-width: 204px; padding: 0 16px; color: #2b3d54; font-size: 14px; font-weight: 650; }
.matrix thead th:first-child { background: #eaf2fa; }
.matrix th small { font-size: 12px; margin-top: 3px; color: #53677e; }
.matrix td a, .cell-button { font-size: 13px; font-weight: 700; }
.matrix td{position:relative}.sick-proof{position:absolute;top:2px;right:3px;display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;border-radius:50%;background:#24a148;color:white;font-size:10px;line-height:1;box-shadow:0 1px 3px #0002}.annual-calendar .calendar-scroll{max-height:min(78vh,900px);overflow:auto}.annual-matrix{width:max-content;min-width:100%;table-layout:fixed}.annual-matrix th,.annual-matrix td{width:38px;min-width:38px}.annual-matrix th:first-child{position:sticky;left:0;z-index:4;background:#edf4fb;width:190px;min-width:190px}.annual-matrix tbody th:first-child{background:white}.annual-matrix thead{position:sticky;top:0;z-index:3}.annual-matrix thead tr:first-child th{background:#eaf2fa;color:#1466c3}.annual-matrix thead tr:first-child th:first-child{z-index:6;color:#27374c}.year-label{display:inline-flex;min-height:50px;align-items:center;padding:0 22px;border:1px solid #cbd8e8;border-radius:7px;background:white;font-size:20px}
.matrix .today { box-shadow: inset 0 3px var(--blue); }
.matrix td.leave, .legend i.leave { background: #8ae697; color: #145923; }
.matrix td.sick, .legend i.sick { background: #ff8990; color: #851d29; }
.matrix td.unpaid, .legend i.unpaid { background: #ffe17e; color: #7e5e07; }
.matrix td.released, .legend i.released { background: #9bd3ff; color: #15538a; }
.matrix td.closure, .matrix td.bridge, .legend i.closure, .legend i.bridge { background: #bcb7dc; color: #453b73; }
.matrix td.holiday, .legend i.holiday { background: #d2d9e2; color: #4b5d71; }
.matrix td.weekend, .legend i.weekend { background: #e7eff7; color: #7b91a8; }
.matrix td.present, .legend i.present { background: #def3e4; color: #31834f; }
.calendar-hint { margin: 19px 0 0; padding: 17px 20px; border-radius: 7px; background: #deedff; color: #255b95; font-size: 14px; }

.auth { padding: 30px 20px; background: radial-gradient(ellipse at 16% 2%, #e6f0fb 0, transparent 42%), radial-gradient(ellipse at 95% 90%, #e8f0fa 0, transparent 48%), #f6f9fd; }
.auth-card { max-width: 540px; padding: 48px 52px; border-color: #d8e4f0; border-radius: 17px; box-shadow: 0 24px 75px #25426518; }
.auth-card .brand { justify-content: center; margin-bottom: 34px; min-height: 100px; }
.auth-card .brand-logo { max-width: 340px; }
.auth-card .brand-logo-light { display: none; }
.auth-card h1 { font-size: 31px; }
.auth-card p { font-size: 16px; }
.auth-card form > button { min-height: 56px; margin-top: 14px; font-size: 17px; }
.auth-card .quiet { font-size: 14px; margin-top: 25px; }
.auth-footer { display: none; }
.setup { max-width: 850px; }
.setup legend { font-size: 15px; }
dialog { max-width: 530px; padding: 31px; }
.break-timer strong { font-size: 36px; }
.completed-time { font-size: 15px; }
.completed-time strong { font-size: 30px; }

@media (max-width: 1250px) {
  .sidebar { width: 255px; padding: 0 12px 19px; }
  .sidebar .brand { margin:0 -12px; }
  .shell { margin-left: 255px; }
  .sidebar nav > a { font-size: 14px; padding: 10px 13px; }
  main#content { padding: 31px 27px 55px; }
  .metric { padding: 21px; }
  .metric > strong { font-size: 29px; }
  .card { padding: 24px; }
  .calendar-card { padding: 0; }
}
@media (max-width: 950px) {
  .sidebar { width: 290px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: translateX(0); box-shadow: 8px 0 35px #0003; }
  .shell { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .breadcrumb { display: none; }
  .topbar { height: 70px; padding: 0 23px; }
  .topbar-right { margin-left: auto; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .profile { display: none; }
  .year-grid,.report-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .leave-review{grid-template-columns:1fr}.audit-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 700px) {
  main#content { padding: 25px 16px 48px; }
  h1 { font-size: 29px; }
  h2 { font-size: 19px; }
  .subtitle { font-size: 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .card { padding: 21px; }
  .calendar-card { padding: 0; }
  .section-heading h2 { font-size: 19px; }
  .section-heading > a { font-size: 13px; }
  .date-label { display: none; }
  .form-grid, .decision-form { grid-template-columns: 1fr; }
  .form-grid > .wide { grid-column: auto; }
  .legend-top { gap: 10px 15px; }
  .month-switch { margin-right: 0; }
  .month-switch strong { min-width: 183px; font-size: 17px; }
  .calendar-controls .add-entry { margin-left: 0; }
  .matrix th:first-child { width: 154px; min-width: 154px; padding: 0 10px; }
  .auth-card { padding: 37px 28px; }
  .auth-card .brand-logo { max-width: 300px; }
  .balance-strip { grid-template-columns: 1fr 1fr; }
  .main-footer { padding: 10px 16px 22px; }
  .admin-entry-grid,.correction-grid,.rules-grid,.year-grid,.report-form{grid-template-columns:1fr}
  .leave-review-summary,.audit-filter-form{grid-template-columns:1fr}
}
@media (max-width: 450px) {
  .metrics { gap: 10px; }
  .metric { min-height: 150px; padding: 16px; }
  .metric-top { font-size: 13px; }
  .metric > strong { font-size: 26px; }
  .metric > small { font-size: 12px; }
  .auth-card { padding: 32px 22px; }
  .auth-card .brand-logo { max-width: 270px; }
  .month-switch strong { min-width: 150px; }
}
