/* Electro Performance – farver og typografi fra designmanualen */
:root {
  --navy: #080441;      /* primær, Pantone 2695 C */
  --blue: #004aac;      /* sekundær, Pantone 2728 C */
  --cta: #b2e0ff;       /* CTA, Pantone 291 C */
  --ice: #ecf8fc;       /* lys baggrund */
  --white: #fff;
  --ink: #080441;
  --muted: #4a4f6a;
  --line: #d5e3ee;
  --danger: #a4161a;
  --danger-bg: #fdecec;
  --ok: #0a7a3b;
  --radius: 6px;
  --font: 'Open Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--ice); font-size: 15px; line-height: 1.55; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; }
a { color: var(--blue); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }

/* Logo */
.mark { width: 36px; height: 30px; flex: none; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-weight: 600; font-size: 21px; letter-spacing: .2px; }
.brand-sub { font-weight: 600; font-size: 11.5px; margin-top: 3px; }
.brand-large .mark { width: 64px; height: 54px; }
.brand-large .brand-main { font-size: 36px; }
.brand-large .brand-sub { font-size: 18px; }

/* App-skal */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: var(--white); display: flex; flex-direction: column; padding: 28px 20px; position: sticky; top: 0; height: 100vh; }
.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 44px; }
.nav a { color: var(--white); text-decoration: none; text-transform: uppercase; font-size: 14px; letter-spacing: .4px; padding: 10px 12px; border-radius: var(--radius); }
.nav a:hover { background: rgba(178, 224, 255, .12); }
.nav a.is-active { background: var(--blue); }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.user { display: flex; flex-direction: column; }
.user-name { font-weight: 600; overflow-wrap: anywhere; }
.user-meta { font-size: 12px; color: var(--cta); }
.sidebar .btn-link { color: var(--cta); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 40px; background: var(--white); border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.company { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.company-label { color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { font: 400 15px var(--font); padding: 9px 12px; border: 1px solid #b8c7d6; border-radius: var(--radius); min-width: 0; flex: 1 1 220px; max-width: 360px; }
.form select { font: 400 15px var(--font); padding: 10px 12px; border: 1px solid #b8c7d6; border-radius: var(--radius); }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--danger-bg); color: var(--danger); margin-left: 6px; }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status.is-on { background: #e3f5ea; color: var(--ok); }
.status.is-off { background: var(--danger-bg); color: var(--danger); }

.content { padding: 36px 40px 60px; max-width: 1680px; width: 100%; }
.page-title { font-size: 34px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: var(--navy); }
.lead { font-size: 17px; margin: 0 0 24px; }

/* Komponenter */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 520px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-left: 6px solid var(--blue); }
.banner h2 { font-size: 18px; }
.banner p { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 15px var(--font); padding: 10px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; background: var(--blue); color: var(--white); }
.btn-cta { background: var(--cta); color: #000; }
.btn-cta:hover { background: #9dd6ff; }
.btn-small { padding: 5px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.btn:focus-visible, .btn-link:focus-visible, .company a:focus-visible, .nav a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form input { font: 400 15px var(--font); padding: 11px 12px; border: 1px solid #b8c7d6; border-radius: var(--radius); color: var(--ink); }
.alert { background: var(--danger-bg); color: var(--danger); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }
.inline-form { margin-top: 8px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); border-top: 6px solid var(--navy); }
.tile:hover { border-top-color: var(--blue); }
.tile-label { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; }
.tile-title { font-size: 22px; font-weight: 800; text-transform: uppercase; line-height: 1.2; overflow-wrap: break-word; }
/* Indstillinger: bredere kort, så lange ord (fx Serviceskabeloner) står på én linje */
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { min-width: 0; }
.tile-text { color: var(--muted); }

.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; background: var(--white); color: var(--navy); font-weight: 700; font-size: 13px; padding: 10px 12px; white-space: nowrap; border-bottom: 2px solid var(--line); }
.table td { padding: 9px 12px; border-bottom: 1px solid #e6eef4; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Login – opbygget som designmanualens split-layout */
.auth { display: grid; grid-template-columns: minmax(320px, 42%) 1fr; min-height: 100vh; background: var(--white); }
.auth-brand { background: var(--navy); color: var(--white); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand-inner { margin-top: 18vh; }
.auth-brand h1 { color: var(--cta); font-size: 52px; font-weight: 800; margin-top: 48px; }
.auth-brand p { font-size: 17px; max-width: 380px; }
.payoff { color: var(--cta); font-size: 15px; text-align: right; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.error-page { display: flex; align-items: center; justify-content: center; background: var(--ice); padding: 16px; }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; }
  .nav { flex-direction: row; margin: 0; order: 3; width: 100%; overflow-x: auto; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; gap: 12px; }
  .user-meta { display: none; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 32px 16px; }
  .auth-brand-inner { margin-top: 0; }
  .auth-brand h1 { font-size: 36px; margin-top: 24px; }
  .payoff { display: none; }
}

/* Klikbare tabelrækker: linket i første celle dækker hele rækken */
.row-link { position: relative; }
.row-link:hover { background: #e3f1fa !important; }
.row-target { font-weight: 600; text-decoration: none; }
.row-target::after { content: ""; position: absolute; inset: 0; }
.row-target:focus-visible { outline: none; }
.row-link:focus-within { outline: 3px solid var(--blue); outline-offset: -3px; }

/* Ordreside */
.back { margin: 0 0 8px; font-size: 14px; }
.back a { text-decoration: none; }
.section-title { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 28px 0 12px; }
.order-head { border-left: 6px solid var(--blue); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; margin: 0; }
.facts dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.remark { margin: 16px 0 0; white-space: pre-line; color: var(--muted); }
.notice { background: #e3f5ea; color: var(--ok); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; }

.lines td { padding: 6px 8px; vertical-align: middle; }
.lines th { padding: 12px 8px; }
.lines input { width: 100%; min-width: 0; font: 400 14px var(--font); padding: 7px 8px; border: 1px solid #b8c7d6; border-radius: 4px; color: var(--ink); background: var(--white); }
.lines input.num, .add-line input.num { text-align: right; font-variant-numeric: tabular-nums; }
.lines input:focus { border-color: var(--blue); }
.lines .col-nr { width: 44px; }
.lines .col-item { width: 140px; }
.lines .col-qty, .lines .col-disc { width: 90px; }
.lines .col-price, .lines .col-total { width: 120px; }
.lines .col-unit { width: 70px; }
.lines .col-act { width: 60px; text-align: center; }
.lines td:first-child, .lines th:first-child { padding-left: 16px; }
.lines tr.has-error input { border-color: var(--danger); }
.lines .error-row td { background: var(--danger-bg); color: var(--danger); font-size: 13px; font-weight: 600; padding-top: 4px; padding-bottom: 8px; }
.btn-link.danger { color: var(--danger); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: -4px 0 8px; }

.add-line { display: grid; grid-template-columns: 140px 1fr 100px 120px 100px auto; gap: 12px; align-items: end; }
.add-line .alert { grid-column: 1 / -1; margin: 0; }
.add-line label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.add-line input { font: 400 15px var(--font); padding: 9px 10px; border: 1px solid #b8c7d6; border-radius: var(--radius); color: var(--ink); min-width: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .lines { min-width: 820px; }
  .add-line { grid-template-columns: 1fr 1fr; }
  .add-line .f-text { grid-column: 1 / -1; }
}

/* Bekræftelsesside */
.confirm-box { border-left: 6px solid var(--blue); }
.confirm-box.is-danger { border-left-color: var(--danger); }
.confirm-lead { margin: 0 0 16px; }
.confirm-box .table-wrap { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.confirm-line { vertical-align: top; background: var(--white); }
.table td.before, .table tr.before td { color: var(--danger); text-decoration: line-through; text-decoration-thickness: 1px; }
.table td.after, .table tr.after td { color: var(--ok); font-weight: 600; }
.confirm-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #87120f; }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }

/* Listeoplysninger og sideskift */
.list-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; font-size: 14px; margin: -4px 0 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 20px; font-size: 14px; }
.pager a, .pager span { padding: 6px 11px; border-radius: var(--radius); }
.pager a { text-decoration: none; background: var(--white); border: 1px solid var(--line); }
.pager a:hover { border-color: var(--blue); }
.pager .is-current { background: var(--navy); color: var(--white); font-weight: 700; }

/* Ordrebeskrivelse i listen: én linje, afkortet med … (hele teksten i tooltip) */
.col-remark { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

/* Varesøgning (combobox) i varenr.-felter */
.combo { position: relative; min-width: 0; }
.combo > input { width: 100%; }
.combo-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; width: max(100%, 380px); max-height: 320px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(8, 4, 65, .14); text-align: left; }
.combo-list li { padding: 7px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: 14px; font-weight: 400; }
.combo-list li[aria-selected="true"] { background: #e3f1fa; }
.combo-top { display: flex; gap: 10px; }
.combo-top strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.combo-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-meta { font-size: 12px; color: var(--muted); }
.combo-empty { color: var(--muted); cursor: default; }
.table-wrap:has(.combo-list:not([hidden])) { overflow: visible; }

/* Samlet redigering af ordrelinjer */
.lines .del-check { width: 18px; height: 18px; accent-color: var(--danger); cursor: pointer; }
.lines tr.line:has(.del-check:checked) td { background: var(--danger-bg); }
.lines tr.line:has(.del-check:checked) input:not(.del-check) { text-decoration: line-through; color: var(--danger); background: transparent; border-color: transparent; pointer-events: none; }
.lines tr.line:has(.del-check:checked) td.mono, .lines tr.line:has(.del-check:checked) td.muted { text-decoration: line-through; color: var(--danger); }
.lines tbody.new-lines tr.is-new td { background: #f2f9fe; }
.lines tbody.new-lines tr.is-new:first-child td { border-top: 2px solid var(--line); }
.lines .new-mark { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.form-actions .spacer { flex: 1; }
.form-actions { margin: 0 0 6px; }
.form-hint { margin: 0 0 24px; text-align: right; }
.confirm-section { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 18px 0 8px; }
.confirm-section.danger { color: var(--danger); }

/* ---- Forside: nøgletal og grafer ---- */
.stats { margin: 8px 0 32px; }
.stats-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }
.stats-head .section-title { margin-top: 0; }
.stats-meta { font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px 20px; border-top: 4px solid var(--navy); }
.kpi-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 12px; flex-wrap: wrap; }
.chart-title { font-weight: 700; }
.chart-total { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Søjlediagram: y-akse med 1px gitterlinjer, søjler ≤ 24px med 4px runde top, firkantet ved basislinjen */
.col-chart { position: relative; height: 220px; margin: 4px 0 22px 52px; }
.col-grid { position: absolute; inset: 0; }
.gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.gridline span { position: absolute; right: calc(100% + 8px); top: -0.7em; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.col .bar { width: min(24px, 70%); background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.col:hover .bar, .col:focus-visible .bar { background: var(--navy); }
.col:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); border-radius: 4px; }
.col-label { position: absolute; top: calc(100% + 4px); font-size: 11px; color: var(--muted); }
.tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5; background: var(--navy); color: var(--white); font-size: 12px; line-height: 1.35; padding: 6px 9px; border-radius: 4px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.col:hover .tip, .col:focus-visible .tip { display: block; }
.col .tip { top: auto; transform: translate(-50%, -6px); } /* lige over søjlen (bund sat med .b-N) */

/* Liggende søjler (top 10) */
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 38%) 1fr; align-items: center; gap: 10px; font-size: 13px; border-radius: 4px; outline: none; }
.hbar:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.hbar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; padding-right: 84px; } /* plads til værdien efter den længste søjle */
.hbar .bar { flex: none; height: 16px; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar:hover .bar, .hbar:focus-visible .bar { background: var(--navy); }
.hbar-value { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }

.chart-table summary { cursor: pointer; font-size: 13px; color: var(--blue); }
.chart-table .table { margin-top: 8px; font-size: 13px; }
.chart-table .table th, .chart-table .table td { padding: 6px 10px; }
.chart-table tfoot th { background: var(--ice); color: var(--ink); }

@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } .col-chart { margin-left: 44px; } .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi { padding: 14px; } .kpi-value { font-size: 20px; } .hbar { grid-template-columns: minmax(80px, 34%) 1fr; } }

/* Procent-klasser til grafer: højde (søjler), bund (gitterlinjer) og bredde (liggende søjler).
   Bruges i stedet for inline style="…", som appens Content Security Policy blokerer. */
.h-0{height:0%}.b-0{bottom:0%}.w-0{width:0%}
.h-1{height:1%}.b-1{bottom:1%}.w-1{width:1%}
.h-2{height:2%}.b-2{bottom:2%}.w-2{width:2%}
.h-3{height:3%}.b-3{bottom:3%}.w-3{width:3%}
.h-4{height:4%}.b-4{bottom:4%}.w-4{width:4%}
.h-5{height:5%}.b-5{bottom:5%}.w-5{width:5%}
.h-6{height:6%}.b-6{bottom:6%}.w-6{width:6%}
.h-7{height:7%}.b-7{bottom:7%}.w-7{width:7%}
.h-8{height:8%}.b-8{bottom:8%}.w-8{width:8%}
.h-9{height:9%}.b-9{bottom:9%}.w-9{width:9%}
.h-10{height:10%}.b-10{bottom:10%}.w-10{width:10%}
.h-11{height:11%}.b-11{bottom:11%}.w-11{width:11%}
.h-12{height:12%}.b-12{bottom:12%}.w-12{width:12%}
.h-13{height:13%}.b-13{bottom:13%}.w-13{width:13%}
.h-14{height:14%}.b-14{bottom:14%}.w-14{width:14%}
.h-15{height:15%}.b-15{bottom:15%}.w-15{width:15%}
.h-16{height:16%}.b-16{bottom:16%}.w-16{width:16%}
.h-17{height:17%}.b-17{bottom:17%}.w-17{width:17%}
.h-18{height:18%}.b-18{bottom:18%}.w-18{width:18%}
.h-19{height:19%}.b-19{bottom:19%}.w-19{width:19%}
.h-20{height:20%}.b-20{bottom:20%}.w-20{width:20%}
.h-21{height:21%}.b-21{bottom:21%}.w-21{width:21%}
.h-22{height:22%}.b-22{bottom:22%}.w-22{width:22%}
.h-23{height:23%}.b-23{bottom:23%}.w-23{width:23%}
.h-24{height:24%}.b-24{bottom:24%}.w-24{width:24%}
.h-25{height:25%}.b-25{bottom:25%}.w-25{width:25%}
.h-26{height:26%}.b-26{bottom:26%}.w-26{width:26%}
.h-27{height:27%}.b-27{bottom:27%}.w-27{width:27%}
.h-28{height:28%}.b-28{bottom:28%}.w-28{width:28%}
.h-29{height:29%}.b-29{bottom:29%}.w-29{width:29%}
.h-30{height:30%}.b-30{bottom:30%}.w-30{width:30%}
.h-31{height:31%}.b-31{bottom:31%}.w-31{width:31%}
.h-32{height:32%}.b-32{bottom:32%}.w-32{width:32%}
.h-33{height:33%}.b-33{bottom:33%}.w-33{width:33%}
.h-34{height:34%}.b-34{bottom:34%}.w-34{width:34%}
.h-35{height:35%}.b-35{bottom:35%}.w-35{width:35%}
.h-36{height:36%}.b-36{bottom:36%}.w-36{width:36%}
.h-37{height:37%}.b-37{bottom:37%}.w-37{width:37%}
.h-38{height:38%}.b-38{bottom:38%}.w-38{width:38%}
.h-39{height:39%}.b-39{bottom:39%}.w-39{width:39%}
.h-40{height:40%}.b-40{bottom:40%}.w-40{width:40%}
.h-41{height:41%}.b-41{bottom:41%}.w-41{width:41%}
.h-42{height:42%}.b-42{bottom:42%}.w-42{width:42%}
.h-43{height:43%}.b-43{bottom:43%}.w-43{width:43%}
.h-44{height:44%}.b-44{bottom:44%}.w-44{width:44%}
.h-45{height:45%}.b-45{bottom:45%}.w-45{width:45%}
.h-46{height:46%}.b-46{bottom:46%}.w-46{width:46%}
.h-47{height:47%}.b-47{bottom:47%}.w-47{width:47%}
.h-48{height:48%}.b-48{bottom:48%}.w-48{width:48%}
.h-49{height:49%}.b-49{bottom:49%}.w-49{width:49%}
.h-50{height:50%}.b-50{bottom:50%}.w-50{width:50%}
.h-51{height:51%}.b-51{bottom:51%}.w-51{width:51%}
.h-52{height:52%}.b-52{bottom:52%}.w-52{width:52%}
.h-53{height:53%}.b-53{bottom:53%}.w-53{width:53%}
.h-54{height:54%}.b-54{bottom:54%}.w-54{width:54%}
.h-55{height:55%}.b-55{bottom:55%}.w-55{width:55%}
.h-56{height:56%}.b-56{bottom:56%}.w-56{width:56%}
.h-57{height:57%}.b-57{bottom:57%}.w-57{width:57%}
.h-58{height:58%}.b-58{bottom:58%}.w-58{width:58%}
.h-59{height:59%}.b-59{bottom:59%}.w-59{width:59%}
.h-60{height:60%}.b-60{bottom:60%}.w-60{width:60%}
.h-61{height:61%}.b-61{bottom:61%}.w-61{width:61%}
.h-62{height:62%}.b-62{bottom:62%}.w-62{width:62%}
.h-63{height:63%}.b-63{bottom:63%}.w-63{width:63%}
.h-64{height:64%}.b-64{bottom:64%}.w-64{width:64%}
.h-65{height:65%}.b-65{bottom:65%}.w-65{width:65%}
.h-66{height:66%}.b-66{bottom:66%}.w-66{width:66%}
.h-67{height:67%}.b-67{bottom:67%}.w-67{width:67%}
.h-68{height:68%}.b-68{bottom:68%}.w-68{width:68%}
.h-69{height:69%}.b-69{bottom:69%}.w-69{width:69%}
.h-70{height:70%}.b-70{bottom:70%}.w-70{width:70%}
.h-71{height:71%}.b-71{bottom:71%}.w-71{width:71%}
.h-72{height:72%}.b-72{bottom:72%}.w-72{width:72%}
.h-73{height:73%}.b-73{bottom:73%}.w-73{width:73%}
.h-74{height:74%}.b-74{bottom:74%}.w-74{width:74%}
.h-75{height:75%}.b-75{bottom:75%}.w-75{width:75%}
.h-76{height:76%}.b-76{bottom:76%}.w-76{width:76%}
.h-77{height:77%}.b-77{bottom:77%}.w-77{width:77%}
.h-78{height:78%}.b-78{bottom:78%}.w-78{width:78%}
.h-79{height:79%}.b-79{bottom:79%}.w-79{width:79%}
.h-80{height:80%}.b-80{bottom:80%}.w-80{width:80%}
.h-81{height:81%}.b-81{bottom:81%}.w-81{width:81%}
.h-82{height:82%}.b-82{bottom:82%}.w-82{width:82%}
.h-83{height:83%}.b-83{bottom:83%}.w-83{width:83%}
.h-84{height:84%}.b-84{bottom:84%}.w-84{width:84%}
.h-85{height:85%}.b-85{bottom:85%}.w-85{width:85%}
.h-86{height:86%}.b-86{bottom:86%}.w-86{width:86%}
.h-87{height:87%}.b-87{bottom:87%}.w-87{width:87%}
.h-88{height:88%}.b-88{bottom:88%}.w-88{width:88%}
.h-89{height:89%}.b-89{bottom:89%}.w-89{width:89%}
.h-90{height:90%}.b-90{bottom:90%}.w-90{width:90%}
.h-91{height:91%}.b-91{bottom:91%}.w-91{width:91%}
.h-92{height:92%}.b-92{bottom:92%}.w-92{width:92%}
.h-93{height:93%}.b-93{bottom:93%}.w-93{width:93%}
.h-94{height:94%}.b-94{bottom:94%}.w-94{width:94%}
.h-95{height:95%}.b-95{bottom:95%}.w-95{width:95%}
.h-96{height:96%}.b-96{bottom:96%}.w-96{width:96%}
.h-97{height:97%}.b-97{bottom:97%}.w-97{width:97%}
.h-98{height:98%}.b-98{bottom:98%}.w-98{width:98%}
.h-99{height:99%}.b-99{bottom:99%}.w-99{width:99%}
.h-100{height:100%}.b-100{bottom:100%}.w-100{width:100%}

/* Indlæsning af statistik og knapper i gang */
.stats-loading p { display: flex; align-items: center; gap: 10px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.btn:disabled { opacity: .7; cursor: progress; }

.diag { margin-top: 12px; font-size: 13px; }
.diag summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.diag h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .3px; margin: 14px 0 6px; }
.diag .table { font-size: 13px; } .diag .table td, .diag .table th { padding: 6px 10px; }
.refreshing { display: inline-flex; align-items: center; gap: 6px; }
.refreshing .spinner { width: 12px; height: 12px; }

/* Serviceskabeloner */
.template-pick { margin: 0 0 12px; font-size: 14px; }
.template-pick select { font: 400 14px var(--font); padding: 7px 10px; border: 1px solid #b8c7d6; border-radius: var(--radius); max-width: 100%; }
.small-link { font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 0; }
.form-grid .span-2 { grid-column: 1 / -1; }
.tpl-lines tbody.new-lines tr.is-new td { background: transparent; }
.tpl-lines tbody.new-lines tr.is-new:first-child td { border-top: 0; }
.tpl-lines td:first-child, .tpl-lines th:first-child { padding-left: 16px; }
td.actions { white-space: nowrap; text-align: right; }
td.actions > * + * { margin-left: 10px; }
.danger-link { color: var(--danger); }
.form-grid .combo { width: 100%; }

.col-emp { white-space: nowrap; }

/* Tjekliste */
.form textarea, .checklist-text { font: 400 15px var(--font); padding: 10px 12px; border: 1px solid #b8c7d6; border-radius: var(--radius); color: var(--ink); width: 100%; resize: vertical; line-height: 1.5; }
section[data-line-group] { margin-bottom: 8px; }
section[data-line-group] > .btn-small { margin: -8px 0 8px; }

/* Serviceopgave på ordren */
.service-task { border-left: 6px solid var(--cta); }
.service-task .section-title { margin-top: 0; }
.st-meta { margin: -4px 0 12px; }
.checklist { border: 0; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 20px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; border-radius: var(--radius); cursor: pointer; font-size: 15px; }
.check:hover { background: #f2f9fe; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.checklist .check:has(input:checked) span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ok); }
.st-extra { margin-bottom: 14px; }
.st-extra .table { border: 1px solid var(--line); border-radius: var(--radius); }
.st-text-label { display: block; font-weight: 600; font-size: 14px; margin: 6px 0 6px; }
.st-actions { margin-top: 12px; }
.st-remove { margin-top: 10px; font-size: 13px; }
.st-remove summary { cursor: pointer; color: var(--danger); }
.td.pre, td.pre { white-space: pre-wrap; }

.include-text { padding: 0; font-size: 14px; font-weight: 600; }
.confirm-checklist { list-style: none; margin: 0 0 16px; padding: 0; columns: 2 260px; font-size: 14px; }
.confirm-checklist li { padding: 2px 0; break-inside: avoid; }
.confirm-checklist li.done { color: var(--ok); }

/* ---- Listesider (ordrer, kunder, varer m.fl.): værktøjslinje, filtre, kompakt tabel ---- */
.content:has(.table-card) { max-width: none; }
.list-toolbar { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.toolbar-spacer { flex: 1; }
.btn-primary, .btn-tool { height: 36px; padding: 0 16px; font-size: 14px; border-radius: var(--radius); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #003b8a; }
.btn-tool { display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ink); border: 1px solid #c9d7e3; font-weight: 600; cursor: pointer; list-style: none; }
.btn-tool::-webkit-details-marker { display: none; }
.btn-tool:hover { border-color: var(--blue); }
.btn-tool.is-on { border-color: var(--blue); color: var(--blue); }
.btn-tool .count { background: var(--blue); color: var(--white); border-radius: 999px; font-size: 11px; padding: 0 7px; line-height: 18px; }
.icon { width: 16px; height: 16px; flex: none; }
.seg { display: inline-flex; height: 36px; padding: 3px; gap: 2px; background: #e3eef6; border-radius: var(--radius); }
.seg > a { display: inline-flex; align-items: center; text-decoration: none; padding: 0 14px; border-radius: 4px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.seg > a:hover { background: rgba(255, 255, 255, .6); }
.seg > a.is-active { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(8, 4, 65, .15); }
.seg > a:focus-visible, .btn-tool:focus-visible, .th-sort:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; font-size: 13px; padding: 0 6px 0 12px; border-radius: 999px; background: #e3f1fa; color: var(--ink); }
.chip a { text-decoration: none; font-weight: 700; padding: 0 6px; border-radius: 999px; }
.search-box { position: relative; display: flex; align-items: center; width: 260px; max-width: 100%; }
.search-box .icon { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; height: 36px; font: 400 14px var(--font); padding: 0 10px 0 32px; border: 1px solid #c9d7e3; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.search-box input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }

.filters { position: relative; }
.filters-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 6px); width: 280px; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(8, 4, 65, .16); }
.filters-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.filters-panel select { font: 400 14px var(--font); padding: 7px 10px; border: 1px solid #c9d7e3; border-radius: var(--radius); color: var(--ink); background: var(--white); text-transform: none; }
.filters-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; font-size: 14px; }

.list-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.list-meta strong { color: var(--ink); }
.list-meta-right { font-size: 13px; }
.list-meta a { white-space: nowrap; }

/* Tabelkort: hvid flade, kolonnenavne øverst (klæber ved rulning), rækker på én linje */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 230px); min-height: 160px; margin-bottom: 14px; }
.data-table thead { position: sticky; top: 0; z-index: 3; }
.data-table th { position: relative; background: var(--white); box-shadow: inset 0 -2px 0 var(--line); border-bottom: 0; }
.data-table td { white-space: nowrap; }
.data-table tbody tr:hover { background: #f2f9fe; }
.data-table .col-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.data-table .col-remark { max-width: 420px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.data-table th.col-remark, .data-table th.col-name { color: var(--navy); max-width: none; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; max-width: 100%; }
.th-sort > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.th-sort:hover { color: var(--blue); }
.sort-ind { color: var(--blue); font-size: 12px; }
.filter-empty td { text-align: center; padding: 28px 16px !important; white-space: normal; }
.col-resizer { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 2; touch-action: none; }
.col-resizer::after { content: ""; position: absolute; top: 30%; bottom: 30%; left: 4px; width: 1px; background: #d5e3ee; }
.col-resizer:hover::after, .col-resizer:focus-visible::after, .is-resizing .col-resizer::after { background: var(--blue); width: 2px; top: 0; bottom: 0; }
.col-resizer:focus-visible { outline: none; }
.table thead tr:first-child th:last-child .col-resizer { right: 0; }
.is-resizing, .is-resizing * { cursor: col-resize !important; user-select: none; }
.table.is-fixed { table-layout: fixed; }
.table.is-fixed td, .table.is-fixed th { overflow: hidden; text-overflow: ellipsis; }
.table.is-fixed .col-remark, .table.is-fixed .col-name { max-width: none; }

/* ---- Mobil ---- */
@media (max-width: 860px) {
  .app > * { min-width: 0; }
  .crumb { display: none; }
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .content { padding-top: 20px; }
  .page-title { font-size: 26px; }
}
@media (max-width: 720px) {
  .list-toolbar .toolbar-spacer { display: none; }
  .search-box { order: -1; width: 100%; }
  .list-toolbar .seg { flex: 1; }
  .list-toolbar .seg > a { flex: 1; justify-content: center; }
  .filters { margin-left: auto; }
  .filters-panel { width: min(300px, calc(100vw - 32px)); }

  /* Rækkerne vises som kort: kolonnenavn (data-label fra public/js/table.js) til venstre, værdi til højre */
  .table-card { max-height: none; overflow: visible; background: transparent; border: 0; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100% !important; }
  .data-table.is-fixed { table-layout: auto; }
  .data-table thead { display: none; }
  .data-table tbody tr { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; padding: 8px 0; }
  .data-table tbody tr:hover { background: var(--white); }
  .data-table td { display: flex; justify-content: space-between; gap: 16px; padding: 2px 14px; border: 0; font-size: 13px; white-space: normal; text-align: right; max-width: none !important; overflow: visible; }
  .data-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; padding-top: 1px; }
  .data-table td[data-label=""]::before { display: none; }
  .data-table td:empty { display: none; }
  .data-table td:first-child { font-size: 15px; padding-bottom: 4px; }
  .topbar { gap: 6px 12px; }
  .topbar-right { gap: 8px 12px; }
  .data-table td.col-remark { color: var(--ink); }
  .data-table td.actions { justify-content: flex-end; }
  .data-table .filter-empty td { justify-content: center; }
}

/* Ny ordre: ordrehoved */
.req { color: var(--danger); font-weight: 700; }
.field-hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.field-opt { font-size: 12px; font-weight: 400; }
.order-head-form select { width: 100%; }
.order-head-form textarea { font: 400 15px var(--font); padding: 10px 12px; border: 1px solid #b8c7d6; border-radius: var(--radius); color: var(--ink); width: 100%; resize: vertical; line-height: 1.5; }

/* Mobil: redigerbare linjetabeller (ny ordre, skabelon, ordrelinjer) vises som kort med felterne under hinanden */
@media (max-width: 720px) {
  .table-wrap:has(.lines) { overflow: visible; }
  .lines, .lines tbody, .lines tr, .lines td { display: block; min-width: 0; width: 100%; }
  .lines thead { display: none; }
  .lines tr.line { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .lines tr.line td { padding: 0 !important; border: 0; text-align: left; }
  .lines tr.line td.c-wide, .lines tr.line td.new-mark { grid-column: 1 / -1; }
  .lines tr.line td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 2px; }
  .lines tr.line td:empty { display: none; }
  .lines tr.line td.col-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
  .lines tr.line td.col-act[data-label]::before { display: inline; margin: 0; }
  .lines tr.line td.mono.muted:first-child { grid-column: 1 / -1; font-weight: 700; }
  .lines .error-row td { padding: 6px 14px; }
  .lines .error-row td:empty { display: none; }
  .checklist-edit tr { display: flex; gap: 8px; padding: 6px 10px; }
}
.order-head-form label > .lbl { display: inline; }

/* Ventetid: liste der hentes, og bjælke/besked mens en ny side indlæses */
.loading-box { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 14px; }
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--blue); z-index: 100; opacity: 0; transition: opacity .2s; }
.nav-progress.is-on { opacity: 1; animation: nav-progress 12s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes nav-progress { from { width: 0; } to { width: 92%; } }
.nav-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(8, 4, 65, .25); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.nav-toast.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav-progress.is-on { animation: none; width: 60%; } }

/* Slet ordre */
.order-head-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.delete-form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.delete-check { padding: 10px 12px; background: var(--danger-bg); border-radius: var(--radius); }
.delete-check input { accent-color: var(--danger); }

/* Grupper og adgang (views/admin-access.ejs) */
.table-card.access-scroll { max-height: none; overflow-x: auto; }
.access-table th, .access-table td { vertical-align: middle; }
.access-table .access-check { text-align: center; width: 1%; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.access-table .access-check input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.access-table .access-check input:disabled { cursor: not-allowed; opacity: .7; }
.access-table .access-user { text-align: left; font-weight: 400; min-width: 220px; }
.access-name { display: block; font-weight: 600; color: var(--navy); }
.access-login { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.access-none .access-name { color: var(--muted); }
.access-add { margin: 0 0 14px; }
.access-add legend { font-weight: 800; text-transform: uppercase; letter-spacing: .3px; padding: 0 6px; }
.access-add-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.access-add-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.access-add-groups { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.access-intro { margin: -4px 0 12px; }
@media (max-width: 720px) {
  .table-card.access-scroll { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
  .access-table .access-user { min-width: 160px; }
}

/* Indstillinger (tandhjul) nederst i sidemenuen */
.settings-link { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; text-transform: uppercase; font-size: 13px; letter-spacing: .4px; padding: 8px 10px; margin: 0 -10px 4px; border-radius: var(--radius); }
.settings-link:hover { background: rgba(178, 224, 255, .12); }
.settings-link.is-active { background: var(--blue); }
.settings-link .gear { flex: none; }
@media (max-width: 860px) {
  .settings-link { margin: 0; padding: 6px; }
  .settings-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .settings-link .gear { width: 22px; height: 22px; }
}
.access-table .access-email input { width: 100%; min-width: 200px; height: 32px; padding: 0 8px; font-size: 13px; }
.access-table .access-email input.is-missing::placeholder { color: var(--danger); }
/* To-trins-login (views/login-code.ejs) */
.code-input { font-family: var(--mono, ui-monospace, monospace); font-size: 28px; letter-spacing: 10px; text-align: center; }
.auth-card .inline-form { margin-top: 8px; }
.form label.check { flex-direction: row; align-items: center; font-weight: 400; padding: 4px 0; }
.form label.check input { width: 18px; height: 18px; }
.customer-name.is-ok { color: var(--ok); font-weight: 600; }
.customer-name.is-bad { color: var(--danger); }

/* Arbejdstid (views/home.ejs, time-*.ejs) */
.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: -8px 0 18px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 14px; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a.is-active { border-bottom-color: var(--blue); color: var(--blue); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef3f8; color: var(--navy); white-space: nowrap; }
.badge-afventer, .badge-anmodet { background: #fff4d6; color: #7a5600; }
.badge-godkendt, .badge-overfoert, .badge-registreret { background: #e3f5ea; color: var(--ok); }
.badge-afvist { background: var(--danger-bg); color: var(--danger); }
.badge-absence { background: #e7efff; color: var(--blue); }
.reject-reason { color: var(--danger); font-size: 13px; font-weight: 600; }
.time-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.time-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.time-list li:first-child { border-top: 0; }
.time-hours { font-weight: 800; min-width: 52px; font-variant-numeric: tabular-nums; }
.time-what { flex: 1; min-width: 180px; }
.time-actions { display: flex; gap: 10px; align-items: center; }
.time-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; align-items: end; }
.time-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.time-form input, .time-form select { height: 40px; padding: 0 10px; border: 1px solid #b8c7d6; border-radius: var(--radius); font: inherit; }
.time-form .time-text, .time-form .time-types, .time-form .form-actions { grid-column: 1 / -1; }
.time-types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.time-types legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.time-types label.check { flex-direction: row; font-weight: 400; }
.week-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 10px; }
.week-head .section-title { margin: 0; }
.week-head .spacer { flex: 1; }
.week { display: flex; flex-direction: column; gap: 8px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.day.is-today { border-left: 4px solid var(--blue); }
.day-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-weight: 600; text-transform: capitalize; }
.is-danger-soft { border-color: #f1c0c0; background: #fff8f8; }
.home-approve { display: block; text-decoration: none; color: var(--navy); border-left: 4px solid #e0a800; }
.home-time-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.home-time-head .section-title { margin-top: 0; }
.task-group { margin-bottom: 18px; }
.task-group-title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 8px; color: var(--navy); }
.task-group.is-warn .task-group-title { color: var(--danger); }
.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; flex-wrap: wrap; }
.task-main { flex: 1; min-width: 220px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; text-decoration: none; color: var(--ink); }
.task-nr { font-weight: 700; color: var(--blue); }
.task-name { font-weight: 700; }
.task-remark { color: var(--muted); flex-basis: 100%; font-size: 14px; }
.task-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.task-date { font-weight: 600; }
.approve-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.approve-table td, .approve-table th { vertical-align: top; }
.approve-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.reject-box { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.reject-box label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; flex: 1; min-width: 220px; max-width: 460px; }
.reject-box input, .absence-decide input { height: 36px; padding: 0 10px; border: 1px solid #b8c7d6; border-radius: var(--radius); font: inherit; }
.absence-decide { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.absence-decide input { flex: 1; min-width: 180px; max-width: 360px; }
.month-table th, .month-table td { padding: 6px 8px; white-space: nowrap; }
.month-table .day-col { min-width: 34px; font-size: 13px; }
.month-table .is-weekend { background: #f4f7fa; }
.month-table .is-absence { background: #e7efff; color: var(--blue); font-weight: 700; }
.rates-table input { width: 100%; min-width: 140px; height: 34px; padding: 0 8px; border: 1px solid #b8c7d6; border-radius: var(--radius); font: inherit; }
.rates-default th, .rates-default td { background: #f4f9fd; }
.task-more { margin: 6px 0 0; font-size: 14px; }
.order-head-actions { gap: 18px; flex-wrap: wrap; }
.order-head-form textarea { font: inherit; padding: 10px 12px; border: 1px solid #b8c7d6; border-radius: var(--radius); resize: vertical; }
.decided { font-size: 12px; color: var(--muted); }
