/* Offertläget (/?offert=<id>, docs/offertlage.md) – bara desktop (≥ 1024 px). Facit: offertlage-prototyp.html.
   Zimla AI dockas till vänster (html.zimla-offertlage, zimla-offertlage.js); dokumentytan är en container så att
   högerspalten fälls in under huvudspalten när ytan är smal (oavsett chattens bredd). */
/* Färgerna gäller också offertlägets kort i Zimla-panelen (utanför .ol) – annars blev "Lägg till mottagare" vit på vitt. */
.ol, html.zimla-offertlage .zimla-ai-panel {
  --ol-fg: #1d2420; --ol-fg2: #4e5751; --ol-mut: #6b736e; --ol-mut2: #8a918c; --ol-line: #e4e7e2; --ol-line2: #eef0ec;
  --ol-g: #1f6b4f; --ol-g2: #15543d; --ol-gbg: #e6f1ea; --ol-gdot: #2fbf71; --ol-deep: #12382b;
  --ol-amb: #d08a00; --ol-ambbg: #fff4dc; --ol-ambfg: #8a5a00; --ol-paper: #f7f6f2;
  --ol-serif: Newsreader, Georgia, serif; --ol-ui: Inter, system-ui, -apple-system, sans-serif;
}
.ol {
  display: flex; flex-direction: column; min-width: 0; height: 100dvh; background: var(--ol-paper);
  color: var(--ol-fg); font: 14px/1.45 var(--ol-ui); -webkit-font-smoothing: antialiased;
}
.ol .material-symbols-outlined { font-size: 17px; line-height: 1; }
.ol .tnum { font-variant-numeric: tabular-nums; }
.ol button { font: inherit; color: inherit; cursor: pointer; }
.ol [x-cloak] { display: none !important; }

