@font-face { font-family: 'Bonbance'; src: url('../../assets/fonts/Bonbance-BoldCondensed.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* Boulekampen · Företagsportal
   Neutral arbetsyta som i CRM:et: vit bakgrund, ljusgrå kakel och vänsterkolumn,
   inga beige toner. Det som ligger i ett grått kakel är vitt.
   Plommon (#34232f) bär text, primärknappar och aktiv markering,
   rött (#e5492b) är accenten för framsteg och "nu". Knappar och flikar är pills.
   Rörelse som i crm.brunowegelius.com: hover byter bara ton och färg på 0,15 s,
   en ny sida tonar in på 0,25 s och glider 4 px, lådan glider in på 0,3 s.
   Inga skuggor, ingen fjädring, inga lyft. */

:root {
  --canvas: #ffffff;
  --surface: #ffffff;
  --tile: #f3f3f2;
  --sunken: #f3f3f2;
  --line: #e8e8e6;
  --line-2: #dcdcda;
  --ink: #34232f;
  --ink-2: #4e3b48;
  --muted: #6e5e69;
  --faint: #a3969e;
  --primary: #34232f;
  --primary-2: #4a3542;
  --primary-tint: #efe9ec;
  --hi: #e5492b;
  --hi-soft: #fbe3de;
  --danger: #b42318;
  --danger-tint: #fdeceb;
  --warn: #b23a10;
  --warn-tint: #fde8df;

  --ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bonbance', var(--ui);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --side: 248px;
  --top: 64px;
  --pad: clamp(16px, 3vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 14.5px/1.5 var(--ui);
  font-feature-settings: 'ss01', 'tnum';
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Webbläsarnas egna kanter bort: portalen har inga linjer alls. */
button, input, select, textarea, fieldset, iframe, img { border: 0; }
button { cursor: pointer; background: none; padding: 0; }
a { color: inherit; }
::selection { background: #e5492b; color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
h2 { font-size: 15.5px; line-height: 1.3; }
h3 { font-size: 14.5px; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }

/* ── Skal ─────────────────────────────────────────────────────────── */

.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--tile);
  padding: 18px 14px 14px;
  z-index: 40;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; text-decoration: none; }
.side-brand img { width: 40px; height: 40px; }
.side-brand b { display: block; font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.side-brand span { font-size: 12px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }

.nav a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 450;
  transition: background .15s, color .15s;
}
.nav a svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: color .15s; }
.nav a:hover { background: var(--line); color: var(--ink); }
.nav a:hover svg { color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--primary); font-weight: 550; }
.nav a[aria-current="page"] svg { color: var(--primary); }
.nav a[aria-current="page"]::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--primary);
}
.nav .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--hi); }

