/* DRS Japan Staff App — brand: Cadmium Red #E11E23, Granite Gray #5A5A5A, Chinese Black #151515 */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f6f6f7; --fg: #151515; --muted: #6b6b70; --border: #e6e6e9;
  --primary: #e11e23; --primary-fg: #fff; --primary-soft: #fdecec;
  --success: #15803d; --success-soft: #e9f7ee; --warning: #c2410c; --warning-soft: #fff3e6;
  --danger: #dc2626; --danger-soft: #fdecec; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 8px rgba(0,0,0,.03);
  --radius: 14px;
}
[data-theme="dark"] {
  --bg: #0f0f10; --surface: #18181a; --surface-2: #222225; --fg: #f2f2f3; --muted: #a0a0a7; --border: #2c2c30;
  --primary: #ff3b3f; --primary-soft: #3a1416; --success: #4ade80; --success-soft: #12301d; --warning: #fb923c; --warning-soft: #3a2412;
  --danger: #f87171; --danger-soft: #3a1416; --shadow: none;
}
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #0f0f10; --surface: #18181a; --surface-2: #222225; --fg: #f2f2f3; --muted: #a0a0a7; --border: #2c2c30;
    --primary: #ff3b3f; --primary-soft: #3a1416; --success: #4ade80; --success-soft: #12301d; --warning: #fb923c; --warning-soft: #3a2412;
    --danger: #f87171; --danger-soft: #3a1416; --shadow: none;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 14px/1.5 "Inter", "Segoe UI", system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 26px; line-height: 1.2; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h1::after { content: ""; display: block; width: 32px; height: 3px; background: var(--primary); border-radius: 2px; margin-top: 8px; }
h2 { font-size: 16px; margin: 24px 0 10px; }
h3 { font-size: 16px; margin: 0 0 12px; }
p { margin: 4px 0; }
.muted { color: var(--muted); } .small { font-size: 12px; } .red { color: var(--primary); } .danger { color: var(--danger); }
.pre { white-space: pre-wrap; } .nowrap { white-space: nowrap; }
.icon { flex: none; }