/* ---------- toppraden ---------- */
.ol-bar { flex: none; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 20px; border-bottom: 1px solid var(--ol-line); background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); position: relative; z-index: 5; }
.ol-setb { flex: none; height: 36px; border: 0; border-radius: 11px; background: var(--ol-deep); color: #fff !important; font-size: 13px; font-weight: 600; padding: 0 14px 0 11px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 8px 18px -10px rgba(18, 56, 43, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ol-setb:hover { background: #0b2a1f; }
.ol-setb[aria-expanded="true"] { background: var(--ol-g); }
.ol-setb[disabled] { opacity: .45; cursor: default; }
.ol-crumbs { flex: 0 1 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ol-fg2); min-width: 0; white-space: nowrap; }
.ol-crumbs a { color: inherit; text-decoration: none; }
.ol-crumbs-who { display: contents; }  /* kund och projekt byts efter omritning (data-ol-crumbs-who), layouten är nav:ens */
.ol-crumbs a:hover { color: var(--ol-g); text-decoration: underline; }
.ol-crumb-s { color: #a3aaa5; }
.ol-crumb-p { min-width: 7.5em; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--ol-fg) !important; }
.ol-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--ol-gbg); color: var(--ol-g); white-space: nowrap; }
.ol-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--ol-gdot); }
.ol-pill.is-sent { background: #eef0ec; color: #35493d; } .ol-pill.is-sent i { background: #6b7a70; }
.ol-pill.is-muted { background: #f3f1ee; color: var(--ol-mut); } .ol-pill.is-muted i { background: var(--ol-mut2); }
.ol-saved { flex: none; font-size: 12px; color: var(--ol-mut2); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.ol-saved .material-symbols-outlined { font-size: 15px; }
.ol-saved.is-saving { color: var(--ol-mut); }
.ol-sp { flex: 1; min-width: 4px; }
.ol-seg { flex: none; display: inline-flex; background: #eceee9; border-radius: 10px; padding: 3px; }
.ol-seg button { height: 28px; border: 0; border-radius: 8px; background: transparent; font-size: 12.5px; font-weight: 500; color: var(--ol-fg2); padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ol-seg button[aria-pressed="true"] { background: #fff; color: var(--ol-fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ol-seg--sm button { height: 26px; font-size: 12px; }
.ol-seg--full { display: flex; width: 100%; }  /* Kunden: Privatperson | Företag fyller kortet */
.ol-seg--full button { flex: 1; justify-content: center; }
.ol-kund .ol-hn { margin-top: 6px; }
.ol-ib { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ol-fg2); }
.ol-ib:hover:not([disabled]) { background: #f0f2ee; color: var(--ol-fg); }
.ol-ib[disabled] { opacity: .35; cursor: default; }
.ol-btn { flex: none; height: 32px; border: 1px solid #d6dad5; border-radius: 9px; background: #fff; font-size: 12.5px; font-weight: 600; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ol-fg); text-decoration: none; }
.ol-btn:hover { background: #f4f5f2; }
.ol-btn.is-p { background: var(--ol-g); border-color: var(--ol-g); color: #fff; }
.ol-btn.is-p:hover { background: var(--ol-g2); }
.ol-btn[disabled] { opacity: .45; cursor: default; }
.ol-send-n { min-width: 18px; height: 18px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.ol-bar form { display: contents; }
.ol-send-n[hidden] { display: none; }

/* ---------- dokumentytan ---------- */
.ol-scroll { flex: 1; min-height: 0; overflow-y: auto; position: relative; container-type: inline-size; container-name: oldoc; }
.ol-banner { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; justify-content: center; background: #eef0ec; color: #2f3b34; font-size: 12.5px; padding: 8px 12px; border-bottom: 1px solid var(--ol-line); }
.ol-banner button { border: 0; background: #fff; border-radius: 7px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--ol-g2); }
.ol-banner button.is-q { background: transparent; font-weight: 500; color: var(--ol-mut); }
.ol-banner button.is-q:hover { color: var(--ol-g2); }
.ol-lock { display: flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ol-line); font-size: 13px; color: var(--ol-fg2); width: min(76rem, calc(100% - 2rem)); }
/* Samma bredd och spalter som kundvyn (public_base.html .customer-offer__layout/__workspace), så att Arbetsvy och
   Kundvy står på samma ställe när man byter. */
.ol-page { width: min(76rem, calc(100% - 2rem)); margin: 0 auto; padding: 22px 0 80px; }
.ol-ptop { display: flex; align-items: center; gap: 12px; padding: 0 0 18px; }
.ol-plogo { width: 34px; height: 34px; border-radius: 8px; background: #141a17; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; overflow: hidden; }
.ol-plogo { position: relative; }
.ol-plogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ol-ptop b { display: block; font-size: 13.5px; font-weight: 600; }
.ol-ptop small { display: block; font-size: 11.5px; color: var(--ol-mut); }
.ol-ptop-mid { flex: 1; text-align: center; font-size: 12.5px; color: var(--ol-fg2); }
.ol-ptop-mid span { display: inline-flex; align-items: center; gap: 6px; }
.ol-ptop-r { font-size: 12.5px; color: var(--ol-fg2); white-space: nowrap; }
.ol-ptop-r b { display: inline; font-weight: 600; color: var(--ol-fg); }
.ol-note { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; padding: 8px 12px; border-radius: 10px; background: var(--ol-ambbg); color: var(--ol-ambfg); font-size: 12.5px; }
.ol-grid { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(19.5rem, .86fr); gap: 1.5rem; align-items: start; }
.ol-coll { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ol-colr { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }

.ol-hero { background: var(--ol-deep); color: #fff; border-radius: 22px; padding: 32px 36px 34px; position: relative; }
.ol-co { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ol-plogo--hero { width: 46px; height: 46px; border-radius: 11px; background: #fff; color: #141a17; font-size: 13px; }
.ol-co b { display: block; font-size: 15px; font-weight: 600; }
.ol-co small { display: block; font-size: 12px; color: #b7cbbf; }
.ol-fsk { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 0 11px; font-size: 12px; color: #e3eee7; white-space: nowrap; }
.ol-fsk .material-symbols-outlined { font-size: 15px; }
.ol-no { margin: 26px 0 8px; font-size: 11px; letter-spacing: .16em; font-weight: 700; color: #6fd39b; text-transform: uppercase; }
.ol-hero h1 { margin: 0; font: 400 44px/1.08 var(--ol-serif); letter-spacing: -.02em; max-width: 560px; color: #fff; }
.ol-intro { margin: 18px 0 0; font: italic 400 16px/1.6 var(--ol-serif); color: #d8e6dd; max-width: 560px; }
.ol-intro p { margin: 0 0 8px; } .ol-intro p:last-child { margin: 0; }
.ol-box { background: #fff; border: 1px solid #e4e6e0; border-radius: 16px; }
.ol-contact { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.ol-av { width: 38px; height: 38px; border-radius: 50%; background: var(--ol-gbg); color: var(--ol-g); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ol-contact b { display: block; font-size: 13.5px; font-weight: 600; }
.ol-contact small { display: block; font-size: 12px; color: var(--ol-mut); }
.ol-contact .ol-btn { margin-left: auto; }

.ol-sech { display: flex; align-items: baseline; gap: 12px; margin: 10px 2px 0; flex-wrap: wrap; row-gap: 4px; }
.ol-sech .ol-k { font-size: 10.5px; letter-spacing: .16em; font-weight: 600; color: var(--ol-mut); text-transform: uppercase; }
.ol-sech h2 { margin: 0; font: 400 26px/1.2 var(--ol-serif); color: var(--ol-fg); }
.ol-sech small { font-size: 12px; color: var(--ol-mut); }
.ol-gbar { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ol-mut); align-self: center; }

.ol-rooms { overflow: hidden; }
.ol-room { border-top: 1px solid var(--ol-line2); }
.ol-room:first-child { border-top: 0; }
.ol-rh { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; min-height: 62px; }
.ol-rh:hover { background: #fafbf9; }
.ol-rh:focus-visible { outline: 2px solid var(--ol-g); outline-offset: -2px; }
.ol-ric { width: 34px; height: 34px; border-radius: 9px; background: var(--ol-gbg); color: var(--ol-g); display: flex; align-items: center; justify-content: center; flex: none; }
.ol-rn { flex: 1; min-width: 0; }
.ol-rn b { font-size: 14.5px; font-weight: 600; }
.ol-meta { font-size: 12px; color: var(--ol-mut); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 1px; }
.ol-attn { display: inline-flex; align-items: center; gap: 2px; }
.ol-attn .material-symbols-outlined { font-size: 14px; }
.ol-lvl { font-size: 11px; font-weight: 600; color: var(--ol-g2); background: var(--ol-gbg); border-radius: 999px; padding: 1px 7px; }
.ol-rp { text-align: right; flex: none; }
.ol-rp b { display: block; font: 500 19px/1.2 var(--ol-serif); white-space: nowrap; }
.ol-rp small { font-size: 11.5px; color: var(--ol-mut); }
.ol-chev { color: var(--ol-mut); transition: transform .2s; flex: none; }
.ol-room.is-open .ol-chev { transform: rotate(180deg); }
.ol-rb { display: none; padding: 2px 16px 14px 62px; }
.ol-room.is-open .ol-rb { display: block; }
.ol-grp { margin-top: 8px; }
.ol-wd { display: inline-flex; align-items: center; min-height: 32px; margin-top: 8px; font-size: 13px; color: var(--ol-g); text-decoration: none; } /* yrkets arbetsbeskrivning till en UE (team/work_description) */
.ol-wd:hover { text-decoration: underline; }
.ol-gh { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #f5f6f3; font-size: 10.5px; letter-spacing: .12em; font-weight: 600; text-transform: uppercase; color: #38423c; }
.ol-gh .ol-c { color: var(--ol-mut2); font-weight: 500; letter-spacing: 0; }
.ol-gh .ol-t { text-transform: none; margin-left: auto; font-size: 12px; letter-spacing: 0; font-weight: 600; color: var(--ol-fg); }
/* Priser per post visas inte (ägaren 2026-10-12) – à-pris och summa ligger kvar i raden för omritningen men syns inte;
   arbetsgruppens och rummets summor står kvar. */
.ol-mo .ol-ap, .ol-mo .ol-s, .ol-mhead .ol-ap, .ol-mhead .ol-s { display: none; }
.ol-mo, .ol-mhead { display: grid; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; font-size: 13px; }
.ol-mo:hover { background: #fafbf9; }
.ol-mo--ro { grid-template-columns: minmax(0, 1fr); }
/* Övrigt (ägaren 2026-10-14: "se mer på Övrigt"): mängden i mängdkolumnen och en grå rad om hur kostnaden räknas. */
.ol-mo.ol-mo--cost { grid-template-columns: minmax(0, 1fr) 76px; }
.ol-cb { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; color: var(--ol-mut); }
.ol-mo--cost.is-off .ol-cb { text-decoration: line-through; opacity: .7; }
.ol-cauto { border: 0; padding: 0; background: none; font: inherit; color: var(--ol-g); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ol-mn { min-width: 0; overflow-wrap: anywhere; }
.ol-q { display: flex; align-items: center; gap: 4px; color: var(--ol-mut); font-size: 12px; justify-content: flex-end; white-space: nowrap; }
.ol-q input { width: 56px; height: 28px; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: right; font: inherit; font-size: 12.5px; color: var(--ol-fg); padding: 0 5px; outline: 0; font-variant-numeric: tabular-nums; }
.ol-q input.is-ap { width: 72px; }
.ol-q input:hover { border-color: #dfe3dd; background: #fff; }
.ol-q input:focus { border-color: var(--ol-g); background: #fff; box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-q input.is-pending { color: var(--ol-mut); }
.ol-q input[aria-invalid="true"] { border-color: #b8483a; }
.ol-q > span:first-child { color: var(--ol-fg); font-size: 12.5px; }
.ol-u { min-width: 18px; }
.ol-s { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ol-mhead { padding: 8px 8px 2px; font-size: 10.5px; color: var(--ol-mut2); }
.ol-mhead span { text-align: right; }
.ol-mhead span:first-child { text-align: left; }
.ol-mo.is-hidden .ol-mn, .ol-mo.is-hidden .ol-s { opacity: .55; }
.ol-hidtag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #6b5b2a; background: var(--ol-ambbg); border-radius: 999px; padding: 1px 8px; margin-left: 8px; white-space: nowrap; vertical-align: 1px; }
.ol-hidtag .material-symbols-outlined { font-size: 12px; }
/* Radrabatt (UX-flocken 2026-10-12): en upplysning, inte en varning som Döljs för kunden – grön text, ingen bakgrund. */
.ol-disc { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--ol-g); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ol-mo.is-changed { animation: ol-flash 1.6s ease-out; }
.ol-room.is-changed > .ol-rh, .ol-note.is-changed, .ol-rnote.is-changed { animation: ol-flash 1.6s ease-out; } /* en länk från chatten till ett rum */
@keyframes ol-flash { 0%, 25% { background: #d9f2e2; } 100% { background: transparent; } }
.ol-room.is-deleting { display: none; } /* Radera rum: borta direkt, Ångra i toasten (zimla-offertlage.js deleteRoom) */
/* Det som lades till i ett stängt rum: en grön rad efter rummets namn som tonar bort (reveal → announce). */
.ol-radd { display: inline-flex; max-width: min(48ch, 55%); margin-left: 10px; vertical-align: bottom; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--ol-g); }
.ol-radd-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ol-radd-c { flex: none; }
.ol-radd .is-gone { color: var(--ol-mut); }
.ol-radd.is-in { animation: ol-radd-in .18s cubic-bezier(.22,1,.36,1); }
.ol-radd.is-out { opacity: 0; transition: opacity .24s ease-in; }
@keyframes ol-radd-in { from { opacity: 0; transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .ol-radd.is-in { animation: none; } .ol-radd.is-out { transition: none; } }
.ol-empty { margin: 0; padding: 18px 16px; color: var(--ol-mut); font-size: 13px; }
.ol-notes { padding: 12px 16px; }
.ol-notes-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ol-notes-h b { font-weight: 600; }
.ol-notes-b { font-size: 13px; color: var(--ol-fg2); }

.ol-terms > summary { list-style: none; }
.ol-terms > summary::-webkit-details-marker { display: none; }
.ol-th { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; }
.ol-th b { display: block; font-size: 13.5px; font-weight: 600; }
.ol-th small { display: block; font-size: 12px; color: var(--ol-mut); }
.ol-th .ol-chev { margin-left: auto; }
.ol-terms[open] .ol-chev { transform: rotate(180deg); }
.ol-tb { padding: 0 16px 14px; font-size: 13px; line-height: 1.6; color: var(--ol-fg2); }
.ol-tb p { margin: 0 0 8px; }

.ol-payk { background: var(--ol-deep); color: #fff; border-radius: 20px; padding: 18px 20px; }
.ol-payk .ol-k { text-transform: uppercase; font-size: 10.5px; letter-spacing: .16em; font-weight: 700; color: #6fd39b; }
.ol-v { font: 400 52px/1.05 var(--ol-serif); letter-spacing: -.02em; margin: 4px 0 12px; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.ol-v small { font-size: 15px; }
.ol-payk .ol-v { margin-bottom: 2px; }
.ol-payk .ol-vat { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 14px; }
.ol-payk .ol-s { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 10px; font-size: 12px; font-weight: 400; color: #c8d9cf; display: grid; gap: 4px; text-align: left; white-space: normal; }
.ol-payk .ol-s > div { display: flex; justify-content: space-between; gap: 8px; }
.ol-payk .ol-s > div > span:first-child { min-width: 0; }
.ol-payk .ol-s .tnum { white-space: nowrap; }
.ol-payk .ol-s > .is-last { align-items: baseline; color: #fff; font-size: 14px; font-weight: 500; }  /* det kunden betalar: bara sista raden framhävd */
.ol-payk .ol-s > .is-last .tnum { font: 500 22px/1.15 var(--ol-serif); letter-spacing: -.01em; }
.ol-valid { display: flex; align-items: center; gap: 8px; background: #fdf1d2; border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: #7a5410; }
.ol-valid b { font-weight: 600; }
.ol-side { padding: 14px 16px; }
.ol-side .ol-k { font-size: 10.5px; letter-spacing: .16em; font-weight: 600; color: var(--ol-mut); text-transform: uppercase; margin-bottom: 10px; }
.ol-how { display: flex; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.ol-how .material-symbols-outlined { color: var(--ol-g); margin-top: 1px; }
.ol-how b { display: block; font-weight: 600; font-size: 12.5px; }
.ol-how small { display: block; color: var(--ol-mut); font-size: 11.5px; }
.ol-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 4px 0; color: var(--ol-fg2); }
.ol-kv span:last-child { color: var(--ol-fg); text-align: right; }
/* Timmar (Arbetsvy): talet mindre än Ni betalar, dagarna under, yrkesgrupperna som .ol-kv; långa namn klipps. */
.ol-hv { display: flex; align-items: baseline; gap: 4px; font: 400 30px/1.1 var(--ol-serif); letter-spacing: -.01em; color: var(--ol-fg); }
.ol-hv small { font: 400 13px var(--ol-ui); color: var(--ol-mut); }
.ol-hd { display: block; margin: 2px 0 8px; padding: 0; border: 0; background: none; font: 400 12px/1.4 var(--ol-ui); color: var(--ol-mut); text-align: left; }
button.ol-hd { cursor: pointer; }
button.ol-hd:hover { color: var(--ol-g); text-decoration: underline; text-underline-offset: 2px; }
.ol-hl { padding-top: 2px; }
/* Per yrkesgrupp: stängd från början, samma lugna summary som villkoren (pil som vänds). */
.ol-hmore { border-top: 1px solid var(--ol-line); }
.ol-hmore > summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 4px; font-size: 12px; color: var(--ol-fg2); cursor: pointer; list-style: none; }
.ol-hmore > summary::-webkit-details-marker { display: none; }
.ol-hmore > summary .ol-chev { font-size: 18px; color: var(--ol-mut); transition: transform .15s ease; }
.ol-hmore[open] > summary .ol-chev { transform: rotate(180deg); }
.ol-hours .ol-kv span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-hours .ol-kv span:last-child { flex: none; }
.ol-hx { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--ol-line); }
.ol-hn { display: block; font-size: 11px; color: var(--ol-mut); }
/* Yrkesgruppens timmar skrivs över på plats (som mängd/à-pris i raderna): fältet syns först vid hovring/fokus. */
.ol-hours .ol-kv:has(.ol-hq) { align-items: center; padding: 1px 0; }
.ol-hq { display: inline-flex; align-items: center; gap: 3px; color: var(--ol-fg); }
.ol-hq input { width: 58px; height: 26px; border: 1px solid transparent; border-radius: 6px; background: transparent; text-align: right; font: inherit; font-size: 12px; color: var(--ol-fg); padding: 0 5px; outline: 0; font-variant-numeric: tabular-nums; }
.ol-hq input:hover { border-color: #dfe3dd; background: #fff; }
.ol-hq input:focus { border-color: var(--ol-g); background: #fff; box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-hq input[aria-invalid="true"] { border-color: #b8483a; }
.ol-hq input.is-saving { color: var(--ol-mut); }
.ol-hown { margin-left: 6px; font-style: normal; font-size: 10.5px; color: var(--ol-g); }
.ol-pdf { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ol-line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ol-fg); text-decoration: none; }
.ol-pdf + .ol-pdf { margin-top: 6px; }
.ol-pdf:hover { background: #fafbf9; }
.ol-pdf div { flex: 1; min-width: 0; }
.ol-pdf b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-pdf small { display: block; color: var(--ol-mut); font-size: 11.5px; }
.ol-pdf.is-sm { padding: 8px 12px; }

/* Skelett medan dokumentet hämtas. */
.ol .skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #eef1ec 0%, #f8faf7 50%, #eef1ec 100%); background-size: 200% 100%; animation: ol-shim 1.1s linear infinite; }
.ol-hero--skel .skel { background: linear-gradient(90deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 100%); background-size: 200% 100%; }
.ol-payk--skel { min-height: 120px; }
@keyframes ol-shim { to { background-position: -200% 0; } }

/* ---------- Arbetsvy / Kundvy (samma markup) ---------- */

/* Smal dokumentyta: högerspalten under, i två kolumner. Kundvyn renderas i 1024 px och skalas ner under det
   (zimla-offertlage.js fitKundvy) och behåller två spalter – Arbetsvy gör samma sak ner till 760 px. */
@container oldoc (max-width: 760px) {
  .ol-grid { grid-template-columns: minmax(0, 1fr); }
  .ol-colr { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ol-colr .ol-payk, .ol-colr .ol-valid { grid-column: 1 / -1; }
  .ol-hero h1 { font-size: 38px; }
  .ol-page { width: min(100% - 1rem, 48rem); padding: 18px 0 80px; }
  .ol-lock { width: min(100% - 1rem, 48rem); }
}
@container oldoc (max-width: 640px) {
  .ol-colr { grid-template-columns: minmax(0, 1fr); }
  .ol-ptop-mid { display: none; }
  .ol-rb { padding-left: 16px; }
  .ol-mo, .ol-mhead { grid-template-columns: minmax(0, 1fr) 70px; }
  .ol[data-mode="work"] .ol-mo, .ol[data-mode="work"] .ol-mhead,
  .ol[data-mode="work"] .ol-mo.ol-mo--cost { grid-template-columns: minmax(0, 1fr) 70px 68px 52px; }
}
@media (max-width: 1560px) { .ol-saved-l { display: none; } }
@media (max-width: 1180px) { .ol-crumb-hide { display: none; } .ol-setb-l { display: none; } .ol-setb { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .ol .skel, .ol-mo.is-changed { animation: none; } .ol-mo.is-changed { background: #e3f4ea; } .ol-chev { transition: none; } }

/* ---------- skalet: Zimla AI dockad till vänster, bredvid sidomenyn ---------- */
@media (min-width: 1024px) {
  html.zimla-offertlage .zimla-app-shell { --zimla-ai-panel-width: 400px; }
  html.zimla-offertlage .zimla-app-shell.zimla-ai-shell-open,
  html.zimla-offertlage.zimla-ai-panel-restoring .zimla-app-shell { padding-right: 0 !important; padding-left: var(--zimla-ai-panel-width); }
  html.zimla-offertlage .zimla-ai-panel-shell,
  html.zimla-offertlage .zimla-ai-panel-shell.is-ready { left: var(--zimla-offertlage-rail, 72px) !important; right: auto !important; width: var(--zimla-ai-panel-width) !important; border-right: 1px solid #e4e7e2; }
  html.zimla-offertlage #zimla-page-content { padding: 0 !important; max-width: none !important; }
  html.zimla-offertlage .zimla-desktop-sidebar { left: 0; }
  /* Offertläget: chatten är en fast del av vyn – den går inte att stänga eller minimera (closeAi gör inget här), och
     hjälphörnet med Zimla-figuren behövs inte. Hela hörnet bort, också dess osynliga hovringsyta. */
  html.zimla-offertlage .zimla-help, html.zimla-offertlage .zimla-help-corner, html.zimla-offertlage [data-zimla-dock-orb],
  html.zimla-offertlage .zimla-help__orb, /* inte .zimla-ai-fab: figuren i chattens huvud (zimla-ai-panel__mascot) står kvar */
  html.zimla-offertlage .zimla-ai-panel__close, html.zimla-offertlage .zimla-ai-panel [data-zimla-ai-minimize] { display: none !important; }
  /* Skalets "levande kant" följer panelen till vänster. */
  html.zimla-offertlage .zimla-app-shell.zimla-ai-shell-open::after { right: auto !important; left: calc(var(--zimla-offertlage-rail, 72px) + var(--zimla-ai-panel-width) - 1px) !important; }
}
@media (min-width: 1024px) and (max-width: 1320px) { html.zimla-offertlage .zimla-app-shell { --zimla-ai-panel-width: 360px; } }
@media (min-width: 1024px) and (max-width: 1100px) { html.zimla-offertlage .zimla-app-shell { --zimla-ai-panel-width: 330px; } }

/* ---------- redigering direkt i offerten (Arbetsvy) ---------- */
.ol[data-mode="work"] .ol-ed { border-radius: 5px; outline: 1.5px dashed transparent; outline-offset: 3px; transition: outline-color .15s; cursor: text; white-space: pre-line; }
.ol[data-mode="work"] .ol-ed:hover { outline-color: #b9cfc1; }
.ol[data-mode="work"] .ol-hero .ol-ed:hover { outline-color: rgba(255, 255, 255, .35); }
.ol .ol-ed:focus { outline: 2px solid var(--ol-g) !important; outline-offset: 3px; background: rgba(31, 107, 79, .04); }
.ol .ol-hero .ol-ed:focus { outline-color: #6fd39b !important; background: rgba(255, 255, 255, .05); }
.ol-ed.is-error { outline: 2px solid #b8483a !important; }
/* Lugn men tydlig knapp: streckad kant och plus, fylls vid hover (ägaren 2026-10-12: "subtle fast tydlig"). */
.ol .ol-addm { display: inline-flex; align-items: center; gap: 4px; border: 1px dashed #c3d4c8; background: #fff; color: var(--ol-g); font-size: 12.5px; font-weight: 500; padding: 4px 11px 4px 7px; margin: 6px 0 4px; border-radius: 999px; cursor: pointer; transition: background-color .12s, border-color .12s; }
.ol .ol-terms-std { display: inline-block; margin: 6px 0 4px 10px; font-size: 12px; color: #687369; text-decoration: underline; text-underline-offset: 2px; }
.ol .ol-terms-std:hover { color: var(--ol-g); }
.ol-addm .material-symbols-outlined { font-size: 16px; }
.ol .ol-addm:hover { background: var(--ol-gbg); border-color: var(--ol-g); border-style: solid; }
.ol-addm:focus-visible { outline: 2px solid var(--ol-g); outline-offset: 2px; }
.ol-notes { padding: 0; overflow: hidden; }
.ol-notes .ol-notes-h { padding: 12px 16px; }
.ol-notes-n { margin-left: auto; font-size: 12px; color: var(--ol-mut); }
.ol-note { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--ol-line2); }
.ol-note p { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ol-fg); }
.ol-note.is-hidden p { opacity: .55; }
.ol-scope { flex: none; font-size: 11px; font-weight: 600; color: var(--ol-g2); background: var(--ol-gbg); border-radius: 999px; padding: 2px 8px; margin-top: 1px; white-space: nowrap; }
.ol-note-acts { display: inline-flex; gap: 2px; flex: none; margin-top: -4px; }
.ol-note-acts .material-symbols-outlined { font-size: 18px; }
.ol-note-add { padding: 12px 16px 14px; border-top: 1px solid var(--ol-line2); }
.ol-note-add textarea { width: 100%; min-height: 56px; resize: vertical; border: 1px solid #dfe3dd; border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 13px; outline: 0; background: #fff; }
.ol-note-add textarea:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-note-add-r { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--ol-mut); }
.ol-note-add-r label { display: inline-flex; align-items: center; gap: 6px; }
.ol-note-add-r select { height: 32px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12.5px; background: #fff; color: var(--ol-fg); }
.ol-note-add-r .ol-btn { margin-left: auto; height: 34px; }
.ol-note-add-r .ol-btn + .ol-btn { margin-left: 0; }
.ol-note-add-r [data-ol-note-zimla] .material-symbols-outlined { font-size: 16px; color: var(--ol-g); }
.ol-rnote { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 4px; padding: 8px 10px; border-radius: 10px; background: #f6f8f4; font-size: 12.5px; color: var(--ol-fg2); }
.ol-rnote .material-symbols-outlined { font-size: 15px; color: var(--ol-g); margin-top: 1px; }
.ol-rnote.is-hidden { opacity: .55; }
/* Beskrivning till kunden (fokusverktyget): rummets i kommentarsrutan, postens grå under namnet. Enter ger ny rad. */
.ol-rnote .ol-ed { flex: 1; min-width: 0; white-space: pre-line; }
.ol-rnote-where { flex: none; align-self: center; font-size: 11px; color: var(--ol-mut); white-space: nowrap; }
.ol-gnote { margin: 2px 8px 4px; padding: 6px 10px; border-left: 2px solid #b9d8c4; border-radius: 0 8px 8px 0; background: #f6f8f4; font-size: 12px; line-height: 1.45; color: var(--ol-fg2); white-space: pre-line; }
.ol .ol-gh.is-sel { box-shadow: inset 3px 0 0 var(--ol-g); }
.ol[data-mode="work"] .ol-gh[data-group] { cursor: pointer; }
/* Postens material (bara för hantverkaren): tyst grå rad under momentet och ett stort fönster per post. */
.ol-mmat { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; font-size: 11.5px; color: #4d5a52; }
.ol-mmat > span { display: inline-flex; align-items: center; gap: 4px; }
.ol[data-mode="work"] .ol-mmat { cursor: pointer; }
.ol[data-mode="work"] .ol-mmat:hover { color: var(--ol-g); }
/* Toasten (Ångra) ovanför materialfönstret. */
body:has(.ol-matpop) .ol-toast { z-index: 95; }
.ol-mmat .material-symbols-outlined { font-size: 13px; color: #8a978e; }
.ol-matpop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(247, 246, 242, .62); }
.ol-matpop-in { width: min(980px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px -30px rgba(18, 56, 43, .55), 0 0 0 1px rgba(18, 56, 43, .08); animation: ol-askin .15s ease-out; }
.ol-matpop-in > header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--ol-line); }
.ol-matpop-in:focus { outline: 0; }
.ol-matpop-h { min-width: 0; }
.ol-matpop-in > header b { display: block; font-size: 15px; font-weight: 600; color: var(--ol-deep, #12382b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-matpop-in > header small { display: block; font-size: 12.5px; color: var(--ol-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ol-matpop-in > header .ol-ib { margin-left: auto; }
.ol-matic { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #e7f1ea; color: var(--ol-g); display: grid; place-items: center; }
.ol-matpop-b { overflow-y: auto; padding: 4px 18px 14px; }
.ol-matpop-in > footer { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--ol-line); font-size: 13px; color: var(--ol-mut); }
.ol-matpop-in > footer b { color: var(--ol-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.ol-matpop-in > footer .ol-btn { margin-left: auto; }
/* Raden: namn (text, tryck för att ändra) · mängd + enhet med vad den följer under · à-pris per enhet · summa · ta bort. */
.ol-mat-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13.5px; }
.ol-mat-t col.c-q { width: 190px; } .ol-mat-t col.c-p { width: 132px; } .ol-mat-t col.c-s { width: 104px; } .ol-mat-t col.c-x { width: 40px; }
.ol-mat-t th { padding: 8px 6px 4px; text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ol-mut); }
.ol-mat-t th:nth-child(3), .ol-mat-t th:nth-child(4) { text-align: right; }
.ol-mat-t td { padding: 7px 6px; border-top: 1px solid #eef0ec; vertical-align: top; }
.ol-mat-t input, .ol-mat-t select { height: 30px; border: 1px solid #e3e7e1; border-radius: 8px; padding: 0 8px; font: inherit; color: var(--ol-fg); background: #fff; outline: 0; }
.ol-mat-t input:hover, .ol-mat-t select:hover { border-color: #cdd5cc; }
.ol-mat-t input:focus, .ol-mat-t select:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-mat-t input[readonly] { background: #f6f8f4; color: var(--ol-mut); }
.ol-mat-t input[aria-invalid="true"] { border-color: #b8483a; }
.ol-mat-nm, .ol-mat-t .ol-mat-nmi { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: none; font: inherit; font-size: 13.5px; font-weight: 400; line-height: 1.35; color: var(--ol-fg); text-align: left; }
.ol-mat-nm { cursor: text; }
.ol-mat-nm > span:first-child { min-width: 0; padding-block: 5px; overflow-wrap: anywhere; }
.ol-mat-nm .material-symbols-outlined { flex: none; margin-left: auto; font-size: 15px; color: var(--ol-mut); opacity: 0; transition: opacity .12s; }
.ol-mat-nm:hover { background: #f4f7f3; }
.ol-mat-nm:hover .material-symbols-outlined, .ol-mat-nm:focus-visible .material-symbols-outlined { opacity: 1; }
.ol-mat-nm:focus-visible { outline: 0; border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-mat-t .ol-mat-nmi { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); background: #fff; }
.ol-mat-q { display: flex; gap: 4px; }
.ol-mat-q input { width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.ol-mat-q select { width: 88px; }
.ol-mat-bs { display: block; width: 100%; margin-top: 3px; height: 26px !important; border-color: transparent !important; padding: 0 4px !important; font-size: 12px !important; color: var(--ol-g) !important; background: transparent !important; }
.ol-mat-bs:hover { border-color: #dfe3dd !important; }
.ol-mat-fx { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ol-mut); }
.ol-mat-p { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.ol-mat-p input { width: 78px; text-align: right; font-variant-numeric: tabular-nums; }
.ol-mat-p span { min-width: 38px; font-size: 12px; color: var(--ol-mut); white-space: nowrap; }
.ol-mat-s { padding-top: 13px !important; text-align: right; white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
.ol-mat-s small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--ol-mut); font-variant-numeric: tabular-nums; }
.ol-mat-t td:last-child { padding-top: 4px; text-align: right; }
.ol-mat-t tr.is-gone td { opacity: .5; } .ol-mat-t tr.is-gone .ol-mat-nm { text-decoration: line-through; cursor: default; } .ol-mat-t tr.is-gone .ol-mat-nm:hover { background: none; } .ol-mat-t tr.is-gone td:last-child { opacity: 1; }
.ol-mat-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; height: 34px; padding: 0 14px; border: 1px dashed #b9d0c0; border-radius: 10px; background: #f7fbf8; color: var(--ol-g); font: inherit; font-size: 13.5px; font-weight: 500; }
.ol-mat-add .material-symbols-outlined { font-size: 18px; }
/* Föreslå material bredvid Lägg till material (syskon, aldrig primär – Klar är fönstrets primära); uppskattat pris märkt. */
.ol-mat-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.ol-mat-add.is-s { border-style: solid; border-color: #dfe3dd; background: #fff; }
.ol-mat-add.is-s[disabled] { color: var(--ol-mut); cursor: progress; }
.ol-mat-est { display: block; margin-top: 2px; text-align: right; font-size: 11px; color: var(--ol-mut); }
.ol-mat-t tr.is-new { animation: ol-askin .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .ol-mat-t tr.is-new { animation: none; } }
/* Pekskärm: inget hover – pennan syns svagt, fälten och knapparna är större. */
@media (pointer: coarse) {
  .ol-mat-t input, .ol-mat-t select, .ol-mat-nm, .ol-mat-t .ol-mat-nmi { min-height: 40px; height: 40px; font-size: 16px; }
  .ol-mat-nm { height: auto; min-height: 44px; }
  .ol-mat-nm .material-symbols-outlined { opacity: .55; }
  .ol-mat-bs { height: 40px !important; }
  .ol-mat-t col.c-q { width: 210px; } .ol-mat-t col.c-p { width: 150px; } .ol-mat-t col.c-x { width: 48px; }
  .ol-mat-t td:last-child .ol-ib { width: 44px; height: 44px; }
}
.ol-mat-empty, .ol-mat-note { margin: 0; padding: 16px 2px 2px; color: var(--ol-mut); font-size: 13.5px; }
.ol-mat-note { padding-top: 8px; font-size: 12.5px; color: #8a5a00; }
@media (prefers-reduced-motion: reduce) { .ol-matpop-in { animation: none; } }
.ol-matpop-in { max-height: calc(100dvh - 48px); }
.ol-mat-s small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--ol-mut); }
@media (max-width: 1100px) { .ol-mat-t input, .ol-mat-t select { font-size: 16px; } }
@media (pointer: coarse) { .ol-mat-t input, .ol-mat-t select { height: 42px; } .ol-mat-bs { height: 36px !important; border-color: #dfe3dd !important; } .ol-mat-t .ol-ib { width: 40px; height: 40px; } }
.ol-mnote { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--ol-mut); white-space: pre-line; }
.ol-mnote.ol-ed:not(:focus) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ol-ed[data-placeholder]:empty::before { content: attr(data-placeholder); color: #9aa49c; pointer-events: none; }
.ol-rnote.is-new, .ol-mnote.is-new, .ol-gnote.is-new { animation: ol-askin .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .ol-rnote.is-new, .ol-mnote.is-new, .ol-gnote.is-new { animation: none; } }
.ol-q input.is-saving { color: var(--ol-mut); }
.ol-toast { position: fixed; left: calc(var(--zimla-offertlage-rail, 72px) + var(--zimla-ai-panel-width, 400px) + (100vw - var(--zimla-offertlage-rail, 72px) - var(--zimla-ai-panel-width, 400px)) / 2); bottom: 22px; transform: translate(-50%, 10px); background: #1d2420; color: #fff; border-radius: 12px; padding: 9px 10px 9px 14px; font-size: 13px; display: flex; align-items: center; gap: 12px; z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: min(560px, calc(100vw - 520px)); }
.ol-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ol-toast.is-error { background: #7a2a20; }
.ol-toast button { height: 26px; border: 0; border-radius: 7px; background: #34403a; color: #fff; font-weight: 600; font-size: 12px; padding: 0 10px; }
/* Texten kortas, aldrig knapparna; "Använd alltid" är en textknapp långt från Ångra (motsatta saker). */
.ol-toast [data-ol-toast-text] { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-toast button { flex: none; white-space: nowrap; }
.ol-toast .ol-toast-keep { background: transparent; color: #b9e6cb; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(185, 230, 203, .45); padding: 0 6px; }
.ol-toast .ol-toast-keep:hover { color: #fff; }
.ol-toast .ol-toast-keep[hidden], .ol-toast button[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ol-toast { transition: none; } }

/* ---------- Offertinställningar: panel från vänster över dokumentet (inte över chatten) ---------- */
.ol { position: relative; isolation: isolate; }
.ol-setwrap { position: absolute; inset: 0; z-index: 30; }
.ol-setwrap[hidden] { display: none; }
.ol-sback { position: absolute; inset: 0; background: rgba(247, 246, 242, .55); opacity: 0; transition: opacity .3s ease-out; }
.ol-setwrap.is-on .ol-sback { opacity: 1; }
.ol-setp { position: absolute; top: 0; left: 0; bottom: 0; width: 400px; max-width: calc(100% - 28px); background: #fff; border-right: 1px solid var(--ol-line); box-shadow: 28px 0 56px -28px rgba(20, 30, 25, .4); transform: translateX(-104%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.ol-setwrap.is-on .ol-setp { transform: none; }
.ol-setp-in { display: flex; flex-direction: column; height: 100%; }
.ol-sh { flex: none; display: flex; align-items: flex-start; gap: 10px; padding: 16px 14px 12px 20px; border-bottom: 1px solid var(--ol-line2); }
.ol-sh > div { flex: 1; }
.ol-sh b { display: block; font: 400 22px/1.2 var(--ol-serif); }
.ol-sh small { display: block; font-size: 12px; color: var(--ol-mut); margin-top: 2px; }
.ol-sbody { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 16px; }
.ol-ss { padding: 14px 0 10px; border-bottom: 1px solid var(--ol-line2); }
.ol-ss:last-child { border-bottom: 0; }
.ol-st { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .14em; font-weight: 700; color: var(--ol-mut); text-transform: uppercase; margin-bottom: 6px; }
.ol-cnt { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 11.5px; font-weight: 600; color: var(--ol-g); background: var(--ol-gbg); border-radius: 999px; padding: 2px 8px; }
.ol-srow { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.ol-srow[data-ol-row-switch] { cursor: pointer; }
.ol-srow[hidden] { display: none; }
.ol-srow > div { flex: 1; min-width: 0; }
.ol-srow b { display: block; font-size: 13.5px; font-weight: 600; }
.ol-srow small { display: block; font-size: 12px; color: var(--ol-mut); line-height: 1.4; }
.ol-sw { width: 36px; height: 21px; border-radius: 999px; background: #d3d8d2; border: 0; position: relative; flex: none; padding: 0; transition: background .15s; }
.ol-sw::after { content: ""; position: absolute; left: 2.5px; top: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ol-sw[aria-checked="true"] { background: var(--ol-g); }
.ol-sw[aria-checked="true"]::after { transform: translateX(15px); }
.ol-sw[disabled] { opacity: .5; }
.ol-pin { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ol-pin input { width: 64px; height: 32px; border: 1px solid #dfe3dd; border-radius: 8px; text-align: right; padding: 0 8px; font: inherit; font-size: 14px; font-weight: 600; outline: 0; }
.ol-pin input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
/* Stegknapp i Offertinställningar (ROT: personer med avdraget): − värde + i samma höjd som procentfälten. */
.ol-sstep { display: inline-flex; align-items: center; height: 32px; border: 1px solid #dfe3dd; border-radius: 8px; flex: none; }
.ol-sstep button { width: 32px; height: 30px; border: 0; background: transparent; color: var(--ol-fg); display: grid; place-items: center; border-radius: 7px; }
.ol-sstep button:hover:not(:disabled) { background: #f1f4f0; }
.ol-sstep button:active:not(:disabled) { transform: scale(.96); }
.ol-sstep button:disabled { color: #c3cac3; }
.ol-sstep button .material-symbols-outlined { font-size: 18px; }
.ol-sstep output { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ol-sstep button:active:not(:disabled) { transform: none; } }
.ol-fix { font-size: 13px; font-weight: 600; color: var(--ol-fg2); white-space: nowrap; }
.ol-schips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ol-schips button { height: 30px; border-radius: 999px; border: 1px solid #dfe3dd; background: #fff; font-size: 12.5px; font-weight: 500; padding: 0 12px; }
.ol-schips button:hover { border-color: #cfe0d4; background: #f1f8f3; }
.ol-schips button[aria-pressed="true"] { background: var(--ol-g); border-color: var(--ol-g); color: #fff; }
.ol-schips input { height: 30px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 12.5px; }
.ol-snote { margin: 8px 0 0; font-size: 12px; color: var(--ol-mut); }
.ol-sf { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--ol-line2); font-size: 12px; color: var(--ol-mut2); }
.ol-sf > span { flex: 1; display: inline-flex; align-items: center; gap: 5px; }
.ol-sf .ol-btn { height: 36px; padding: 0 18px; }
@media (prefers-reduced-motion: reduce) { .ol-setp, .ol-sback { transition: none; } }

/* Radens åtgärder (dölj, ta bort) ligger över radens högra kant och syns vid hover/fokus – ingen egen kolumn. */
.ol-mo { position: relative; }
/* Radens knappar (dölj för kunden, ta bort) har en egen kolumn till höger om summan – aldrig över priset. Kolumnen finns
   bara i arbetsvyn; gruppernas summor flyttas in lika mycket så att beloppen står i linje. Timmar (ägaren 2026-10-17)
   står efter Mängd; Övrigts rader har samma spår så att mängderna står i linje, cellen för timmar är tom. */
.ol[data-mode="work"] .ol-mo, .ol[data-mode="work"] .ol-mhead,
.ol[data-mode="work"] .ol-mo.ol-mo--cost { grid-template-columns: minmax(0, 1fr) 76px 72px 52px; }
.ol-q.ol-h input { width: 48px; }
.ol-q.ol-h input.is-own { color: var(--ol-g); font-weight: 500; }
.ol[data-mode="work"] .ol-gh .ol-t { margin-right: 60px; }
.ol-acts { justify-self: end; display: inline-flex; gap: 0; opacity: 0; pointer-events: none; transition: opacity .12s; }
.ol-mo:hover .ol-acts, .ol-mo:focus-within .ol-acts { opacity: 1; pointer-events: auto; }
.ol-acts .ol-ib { width: 26px; height: 28px; }
.ol-acts .material-symbols-outlined { font-size: 17px; }
.ol-acts [data-ol-vis][aria-pressed="false"] { opacity: 1; color: #8a5a00; }
.ol-mo.is-removing { opacity: .35; }
.ol-mo.is-gone { display: none !important; } /* borttagen direkt; servern bekräftar i bakgrunden */
.ol-newrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: #f6f8f4; margin-top: 4px; }
.ol-newrow input { height: 32px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 9px; font: inherit; font-size: 13px; outline: 0; background: #fff; min-width: 0; }
.ol-newrow input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-newrow .ol-pinwrap { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ol-mut); }
.ol-newrow .ol-pinwrap input { width: 84px; text-align: right; }
.ol-newrow [data-ol-new-hours] { width: 64px !important; }
/* "+ Lägg till moment": en ny rad som ser ut som en markerad rad – man skriver i den, "Ändra med Zimla" under. */
.ol-mo-new .ol-mn input { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; color: var(--ol-fg); outline: 0; }
.ol-mo-new .ol-mn input::placeholder { color: var(--ol-mut); font-style: italic; }
.ol-mo-new .ol-mn input:disabled { color: var(--ol-mut); }
.ol-mo-new .ol-acts { opacity: 1; pointer-events: auto; }
.ol[data-mode="work"] .ol-mo.ol-mo-new { grid-template-columns: minmax(0, 1fr) 128px 84px 40px; }
.ol-mo-new .ol-nh { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.ol-mo-new .ol-nh input { width: 64px; height: 28px; padding: 0 7px; border: 1px solid #dfe3dd; border-radius: 7px; background: #fff; font: inherit; font-size: 13px; text-align: right; outline: 0; }
.ol-mo-new .ol-nh input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-mo-new .ol-nh :disabled { opacity: .6; }
.ol-mo-new .ol-nq { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.ol-mo-new .ol-nq input, .ol-mo-new .ol-nq select { height: 28px; border: 1px solid #dfe3dd; border-radius: 7px; background: #fff; font: inherit; font-size: 13px; color: var(--ol-fg); outline: 0; }
.ol-mo-new .ol-nq input { width: 52px; padding: 0 7px; text-align: right; }
.ol-mo-new .ol-nq select { width: 64px; padding: 0 4px; cursor: pointer; }
.ol-mo-new .ol-nq input:focus, .ol-mo-new .ol-nq select:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-mo-new .ol-nq :disabled { opacity: .6; }
@media (max-width: 1100px) { .ol-mo-new .ol-mn input { font-size: 16px; } }

.ol-addr { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-top: 1px dashed var(--ol-line); padding: 12px; color: var(--ol-g); font-weight: 600; font-size: 13px; background: transparent; width: 100%; }
.ol-addr:hover { background: #f6faf7; }
.ol-addroom-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px 14px; border-top: 1px dashed var(--ol-line); }
.ol-addroom-f[hidden] { display: none; }
.ol-addroom-f select, .ol-addroom-f input { height: 34px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 9px; font: inherit; font-size: 13px; background: #fff; color: var(--ol-fg); outline: 0; }
.ol-addroom-f input[data-ol-room-name] { flex: 1; min-width: 140px; }
.ol-addroom-f .ol-pinwrap { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ol-mut); }
.ol-addroom-f [data-ol-room-area] { width: 64px; text-align: right; }
.ol-addroom-f select:focus, .ol-addroom-f input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-rn .ol-ed { padding: 0 2px; margin: 0 -2px; }
/* Radens namn (ägaren 2026-10-14: "trycka på namnet direkt för att ändra"): samma mönster som rummets namn, kontur runt hela namnet även när det bryts. */
.ol-mo .ol-mname { display: inline-block; max-width: 100%; padding: 0 2px; margin: 0 -2px; outline-offset: 2px; }
.ol .ol-mo .ol-mname:focus { outline-offset: 2px; }

/* ---------- Rummets verktyg (ägaren 2026-10-13): Redigera-valen och Exkludera i fokuspillen ---------- */
.ol-askz .ol-askt { width: 32px; padding: 0; justify-content: center; position: relative; }
.ol-askz .ol-askt em { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; border-radius: 999px; background: var(--ol-ambbg); color: var(--ol-ambfg); font: 700 9.5px/15px inherit; font-style: normal; padding: 0 4px; text-align: center; }
.ol-askz .ol-asksep { width: 1px; height: 18px; margin: 0 4px; background: #3d4842; flex: none; }
.ol-askz .ol-askoff[aria-pressed="true"] { color: #6fd39b; }
/* Övrigt-radens verktyg: andelen och à-priset som små fält i pillen (raden visar bara mängd och uträkning). */
.ol-askz .ol-askf { display: inline-flex; align-items: center; gap: 5px; color: #cfd8d2; font-size: 12px; padding: 0 8px; white-space: nowrap; }
.ol-askz .ol-askf input { width: 54px; height: 24px; border: 1px solid #3d4842; border-radius: 6px; background: #2a332e; color: #fff; font: inherit; font-size: 12.5px; text-align: right; padding: 0 6px; outline: 0; font-variant-numeric: tabular-nums; }
.ol-askz .ol-askf input:focus { border-color: #6fd39b; }
.ol-askz .ol-askf input::placeholder { color: #9fb0a6; }
.ol-askz .ol-askf input:disabled { opacity: .5; }
.ol-askz .ol-askf input[aria-invalid="true"] { border-color: #f1b8a7; }
@media (pointer: coarse) { .ol-askz[role="toolbar"] button { height: 40px; } .ol-askz[role="toolbar"] .ol-askt, .ol-askz[role="toolbar"] .ol-askx { width: 40px; } }
/* Redigera på rumskortet: liten och mörk som verktyget, syns när man pekar på rummet; öppnar fokusverktyget. */
.ol-rh .ol-edit { height: 26px; border: 0; border-radius: 999px; background: #1d2420; color: #fff; font-size: 12px; font-weight: 500; padding: 0 14px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 14px -10px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .15s, background .15s; }
.ol-rh:hover .ol-edit, .ol-rh:focus-within .ol-edit, .ol-edit:focus-visible { opacity: 1; pointer-events: auto; }
.ol-rh .ol-edit:hover { background: #34403a; }
.ol-room.is-sel .ol-edit { display: none; }
@media (pointer: coarse) { .ol-rh .ol-edit { opacity: 1; pointer-events: auto; height: 32px; } }
/* Exkluderat ur offerten (användarens val): lugn grå ton på innehållet – markeringsramen och verktyget står skarpa. */
.ol-room[data-user-off] .ol-ric, .ol-room[data-user-off] .ol-rn, .ol-room[data-user-off] .ol-rb { opacity: .5; transition: opacity .18s ease-out; }
.ol-mo.is-off .ol-mn { color: var(--ol-mut); }
.ol-hidtag.is-off { background: #eef0ec; color: #59625c; }
.ol-mo[data-cost] { cursor: pointer; }
.ol-rp.is-off b { color: var(--ol-mut); font-size: 16px; }
.ol-rp.is-off small { display: inline-block; margin-top: 2px; border-radius: 999px; background: #eef0ec; color: #59625c; font-weight: 600; padding: 1px 8px; }
@media (prefers-reduced-motion: reduce) { .ol-room[data-user-off] .ol-ric, .ol-room[data-user-off] .ol-rn, .ol-room[data-user-off] .ol-rb { transition: none; } }
.ol-rooms { overflow: visible; container-type: inline-size; container-name: olrooms; }
.ol-room:first-child .ol-rh { border-radius: 16px 16px 0 0; }
.ol-redp { margin: 4px 0 10px; border: 1px solid #d7e7dc; background: #f6fbf8; border-radius: 12px; padding: 10px 12px 12px; }
.ol-redp[hidden] { display: none; }
.ol-rt2 { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px; }
.ol-rt2 b { font-size: 13.5px; font-weight: 700; }
.ol-rt2 span { font-size: 12.5px; color: var(--ol-mut); flex: 1; }
/* Stor popup (Manuell kalkyl, Mallar) över dokumentet, inte över chatten. */
.ol-pop { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ol-pop[hidden] { display: none; }
.ol-pop.is-warm { visibility: hidden; pointer-events: none; } /* förladdad kalkyl: utlagd i full storlek, osynlig */
.ol-pop-back { position: absolute; inset: 0; background: rgba(20, 30, 25, .18); }
.ol-pop-box { position: relative; width: min(1100px, 100%); height: min(860px, 100%); background: #fff; border-radius: 18px; box-shadow: 0 30px 70px -24px rgba(20, 30, 25, .55); display: flex; flex-direction: column; overflow: hidden; }
.ol-pop-box.is-sm { width: min(860px, 100%); height: auto; max-height: 100%; }
.ol-pop-h { flex: none; display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 10px 22px; border-bottom: 1px solid var(--ol-line2); }
.ol-pop-h > div { flex: 1; min-width: 0; }
.ol-pop-h b { display: block; font: 400 24px/1.15 var(--ol-serif); }
.ol-pop-h small { display: block; font-size: 12px; color: var(--ol-mut); }
.ol-pop-b { flex: 1; min-height: 0; overflow: auto; }
/* Manuell kalkyl: täcker hela dokumentytan (prototypen), egen fot med rummets summa. */
.ol-pop.is-full { padding: 10px 12px 12px; align-items: stretch; }
.ol-pop.is-full .ol-pop-back { background: rgba(20, 30, 25, .1); }
.ol-pop.is-full .ol-pop-box { width: 100%; height: 100%; max-width: none; border-radius: 16px; }
.ol-pop.is-full .ol-pop-h { padding: 14px 14px 12px 20px; }
.ol-pop.is-full .ol-pop-h b { font: 600 16px/1.3 var(--ol-ui); }
.ol-pop-b iframe { display: block; width: 100%; height: 100%; border: 0; }
.ol-pop.is-full .ol-pop-b { overflow: hidden; }
.ol-pop-b { position: relative; }
.ol-pop-b iframe { transition: opacity .15s ease-out; }
.ol-pop-b iframe.is-loading { opacity: 0; }
.ol-pop-skel { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.ol-pop-skel .skel:nth-child(1) { height: 36px; width: 70%; }
.ol-pop-skel .skel:nth-child(2) { height: 44px; }
.ol-pop-skel .skel:nth-child(3) { height: 120px; }
.ol-pop-skel .skel:nth-child(4) { height: 120px; }
.ol-pop-f { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 20px; border-top: 1px solid var(--ol-line2); font-size: 12.5px; color: var(--ol-mut); }
.ol-pop-f[hidden] { display: none; }
.ol-pop-f > span { flex: 1; }
.ol-pop-f b { font-size: 13px; font-weight: 600; color: var(--ol-fg); }
.ol-pop-b iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (prefers-reduced-motion: no-preference) { .ol-pop:not([hidden]) .ol-pop-box { animation: ol-popin .22s cubic-bezier(.2, .8, .2, 1); } }
@keyframes ol-popin { from { opacity: 0; transform: translateY(8px) scale(.99); } }

/* ---------- panelerna i rummet: Mått, Bilagor, Förslag; popupen Mallar ---------- */
.ol-mt2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
@container oldoc (max-width: 760px) { .ol-mt2 { grid-template-columns: 1fr; } .ol-tcards { grid-template-columns: 1fr !important; } }
.ol-mvis { position: relative; background: #fff; border: 1px solid #dbe8df; border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.ol-mcan { position: relative; }
.ol-mvis svg { width: 100%; height: auto; display: block; }
.ol-mvis .rs-golv { fill: #e6f1ea; stroke: #9cc5ad; stroke-width: 1; transition: fill .15s; }
.ol-mvis .rs-vagg { fill: #f5f2ea; stroke: #cfc7b4; stroke-width: 1; transition: fill .15s; }
.ol-mvis .rs-vagg.l { fill: #ece7da; }
.ol-mvis .rs-door { fill: #fff; stroke: #c3b9a2; stroke-width: 1; }
.ol-mvis .rs-win { fill: #dcebf4; stroke: #9fbfd3; stroke-width: 1; }
.ol-mvis .rs-tak { fill: rgba(31, 107, 79, 0); stroke: #b9c6be; stroke-width: 1; stroke-dasharray: 3 3; transition: fill .15s; }
.ol-mvis .rs-list { fill: none; stroke: var(--ol-g); stroke-width: 3; stroke-linejoin: round; opacity: 0; transition: opacity .15s; }
.ol-redp:has(.ol-sfc[data-s="golv"]:is(:hover, :focus-within)) .rs-golv { fill: #bfe0cc; }
.ol-redp:has(.ol-sfc[data-s="vagg"]:hover) .rs-vagg { fill: #f6e2b3; }
.ol-redp:has(.ol-sfc[data-s="tak"]:hover) .rs-tak { fill: rgba(31, 107, 79, .18); stroke: var(--ol-g); stroke-dasharray: none; }
.ol-redp:has(.ol-sfc[data-s="list"]:hover) .rs-list { opacity: 1; }
.ol-dim { position: absolute; display: flex; align-items: center; height: 28px; background: #fff; border: 1px solid #cfe1d5; border-radius: 8px; padding: 0 7px 0 0; box-shadow: 0 4px 10px -6px rgba(20, 40, 30, .35); font-size: 12px; color: var(--ol-mut); cursor: text; }
.ol-dim[data-k="L"], .ol-dim[data-k="H"] { transform: translate(-100%, -50%); }
.ol-dim[data-k="B"] { transform: translate(0, -50%); }
.ol-dim input { width: 44px; height: 100%; border: 0; background: transparent; outline: 0; text-align: right; padding: 0 3px 0 6px; font: 600 13px var(--ol-ui); color: var(--ol-fg); font-variant-numeric: tabular-nums; }
.ol-dim input::placeholder { font-weight: 500; font-size: 11px; color: #9aa69f; }
.ol-dim:focus-within { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .14); }
.ol-mbar { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; padding: 8px 12px; border-top: 1px solid #edf2ee; margin-top: auto; font-size: 12px; color: var(--ol-fg2); }
.ol-mhint { margin-left: auto; color: var(--ol-mut2); font-size: 11.5px; }
/* Dörrar/fönster: kompakta stegare – posterna som räknar öppningar följer antalet. */
.ol-step { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ol-step b { min-width: 1.4em; text-align: center; font-weight: 600; color: var(--ol-fg); }
.ol-step button { width: 20px; height: 20px; border: 1px solid #dfe3dd; border-radius: 6px; background: #fff; color: var(--ol-fg2); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ol-step button:first-of-type { margin-left: 2px; }
.ol-step button .material-symbols-outlined { font-size: 15px; }
.ol-step button:hover:not([disabled]) { border-color: #b9cfc1; background: #f1f8f3; color: var(--ol-g); }
.ol-step button[disabled] { opacity: .4; cursor: default; }
.ol-mright { display: flex; flex-direction: column; gap: 8px; }
.ol-msurf { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; flex: 1; }
.ol-msurf .ol-sfc--wide { grid-column: 1 / -1; }
.ol-sfc { background: #fff; border: 1px solid #dbe8df; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; }
.ol-sfc:hover, .ol-sfc:focus-within { border-color: var(--ol-g); box-shadow: 0 0 0 2px rgba(31, 107, 79, .12); }
.ol-sfc.is-ed { cursor: text; }
.ol-sfc small { display: block; font-size: 11px; font-weight: 600; color: var(--ol-mut); }
.ol-sfc small i { font-style: normal; font-weight: 500; opacity: .8; }
.ol-sfc b { display: block; font: 500 19px var(--ol-serif); margin: 1px 0 2px; }
.ol-sfc > span { display: block; font-size: 11px; color: var(--ol-mut); }
.ol-sfv { display: flex !important; align-items: baseline; gap: 3px; font: 500 19px var(--ol-serif) !important; color: var(--ol-fg) !important; }
.ol-sfv input { width: 64px; font: 500 19px var(--ol-serif); color: var(--ol-fg); border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 0 5px; margin-left: -6px; outline: 0; font-variant-numeric: tabular-nums; }
.ol-sfv input:focus { border-color: var(--ol-g); background: #fff; box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-mfoot { display: flex; align-items: center; gap: 10px; padding: 8px 2px 0; font-size: 12px; color: var(--ol-mut); }
.ol-mfoot span { flex: 1; }
.ol-attg { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ol-attg.is-empty { display: block; }
.ol-ath { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eef1ec; border: 1px solid #dbe8df; }
.ol-ath a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--ol-mut); }
.ol-ath img { width: 100%; height: 100%; object-fit: cover; }
.ol-ath.is-hidden img { opacity: .5; }
.ol-ath-eye { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; color: var(--ol-fg2); }
.ol-ath-eye .material-symbols-outlined { font-size: 17px; }
.ol-ath-eye[aria-pressed="false"] { color: #8a5a00; }
.ol-attadd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 90px; border: 1.5px dashed #b9d6c4; border-radius: 10px; background: #fff; color: var(--ol-g); text-align: center; cursor: pointer; padding: 8px; }
.ol-attg.is-empty .ol-attadd { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; text-align: left; }
.ol-attadd b { display: block; font-size: 13px; }
.ol-attadd small { display: block; font-size: 11.5px; color: var(--ol-mut); }
.ol-attadd.is-drag { background: var(--ol-gbg); border-color: var(--ol-g); }
.ol-rq2 { background: #fff; border: 1px solid var(--ol-line); border-radius: 10px; padding: 10px; margin-bottom: 8px; }
.ol-rq2 > b { display: block; font-size: 13px; font-weight: 600; }
.ol-rq2 > small { display: block; font-size: 12px; color: var(--ol-mut); margin-bottom: 8px; }
.ol-rq2-v { font-weight: 500; color: var(--ol-mut); font-size: 12px; }
.ol-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ol-chip { height: 30px; border-radius: 999px; border: 1px solid #cfe0d4; background: #f1f8f3; color: #14402f; font-size: 12.5px; font-weight: 500; padding: 0 12px; }
.ol-chip:hover, .ol-chip[aria-pressed="true"] { background: var(--ol-g); border-color: var(--ol-g); color: #fff; }
.ol-tb2 { padding: 8px 22px 18px; }
.ol-tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.ol-tcard { border: 1.5px solid #e1e5df; background: #fff; border-radius: 14px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.ol-tcard:hover:not([disabled]) { border-color: #b9d6c4; }
.ol-tcard.is-on { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .14); }
.ol-tcard[disabled] { cursor: default; }
.ol-tcard:not(.is-on)[disabled] { opacity: .6; }
.ol-tt { display: flex; align-items: center; gap: 8px; }
.ol-tt b { font-size: 15px; }
.ol-nowp { font-size: 10.5px; font-weight: 700; color: var(--ol-g); background: var(--ol-gbg); border-radius: 999px; padding: 1px 7px; }
.ol-tcard > small { font-size: 12px; color: var(--ol-mut); }
.ol-tp { font: 500 22px/1.2 var(--ol-serif); margin-top: 8px; }
.ol-td { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.ol-td.dn { color: var(--ol-g); } .ol-td.dp { color: var(--ol-ambfg); } .ol-td.dz { color: var(--ol-mut); }
.ol-tcard ul { margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--ol-line2); list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ol-tcard li { font-size: 12.5px; color: var(--ol-fg2); line-height: 1.35; }

/* Rummens rader när huvudspalten är smal (chatten bredvid): mindre indrag och smalare sifferkolumner, så att
   momentnamnen får plats på högst två rader. */
@container olrooms (max-width: 700px) {
  .ol-rb { padding-left: 14px; padding-right: 10px; }
  .ol-mo, .ol-mhead { grid-template-columns: minmax(0, 1fr) 70px 82px 80px; gap: 6px; }
  .ol[data-mode="work"] .ol-mo, .ol[data-mode="work"] .ol-mhead,
  .ol[data-mode="work"] .ol-mo.ol-mo--cost { grid-template-columns: minmax(0, 1fr) 66px 68px 52px; }
  .ol[data-mode="work"] .ol-gh .ol-t { margin-right: 58px; }
  .ol-q.ol-h input { width: 44px; }
  .ol-q input { width: 48px; } .ol-q input.is-ap { width: 62px; }
}

/* ---------- Skicka offert: popover med kundfälten och checklistan ---------- */
.ol-sendw { position: relative; flex: none; }
.ol-ready { position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow-y: auto; background: #fff; border: 1px solid var(--ol-line); border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(20, 30, 25, .45); padding: 12px; z-index: 25; font-size: 13px; }
.ol-ready[hidden] { display: none; }
.ol-ready h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.ol-rcv { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; }
.ol-rcv input { height: 34px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; outline: 0; }
.ol-rcv input[hidden] { display: none; }
.ol-rcv-saves { margin-top: -2px; font-size: 12px; color: #6b736d; }
.ol-rcv input[hidden] + .ol-rcv-saves { display: none; }
.ol-rcv input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-rcv input[aria-invalid="true"] { border-color: #b8483a; }
.ol-via { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ol-mut); }
.ol-via .ol-chip { height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; background: #fff; }
.ol-via .ol-chip .material-symbols-outlined { font-size: 15px; }
.ol-via .ol-chip[disabled] { opacity: .45; cursor: default; }
.ol-via .ol-chip[aria-pressed="true"] { background: var(--ol-g); border-color: var(--ol-g); color: #fff; }
/* Hovring: .ol-chip:hover gör texten vit, men chippets vita botten här vinner – då syntes ingen text. */
.ol-via .ol-chip:not([aria-pressed="true"]):not([disabled]):hover { background: #f1f8f3; border-color: #cfe0d4; color: #14402f; }
.ol-via .ol-chip[disabled]:hover { background: #fff; border-color: #cfe0d4; color: #14402f; }
.ol-it { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--ol-line2); }
.ol-it .ol-ok { width: 18px; height: 18px; border-radius: 50%; background: var(--ol-g); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.ol-it .ol-ok .material-symbols-outlined { font-size: 13px; }
.ol-it .ol-no { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ol-amb); flex: none; }
.ol-it > span:nth-child(2) { flex: 1; }
.ol-it button { border: 0; background: transparent; color: var(--ol-g); font-weight: 600; font-size: 12.5px; padding: 0; }
/* Långa mottagarnamn bryts i stället för att klippas (packen 2026-10-18). */
.ol-go { width: 100%; margin-top: 10px; min-height: 38px; height: auto; padding-block: 8px; white-space: normal; text-align: center; justify-content: center; }
/* Fler mottagare: täta rader under kundens fält och "+ Mottagare" – inga nya radier eller skuggor. */
.ol-rcvs:empty { display: none; }
.ol-rcvr { display: flex; align-items: center; gap: 6px; min-height: 30px; border-top: 1px solid var(--ol-line2); }
.ol-rcvr-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-rcvr-t b { font-weight: 400; }
.ol-rcvr-t span { color: var(--ol-mut); font-size: 12px; }
.ol-rcvr button { flex: none; width: 24px; height: 24px; border: 0; background: transparent; color: var(--ol-mut); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.ol-rcvr button .material-symbols-outlined { font-size: 16px; }
.ol-rcvr button:hover { background: #f1f4f0; color: #b8483a; }
.ol-rcvadd { padding: 2px 0 8px; }
.ol-rcvadd-open { border: 0; background: transparent; color: var(--ol-g); font-weight: 600; font-size: 12.5px; padding: 0; }
.ol-rcvadd-open[hidden], .ol-rcvadd-f[hidden] { display: none; }
.ol-rcvadd-f { display: flex; flex-direction: column; gap: 6px; }
.ol-rcvadd-r { display: flex; gap: 6px; }
.ol-rcvadd-r input { flex: 1; min-width: 0; }
.ol-rcvadd input { height: 34px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; outline: 0; }
.ol-rcvadd input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-rcvadd input[aria-invalid="true"] { border-color: #b8483a; }
.ol-rcvadd .ol-btn { height: 34px; }
/* Pekskärm: ingen zoom i fälten (16 px) och tumstora träffytor. */
@media (pointer: coarse) { .ol-rcv input, .ol-rcvadd input { font-size: 16px; } .ol-rcvr button { width: 40px; height: 40px; } .ol-rcvadd-open { min-height: 40px; } .ol-via .ol-chip { height: 40px; } }
.ol-sendw .ol-btn.is-p[aria-expanded="true"] { background: var(--ol-g2); }

/* ---------- chatten i offertläget (ligger i Zimla AI-panelen, utanför .ol) ---------- */
.ol-chatx { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 4px; }
.ol-ctxc { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; max-width: 100%; height: 24px; border-radius: 7px; background: #e6f1ea; color: #15543d; font-size: 11.5px; font-weight: 600; padding: 0 4px 0 8px; }
.ol-ctxc[hidden] { display: none; }
.ol-ctxc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-ctxc button { width: 18px; height: 18px; border: 0; border-radius: 5px; background: transparent; color: #15543d; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.ol-ctxc .material-symbols-outlined { font-size: 14px; }
/* markeringen i offerten (det chatten gäller) */
.ol[data-mode="work"] .is-sel.ol-mo, .ol[data-mode="work"] .ol-room.is-sel > .ol-rh { box-shadow: 0 0 0 2px #1f6b4f, 0 0 0 6px rgba(31, 107, 79, .12); border-radius: 12px; position: relative; z-index: 1; background: #fff; }
/* Tipskortet syns inte i offertläget (ägaren 2026-10-12: kort och enkelt). */
html.zimla-offertlage .zimla-chat-tip { display: none !important; }

/* ---------- Förtroende: referensprojekt och Google-recensioner ---------- */
.ol-trust { display: flex; flex-direction: column; gap: 14px; }
.ol-refs.is-off { background: transparent; border: 1.5px dashed #dfe3dd; }
.ol-refs.is-off .ol-th b, .ol-refs.is-off .ol-rfic { opacity: .6; }
.ol-refs .ol-th { cursor: default; }
.ol-rfic { width: 34px; height: 34px; border-radius: 9px; background: #f2f4f0; color: var(--ol-fg2); display: flex; align-items: center; justify-content: center; flex: none; }
.ol-rsw { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; border-radius: 999px; border: 1px solid var(--ol-g); background: #fff; color: var(--ol-g2); font-size: 12.5px; font-weight: 600; padding: 0 12px 0 4px; flex: none; }
.ol-rsw i { width: 32px; height: 20px; border-radius: 999px; background: #d3d8d2; position: relative; transition: background .15s; }
.ol-rsw i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.ol-rsw[aria-checked="true"] i { background: var(--ol-g); }
.ol-rsw[aria-checked="true"] i::after { transform: translateX(12px); }
.ol-rfgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ol-rfc { border: 1px solid var(--ol-line); border-radius: 12px; overflow: hidden; background: #fff; margin: 0; }
.ol-rfc.is-unsel { opacity: .6; }
.ol-rfg { display: grid; gap: 3px; height: 140px; background: #eef1ec; }
.ol-rfg.n2 { grid-template-columns: 1fr 1fr; }
.ol-rfg.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.ol-rfg.n3 .ol-rfw:first-child { grid-row: span 2; }
.ol-rfg.is-empty { display: flex; align-items: center; justify-content: center; color: var(--ol-mut); font-size: 12px; }
.ol-rfg.is-empty span { display: inline-flex; align-items: center; gap: 6px; }
.ol-rfw { position: relative; overflow: hidden; }
.ol-rfw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ol-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 600; pointer-events: none; }
.ol-rfx { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .9); display: flex; align-items: center; justify-content: center; opacity: 0; }
.ol-rfw:hover .ol-rfx, .ol-rfx:focus-visible { opacity: 1; }
.ol-rfx .material-symbols-outlined { font-size: 15px; }
.ol-rfm { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 4px; }
.ol-rfm input { border: 1px solid transparent; border-radius: 6px; padding: 3px 5px; font: inherit; font-size: 13px; outline: 0; margin-left: -5px; }
.ol-rfm input:first-child { font-weight: 600; }
.ol-rfm input:hover { border-color: #dfe3dd; }
.ol-rfm input:focus { border-color: var(--ol-g); box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-rfa { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px 10px; }
.ol-rfadd { display: inline-flex; align-items: center; gap: 4px; height: 28px; border: 1px dashed #b9d6c4; border-radius: 8px; padding: 0 9px; font-size: 12px; font-weight: 600; color: var(--ol-g); cursor: pointer; }
.ol-rfadd .material-symbols-outlined { font-size: 15px; }
.ol-rfsel { margin-left: auto; height: 28px; border: 1px solid #cfe0d4; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; color: var(--ol-g2); padding: 0 10px; display: inline-flex; align-items: center; gap: 4px; }
.ol-rfsel[aria-pressed="true"] { background: var(--ol-gbg); }
.ol-rfsel .material-symbols-outlined { font-size: 14px; }
.ol-rfc figcaption { padding: 8px 12px 10px; }
.ol-rfc figcaption b { display: block; font-size: 13.5px; font-weight: 600; }
.ol-rfc figcaption small { display: block; font-size: 12px; color: var(--ol-mut); }
.ol-rfnew { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 140px; border: 1.5px dashed #b9d6c4; border-radius: 12px; background: #fafcfa; color: var(--ol-g); }
.ol-rfnew small { color: var(--ol-mut); font-size: 12px; }
.ol-rff { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ol-rff .ol-snote { margin: 0; }
.ol-lnk { border: 0; background: transparent; color: var(--ol-g); font-weight: 600; padding: 0; text-decoration: underline; font-size: 12.5px; }
.ol-grc { display: flex; flex-direction: column; gap: 8px; }
.ol-grc[hidden] { display: none; }
.ol-grc label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ol-fg2); }
.ol-grc input { height: 34px; border: 1px solid #dfe3dd; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; outline: 0; }
.ol-grc .ol-btn { align-self: flex-start; }
.ol-grcands { display: flex; flex-direction: column; gap: 6px; }
.ol-grcands button { text-align: left; border: 1px solid var(--ol-line); border-radius: 10px; background: #fff; padding: 8px 10px; font-size: 12.5px; }
.ol-grcands button:hover { border-color: var(--ol-g); }
.ol-grcands b { display: block; font-size: 13px; }
.ol-grsum { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ol-grsum > b { font: 500 34px/1 var(--ol-serif); }
.ol-stars { color: #e5a400; letter-spacing: 1px; }
.ol-grsum small { display: block; font-size: 12px; color: var(--ol-mut); }
.ol-grl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ol-grr { margin: 0; border: 1px solid var(--ol-line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.ol-grr blockquote { margin: 6px 0; font-size: 12.5px; line-height: 1.5; color: var(--ol-fg2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ol-grr figcaption b { display: block; font-size: 12px; }
.ol-grr figcaption small { font-size: 11px; color: var(--ol-mut); }

/* ---------- från Ritbordet: uppbyggnaden (zimla-offertlage.js buildIn, facit: prototypens ?build=1) ---------- */
/* Bordets flygning har inga mål i offerten: bitarna tonar bort, texten till Zimla AI flyger klart. */
html.zimla-offertlage .zb-flight > :not(.zb-fly-text) { animation: ol-board-out .28s ease-out forwards; }
@keyframes ol-board-out { to { opacity: 0; visibility: hidden; } }
.ol-setup { position: absolute; inset: 0; z-index: 6; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ol-paper); font-size: 13px; color: var(--ol-fg2); animation: ol-setup-safe 0s 6s forwards; }
.ol-setup.is-out { opacity: 0; transition: opacity .16s ease-out; pointer-events: none; }
@keyframes ol-setup-safe { to { opacity: 0; visibility: hidden; } } /* utan skriptet står ytan aldrig kvar */
.ol-dots { display: inline-flex; gap: 5px; }
.ol-dots i { width: 6px; height: 6px; border-radius: 50%; background: #9cc7ad; animation: ol-ty 1s infinite; }
.ol-dots i:nth-child(2) { animation-delay: .15s; } .ol-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ol-ty { 50% { transform: translateY(-3px); background: var(--ol-g); } }
.ol[data-ol-build] #ol-rooms > .ol-room:not(.is-in):not(.ol-bld) { display: none; }
.ol[data-ol-build="run"] #ol-rooms > .ol-addroom { display: none; }
.ol[data-ol-build] .ol-room.is-in { animation: ol-rin .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ol-rin { from { opacity: 0; transform: translateY(6px); } }
.ol-page.is-settle { animation: ol-settle .2s cubic-bezier(.215, .61, .355, 1) both; }
@keyframes ol-settle { from { opacity: .72; transform: translateY(6px); } }
.ol[data-ol-build] .ol-room.is-in.is-flash, .ol-room.is-flash { animation: ol-rin .45s cubic-bezier(.2, .8, .2, 1) both, ol-bflash 2.2s ease-out; }
@keyframes ol-bflash { 0%, 25% { background: #d9f2e2; box-shadow: 0 0 0 3px #bfe6cc; } 100% { } }
.ol-payk.is-flash { animation: ol-pflash 2.2s ease-out; }
@keyframes ol-pflash { 0%, 25% { box-shadow: 0 0 0 3px #6fd39b; } }
.ol-payk.is-counting .ol-s span:first-child { color: #6fd39b; }
.ol-bld .ol-rh { cursor: default; }
.ol-bld .ol-ric, .ol-bld .ol-sk { background: linear-gradient(90deg, #eef1ec 0%, #f8faf7 50%, #eef1ec 100%); background-size: 200% 100%; animation: ol-shim 1.1s linear infinite; }
.ol-bld .ol-sk { display: block; height: 14px; width: 110px; border-radius: 6px; }
.ol-bld .ol-rn b { color: var(--ol-mut); font-weight: 500; }
.ol-bld .ol-meta { font-size: 12px; color: var(--ol-mut); }
.ol-bld.is-out { opacity: 0; transition: opacity .15s ease-out; }
@media (prefers-reduced-motion: reduce) { .ol-setup { display: none; } }

/* ---------- Zimla AI i offertläget: prototypens tråd (facit .ch-b/.m-u/.m-a/.card/.chg) ----------
   Korta svar, inga avatarer, ingen arbetslogg eller kontextrad; mottagarkortet ligger i tråden (zimla-offertlage.js).
   Gäller bara html.zimla-offertlage:root .zimla-ai-panel – chatten på andra sidor är orörd. */
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat__messages { gap: 14px; padding: 16px 16px 8px; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message__avatar,
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-latest,
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-workspace { display: none !important; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
/* Utan avatar finns en kolumn: medan Zimla AI arbetar (html.zimla-ai-start-working) lade startsidans regel svaret i
   kolumn 2 och det hamnade till höger (2026-10-12). */
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat :is(.zimla-ai-message, .zimla-chat-run) > :is(.zimla-ai-message__stack, .zimla-ai-message__bubble) { grid-column: 1; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message__meta { font-size: 11.5px; line-height: 1.4; color: #8a918c; padding: 0; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message__name { color: #1d2420; font-weight: 600; font-size: 11.5px; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message__time { font-size: 11.5px; }
/* Användaren: ljus bubbla till höger. */
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message--user { justify-items: end; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message--user .zimla-ai-message__stack { max-width: 86%; justify-items: end; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message--user .zimla-ai-message__bubble { background: #f0f2ee; border-radius: 14px 14px 4px 14px; padding: 9px 12px; font-size: 13.5px; line-height: 1.5; }
/* Zimla AI: texten med en tunn grå linje, ingen bubbla. */
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run .zimla-ai-message__bubble { border-left: 0; padding: 0; font-size: 13.5px; line-height: 1.55; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__answer { border-left: 2px solid #d5ddd7; padding: 1px 0 1px 12px; font-size: 13.5px; line-height: 1.55; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__answer:empty { display: none; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__answer p { margin: 0 0 8px; } html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__answer p:last-child { margin: 0; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__answer :is(h1, h2, h3, h4) { font-size: 13.5px; margin: 0 0 4px; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__answer :is(ul, ol) { margin: 0 0 8px; padding-left: 18px; }
/* Arbetet: medan Zimla AI arbetar bara prickar och en kort status; ingen logg och ingen "Arbetade N s". */
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__worked,
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__activity-history > :not(summary) { display: none !important; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__activity-history summary { pointer-events: none; list-style: none; font-size: 12.5px; color: #6b736e; padding-left: 14px; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__activity-history summary::-webkit-details-marker { display: none; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run:is([data-chat-state="completed"], [data-chat-state="failed"], [data-chat-state="cancelled"], [data-chat-state="interrupted"]):not(.is-just-done):not(.is-waiting) .zimla-chat-run__activity { display: none; }
/* Ett avbrott är en lugn rad med "Försök igen" som länk – ingen linje, ingen ruta. */
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__actions { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-left: 14px; font-size: 12.5px; color: #6b736e; }
/* Utan synligt fel eller "Försök igen" är raden tom: medan Zimla AI tänker gav den 28 px tom yta under statusen. */
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__actions:not(:has(> :not([hidden]))) { display: none; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__actions [data-chat-retry] { border: 0; background: none; padding: 0; height: auto; color: #1f6b4f; font-size: 12.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; box-shadow: none; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-chat-run__stopped { font-size: 12.5px; color: #6b736e; margin: 0; }
/* Svarskortet (ägaren 2026-10-13: "desktop också"): rummen med offertens priser och Ni betalar – bara det senaste kortet
   visar summan (zimla-ai-chat-rows.css). Dokumentet syns redan bredvid, så "Se i offerten" behövs inte här. */
html.zimla-offertlage:root .zimla-ai-panel .zcc-go { display: none !important; }
/* Samma för kalkylkortet ("Ungefär 13 034 kr … Öppna kalkylen") och "Skapa offert": offerten finns redan, bredvid
   (ägaren 2026-10-12: "den ska inte skicka en skapa offert-knapp i chatten"). */
html.zimla-offertlage:root .zimla-ai-panel :is([data-chat-result-tool="calculation.apply_template"], [data-chat-quote-end], [data-chat-quote]) { display: none !important; }
/* Kopiera/redigera bara vid hover; tiden syns alltid. */
/* Knappraden har en egen låg rad i flödet: inget kort eller resultat efter meddelandet hamnar någonsin under den. */
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-chat-message-actions { position: static; min-height: 26px; margin: 2px 0 0; opacity: 0; transition: opacity .15s; }
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-ai-message:hover .zimla-chat-message-actions,
html.zimla-offertlage:root .zimla-ai-panel .zimla-ai-chat .zimla-chat-message-actions:focus-within { opacity: 1; }
/* Skicka: grön som prototypen. */
html.zimla-offertlage:root .zimla-ai-panel [data-chat-runtime-submit]:not([disabled]) { background: #1f6b4f; }

/* ---------- markeringens verktyg: Fråga/Ändra med Zimla (zimla-offertlage.js showAsk, facit prototypens .askz) ---------- */
.ol-askz { display: inline-flex; align-items: center; gap: 2px; flex: none; background: #1d2420; border-radius: 999px; padding: 3px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); animation: ol-askin .15s ease-out; cursor: default; }
@keyframes ol-askin { from { opacity: 0; transform: translateY(4px); } }
.ol-askz button { height: 28px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 12px; font-weight: 500; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ol-askz button:hover:not([disabled]) { background: #34403a; }
.ol-askz button[disabled] { opacity: .5; cursor: default; }
.ol-askz .material-symbols-outlined { font-size: 15px; }
.ol-askz .ol-sp1 { color: #6fd39b; }
.ol-askz .ol-askx { width: 32px; padding: 0; justify-content: center; }
.ol-askz.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 300px; border-radius: 14px; padding: 6px; }
.ol-askz.is-float { position: absolute; z-index: 25; margin: 0; } /* ovanpå dokumentet – trycker aldrig ner raderna */
/* Fältet öppet: resten tonas ner, den markerade raden står vit (prototypens .rowfocus). */
.ol-rowfocus .ol-mo:not(.is-sel), .ol-rowfocus .ol-gh, .ol-rowfocus .ol-addm, .ol-rowfocus .ol-mhead { opacity: .38; transition: opacity .2s; }
.ol-rowfocus .ol-mo.is-sel { background: #fff; }
.ol-askz .ol-rq { display: flex; align-items: center; gap: 6px; background: #2a332e; border-radius: 10px; padding: 0 4px 0 10px; height: 38px; }
.ol-askz .ol-rq input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 13px; }
.ol-askz .ol-rq input::placeholder { color: #9fb0a6; }
.ol-askz .ol-rq input[aria-invalid="true"]::placeholder { color: #f1b8a7; }
.ol-askz .ol-rq .ol-rsend { width: 30px; height: 30px; padding: 0; justify-content: center; background: var(--ol-g); }
.ol-askz .ol-rq .ol-rsend:hover:not([disabled]) { background: #2a8a64; }
.ol-askz .ol-rchips { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 2px; }
.ol-askz .ol-rchips button { height: 28px; font-size: 11.5px; background: #2a332e; color: #dfe9e3; padding: 0 10px; }
.ol-askz .ol-rchips button:hover { background: #3a4640; color: #fff; }
.ol-askz .ol-rrep { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.45; color: #e6efe9; padding: 6px 6px 4px 8px; border-top: 1px solid #34403a; }
.ol-askz .ol-rrep[hidden] { display: none; }
.ol-askz .ol-rrep > span:not(.ol-dots) { flex: 1; min-width: 0; }
.ol-askz .ol-rrep.is-error > span { color: #f1d3a7; }
.ol-askz .ol-rrep button { height: 26px; background: #2a332e; font-size: 11.5px; flex: none; }
.ol-askz .ol-rrep .ol-dots { padding-top: 6px; }
@media (prefers-reduced-motion: reduce) { .ol-askz { animation: none; } }

/* Utkastet följer inte kalkylen: en lugn men tydlig rad överst med vägen till det som saknas. */
.ol-note.ol-frozen { display: flex; align-items: center; gap: 10px; border: 0; margin: -6px 0 14px; font-size: 12.5px; background: #fff4dc; color: #6b4a00; border-radius: 12px; padding: 10px 12px; }
.ol-note.ol-frozen > span:nth-child(2) { flex: 1; min-width: 0; }
.ol-note.ol-frozen b { font-weight: 600; }
.ol-note.ol-frozen .ol-btn { flex: none; }

/* Chatten medan tråden läses in (html.ol-chat-loading, zimla-offertlage.js chatReady): ett lugnt skelett av en tråd i
   stället för startlägets hälsning och allmänna förslag – och inget kort före tråden. Chattens egna snabbförslag
   behövs inte i offertläget (offertens egna chips står ovanför fältet). */
html.zimla-offertlage .zimla-ai-composer__quick { display: none !important; }
html.zimla-offertlage.ol-chat-loading .zimla-ai-chat__welcome,
html.zimla-offertlage.ol-chat-loading .zimla-ai-chat__messages > *,
html.zimla-offertlage.ol-chat-loading [data-ol-chatx] { display: none !important; }
html.zimla-offertlage.ol-chat-loading .zimla-ai-chat__messages::before {
  content: ''; display: block; height: 300px; margin: 4px 0;
  background:
    linear-gradient(#eef1ec, #eef1ec) right 0 top 0 / 62% 40px no-repeat,
    linear-gradient(#e9ede9, #e9ede9) left 0 top 66px / 92px 10px no-repeat,
    linear-gradient(#e3e8e4, #e3e8e4) left 0 top 86px / 2px 74px no-repeat,
    linear-gradient(#eef1ec, #eef1ec) left 14px top 88px / 86% 11px no-repeat,
    linear-gradient(#eef1ec, #eef1ec) left 14px top 108px / 78% 11px no-repeat,
    linear-gradient(#eef1ec, #eef1ec) left 14px top 128px / 52% 11px no-repeat,
    linear-gradient(#f3f5f2, #f3f5f2) left 14px top 184px / calc(100% - 14px) 104px no-repeat;
  animation: ol-chatskel 1.4s ease-in-out infinite;
}
@keyframes ol-chatskel { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { html.zimla-offertlage.ol-chat-loading .zimla-ai-chat__messages::before { animation: none; } }
/* Studios scen (foto och korn) hör inte till offertläget: chattens yta är vit redan innan panelen ritats. */
html.zimla-offertlage .zimla-scene, html.zimla-offertlage .zimla-scene__grain { display: none !important; }
html.zimla-offertlage body { background: #fff; }

/* Kundvy: varför rummen inte går att öppna (kunden ser inte momenten) – med vägen till inställningen. */

/* Google: förslag när den automatiska kopplingen inte var säker – företagets admin bekräftar med ett klick. */
.ol-grsug-q { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ol-fg); }
.ol-grsug .ol-grcands button em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ol-g); white-space: nowrap; }
.ol-grsug .ol-grcands { display: flex; flex-direction: column; gap: 6px; }
.ol-grsug .ol-grcands button { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; width: 100%; }
.ol-grsug .ol-grcands button b { grid-column: 1; font-weight: 600; }
.ol-grsug .ol-grcands button span { grid-column: 1; color: var(--ol-mut); font-size: 12px; }
.ol-grsug .ol-grcands button em { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

/* Kundvy = kundens riktiga sida i en ram över dokumentet (zimla-offertlage.js kundvy). Arbetsvyn ligger kvar orörd under. */
.ol-kundvy { display: none; }
.ol[data-mode=customer] .ol-scroll { overflow: hidden; display: flex; flex-direction: column; }
.ol[data-mode=customer] .ol-scroll > :not(.ol-banner):not(.ol-kundvy) { display: none !important; }
.ol[data-mode=customer] .ol-kundvy { display: block; position: relative; flex: 1; min-height: 0; overflow: hidden; background: #f9faf8; }
.ol-kundvy iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; visibility: hidden; background: #f9faf8; }
.ol-kundvy iframe.is-on { visibility: visible; }
.ol-kundvy-skel { display: none; position: absolute; inset: 0; padding: 24px clamp(16px, 4cqw, 48px); gap: 14px; flex-direction: column; pointer-events: none; }
.ol-kundvy.is-empty .ol-kundvy-skel { display: flex; }
.ol-kundvy-skel i { display: block; border-radius: 14px; background: linear-gradient(90deg, #eef1ec 0%, #f8faf7 50%, #eef1ec 100%); background-size: 200% 100%; animation: ol-shim 1.1s linear infinite; }
.ol-kundvy-skel i:nth-child(1) { height: 240px; background: #10382a; opacity: .9; animation: none; }
.ol-kundvy-skel i:nth-child(2) { height: 64px; width: 62%; }
.ol-kundvy-skel i:nth-child(3) { height: 220px; width: 62%; }
.ol-kundvy::after { content: ''; position: absolute; top: 0; left: 0; height: 2px; width: 0; background: var(--ol-g2, #1f6b4a); opacity: 0; z-index: 2; pointer-events: none; }
.ol-kundvy.is-updating::after { opacity: 1; width: 70%; transition: width 1.6s cubic-bezier(.2,.7,.3,1), opacity .2s; }
@media (prefers-reduced-motion: reduce) { .ol-kundvy-skel i { animation: none; } .ol-kundvy.is-updating::after { transition: none; } }

/* Arbetsvyns tabell som kundvyns (ägaren 2026-10-12): innehållet kant i kant i rumskortet, arbetsgruppen som ett helt
   band med grön versal etikett, linje mellan raderna och en bock före varje moment. Mängden, raderna knappar och
   "Lägg till moment" står kvar. Sist i filen så att den slår de smala containerreglerna ovan. */
.ol .ol-rb { padding: 0 0 6px; border-top: 1px solid #ebe8e1; }
.ol .ol-rb > :is(.ol-rnote, .ol-redp) { margin-left: 16px; margin-right: 16px; }
.ol .ol-rb > .ol-mhead { padding: 8px 16px 4px; }
.ol .ol-grp { margin-top: 0; }
.ol .ol-grp + .ol-grp, .ol .ol-mhead + .ol-grp { border-top: 1px solid #efede7; }
.ol .ol-gh { border-radius: 0; background: #f8faf7; color: #087b3e; padding: 10px 16px; letter-spacing: .08em; }
.ol .ol-gh .ol-c { color: #788279; }
.ol .ol-gh .ol-t { color: #29312b; }
.ol .ol-mo { border-radius: 0; border-top: 1px solid #f0eee9; padding: 6px 16px; min-height: 38px; }
.ol .ol-mo > .ol-mn { position: relative; padding-left: 28px; }
.ol .ol-mo > .ol-mn::before { content: 'check'; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; border-radius: 999px; background: #e4f3e9; color: #07803e; font: 400 13px/19px 'Material Symbols Outlined'; text-align: center; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
/* Dold för kunden: en tom ring, aldrig en bock – den ser annars avbockad ut (UX-packet). */
.ol .ol-mo.is-hidden > .ol-mn::before { content: ''; background: transparent; box-shadow: inset 0 0 0 1.5px #c9cec8; }
.ol .ol-mo.is-off > .ol-mn::before { content: ''; background: transparent; box-shadow: inset 0 0 0 1.5px #c9cec8; } /* exkluderad kostnad: tom ring */
.ol .ol-mo[data-post="other:days"] > .ol-mn::before { content: 'calendar_today'; background: transparent; color: var(--ol-mut); } /* arbetsdagarna är ingen kostnad */
.ol .ol-mo > .ol-mn::before { pointer-events: none; }
.ol .ol-mo.ol-mo-new > .ol-mn { padding-left: 0; }
.ol .ol-mo.ol-mo-new > .ol-mn::before { content: none; }
.ol .ol-addm { margin: 8px 16px; }
/* Vald rad: ringen med rundade hörn klipps på en rad kant i kant – en grön vänsterkant och ljus ton i stället. */
.ol[data-mode="work"] .is-sel.ol-mo { border-radius: 0; box-shadow: inset 3px 0 0 #1f6b4f; background: #f3f8f5; }

/* Mallar: nivåernas jämförelse (ägaren 2026-10-12). Popupens kropp är den enda scrollen; huvudet med priser och Välj
   står kvar överst. Momentkolumnen bryter långa namn på flera rader, nivåkolumnerna har en fast minsta bredd. */
.ol-cmpw { padding: 0 0 18px; }
.ol-cmpbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 22px 8px; }
.ol-cmpbar .ol-snote { flex: 1; min-width: 240px; margin: 0; }
.ol-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; table-layout: fixed; }
.ol-cmp col { width: 23%; } .ol-cmp col.ol-cmp-name { width: 31%; }
.ol-cmp col.is-now { background: #f6faf7; }
.ol-cmp thead th { position: sticky; top: 0; z-index: 2; background: #fff; border-bottom: 1px solid var(--ol-line2); text-align: left; vertical-align: top; padding: 12px 12px 12px; font-weight: 400; box-shadow: 0 6px 10px -10px rgba(20, 30, 25, .35); }
.ol-cmp thead th:first-child { padding-left: 22px; vertical-align: bottom; font-size: 11px; color: var(--ol-mut2); }
.ol-cmp thead th.is-now { background: #f6faf7; }
.ol-cmp-lv { display: table-cell; }
.ol-cmp-lv > small { display: block; font-size: 11.5px; color: var(--ol-mut); line-height: 1.35; margin-top: 1px; }
.ol-cmp-lv .ol-tp { display: block; font-size: 20px; margin-top: 6px; }
.ol-cmp-lv .ol-td { display: block; margin-bottom: 8px; }
.ol-cmp-lv .ol-btn { height: 30px; }
.ol-cmp-cur { display: inline-flex; height: 30px; align-items: center; font-size: 12px; font-weight: 600; color: var(--ol-g); }
.ol-cmp-g th { background: #f8faf7; color: #087b3e; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 9px 22px; border-top: 1px solid #efede7; }
.ol-cmp-g .ol-c { margin-left: 8px; color: #788279; font-weight: 500; letter-spacing: 0; }
.ol-cmp tbody tr:not(.ol-cmp-g) > * { border-top: 1px solid #f0eee9; padding: 7px 12px; vertical-align: top; text-align: left; }
.ol-cmp tbody tr:not(.ol-cmp-g) > th { padding-left: 22px; font-weight: 400; overflow-wrap: anywhere; color: var(--ol-fg); }
.ol-cmp tbody tr.is-diff > th { font-weight: 500; }
.ol-cmp tbody tr.is-diff > th::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: #c99a3a; margin: 0 7px 1px -13px; vertical-align: middle; }
.ol-cmp td .tnum { color: var(--ol-fg); }
.ol-cmp td small { display: block; font-size: 11.5px; color: var(--ol-mut); line-height: 1.35; margin: 1px 0 0 24px; overflow-wrap: anywhere; }
.ol-cmp-yes { display: inline-flex; width: 18px; height: 18px; margin-right: 6px; border-radius: 999px; background: #e4f3e9; color: #07803e; align-items: center; justify-content: center; vertical-align: -4px; }
.ol-cmp-yes .material-symbols-outlined { font-size: 13px; }
.ol-cmp-no { display: inline-block; width: 18px; text-align: center; color: #b5bab4; }
.ol-cmpw.is-diff .ol-cmp tbody.is-same, .ol-cmpw.is-diff .ol-cmp tr.is-same { display: none; }
.ol-cmp-skel { padding: 14px 22px; display: grid; gap: 10px; }
.ol-cmp-skel .skel { height: 14px; border-radius: 6px; }
.ol-cmp-skel .skel.is-h { height: 96px; border-radius: 12px; }
.ol-cmp-skel-h { display: grid; grid-template-columns: 31% 1fr 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.ol-cmp-dn, .ol-cmpw.is-diff .ol-cmp-all { display: none; } .ol-cmpw.is-diff .ol-cmp-dn { display: inline; }
.ol-cmp-v { font-size: 12px; color: var(--ol-fg2); line-height: 1.4; overflow-wrap: anywhere; }
.ol-cmp-in { display: flex; align-items: flex-start; gap: 6px; } .ol-cmp-in .ol-cmp-yes { flex: none; margin: 0; vertical-align: 0; }

/* Mallarnas jämförelse i Zimla-grönt (ägaren 2026-10-12: "coolare, lite mer zimla grönt"): kolumnhuvudet som Ni betalar-
   kortet, fyllda gröna bockar, och på rader som skiljer sig en grön ton där momentet ingår – det nivån har extra syns direkt. */
.ol-cmp { width: calc(100% - 28px); margin: 0 14px; }
.ol-cmp thead th { background: var(--ol-deep); color: #fff; border-bottom: 0; box-shadow: 0 8px 12px -10px rgba(18, 56, 43, .55); }
.ol-cmp thead th:first-child { color: #8fbfa5; border-top-left-radius: 14px; padding-left: 16px; }
.ol-cmp thead th:last-child { border-top-right-radius: 14px; }
.ol-cmp thead th.is-now { background: #1b4b3a; box-shadow: inset 0 3px 0 #6fd39b, 0 8px 12px -10px rgba(18, 56, 43, .55); }
.ol-cmp-lv .ol-tt b { color: #fff; }
.ol-cmp-lv > small { color: #b9d3c6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ol-cmp-lv .ol-tp { color: #fff; }
.ol-cmp-lv .ol-td { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; }
.ol-cmp-lv .ol-td.dn { background: #d7efe2; color: var(--ol-deep); }
.ol-cmp-lv .ol-td.dp { background: #fff1d6; color: #6e4a00; }
.ol-cmp-lv .ol-td.dz { background: rgba(255, 255, 255, .12); color: #d5e4dc; }
.ol-cmp-lv .ol-nowp { background: #6fd39b; color: var(--ol-deep); }
.ol-cmp-lv .ol-btn { background: #fff; border-color: #fff; color: var(--ol-g); }
.ol-cmp-lv .ol-btn:hover { background: var(--ol-gbg); border-color: var(--ol-gbg); }
.ol-cmp-lv .ol-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ol-cmp-cur { color: #6fd39b; }
.ol-cmp-g th { padding-left: 16px; }
.ol-cmp tbody tr:not(.ol-cmp-g) > th { padding-left: 16px; }
.ol-cmp-yes { background: var(--ol-g); color: #fff; }
/* Skillnaden bärs av tonen där momentet ingår – ingen prick till (UX-packet: en signal per rad). */
.ol-cmp tbody tr.is-diff > td:has(.ol-cmp-yes) { background: rgba(31, 107, 79, .08); }
.ol-cmp tbody tr.is-diff > th::before { content: none; }
.ol-cmp tbody tr:not(.ol-cmp-g):last-child > * { border-bottom: 0; }
.ol-cmpw .ol-seg button[aria-pressed="true"] { background: var(--ol-g); color: #fff; }

/* Kundkortet: Till (kunden) | Er kontakt (ägaren 2026-10-12). Fälten ser ut som text tills man pekar eller skriver. */
.ol-contact.has-to { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; gap: 0; padding: 0; }
.ol-contact .ol-to { padding: 12px 16px 12px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; scroll-margin-top: 90px; }
.ol-contact .ol-from { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-width: 0; }
.ol-contact.has-to .ol-from { border-left: 1px solid var(--ol-line2); }
.ol-contact .ol-from > div { min-width: 0; }
.ol-to-k { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #087b3e; margin-bottom: 2px; }
.ol-contact .ol-to > small { overflow-wrap: anywhere; }
.ol .ol-to-add { margin: 4px 0 2px; }
.ol-to-f { width: 100%; display: flex; flex-direction: column; gap: 1px; }
.ol-to-f[hidden] { display: none; }
.ol-to-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px; }
.ol-to input { width: 100%; min-width: 0; height: 26px; border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 0 6px; margin-left: -7px; font: inherit; font-size: 12.5px; color: var(--ol-fg2); outline: 0; }
.ol-to input.ol-to-name { height: 28px; font-size: 14px; font-weight: 600; color: var(--ol-fg); }
.ol-to input::placeholder { color: #9aa29c; }
.ol-to input:placeholder-shown:not(:focus) { color: #9aa29c; }
.ol-to input:hover { border-color: #e1e5df; background: #fff; }
.ol-to input:focus { border-color: var(--ol-g); background: #fff; box-shadow: 0 0 0 3px rgba(31, 107, 79, .12); }
.ol-to input[aria-invalid="true"] { border-color: #b8483a; box-shadow: 0 0 0 3px rgba(184, 72, 58, .12); }
.ol-to input.is-saving { color: var(--ol-mut); }
.ol-to-rot { margin-top: 6px; padding-top: 6px; border-top: 1px dashed #dfe3dd; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 4px; }
.ol-to-rot small { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ol-mut); }
.ol-to-rot small .material-symbols-outlined { font-size: 13px; }
.ol-to-rot select { border: 0; background: transparent; padding: 0 2px; font: inherit; color: var(--ol-fg2); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.ol-to-rot select:focus-visible { outline: 2px solid var(--ol-g); outline-offset: 1px; border-radius: 4px; }
.ol-to-rotnone { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--ol-mut); }
.ol-to-rotnone span { color: var(--ol-ambfg); }
@container oldoc (max-width: 760px) {
  .ol-contact.has-to { grid-template-columns: minmax(0, 1fr); }
  .ol-contact.has-to .ol-from { border-left: 0; border-top: 1px solid var(--ol-line2); }
  .ol-to-row, .ol-to-rot { grid-template-columns: minmax(0, 1fr); }
  .ol-to-rot { row-gap: 4px; }
  .ol-to-rot input { min-height: 40px; }  /* fyra staplade fält under tummen (packen) */
}
.ol-crumb-btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.ol-crumb-btn:hover { color: var(--ol-g); }
.ol .ol-to-add[hidden] { display: none; }
/* Två rader (ägaren 2026-10-12): Till över hela bredden – namn, adress, ort till vänster, e-post och mobil till höger,
   ROT-underlaget under – och Er kontakt som en kompakt rad under linjen. */
.ol-contact.has-to { grid-template-columns: minmax(0, 1fr); }
.ol-contact.has-to .ol-from { border-left: 0; border-top: 1px solid var(--ol-line2); padding: 10px 16px; }
.ol-contact.has-to .ol-from > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ol-contact.has-to .ol-from .ol-to-k { margin: 0; }
.ol-contact.has-to .ol-av { width: 30px; height: 30px; font-size: 11px; }
.ol-to-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 1px; }
.ol-to-row { display: contents; }
.ol-to-f [data-ol-cust="name"] { grid-area: 1 / 1; } .ol-to-f [data-ol-cust="address"] { grid-area: 2 / 1; } .ol-to-f [data-ol-cust="city"] { grid-area: 3 / 1; }
.ol-to-f [data-ol-cust="email"] { grid-area: 1 / 2; align-self: end; } .ol-to-f [data-ol-cust="phone"] { grid-area: 2 / 2; }
.ol-to-f .ol-to-rot { grid-column: 1 / -1; grid-row: 4; }
@container oldoc (max-width: 760px) {
  .ol-to-f { grid-template-columns: minmax(0, 1fr); }
  .ol-to-f [data-ol-cust], .ol-to-f .ol-to-rot { grid-area: auto; }
}
.ol-to-f .ol-to-rot { column-gap: 20px; }

/* ÄTA-läget: Spara under Skicka (ägaren 2026-10-16) – tredje valet bredvid e-post och SMS. */
.ol-ata-save { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eceee9; }
.ol-ata-save .ol-btn { justify-content: center; width: 100%; height: 40px; }
.ol-ata-save .ol-btn .material-symbols-outlined { font-size: 18px; }
.ol-ata-save small { font-size: 12px; line-height: 1.45; color: var(--ol-mut); }
.ol-crumb-ata { font-weight: 600; color: var(--ol-g) !important; min-width: 9em; }
/* ÄTA-läget: projektet / ÄTA 2 · rubrik – Kunder och kunden får ge plats åt ÄTA:ns rubrik. */
.ol[data-ata] .ol-crumbs > .ol-crumb-hide { display: none; }
.ol[data-ata] .ol-crumb-p:not(.ol-crumb-ata) { min-width: 4em; max-width: 13em; font-weight: 400; color: var(--ol-fg2) !important; }
/* Gruppens pris (ägaren 2026-10-16): summan i gruppraden går att trycka på och skriva om. */
.ol-gh .ol-gprice { border: 1px solid transparent; border-radius: 7px; background: none; padding: 3px 8px; margin-top: -3px; margin-bottom: -3px; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ol-fg); cursor: text; }
.ol-gh .ol-gprice:hover { border-color: #d6dad5; background: #fff; }
.ol-gh .ol-gprice:focus-visible { outline: 2px solid var(--ol-g); outline-offset: 1px; }
.ol-gh .ol-gprice.is-editing { display: inline-flex; align-items: center; gap: 4px; border-color: var(--ol-g); background: #fff; }
.ol-gh .ol-gprice input { width: 7.5em; border: 0; outline: 0; padding: 0; background: transparent; font: inherit; text-align: right; color: var(--ol-fg); }
.ol-gh .ol-gprice.is-saving { opacity: .55; }