.side-foot { padding-top: 12px; margin-top: 10px; }
.helpcard { padding: 12px; border-radius: var(--r-md); background: var(--canvas); font-size: 13px; }
.helpcard b { display: block; font-weight: 550; margin-bottom: 2px; }
.helpcard a { color: var(--primary); font-weight: 550; text-decoration: none; }
.helpcard a:hover { text-decoration: underline; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: background .25s;
}
.icon-btn.menu-btn { display: none; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); min-width: 0; white-space: nowrap; }
.crumb b { color: var(--ink); font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  width: min(320px, 34vw); height: 36px; padding: 0 8px 0 12px; border-radius: var(--r-sm); background: var(--surface);
  color: var(--faint); font-size: 13.5px;
}
.search kbd, kbd { margin-left: auto; font: 500 11.5px var(--ui); padding: 2px 6px; border-radius: 5px; color: var(--muted); background: var(--surface); }
.icon-btn {
  position: relative;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 999px; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--sunken); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px var(--hi); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--sunken); color: var(--ink-2);
}
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.bk { background: var(--hi); color: #111111; }
.me { text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; transition: background .15s; }
.me:hover { background: var(--sunken); }
.me .avatar { background: var(--ink); color: #fff; }

.view { padding: 8px var(--pad) 96px; max-width: 1240px; width: 100%; margin: 0 auto; }
/* Ny sida: allt tonar in samtidigt. Omritningar (paint(false)) står still. */
.view-enter > * { animation: enter .25s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 26px; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 62ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Byggstenar ───────────────────────────────────────────────────── */

.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  background: var(--b); color: #fff;
  font-weight: 550; font-size: 13.5px; white-space: nowrap; text-decoration: none;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--primary-2); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: var(--sunken); color: var(--ink); }
.btn.ghost:hover { background: var(--line); }
.btn.quiet { background: transparent; color: var(--ink-2); }
.btn.quiet:hover { background: var(--sunken); }
.btn.danger { background: var(--surface); color: var(--danger); }
.btn.danger:hover { background: var(--danger-tint); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.panel { background: var(--tile); border-radius: var(--r-lg); padding: 20px; min-width: 0; --sunken: var(--surface); }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.panel.flush .panel-head { padding: 18px 20px 0; }
.link { color: var(--primary); font-weight: 550; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--faint); transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: currentColor; }

.grid { display: grid; gap: 16px; }

.split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-sm);
  background: var(--surface);
  transition: background-color .15s;
}
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(52, 35, 47, .12); }
select.input, .field select { appearance: none; padding-right: 32px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23646b5f' stroke-width='1.6'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") right 12px center no-repeat; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; transition: background .15s; margin-top: 1px; }
.check .box svg { width: 12px; height: 12px; color: var(--hi); opacity: 0; transition: opacity .15s; }
.check input:checked + .box { background: var(--primary); }
.check input:checked + .box svg { opacity: 1; }
.check input:focus-visible + .box { outline: 2px solid var(--primary); outline-offset: 2px; }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--ink); font-weight: 550; margin-bottom: 4px; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 14px; white-space: nowrap; background: var(--tile); position: sticky; top: 0; }
.tbl th button { display: inline-flex; align-items: center; gap: 4px; color: inherit; font-weight: inherit; }
.tbl th button:hover { color: var(--ink); }
.tbl th button svg { width: 12px; height: 12px; opacity: .6; }
.tbl td { padding: 8px 14px; vertical-align: middle; }
.tbl tbody tr { transition: background .15s; }
.tbl .r { text-align: right; }

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Avslöjande vid scroll */

/* ── Översikt ─────────────────────────────────────────────────────── */

