/* Fabcom Studios – Kundenportal. Same palette as the admin tool and the website; works from 320 px up. */
:root {
  color-scheme: dark;
  --bg: #0b0c10;
  --panel: #12141b;
  --panel-2: #181b24;
  --line: #262a35;
  --line-2: #323745;
  --text: #ece8df;
  --muted: #9b968b;
  --gold: #e3b866;
  --gold-dim: rgba(227, 184, 102, 0.13);
  --gold-line: rgba(227, 184, 102, 0.42);
  --ok: #3ecf7a;
  --warn: #e8a33c;
  --bad: #ef4f4f;
  --info: #6aa8ff;
  --display: Georgia, 'Times New Roman', serif;
  --body: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.boot { padding: 40px; color: var(--muted); }
.pre { white-space: pre-wrap; word-break: break-word; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- controls */
button, .btn { font: inherit; cursor: pointer; border-radius: 9px; border: 1px solid transparent; padding: 8px 15px; color: var(--text); background: var(--panel-2); transition: background .12s, border-color .12s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
button:disabled { opacity: .45; cursor: default; }
button.primary, .btn.primary { background: var(--gold); color: #17130a; font-weight: 600; }
button.primary:hover:not(:disabled) { background: #edc77e; }
button.ghost { background: transparent; border-color: var(--line-2); }
button.ghost:hover:not(:disabled), button.ghost.on { border-color: var(--gold-line); background: var(--gold-dim); }
button.danger { background: var(--bad); color: #fff; font-weight: 600; }
button.danger-text { background: transparent; color: #ff8a8a; padding-left: 6px; padding-right: 6px; }
button.ok { background: var(--ok); color: #06210f; font-weight: 600; }
button.small { padding: 4px 10px; font-size: 13px; }
button.wide { width: 100%; justify-content: center; padding: 11px; }
button.link { background: none; border: 0; padding: 0; color: var(--gold); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

input, select, textarea { font: inherit; color: var(--text); background: #0e1016; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px; min-width: 0; width: 100%; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-line); outline: none; }
input[type='checkbox'] { width: 17px; height: 17px; accent-color: var(--gold); margin: 0; flex: none; }
input[type='file'] { padding: 7px; }
input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .25em; text-align: center; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 13px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 9px; }
.form-error { color: #ff8a8a; margin: 8px 0 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.full { grid-column: 1 / -1; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ---------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.shell > * { min-width: 0; }
td b { white-space: nowrap; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: var(--gold-dim); border: 1px solid var(--gold-line); display: grid; place-items: center; color: var(--gold); font-family: var(--display); font-weight: 700; }
.brand b { display: block; font-family: var(--display); font-size: 16px; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { color: var(--text); padding: 9px 12px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.on { background: var(--gold-dim); color: var(--gold); }
.badge { background: var(--gold); color: #17130a; border-radius: 99px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; }
.badge.bad { background: var(--bad); color: #fff; }
.side .who { margin-top: auto; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding: 14px 6px 0; word-break: break-all; }
.main { padding: 28px 34px 60px; max-width: 1180px; width: 100%; }
.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.head p { margin: 6px 0 0; color: var(--muted); }
.topbar { display: none; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card + .card, .card + .cards, .cards + .card, .cards + .cards { margin-top: 16px; }
.card h2, .card h3 { margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-family: var(--display); }
.stat span { color: var(--muted); font-size: 13px; }
.notice { border: 1px solid var(--gold-line); background: var(--gold-dim); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.notice.info { border-color: rgba(106, 168, 255, .45); background: rgba(106, 168, 255, .1); }
.notice.warn { border-color: rgba(232, 163, 60, .5); background: rgba(232, 163, 60, .1); }
.empty { text-align: center; padding: 34px 18px; color: var(--muted); }
.empty h2 { color: var(--text); margin-bottom: 8px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------------------------------------------------------------- lists and tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
tr.unread td { font-weight: 600; }
.table-wrap { overflow-x: auto; }
.list { display: flex; flex-direction: column; }
.item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; word-break: break-word; }

.pill { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.ok { color: var(--ok); border-color: rgba(62, 207, 122, .45); }
.pill.warn { color: var(--warn); border-color: rgba(232, 163, 60, .5); }
.pill.bad { color: #ff8a8a; border-color: rgba(239, 79, 79, .5); }
.pill.info { color: var(--info); border-color: rgba(106, 168, 255, .45); }
.pill.gold { color: var(--gold); border-color: var(--gold-line); }

.bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }

/* tasks */
.section-title { margin: 18px 0 6px; color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.task { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--panel); }
.task.done { opacity: .72; }
.task .t-head { display: flex; gap: 10px; align-items: flex-start; }
.task .t-head .grow { flex: 1; min-width: 0; }
.task .detail { color: var(--muted); font-size: 14px; margin: 4px 0 0; white-space: pre-wrap; }
.task .answer { margin-top: 8px; background: var(--panel-2); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; font-size: 14px; }
.task .t-body { margin-top: 10px; }

/* uploads */
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--gold); background: var(--gold-dim); color: var(--text); }
.progress { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* messages */
.chat { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px 2px 10px; }
.msg { max-width: 78%; padding: 10px 13px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.msg.mine { align-self: flex-end; background: var(--gold-dim); border-color: var(--gold-line); }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.msg .body { white-space: pre-wrap; word-break: break-word; }

/* previews */
.devices { display: flex; gap: 6px; }
.frame-wrap { background: #050608; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; justify-content: center; overflow: auto; }
.frame-wrap iframe { border: 0; background: #fff; height: 72vh; width: 100%; border-radius: 6px; transition: width .2s; }
.frame-wrap.tablet iframe { width: 820px; max-width: 100%; }
.frame-wrap.phone iframe { width: 390px; max-width: 100%; }

/* mail */
.mailbox { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; }
.boxes { display: flex; flex-direction: column; gap: 2px; }
.boxes button { justify-content: space-between; background: transparent; text-align: left; }
.boxes button.on { background: var(--gold-dim); color: var(--gold); }
.mail-frame { width: 100%; height: 60vh; border: 0; background: #fff; border-radius: 8px; }
.mail-head { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 12px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 420px; padding: 28px; }
.login h1 { margin-bottom: 6px; }
.login .brand { padding: 0; margin-bottom: 22px; }
.qr { background: #fff; padding: 10px; border-radius: 10px; width: max-content; margin: 10px auto; }
.qr img { display: block; width: 200px; height: 200px; image-rendering: pixelated; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: var(--mono); background: var(--panel-2); padding: 12px; border-radius: 10px; }

/* dialog */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { margin-bottom: 14px; }

/* toasts */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; max-width: calc(100vw - 32px); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 4px solid var(--ok); border-radius: 9px; padding: 10px 14px; transition: opacity .4s; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.toast.err { border-left-color: var(--bad); }
.toast.out { opacity: 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  body { overflow-x: hidden; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-105%); transition: transform .2s; height: 100vh; }
  .side.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 30; }
  .main { padding: 18px 16px 50px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .mailbox { grid-template-columns: 1fr; }
  .boxes { flex-direction: row; flex-wrap: wrap; }
  .msg { max-width: 92%; }
  h1 { font-size: 22px; }
}

/* invoice lines */
.line-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px 90px 32px; gap: 8px; align-items: center; }
.line-row .t { text-align: right; font-variant-numeric: tabular-nums; }
.line-row.head span:nth-child(n+2) { text-align: right; }
@media (max-width: 860px) { .line-row { grid-template-columns: minmax(0, 1fr) 60px 80px 32px; } .line-row .t, .line-row.head span:nth-child(4) { display: none; } }

/* ---------------------------------------------------------------- CMS: client picker, key figures, charts, roadmap (2026-11-08) */
.k-info { --k: var(--info); }
.k-gold { --k: var(--gold); }
.k-gold-dim { --k: rgba(227, 184, 102, .38); }
.k-warn { --k: var(--warn); }
.k-violet { --k: #b48cff; }
.k-ok { --k: var(--ok); }
.k-grey { --k: #6b6f7c; }
.k-today { --k: #ff6b6b; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--k, var(--muted)); flex: none; }

.client-pick { display: flex; flex-direction: column; gap: 5px; }
.client-pick > span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-left: 2px; }
.client-pick select { padding: 8px 10px; font-weight: 600; }
.subnav { display: flex; flex-direction: column; gap: 1px; border-left: 2px solid var(--gold-line); margin-left: 4px; padding-left: 6px; }
.subnav a { color: var(--muted); font-size: 13.5px; padding: 5px 8px; border-radius: 7px; }
.subnav a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.subnav a.on { color: var(--gold); background: var(--gold-dim); }
.subnav a.hot { color: var(--text); font-weight: 600; }
.subnav a.hot::after { content: ' ●'; color: var(--gold); font-size: 9px; vertical-align: 2px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis + .card, .kpis + .dash-grid, .kpis + .filter-row { margin-top: 0; }
a.stat { color: var(--text); transition: border-color .12s; }
a.stat:hover { border-color: var(--gold-line); text-decoration: none; }
.stat.gold b { color: var(--gold); }
.stat.warn b { color: var(--warn); }
.stat.bad b { color: #ff8a8a; }
.stat.ok b { color: var(--ok); }

.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dash-grid > .card { margin: 0; }
.dash-grid .span2 { grid-column: span 2; }
.dash-grid + .card, .dash-grid + .cards, .card + .dash-grid, .cards + .dash-grid { margin-top: 16px; }

.chart-wrap { width: 100%; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--body); }
.chart .bar-a { fill: var(--gold); }
.chart .bar-b { fill: rgba(227, 184, 102, .3); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend.col { flex-direction: column; flex-wrap: nowrap; }
.legend.col li span { flex: 1; }
.legend.col li b { color: var(--text); font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 140px; height: 140px; flex: none; }
.donut .seg, .donut .seg-bg { fill: none; stroke-width: 16; }
.donut .seg-bg { stroke: var(--panel-2); }
.donut .seg { stroke: var(--k); }
.donut .donut-n { fill: var(--text); font: 600 26px var(--display); }
.donut .donut-l { fill: var(--muted); font-size: 11px; }
.donut-wrap .legend.col { flex: 1; min-width: 130px; margin: 0; }

.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar .row { margin-bottom: 4px; }

.rm { display: flex; flex-direction: column; gap: 6px; }
.rm-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 14px; align-items: center; }
.rm-top { margin-bottom: 2px; }
.rm-label { display: flex; flex-direction: column; min-width: 0; }
.rm-label b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-label .pill { align-self: flex-start; margin-top: 2px; }
.rm-track { position: relative; height: 34px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(255, 255, 255, .03) calc(100% / 12 - 1px) calc(100% / 12)); border-radius: 8px; background-color: rgba(255, 255, 255, .015); }
.rm-months { height: 22px; background: none; }
.rm-months span { position: absolute; top: 0; font-size: 11.5px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 5px; white-space: nowrap; overflow: hidden; height: 100%; }
.rm-today { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--k, #ff6b6b); --k: #ff6b6b; border-radius: 2px; z-index: 2; }
.rm-bar { position: absolute; top: 6px; height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--k, var(--gold)) 28%, transparent); border: 1px solid var(--k, var(--gold)); overflow: hidden; display: flex; align-items: center; color: var(--text); font-size: 11.5px; min-width: 26px; z-index: 1; }
.rm-bar:hover { text-decoration: none; filter: brightness(1.2); }
.rm-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--k, var(--gold)); opacity: .55; }
.rm-bar > span { position: relative; padding: 0 7px; font-weight: 600; white-space: nowrap; }
.rm-bar.open-end { border-right-style: dashed; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }

.link-item { color: var(--text); align-items: center; }
.link-item:hover { text-decoration: none; background: var(--panel-2); }
.date-chip { flex: none; min-width: 92px; text-align: center; font-size: 12.5px; padding: 4px 8px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.date-chip.late { color: #ff8a8a; border-color: rgba(239, 79, 79, .5); }
.client-card { color: var(--text); display: block; transition: border-color .12s; }
.client-card:hover { border-color: var(--gold-line); text-decoration: none; }
.client-card .bar { margin: 10px 0 6px; }
.cards + .cards, .card + .cards { margin-top: 16px; }
.steps { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }

/* client overview cards and profile */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 16px 0; }
.grid-cards > .card { margin: 0; }
.grid-cards .card h3 { margin-bottom: 0; }
.grid-cards .card .row.between { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.hours-table { width: 100%; font-size: 14px; }
.hours-table td { padding: 4px 0; border: 0; }
.hours-table td:first-child { color: var(--muted); width: 110px; }
.hours-table tr.today td { color: var(--gold); font-weight: 600; }

.client-form { gap: 16px; }
.sect { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px 16px; margin: 0; min-width: 0; }
.sect legend { padding: 0 8px; color: var(--gold); font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; }
.hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-bottom: 12px; }
.hour-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.hour-row span { color: var(--muted); }
.person-row { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1fr 32px; gap: 8px; align-items: center; }
.sticky-save { position: sticky; bottom: 0; background: var(--panel); padding: 12px 0 2px; margin-top: 14px; border-top: 1px solid var(--line); }
.danger-zone { border-color: rgba(239, 79, 79, .35); }
.danger-zone h2 { color: #ff8a8a; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-row input[type='search'] { max-width: 320px; }
.filter-row select { width: auto; }
.chip { background: transparent; border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 13px; font-size: 13px; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.on { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }
.grow { flex: 1; min-width: 0; }
.end-text { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.actions, .actions { white-space: nowrap; }
.nowrap { flex-wrap: nowrap; }
.row.wrap { flex-wrap: wrap; }
select.inline { width: auto; padding: 4px 8px; font-size: 13px; }

/* more-actions menu */
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; padding: 4px 10px; font-size: 13px; border: 1px solid var(--line-2); border-radius: 9px; }
.more > summary::-webkit-details-marker { display: none; }
.more[open] > summary { border-color: var(--gold-line); background: var(--gold-dim); }
.more .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; min-width: 190px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.more .menu button { justify-content: flex-start; background: transparent; border: 0; width: 100%; }
.more .menu button:hover { background: var(--panel); }

/* invoice editor and view */
.invoice-form .line-row { grid-template-columns: minmax(0, 1fr) 70px 104px 100px 92px 32px; align-items: start; }
.invoice-form .line-row.head { align-items: center; }
.invoice-form .line-row .t { padding-top: 10px; }
.line-text { display: flex; flex-direction: column; gap: 4px; }
.line-text textarea { min-height: 34px; padding: 6px 10px; font-size: 13px; color: var(--muted); }
.totals { margin-left: auto; width: min(340px, 100%); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.totals .grand, tr.grand td { font-weight: 700; font-size: 17px; color: var(--gold); }
.field.tight { flex-direction: row; align-items: center; gap: 8px; }
.field.tight input { width: 90px; }
.field.tight input[name='discountLabel'] { width: 180px; }
.invoice-view { display: flex; flex-direction: column; gap: 16px; }
.invoice-view h3 { margin-bottom: 10px; }
table.lines tfoot td { border-bottom: 0; }
.qr-box { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.qr-box .qr { margin: 0; padding: 8px; width: 196px; height: 196px; display: block; }
.qr-box > div { flex: 1; min-width: 220px; }

@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .span2 { grid-column: auto; }
  .rm-row { grid-template-columns: 1fr; gap: 4px; }
  .rm-top .rm-label { display: none; }
  .hours { grid-template-columns: 1fr; }
  .person-row { grid-template-columns: 1fr 1fr 32px; }
  .invoice-form .line-row { grid-template-columns: minmax(0, 1fr) 60px 80px 32px; }
  .invoice-form .line-row .u, .invoice-form .line-row .t, .invoice-form .line-row.head span:nth-child(3), .invoice-form .line-row.head span:nth-child(5) { display: none; }
}

/* ---------------------------------------------------------------- modern sidebar: Fabcom logo, icons (2026-11-08) */
.side { background: linear-gradient(180deg, #13151d 0%, #0f1117 100%); gap: 16px; padding: 18px 12px; }
.brand { gap: 11px; padding: 2px 6px 14px; border-bottom: 1px solid var(--line); }
.login .brand { border-bottom: 0; padding-bottom: 0; }
.brand .mark { width: 38px; height: 38px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px var(--gold-line), 0 6px 18px rgba(227, 184, 102, .12); }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; font-style: normal; }
.wordmark em { font-style: normal; color: var(--gold); }
.wordmark small { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brand b.wordmark { font-size: 19px; }
.brand span { margin-top: 1px; }
.ico { width: 18px; height: 18px; flex: none; }
.nav { gap: 3px; }
.nav a { justify-content: flex-start; gap: 11px; padding: 9px 11px; color: #cfcabf; position: relative; font-size: 14.5px; }
.nav a .ico { color: var(--muted); transition: color .12s; }
.nav a:hover .ico { color: var(--text); }
.nav a.on { background: var(--gold-dim); color: var(--gold); font-weight: 600; }
.nav a.on .ico { color: var(--gold); }
.nav a.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.subnav a { display: flex; align-items: center; gap: 8px; }
.subnav .ico { width: 15px; height: 15px; }
.client-pick .link { display: inline-flex; align-items: center; gap: 5px; }
.client-pick .link .ico { width: 14px; height: 14px; }
.side .who { display: flex; align-items: center; gap: 10px; word-break: normal; }
.side .who .grow { min-width: 0; }
.side .who b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .who .grow div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--gold-dim); border: 1px solid var(--gold-line); color: var(--gold); font-weight: 700; }
.icon-btn { background: transparent; border: 1px solid var(--line-2); padding: 7px; border-radius: 9px; color: var(--muted); }
.icon-btn:hover { color: var(--text); border-color: var(--gold-line); }
.top-brand { display: inline-flex; align-items: center; gap: 8px; }
.top-brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.top-brand .wordmark { font-size: 17px; }
.cards > .card + .card, .cards > .card, .kpis > .stat { margin-top: 0; }
.nowrap button, .nowrap .btn { white-space: nowrap; }

/* «new» markers in the menu and tabs (2026-11-08) */
.news-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); flex: none; margin-left: 6px; vertical-align: 2px; }
.nav a .news-dot, .subnav a .news-dot { margin-left: auto; }
.subnav a .badge { font-size: 10.5px; padding: 0 6px; min-width: 18px; }
.tabs a .badge, .tabs a .news-dot { margin-left: 6px; }
.tabs a .badge { font-size: 11px; padding: 0 6px; }
.subnav a.hot::after { content: none; }

/* Protokoll: sortable columns, day separators */
.log-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.log-table th.sortable:hover, .log-table th.sortable:focus-visible { color: var(--gold); outline: none; }
.log-table th .sort-ind { opacity: .35; font-size: .8em; }
.log-table th.sorted .sort-ind { opacity: 1; }
.log-table tr.log-day td { background: var(--gold-dim); color: var(--gold); font-weight: 600; font-size: .85em; letter-spacing: .02em; padding-top: .45rem; padding-bottom: .45rem; }
.log-table .mono { font-variant-numeric: tabular-nums; }
.log-search { flex: 1; min-width: 220px; max-width: 420px; }

/* Projects: compact rows for client and team (2026-11-08) */
.plist { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); text-decoration: none; }
.prow:hover { border-color: var(--gold-line); }
.prow .title { font-weight: 600; }
.prow-bar { display: flex; align-items: center; gap: 8px; width: 170px; flex: none; }
.prow-bar .bar { flex: 1; }
.prow-bar.wide { width: auto; margin: 10px 0 4px; }
.phases { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.phase { display: flex; align-items: baseline; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; color: var(--muted); }
.phase b { color: var(--text); font-weight: 600; }
.phase em { font-style: normal; color: var(--warn); }
.phase.run { border-color: var(--gold-line); }
.phase.ok { border-color: rgba(62, 207, 122, .45); }
.phase.ok b { color: var(--ok); }
.steps { display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .mark { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1px solid var(--line-2); color: var(--muted); }
.step.s-done .mark { background: rgba(62, 207, 122, .14); border-color: rgba(62, 207, 122, .45); color: var(--ok); }
.step.s-doing .mark { border-color: var(--gold-line); color: var(--gold); }
.step.s-changes .mark { border-color: rgba(239, 79, 79, .5); color: #ff8a8a; }
.step.you:not(.s-done) .mark { border-color: var(--warn); color: var(--warn); }
.step.s-done .title { color: var(--muted); }
.step .title { font-size: 14.5px; }
.done-list { margin-top: 10px; }
.done-list > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 6px 0; }
.card.project h2 { margin: 0; }
.p-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-head select.small { width: auto; }
.trows { margin-top: 6px; }
.trows .section-title { margin: 14px 0 4px; font-size: 12px; }
.trow { display: flex; align-items: flex-start; gap: 10px; padding: 7px 6px; border-radius: 8px; border-bottom: 1px solid var(--line); }
.trow:hover { background: var(--panel-2); }
.trow.done .title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(155, 150, 139, .5); }
.trow .title { font-size: 14px; }
.trow .tag { margin-left: 6px; font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 0 6px; }
.trow .detail.one { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.trow .answer { margin-top: 6px; }
.trow .kind { flex: none; width: 66px; text-align: center; font-size: 11px; padding: 2px 0; margin-top: 2px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.trow .kind.k-info, .trow .kind.k-upload, .trow .kind.k-approval { color: var(--warn); border-color: rgba(232, 163, 60, .45); }
.trow select.st-sel { width: 150px; flex: none; padding: 3px 8px; font-size: 12.5px; }
.trow select.st-done { color: var(--ok); }
.trow select.st-changes { color: #ff8a8a; }
.tools { display: flex; gap: 2px; flex: none; opacity: .55; }
.trow:hover .tools, .tpl-step:hover .tools, .tools:focus-within { opacity: 1; }
.tools .icon-btn { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; font-size: 13px; border-radius: 7px; background: transparent; border: 1px solid transparent; }
.tools .icon-btn:hover:not(:disabled) { border-color: var(--line-2); background: var(--panel); }
.tools .icon-btn:disabled { opacity: .25; }
/* template editor */
.tpl-group .section-title { margin-top: 16px; }
.tpl-steps { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
.tpl-step { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.tpl-step .num { width: 22px; flex: none; text-align: right; color: var(--muted); font-size: 12px; padding-top: 9px; }
.tpl-fields { display: flex; flex-direction: column; gap: 6px; }
.tpl-line { display: grid; grid-template-columns: 178px 160px 1fr; gap: 6px; }
.tpl-step textarea.det { min-height: 34px; font-size: 13px; }
.tpl-step .check { font-size: 12px; }
@media (max-width: 720px) {
  .prow { flex-wrap: wrap; }
  .prow-bar { width: 100%; }
  .trow { flex-wrap: wrap; }
  .trow select.st-sel { width: auto; }
  .tpl-line { grid-template-columns: 1fr; }
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.two-col h3 { font-size: 14px; margin: 6px 0 4px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.two-col .btn { margin-top: 8px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* reminders, search, timeline (2026-11-08) */
button.warn { background: rgba(232, 163, 60, .14); color: var(--warn); border: 1px solid rgba(232, 163, 60, .5); }
button.warn:hover { background: rgba(232, 163, 60, .24); }
.notice.row { align-items: center; gap: 12px; }
.side-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); }
.side-search:focus-within { border-color: var(--gold-line); }
.side-search .ico { width: 16px; height: 16px; color: var(--muted); flex: none; }
.side-search input { border: 0; background: transparent; padding: 9px 0; min-width: 0; flex: 1; box-shadow: none; outline: none; }
.big-search { flex: 1; font-size: 16px; padding: 12px 14px; }
mark { background: var(--gold-dim); color: var(--gold); border-radius: 3px; padding: 0 1px; }
a.link-row { color: var(--text); text-decoration: none; }
a.link-row:hover { background: var(--panel-2); }
.timeline { position: relative; }
.tl-day { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.tl-day:first-child { margin-top: 0; }
.tl-item { display: flex; gap: 12px; padding: 8px 0 10px; border-left: 2px solid var(--line-2); margin-left: 14px; padding-left: 0; position: relative; }
.tl-ico { width: 30px; height: 30px; flex: none; margin-left: -16px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }
.tl-ico .ico { width: 15px; height: 15px; }
.tl-item.in .tl-ico { color: var(--warn); border-color: rgba(232, 163, 60, .5); }
.tl-item.out .tl-ico { color: var(--gold); border-color: var(--gold-line); }
.tl-item.bad .tl-ico { color: #ff8a8a; border-color: rgba(239, 79, 79, .5); }
.tl-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-head b { font-weight: 600; font-size: 14px; }
.tl-text { margin-top: 3px; font-size: 13.5px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.filter-row .big-search { width: 100%; max-width: 720px; }
.notice.row { flex-wrap: wrap; }
.notice.row > span { flex: 1; min-width: 260px; }
.notice.secure { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(62, 207, 122, .4); background: rgba(62, 207, 122, .07); }
.notice.secure > .ico { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 1px; }
.notice.secure b { display: block; margin-bottom: 2px; }

/* documents (2026-11-08) */
.doc-secs .tpl-fields .ttl { font-weight: 600; }
.doc-secs textarea.det { min-height: 64px; font-size: 13.5px; line-height: 1.45; }
.doc-item { align-items: center; gap: 12px; }
.doc-ico { width: 36px; height: 36px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); }
.doc-ico .ico { width: 18px; height: 18px; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }

/* client: «Ihre Angaben & Freigaben» as a compact list, one line per point (2026-11-08) */
.card.tight { padding: 14px 18px; }
.card.tight h3 { font-size: 17px; }
.tpage .card.tight { margin-bottom: 12px; }
.tlist { display: flex; flex-direction: column; margin-top: 6px; }
details.trow { display: block; padding: 0; margin: 0; border-radius: 0; background: none; border-left: 0; border-right: 0; border-bottom: 0; border-top: 1px solid var(--line); }
details.trow:first-child { border-top: 0; }
details.trow > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 7px 6px; margin: 0 -6px; cursor: pointer; border-radius: 8px; }
details.trow > summary::-webkit-details-marker { display: none; }
details.trow > summary:hover { background: var(--panel-2); }
details.trow > summary .grow { flex: 1; min-width: 0; }
details.trow .title { font-weight: 600; font-size: 14.5px; }
details.trow .mark, .all-done .mark { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--gold-line); color: var(--gold); display: grid; place-items: center; font-size: 12px; flex: none; }
details.trow.s-changes .mark { border-color: var(--warn); color: var(--warn); }
details.trow.done .mark, .all-done .mark.ok { border-color: transparent; background: rgba(62, 207, 122, .14); color: var(--ok); }
details.trow.done .title { font-weight: 500; color: var(--muted); }
details.trow .go { font-size: 13px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 3px 12px; white-space: nowrap; flex: none; }
details.trow.done .go { color: var(--muted); border-color: var(--line); }
details.trow[open] .go { visibility: hidden; }
details.trow .t-open { padding: 0 0 14px 36px; display: flex; flex-direction: column; gap: 8px; }
details.trow .detail { color: var(--muted); font-size: 14px; margin: 0; white-space: pre-wrap; }
details.trow .answer { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; font-size: 14px; }
details.trow .drop { padding: 10px; }
details.trow .drop p { margin: 0 0 6px; }
.all-done { display: flex; gap: 12px; align-items: center; }
.tpage .done-list > summary { font-size: 14px; }
.notice.secure.compact { display: block; padding: 8px 14px; }
.notice.secure.compact > summary { list-style: none; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.notice.secure.compact > summary::-webkit-details-marker { display: none; }
.notice.secure.compact > summary .ico { width: 18px; height: 18px; color: var(--ok); flex: none; }
.notice.secure.compact > summary b { margin: 0; font-size: 13.5px; font-weight: 600; flex: 1; }
.notice.secure.compact > .small { margin: 6px 0 2px 28px; color: var(--muted); }
@media (max-width: 640px) {
  details.trow .go { display: none; }
  details.trow .t-open { padding-left: 0; }
}

/* admin: quick add for steps (2026-11-08) */
.quick-add { display: flex; gap: 8px; align-items: center; margin-top: 10px; padding: 8px 10px; border: 1px dashed var(--line-2); border-radius: 10px; }
.quick-add:focus-within { border-color: var(--gold-line); border-style: solid; background: var(--gold-dim); }
.quick-add .plus { color: var(--gold); font-weight: 700; width: 18px; text-align: center; }
.quick-add input.grow { flex: 1; min-width: 0; background: transparent; border: 0; padding: 6px 2px; }
.quick-add input.grow:focus { outline: none; box-shadow: none; }
.quick-add select { width: auto; max-width: 180px; }
.toast .link { margin-left: 8px; color: var(--gold); background: none; border: 0; cursor: pointer; font-weight: 600; }
@media (max-width: 640px) { .quick-add { flex-wrap: wrap; } .quick-add input.grow { flex-basis: calc(100% - 30px); } }

/* client start page (2026-11-08): to-dos, roadmap, projects with phases, overall status, news */
.home-kpis .stat b { font-size: 22px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.home-main, .home-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-main > .card, .home-side > .card { margin: 0; }
.todos { display: flex; flex-direction: column; margin-top: 8px; }
.todo { display: flex; gap: 12px; align-items: center; padding: 9px 8px; margin: 0 -8px; border-radius: 9px; color: var(--text); }
.todo + .todo { border-top: 1px solid var(--line); border-radius: 0; }
.todo:hover { background: var(--panel-2); text-decoration: none; border-radius: 9px; }
.todo .title { font-weight: 600; font-size: 14.5px; }
.todo-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold); flex: none; }
.todo-ico .ico { width: 17px; height: 17px; }
.todo.warn .todo-ico { background: rgba(232, 163, 60, .14); color: var(--warn); }
.todo.bad .todo-ico { background: rgba(239, 79, 79, .14); color: #ff8a8a; }
.todo-go { color: var(--muted); }
.todo:hover .todo-go { color: var(--gold); }
.hprojs { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.hproj { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); background: var(--panel-2); }
.hproj:hover { text-decoration: none; border-color: var(--gold-line); }
.hproj h3 { font-size: 16px; }
.hproj .prow-bar { margin: 8px 0 2px; }
.hproj-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.stepper { list-style: none; display: flex; margin: 12px 0 4px; padding: 0; counter-reset: s; }
.stepper li { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 12px; gap: 2px; }
.stepper li::before { content: ''; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.ok::before, .stepper li.now::before { background: var(--gold-line); }
.stepper .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--panel); border: 2px solid var(--line-2); color: var(--muted); }
.stepper li.ok .dot { background: var(--ok); border-color: var(--ok); color: #0b0c10; }
.stepper li.now .dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 4px var(--gold-dim); }
.stepper b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 4px; }
.stepper li.later b { color: var(--muted); font-weight: 500; }
.news { display: flex; flex-direction: column; margin-top: 6px; }
.news-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--text); font-size: 13.5px; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item:hover { text-decoration: none; color: var(--gold); }
.news-item > .ico { width: 16px; height: 16px; color: var(--gold); margin-top: 3px; flex: none; }
.contact-card .btn { margin: 4px 0 10px; }
.secure-line { display: flex; gap: 6px; align-items: center; }
.secure-line .ico { width: 14px; height: 14px; color: var(--ok); }
.home-side .donut-wrap { flex-direction: column; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .stepper b { font-size: 11px; } .stepper li > span.muted { display: none; } }
.home-main .rm-row { grid-template-columns: 170px minmax(0, 1fr); }
.stepper { align-items: flex-start; }
.stepper li { justify-content: flex-start; }
.hproj .bar { background: var(--line); }
.hproj > .row.between { align-items: flex-start; }
@media (max-width: 640px) {
  .home-main .rm-row { grid-template-columns: minmax(0, 1fr); gap: 2px; margin-bottom: 6px; }
  .home-main .rm-top > .rm-label { display: none; }
  .home-main .rm-label { flex-direction: row; gap: 8px; align-items: baseline; }
}

/* offers to pick from (2026-11-08) */
.line-opts { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); }
.line-opts .check { display: inline-flex; gap: 6px; align-items: center; }
.line-opts .days { display: inline-flex; gap: 6px; align-items: center; }
.line-opts .days input { width: 70px; padding: 4px 8px; }
.line-row.off .x, .line-row.off .t { text-decoration: line-through; opacity: .6; }
table.lines tr.off td { opacity: .5; }
.tag.muted { color: var(--muted); border-color: var(--line); }
.offer-lines { display: flex; flex-direction: column; margin-top: 8px; }
.offer-line { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto minmax(120px, max-content); gap: 12px; align-items: center; padding: 12px 6px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.offer-line:first-child { border-top: 0; }
.offer-line.opt:hover { background: var(--panel-2); }
.offer-line.fixed { cursor: default; }
.offer-line input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.offer-line .title { font-weight: 600; }
.offer-line .title .tag { margin-left: 8px; }
.offer-line .num { text-align: right; font-variant-numeric: tabular-nums; }
.offer-line.off .title, .offer-line.off .num { color: var(--muted); text-decoration: line-through; }
.offer-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.offer-sum { position: sticky; bottom: 0; z-index: 3; margin-top: 16px; background: var(--panel); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 10px; }
.offer-sum-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.offer-sum-grid > div { display: flex; flex-direction: column; }
.offer-sum-grid b { font-size: 18px; font-family: var(--display); }
.offer-sum-grid .total b { color: var(--gold); font-size: 24px; }
@media (max-width: 640px) {
  .offer-line { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .offer-meta { display: none; }
  .offer-sum-grid { grid-template-columns: 1fr 1fr; }
  .offer-sum-grid .total { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .offer-sum { position: static; box-shadow: none; }
  .offer-sum-grid { gap: 8px; }
  .offer-sum-grid .total b { font-size: 22px; }
  .offer-line .title .tag { display: none; }
  .offer-sum .row.end { flex-direction: column-reverse; align-items: stretch; }
}
/* package offers (2026-11-08) */
.line-opts .mini { display: inline-flex; flex-direction: column; gap: 2px; font-size: 11.5px; }
.line-opts .mini.grow { flex: 1 1 160px; }
.line-opts .mini input, .line-opts .mini select { padding: 4px 8px; font-size: 13px; }
.line-opts .cd { width: 54px; }
.offer-group + .offer-group { margin-top: 14px; }
.offer-group h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-family: var(--body); font-weight: 700; margin-bottom: 2px; }
.offer-line .pkg { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--gold-dim); color: var(--gold); font-weight: 700; margin-right: 8px; font-size: 13px; }
.offer-line .bul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; columns: 2; column-gap: 24px; }
.offer-line .bul li { break-inside: avoid; margin-bottom: 2px; }
.offer-line { align-items: start; }
.offer-line input[type=checkbox] { margin-top: 3px; }
.offer-line .num { white-space: nowrap; }
.offer-line.off .title .tag { text-decoration: none; display: inline-block; }
.offer-sum .rec { color: var(--text); font-size: 13px; font-weight: 600; }
.offer-sum .agree { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.offer-intro { max-width: 900px; }
.needs { columns: 2; column-gap: 28px; margin: 6px 0 0; padding-left: 18px; }
.needs li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 640px) { .offer-line .bul, .needs { columns: 1; } }

/* documents (owner 2026-11-08): one card per document, folds open; the client prints, signs and uploads */
.doc-cards { display: flex; flex-direction: column; gap: 10px; }
.doc-cards > details.doc-card { padding: 0; margin: 0; }
.doc-cards { margin-top: 20px; }
details.doc-card > summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 18px; cursor: pointer; border-radius: var(--radius); }
details.doc-card > summary::-webkit-details-marker { display: none; }
details.doc-card:not([open]) > summary:hover { background: var(--panel-2); }
details.doc-card { transition: border-color .15s; }
details.doc-card[open] { border-color: var(--gold-line); }
details.doc-card .chev { color: var(--muted); transition: transform .15s; }
details.doc-card[open] .chev { transform: rotate(180deg); }
details.doc-card .doc-body { padding: 0 18px 16px 66px; }
details.doc-card .doc-facts { margin-top: 2px; }
.doc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0 14px; font-size: 13px; }
.doc-facts dt { color: var(--muted); }
.doc-facts dd { margin: 0; }
.doc-acts { gap: 6px; justify-content: flex-end; }
.print-frame { position: fixed; width: 0; height: 0; border: 0; right: 0; bottom: 0; }
@media (max-width: 640px) {
  details.doc-card > summary { flex-wrap: wrap; padding: 12px 14px; }
  details.doc-card .doc-body { padding: 4px 14px 14px; }
  .doc-item { flex-wrap: wrap; }
  .doc-acts { width: 100%; justify-content: flex-start; }
}
.doc-item .grow > .pill { margin-top: 4px; }
.sig-box { display: flex; flex-direction: column; gap: 10px; }
.sig-img { max-width: 280px; max-height: 90px; background: #fff; border-radius: 8px; padding: 8px 12px; align-self: flex-start; }

/* staff client page: the client's menu is in the sidebar (owner 2026-11-08), tabs only when the sidebar is folded away */
.client-tabs { display: none; }
@media (max-width: 860px) { .client-tabs { display: flex; } }

/* rich e-mail editor (richedit) */
.re-wrap { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-2, #323745); border-radius: 10px; background: #0e1016; min-height: 0; }
.re-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px 6px; border-bottom: 1px solid var(--line-2, #323745); background: var(--panel, #12141b); border-radius: 10px 10px 0 0; }
.re-btn { background: transparent; border: 1px solid transparent; color: var(--text, #ece8df); min-width: 30px; height: 28px; padding: 0 7px; border-radius: 7px; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.re-btn:hover { background: var(--gold-dim, rgba(227, 184, 102, .13)); }
.re-btn.on { background: var(--gold-dim, rgba(227, 184, 102, .13)); border-color: var(--gold-line, rgba(227, 184, 102, .42)); color: var(--gold, #e3b866); }
.re-b { font-weight: 800; }
.re-i { font-style: italic; font-family: Georgia, serif; }
.re-u { text-decoration: underline; }
.re-s { text-decoration: line-through; }
.re-sep { width: 1px; height: 18px; background: var(--line-2, #323745); margin: 0 4px; }
.re-sel { height: 28px; padding: 0 6px; font-size: 12.5px; border-radius: 7px; background: #0e1016; color: var(--text, #ece8df); border: 1px solid var(--line-2, #323745); }
.re-color { width: 30px; height: 26px; padding: 0 2px; border: 1px solid var(--line-2, #323745); border-radius: 7px; background: transparent; cursor: pointer; }
.re-area { position: relative; flex: 1; min-height: 240px; padding: 14px 16px; outline: none; overflow: auto; font: 14.5px/1.55 'Segoe UI', Arial, sans-serif; color: var(--text, #ece8df); word-wrap: break-word; }
.re-area.empty::before { content: attr(data-placeholder); color: var(--muted, #9b968b); pointer-events: none; position: absolute; }
.re-area p { margin: 0 0 .6em; }
.re-area a { color: #6aa8ff; text-decoration: underline; }
.re-area blockquote { margin: .4em 0 .4em .2em; padding-left: 12px; border-left: 3px solid var(--gold-line, rgba(227, 184, 102, .42)); color: #c9c4b8; }
.re-area img { max-width: 100%; height: auto; border-radius: 4px; }
.re-area hr { border: 0; border-top: 1px solid var(--line-2, #323745); margin: 12px 0; }
.re-area ul, .re-area ol { margin: .3em 0 .6em 1.4em; padding: 0; }
.re-area h2 { font-size: 20px; margin: .4em 0; }
.re-area h3 { font-size: 16.5px; margin: .4em 0; }
.re-area pre { font-family: Consolas, monospace; background: rgba(255, 255, 255, .04); padding: 8px; border-radius: 6px; white-space: pre-wrap; }
.re-area [data-fab="sig"] { color: #c9c4b8; }
.re-pop { position: absolute; z-index: 50; min-width: 300px; background: var(--panel-2, #181b24); border: 1px solid var(--gold-line, rgba(227, 184, 102, .42)); border-radius: 10px; padding: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 8px; }
.re-pop label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted, #9b968b); }
.re-pop input { font: inherit; color: var(--text, #ece8df); background: #0e1016; border: 1px solid var(--line-2, #323745); border-radius: 7px; padding: 6px 8px; }
.re-poprow { display: flex; gap: 6px; justify-content: flex-end; }
.re-pop button { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 7px; border: 1px solid var(--line-2, #323745); background: transparent; color: var(--text, #ece8df); cursor: pointer; }
.re-pop button.re-ok { background: var(--gold, #e3b866); color: #17130a; border-color: var(--gold, #e3b866); font-weight: 600; }
.re-snips { max-height: 320px; overflow: auto; }
.re-snip { display: flex; gap: 4px; }
.re-snip .re-snipins { flex: 1; text-align: left; }
.re-snip .re-snipdel { color: #ff8a8a; }
.re-muted { color: var(--muted, #9b968b); font-size: 12.5px; padding: 4px; }
.re-bar.compact .re-sel { display: none; }
.re-bar .re-sel { width: auto; flex: none; margin: 0; }
.re-bar .re-color { width: 30px; flex: none; margin: 0; }
.re-bar .re-btn { width: auto; margin: 0; }