/* ── Shell */
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; border-right: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto; z-index: 5; }
.brand img { height: 30px; width: auto; display: block; margin: 4px 8px 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--fg); position: relative; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--primary); }
.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 8px; text-decoration: none; padding: 4px; }
.me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.me-text strong, .me-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: var(--muted); font-size: 11px; }
.role { font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.prefs { display: flex; flex-direction: column; gap: 8px; }
.prefs-row { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; background: var(--surface); }
.seg button { border: 0; background: transparent; color: var(--fg); border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; }
.seg button.on { background: var(--primary); color: var(--primary-fg); font-weight: 600; }
.seg-icons button { padding: 5px 8px; min-width: 30px; justify-content: center; }
.main { margin-left: 220px; padding: 28px 32px 48px; max-width: 1060px; }
.topbar, .bottomnav { display: none; }

/* ── Building blocks */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-head p { margin-top: 10px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.sticky { position: sticky; top: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.narrow { max-width: 560px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--fg); }
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { filter: brightness(.95); background: var(--primary); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.link { border: 0; background: none; color: var(--primary); font: inherit; cursor: pointer; padding: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--muted); border-color: var(--border); }
.chip { display: inline-block; border: 1px solid var(--border); background: var(--surface-2); border-radius: 8px; padding: 1px 8px; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.flash { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.flash-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.empty { text-align: center; padding: 36px 18px; color: var(--muted); }
.empty h1::after { margin: 8px auto 0; }
.empty-small { text-align: center; padding: 12px 0; }
.big { font-size: 22px; font-weight: 800; }

/* ── Trips */
.trip-card { padding: 0; }
.trip-top { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.trip-title { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.trip-title:hover { color: var(--primary); }
.amt-big { font-weight: 800; font-size: 17px; white-space: nowrap; }
.trip-foot { border-top: 1px solid var(--border); padding: 8px 12px; display: flex; justify-content: flex-end; }
.steps { list-style: none; display: flex; padding: 0; margin: 4px 0; align-items: flex-start; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; gap: 6px; font-size: 12px; color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--border); }
.step.on:not(:last-child)::after { background: var(--success); }
.dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.step.on .dot { background: var(--success-soft); color: var(--success); border-color: transparent; }
.step.on .step-label { color: var(--fg); }
.step.bad .dot { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.step.bad .step-label { color: var(--danger); }
.steps-compact { justify-content: flex-start; gap: 0; max-width: 200px; margin-top: 8px; }
.steps-compact .step { flex: 0 0 50px; align-items: flex-start; }
.steps-compact .dot { width: 20px; height: 20px; }
.steps-compact .step:not(:last-child)::after { top: 10px; left: 22px; right: 4px; }
.alert-danger { display: flex; gap: 10px; background: var(--danger-soft); border-color: transparent; color: var(--fg); }
.alert-danger > .icon { color: var(--danger); margin-top: 2px; }
.alert-danger strong { color: var(--fg); }
.alert-danger .btn { margin-top: 8px; background: var(--surface); }
.alert-muted { display: flex; gap: 10px; background: var(--surface-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 14px 0 0; }
.facts div.wide { grid-column: 1 / -1; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.perdiem h3 { margin-bottom: 14px; }
.days { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.days li { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.days li .badge { justify-self: start; }
.days .amt { font-variant-numeric: tabular-nums; }
.days-compact { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; margin: 0 18px 12px; gap: 6px; font-size: 13px; }
.total-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.total { color: var(--primary); font-size: 22px; }
.history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.history li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.decide { display: flex; flex-direction: column; gap: 10px; padding: 0 18px 16px; }
.card .decide { padding: 0 18px 16px; }
.stack > .decide { padding: 0; }
.reject-form { display: flex; gap: 8px; align-items: flex-start; }
.reject-form textarea { flex: 1; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.void summary { list-style: none; }
.void summary::-webkit-details-marker { display: none; }
.void[open] form { margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.approval { padding: 0; }
.approval > p { padding: 0 18px 12px; }

/* ── Forms */
.fields { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, label { font-weight: 600; font-size: 13px; }
.req { color: var(--primary); }
input, select, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; width: 100%; min-height: 40px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }
.notice { display: flex; gap: 10px; }
.notice p { font-size: 13px; color: var(--muted); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 4px; }
.switch-row small { font-weight: 400; }
.switch { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; min-height: 0; padding: 0; border-radius: 999px; background: var(--border); position: relative; cursor: pointer; flex: none; border: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 150px; }

/* ── Tables */
.table-wrap { padding: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tbody tr:hover { background: var(--surface-2); }
td a { font-weight: 600; text-decoration: none; }
td a:hover { color: var(--primary); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot td { font-weight: 600; border-bottom: 0; }

/* ── Home / earnings */
.module { text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.module:hover { border-color: var(--primary); }
.module h3 { margin: 6px 0 0; }
.module.off { opacity: .6; }
.mod-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.module .chip { align-self: flex-start; }
.kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin: 8px 0 8px; }
.kpi { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.kpi small { text-transform: uppercase; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.kpi strong { font-size: 24px; font-weight: 800; }
.kpis-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.bar { width: 100%; height: 10px; border-radius: 999px; overflow: hidden; appearance: none; -webkit-appearance: none; border: 0; background: var(--surface-2); display: block; margin-bottom: 10px; }
.bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.bar::-webkit-progress-value { background: var(--primary); border-radius: 999px; }
.bar::-moz-progress-bar { background: var(--primary); border-radius: 999px; }
.leave-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mt { margin-top: 18px; }
.kpi-red { background: var(--primary); border-color: var(--primary); color: #fff; }
.kpi-red small { color: rgba(255,255,255,.85); }
.month-head { display: flex; justify-content: space-between; font-size: 15px; }
.month-trips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.month-trips li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.month-trips a { text-decoration: none; font-weight: 600; }
.amt { font-variant-numeric: tabular-nums; text-align: right; }
.menu-list { padding: 6px; display: flex; flex-direction: column; margin-bottom: 14px; }
.menu-list a { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px; text-decoration: none; border-radius: 10px; }
.menu-list a:hover { background: var(--surface-2); }

/* ── Login */
.bare { min-height: 100vh; background: var(--surface-2); }
.bare-top { display: flex; justify-content: flex-end; padding: 14px; }
.bare-main { display: grid; place-items: center; padding: 20px; min-height: calc(100vh - 80px); }
.login { width: 100%; max-width: 400px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.login-logo { height: 34px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.login h1 { font-size: 22px; }
.code-input { font-size: 24px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.login-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 13px; }
.login-links a { color: var(--muted); }

/* ── Mobile */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 5; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .topbar .brand img { height: 24px; margin: 0; }
  .main { margin: 0; padding: 18px 14px 96px; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-decoration: none; color: var(--muted); padding: 4px 8px; border-radius: 10px; min-width: 56px; }
  .bottomnav a.active { color: var(--primary); }
  .bottomnav a.primary { color: var(--primary-fg); background: var(--primary); }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .grid3, .kpis, .two, .facts { grid-template-columns: 1fr; }
  .kpis-4 { grid-template-columns: 1fr 1fr; }
  .leave-row { flex-direction: column; }
  h1 { font-size: 22px; }
  .reject-form { flex-direction: column; align-items: stretch; }
  .filters select, .filters input { flex: 1; min-width: 0; }
}

/* ── Stage 3/4 */
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav strong { min-width: 120px; text-align: center; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.kpis-2 { grid-template-columns: 1.3fr 1fr; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.cal-h.sat { color: var(--warning); } .cal-h.sun { color: var(--danger); }
.cal-c { min-height: 84px; border: 1px solid var(--border); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--surface); }
a.cal-c:hover { border-color: var(--primary); }
.cal-c.cls-legal, .sw.cls-legal { background: var(--danger-soft); }
.cal-c.cls-company, .sw.cls-company { background: var(--warning-soft); }
.cal-top { display: flex; justify-content: space-between; align-items: center; }
.cal-d { font-weight: 700; font-size: 12px; }
.cal-t { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-n { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px; }
.dot-h { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); display: inline-block; }
.mini { font-size: 9px; border-radius: 6px; padding: 1px 5px; background: var(--surface-2); border: 1px solid var(--border); }
.mini-brand { background: var(--primary); color: #fff; border-color: transparent; }
.mini-warn { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--border); }
.radios { display: flex; flex-wrap: wrap; gap: 6px; }
.radio { cursor: pointer; }
.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio span { display: inline-block; border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; font-weight: 500; }
.radio input:checked + span { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.radio input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.calc { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.calc dt { color: var(--muted); } .calc dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 90px; gap: 10px; align-items: center; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-svg { width: 100%; height: 14px; background: var(--surface-2); border-radius: 4px; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.seg-approved { fill: var(--success); background: var(--success); }
.seg-paid { fill: #2563eb; background: #2563eb; }
.seg-pending { fill: var(--warning); background: var(--warning); }
.payout { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.payout-r { display: flex; align-items: center; gap: 12px; }
.inline { display: inline; }
.lookup-list { list-style: none; padding: 0; margin: 0 0 12px; }
.lookup-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.add-row { display: flex; gap: 8px; }
/* print pages */
.print-body { background: var(--surface-2); }
.print-bar { display: flex; justify-content: flex-end; padding: 12px; max-width: 210mm; margin: 0 auto; }
.sheet { background: #fff; color: #151515; max-width: 210mm; margin: 0 auto 24px; padding: 18mm 16mm; box-shadow: var(--shadow); }
.sheet-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.sheet-head img { height: 28px; }
.sheet h1 { font-size: 20px; } .sheet h2 { font-size: 14px; margin-top: 18px; } .sheet h3 { font-size: 13px; margin: 14px 0 6px; }
.sheet-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sheet-table th, .sheet-table td { padding: 6px 8px; border-bottom: 1px solid #ddd; }
.sheet-table th { background: #f4f4f5; color: #555; }
.sheet-total { display: flex; justify-content: space-between; border-top: 2px solid #151515; margin-top: 10px; padding-top: 8px; font-size: 14px; }
.sheet-total strong { color: #E11E23; }
.sheet .facts { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.sheet-block { break-inside: avoid; }
@media print {
  .no-print { display: none !important; }
  .print-body { background: #fff; }
  .sheet { box-shadow: none; padding: 0; margin: 0; max-width: none; }
  @page { size: A4; margin: 14mm; }
}
@media (max-width: 860px) {
  .grid2, .kpis-2 { grid-template-columns: 1fr; }
  .cal { gap: 3px; } .cal-c { min-height: 58px; padding: 4px; } .cal-t { display: none; }
  .bar-row { grid-template-columns: 90px 1fr 70px; }
  .payout { flex-direction: column; align-items: flex-start; }
  .month-nav strong { min-width: 0; }
}