.count-down { display: flex; gap: 6px; align-items: flex-end; }
.count-down .u { display: flex; flex-direction: column; align-items: flex-end; }
.count-down .u b { font: 600 clamp(40px, 5.6vw, 64px)/0.9 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.count-down .u span { font-size: 12px; color: var(--muted); margin-top: 6px; }
.count-down .sep { font: 500 clamp(28px, 4vw, 44px)/1 var(--display); color: var(--line-2); padding-bottom: 22px; }

/* Dagsrälsen — sidans enda stora grepp: hela dagen som en skala. */

.todo { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.todo-item:first-child { padding-top: 2px; }
.todo-item .t { flex: 1; min-width: 0; }
.todo-item .t b { display: block; font-weight: 500; transition: color .15s; }
.todo-item .t span { font-size: 12.5px; color: var(--muted); }
.todo-item.done .t b { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-2); }
.todo-item .go { opacity: 0; transition: opacity .15s; }
.todo-item:hover .go, .todo-item .go:focus-visible { opacity: 1; }

/* ── Program ──────────────────────────────────────────────────────── */

.timeline { position: relative; display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 18px; }
.tl-row time { font-weight: 550; font-variant-numeric: tabular-nums; padding-top: 1px; text-align: right; }
.tl-row .pin { position: relative; display: flex; justify-content: center; }
.tl-row .pin::before { content: ''; position: absolute; top: 16px; bottom: -20px; width: 1.5px; background: var(--line); }
.tl-row:last-child .pin::before { display: none; }
.tl-row .pin i { position: relative; width: 11px; height: 11px; border-radius: 50%; margin-top: 5px; background: var(--surface); }

.tl-row b { display: block; font-weight: 550; }
.tl-row p { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ── Deltagare ────────────────────────────────────────────────────── */

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.toolbar .search-in { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search-in svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.toolbar .search-in input { padding-left: 34px; }

.diet { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 2px 7px; border-radius: 5px; background: var(--sunken); color: var(--ink-2); white-space: nowrap; }

.invite { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: var(--r-md); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-size: 13px; color: var(--muted); }

/* ── Lag ──────────────────────────────────────────────────────────── */

/* ── Offert och faktura ───────────────────────────────────────────── */

.doc { position: relative; padding: 32px 34px; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 22px; flex-wrap: wrap; }
.doc-head img { width: 64px; height: 64px; }
.doc-meta { text-align: right; font-size: 13px; color: var(--muted); }
.doc-meta b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.doc-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 18px 0; font-size: 13.5px; }
.doc-parties span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.items td { padding: 12px 10px; }
.items th { padding: 10px; position: static; }
.items td:first-child, .items th:first-child { padding-left: 0; }
.items td:last-child, .items th:last-child { padding-right: 0; }

.totals { margin-left: auto; width: min(320px, 100%); margin-top: 14px; font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; padding: 5px 0; font-variant-numeric: tabular-nums; }
.totals .sum { margin-top: 6px; padding-top: 10px; font-weight: 600; font-size: 16px; }
.totals .sum span:last-child { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.stamp {
  position: absolute; right: 34px; top: 120px; color: var(--primary); border-radius: 8px;
  padding: 6px 12px; font-weight: 700; font-size: 13px; transform: rotate(-7deg);
  background: rgba(229, 73, 43, .35);
}

/* ── Dagen ────────────────────────────────────────────────────────── */

/* ── Material ─────────────────────────────────────────────────────── */

/* ── Meddelanden ──────────────────────────────────────────────────── */

.chat { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: calc(100dvh - 222px); min-height: 420px; }
.view:has(.chat) { padding-bottom: 24px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.chat-head .people { display: flex; }
.chat-head .people .avatar + .avatar { margin-left: -8px; }
.chat-head .on { margin-left: auto; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head .on i { width: 7px; height: 7px; border-radius: 50%; background: var(--hi); }
.msgs { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.msg { display: flex; gap: 10px; max-width: 78%; }
.msg .bubble { padding: 10px 13px; border-radius: 12px 12px 12px 4px; background: var(--canvas); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.msg .meta { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--primary); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg.mine .meta { text-align: right; }
.msg .att { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 11px; border-radius: 9px; background: var(--surface); font-size: 13px; color: var(--ink); text-decoration: none; }
.msg .att svg { width: 18px; height: 18px; color: var(--muted); }

.composer { display: flex; gap: 8px; padding: 12px; align-items: flex-end; }
.composer textarea { flex: 1; resize: none; height: 40px; max-height: 140px; padding: 9px 12px; border-radius: var(--r-md); line-height: 1.45; }
.composer textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(52, 35, 47, .12); }

/* ── Lager: palett, dialog, popover, toast, låda ───────────────────── */

.scrim { position: fixed; inset: 0; background: rgba(52, 35, 47, .32); z-index: 80; animation: fade .25s both; }
.scrim.out { animation: fade .2s reverse both; }
@keyframes fade { from { opacity: 0; } }

.dialog {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; z-index: 90;
  background: var(--surface); border-radius: var(--r-lg); padding: 24px;
  animation: dpop .25s ease both;
}
@keyframes dpop { from { opacity: 0; transform: translate(-50%, calc(-50% + 4px)); } }
.dialog h2 { font-size: 18px; margin-bottom: 6px; }
.dialog > p { color: var(--muted); margin-bottom: 18px; }
.dialog .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.sig { font-family: 'Caveat', cursive; font-size: 30px; height: 56px !important; color: var(--primary); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 90;
  background: var(--surface);
  display: flex; flex-direction: column; animation: slide .3s var(--ease) both;
}
.drawer.out { animation: slide .2s var(--ease) reverse both; }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 22px; display: flex; gap: 8px; justify-content: flex-end; }

.rel { position: relative; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; animation: toast .25s var(--ease) both; pointer-events: auto; }
.toast svg { width: 16px; height: 16px; color: #f1b9f1; }
.toast button { color: #f1b9f1; font-weight: 550; margin-left: 8px; }
.toast.out { animation: toast .2s var(--ease) reverse both; }
@keyframes toast { from { opacity: 0; transform: translateY(8px); } }

/* ── Responsivt ───────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .split{ grid-template-columns: minmax(0, 1fr); }
  
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.open { transform: none; }
  /* Menyn skiljs från sidan med en skärm bakom, inte med skugga. Klick på den stänger menyn. */
  .main::before { content: ''; position: fixed; inset: 0; z-index: 35; background: rgba(52, 35, 47, .32); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .side.open ~ .main::before { opacity: 1; pointer-events: auto; }
  .icon-btn.menu-btn { display: grid; margin-left: -8px; }
  
  
  
  .search { width: 40px; padding: 0; justify-content: center; background: transparent; }
   .search kbd { display: none; }
  
}
@media (max-width: 640px) {
   .doc-parties { grid-template-columns: minmax(0, 1fr); }
  
  
  .count-down { justify-content: flex-start; }
  .count-down .u { align-items: flex-start; }
  
  
  .doc { padding: 22px 18px; }
  .stamp { right: 18px; top: 96px; }
  .me .who { display: none; }
  .crumb .co { display: none; }
  .invite { grid-template-columns: minmax(0, 1fr); }
  .msg { max-width: 92%; }
  .chat { height: calc(100dvh - 200px); }
  .page-head { padding-top: 14px; }
  
  
}

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

@media print {
  .side, .top, .toasts { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .view { padding: 0; }
  
}

/* ── Utan kanter ──────────────────────────────────────────────────────
   Inga linjer någonstans. Ytor skiljs med ton (canvas, vit, sänkt) och
   luft; listor med mellanrum och hover-ton i stället för avdelare. */

.side-foot { padding-top: 12px; margin-top: 10px; }

.search { background: var(--surface); }
.search:hover { background: #fff; }
.search kbd, kbd { background: var(--sunken); }
.btn.danger { background: var(--danger-tint); color: var(--danger); }
.btn.danger:hover { background: #fadad7; }

.input, .field input, .field select, .field textarea, .composer textarea { background-color: var(--sunken); transition: background-color .15s; }
select.input, .field select { background-color: var(--sunken); }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { background-color: var(--line); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .composer textarea:focus { outline: none; background-color: var(--surface); box-shadow: 0 0 0 2px var(--primary); }
.l-inner .field input{ background-color: var(--sunken); }

.check .box { background: var(--line); }
.check:hover .box { background: var(--line-2); }

.tbl tbody tr:nth-child(even) { background: rgba(255, 255, 255, .55); }
.tbl tbody tr:hover { background: var(--primary-tint); }
.tbl td { padding: 11px 14px; }
.toolbar { padding: 16px 16px 12px; }

.todo { gap: 4px; }
.todo-item { padding: 10px 12px; margin: 0 -12px; border-radius: 10px; transition: background .15s; }
.todo-item:first-child { padding-top: 10px; }
.todo-item:hover { background: var(--canvas); }

.tl-row .pin i { background: var(--line-2); }

.doc-head { padding-bottom: 26px; }
.doc-parties { padding: 8px 0 22px; }
.items tbody tr:nth-child(even) { background: transparent; }
.items tbody tr:hover { background: transparent; }
.totals { background: var(--canvas); border-radius: 12px; padding: 12px 16px; }
.totals .sum { margin-top: 6px; padding-top: 10px; }
.stamp { box-shadow: inset 0 0 0 2px var(--primary); }

.qr { background: #fff; }

.msg .att { background: var(--tile); }

.drawer-head, .drawer-foot { background: var(--canvas); }

.items td { padding: 12px 10px; }
.items .r { white-space: nowrap; }

/* Förenklad portal */
.org-name { margin: 0 0 14px; padding: 0 10px; font-size: 13px; color: var(--muted); }
.page-head .count-down .u b { font-size: clamp(34px, 4vw, 48px); }

/* Rubriker i Bonbance, siffror och resten i Inter */
h1 { font-family: var(--display); font-weight: 700; letter-spacing: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; }
.count-down .u b, .totals .sum span:last-child { font-family: var(--ui); font-weight: 600; }
.side-brand b { font-family: var(--ui); }

/* Stor centrerad logga i vänsterkolumnen */
.side-brand { flex-direction: column; justify-content: center; gap: 8px; padding: 14px 0 22px; }
.side-brand img { width: 150px; height: 150px; }
.side-brand span { font-size: 13px; color: var(--muted); }
.org-name { text-align: center; }
.sig { font-family: var(--ui); font-style: italic; font-size: 22px; }
@media (max-width: 900px) { .side-brand img { width: 96px; height: 96px; } }
