/* Egen kod. E-signering på eget varumärke, byggd på ett öppet signeringssystem med BankID. Dokumentet som papper på ett skrivbord med sigill efter idén i 650-biljetten och Kvittot (sajt-referenser-ui), låda nerifrån efter vaul, kontrollista från interfaces.rauno.me. Precisionen (13/20 px, hårlinjeskugga, knappar 28 px med radie 6 px) efter affectUIs Clean-tokens. Kunderna visas som ordmärken (namnet i egen vikt och färg), inga symboler. Signeringsloggen tonas ut vid foten med en mask i stället för en andra sida. Övrigt ingen kod tagen. */
#c-esign {
  --esg-tand: #0E6F6B;
  --esg-mak: #2F4FA0;
  --esg-bygg: #A6402A;
  --esg-a: var(--esg-tand);
  --esg-a-ui: var(--esg-a);
  --esg-a-tint: rgba(14, 111, 107, 0.09);
  --esg-bg: #FFFFFF;
  --esg-soft: #F6F5F2;
  --esg-desk: #E9E7E1;
  --esg-ink: var(--ink);
  --esg-text: var(--ink-2);
  --esg-muted: var(--grey);
  --esg-line: rgba(17, 17, 16, 0.09);
  --esg-line-2: rgba(17, 17, 16, 0.15);
  --esg-hover: rgba(17, 17, 16, 0.04);
  --esg-ok: #1E7A4C;
  --esg-ok-tint: rgba(30, 122, 76, 0.10);
  --esg-warn: #B4501A;
  --esg-warn-tint: rgba(217, 96, 28, 0.10);
  --esg-paper: #FFFEFB;
  --esg-p-ink: #1A1916;
  --esg-p-text: #4E4B45;
  --esg-p-line: #DEDAD1;
  --esg-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  box-sizing: border-box;
  container-type: inline-size;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 20px;
  color: var(--esg-ink);
  text-align: left;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
#c-esign[data-brand="mak"] { --esg-a: var(--esg-mak); --esg-a-tint: rgba(47, 79, 160, 0.09); }
#c-esign[data-brand="bygg"] { --esg-a: var(--esg-bygg); --esg-a-tint: rgba(166, 64, 42, 0.09); }
:where(.dark, [data-theme="dark"]) #c-esign {
  --esg-bg: #121211;
  --esg-soft: #1C1B1A;
  --esg-desk: #0E0E0D;
  --esg-ink: #F2F1EE;
  --esg-text: rgba(255, 255, 255, 0.72);
  --esg-muted: rgba(255, 255, 255, 0.62);
  --esg-line: rgba(255, 255, 255, 0.09);
  --esg-line-2: rgba(255, 255, 255, 0.16);
  --esg-hover: rgba(255, 255, 255, 0.05);
  --esg-ok: #3EC27A;
  --esg-ok-tint: rgba(62, 194, 122, 0.13);
  --esg-warn: #F08A4B;
  --esg-warn-tint: rgba(240, 138, 75, 0.13);
  --esg-paper: #ECE9E2;
  --esg-p-line: #D3CEC3;
  --esg-a-ui: #5CC6BC;
  --esg-a-tint: rgba(92, 198, 188, 0.12);
}
:where(.dark, [data-theme="dark"]) #c-esign[data-brand="mak"] { --esg-a-ui: #9DB4F2; --esg-a-tint: rgba(157, 180, 242, 0.12); }
:where(.dark, [data-theme="dark"]) #c-esign[data-brand="bygg"] { --esg-a-ui: #F0957C; --esg-a-tint: rgba(240, 149, 124, 0.12); }

#c-esign *, #c-esign *::before, #c-esign *::after { box-sizing: border-box; }
:where(#c-esign) button { font: inherit; color: inherit; margin: 0; border: 0; background: none; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
:where(#c-esign) button:disabled { cursor: default; }
#c-esign :focus-visible { outline: 2px solid var(--esg-a-ui); outline-offset: 2px; }
:where(#c-esign) :where(h3, h4, p, dl, dd, ol, ul) { margin: 0; padding: 0; }
:where(#c-esign) :where(ol, ul) { list-style: none; }
:where(#c-esign) i { font-style: normal; }
.esg-mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.esg-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.esg-mk { width: 22px; height: 22px; flex: none; color: var(--esg-a-ui); }
.esg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kundväxel och vy */
.esg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.esg-brands { display: flex; gap: 8px; }
.esg-bbtn {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 10px;
  background: var(--esg-bg); box-shadow: 0 0 0 1px var(--esg-line);
  transition: box-shadow 160ms var(--esg-ease), transform 140ms var(--esg-ease), background-color 160ms var(--esg-ease);
}
/* Ordmärken: varje kund sitt namn i egen vikt och färg */
.esg-wm { display: inline-block; font-size: 15px; line-height: 20px; white-space: nowrap; color: var(--esg-a-ui); }
.esg-wm--tand { font-weight: 600; letter-spacing: -0.02em; color: var(--esg-tand); }
.esg-wm--mak { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--esg-mak); }
.esg-wm--bygg { font-weight: 600; letter-spacing: 0.01em; font-stretch: condensed; color: var(--esg-bygg); text-transform: none; }
:where(.dark, [data-theme="dark"]) #c-esign .esg-wm--tand { color: #5CC2BC; }
:where(.dark, [data-theme="dark"]) #c-esign .esg-wm--mak { color: #9DB2EC; }
:where(.dark, [data-theme="dark"]) #c-esign .esg-wm--bygg { color: #E59A86; }
#c-esign .esg-lh-n .esg-wm--lg { font-size: 18px; line-height: 24px; margin-bottom: 2px; }
#c-esign .esg-lh-n .esg-wm--tand { color: var(--esg-tand); } #c-esign .esg-lh-n .esg-wm--mak { color: var(--esg-mak); } #c-esign .esg-lh-n .esg-wm--bygg { color: var(--esg-bygg); }
.esg-bbtn .esg-wm { font-size: 15px; }
/* Påminnelsen glider in i stället för att bytas hårt */
.esg-slide { display: inline-block; animation: esg-slide 180ms var(--esg-ease) both; }
@keyframes esg-slide { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.esg-bbtn:hover { box-shadow: 0 0 0 1px var(--esg-line-2); }
.esg-bbtn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--esg-a-ui); }
.esg-bbtn:active, .esg-vbtn:active, .esg-btn:active:not(:disabled), .esg-row:active, .esg-tab:active { transform: scale(0.97); }
.esg-views { display: flex; padding: 3px; border-radius: 11px; background: var(--esg-bg); box-shadow: 0 0 0 1px var(--esg-line); }
.esg-vbtn { padding: 8px 16px; border-radius: 8px; font-weight: 500; color: var(--esg-text); transition: background-color 160ms var(--esg-ease), color 160ms var(--esg-ease), transform 140ms var(--esg-ease); }
.esg-vbtn[aria-pressed="true"] { background: var(--esg-ink); color: var(--esg-bg); }
.esg-vbtn:not([aria-pressed="true"]):hover { background: var(--esg-hover); color: var(--esg-ink); }

/* Huvudyta */
.esg-main { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.esg-panel { background: var(--esg-bg); border-radius: 16px; box-shadow: 0 0 0 1px var(--esg-line); padding: 18px 16px 20px; display: flex; flex-direction: column; min-width: 0; }
.esg-ph { display: flex; align-items: center; gap: 10px; padding: 0 4px 14px; }
.esg-ph .esg-mk { width: 30px; height: 30px; transition: color 180ms var(--esg-ease); }
.esg-ph-t { display: flex; flex-direction: column; line-height: 18px; min-width: 0; }
.esg-ph-t b { font-weight: 600; font-size: 15px; }
.esg-ph-t span { font-size: 13px; color: var(--esg-muted); }
.esg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--esg-line); margin: 0 4px 10px; }
.esg-tab { position: relative; padding: 8px 10px 10px; font-weight: 500; color: var(--esg-text); border-radius: 6px 6px 0 0; transition: color 160ms var(--esg-ease), transform 140ms var(--esg-ease); }
.esg-tab .esg-mono { font-size: 12px; color: var(--esg-muted); margin-left: 4px; }
.esg-tab[aria-selected="true"] { color: var(--esg-ink); }
.esg-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--esg-a-ui); }
.esg-tab:hover { color: var(--esg-ink); }

.esg-list { display: flex; flex-direction: column; gap: 2px; }
.esg-row { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 12px; border-radius: 10px; transition: background-color 160ms var(--esg-ease), transform 140ms var(--esg-ease); }
.esg-row:hover { background: var(--esg-hover); }
.esg-row[aria-current="true"] { background: var(--esg-a-tint); box-shadow: inset 2px 0 0 var(--esg-a-ui); }
.esg-row-a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.esg-row-a b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.esg-row-b { font-size: 13px; color: var(--esg-text); }
.esg-row-b i { font-size: 12px; color: var(--esg-muted); margin-left: 4px; }
.esg-row-c { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; }
.esg-cnt { font-size: 12px; color: var(--esg-muted); white-space: nowrap; }
.esg-type { font-size: 12px; color: var(--esg-muted); }
.esg-done { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--esg-ok); white-space: nowrap; }
.esg-done .esg-i { width: 14px; height: 14px; stroke-width: 2; }

.esg-st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border-radius: 6px; font-size: 12px; font-weight: 500; line-height: 1; color: var(--esg-text); background: var(--esg-hover); white-space: nowrap; }
.esg-st i { font-size: 12px; opacity: 0.85; }
.esg-st[data-st="signed"] { color: var(--esg-ok); background: var(--esg-ok-tint); }
.esg-st[data-st="opened"] { color: var(--esg-a-ui); background: var(--esg-a-tint); }
.esg-st[data-st="reminded"] { color: var(--esg-warn); background: var(--esg-warn-tint); }
.esg-st[data-st="wait"] { color: var(--esg-muted); background: transparent; box-shadow: inset 0 0 0 1px var(--esg-line); }

.esg-sec { margin: 18px 4px 0; padding-top: 16px; border-top: 1px solid var(--esg-line); }
.esg-sec h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.esg-sec h3 .esg-mono { font-size: 12px; font-weight: 400; color: var(--esg-muted); }
.esg-parties { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; position: relative; }
.esg-party { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; position: relative; }
.esg-party + .esg-party::before { content: ""; position: absolute; left: 11.5px; top: -8px; height: 14px; width: 1px; background: var(--esg-line-2); }
.esg-pn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; box-shadow: inset 0 0 0 1px var(--esg-line-2); color: var(--esg-text); }
.esg-party[data-st="signed"] .esg-pn { background: var(--esg-ok); color: #fff; box-shadow: none; }
:where(.dark, [data-theme="dark"]) #c-esign .esg-party[data-st="signed"] .esg-pn { color: #0E0E0D; }
.esg-party[data-st="opened"] .esg-pn, .esg-party[data-st="sent"] .esg-pn, .esg-party[data-st="reminded"] .esg-pn { box-shadow: inset 0 0 0 1.5px var(--esg-a-ui); color: var(--esg-a-ui); }
.esg-pt { display: flex; flex-direction: column; line-height: 18px; min-width: 0; }
.esg-pt b { font-weight: 600; }
.esg-pt span { font-size: 12px; color: var(--esg-muted); }
.esg-ps { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.esg-ps i { font-size: 12px; color: var(--esg-muted); }

.esg-btn { text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 500; transition: background-color 160ms var(--esg-ease), box-shadow 160ms var(--esg-ease), transform 140ms var(--esg-ease), color 160ms var(--esg-ease); }
.esg-btn--line { box-shadow: inset 0 0 0 1px var(--esg-line-2); width: 100%; }
.esg-btn--line:hover:not(:disabled) { background: var(--esg-hover); }
.esg-btn--line:disabled { color: var(--esg-muted); box-shadow: inset 0 0 0 1px var(--esg-line); }
.esg-btn--acc { background: var(--esg-a); color: #fff; width: 100%; }
.esg-btn--acc:hover { filter: brightness(1.08); }
.esg-btn--ghost { color: var(--esg-text); }
.esg-btn--ghost:hover:not(:disabled) { background: var(--esg-hover); color: var(--esg-ink); }
.esg-btn--full { width: 100%; }

.esg-log { display: flex; flex-direction: column; }
.esg-ev { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 13px; line-height: 18px; color: var(--esg-text); border-radius: 6px; transition: background-color 180ms var(--esg-ease); }
.esg-ev time { font-size: 12px; color: var(--esg-muted); padding-top: 1px; white-space: nowrap; }
.esg-ev b { font-weight: 600; color: var(--esg-ink); }
.esg-ev.is-sig b { color: var(--esg-ok); }
.esg-ev.is-seal b { color: var(--esg-a-ui); }
.esg-ev.is-new { background: var(--esg-a-tint); box-shadow: -6px 0 0 var(--esg-a-tint), 6px 0 0 var(--esg-a-tint); }

.esg-crm { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.esg-crm div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; font-size: 13px; }
.esg-crm dt { color: var(--esg-muted); }
.esg-crm dd { font-weight: 500; }
.esg-note { font-size: 13px; color: var(--esg-text); margin-bottom: 14px; }

/* Skrivbordet */
.esg-desk { background: var(--esg-desk); border-radius: 16px; padding: 14px 28px 0; display: flex; flex-direction: column; min-width: 0; }
.esg-addr { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 -14px 22px; padding: 6px 10px 6px 12px; border-radius: 10px; transition: background-color 180ms var(--esg-ease); }
.esg-addr.is-flash { background: var(--esg-a-tint); }
.esg-addr-u { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--esg-muted); }
.esg-addr-u .esg-mono { overflow: hidden; white-space: nowrap; }
.esg-addr-u b { font-weight: 500; color: var(--esg-ink); }
.esg-addr-u .esg-i { color: var(--esg-ok); }
.esg-addr-n { font-size: 13px; color: var(--esg-muted); white-space: nowrap; }
.esg-stage { display: flex; justify-content: center; align-items: flex-start; flex: 1; }
.esg-sheets { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 600px; max-height: 800px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent); }
.esg-ver { padding: 26px 50px 22px; }
.esg-ver-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--esg-a); }
.esg-ver-h h3 { font-size: 15px; font-weight: 600; }
.esg-ver-h .esg-mono { font-size: 12px; color: var(--esg-p-text); }
.esg-ver .esg-log { margin-bottom: 14px; }
.esg-ver .esg-ev { grid-template-columns: 96px minmax(0, 1fr); color: var(--esg-p-text); padding: 6px 0; border-bottom: 1px solid var(--esg-p-line); border-radius: 0; }
.esg-ver .esg-ev time { color: var(--esg-p-text); }
.esg-ver .esg-ev b { color: var(--esg-p-ink); }
.esg-ver .esg-ev.is-sig b { color: #17663F; }
.esg-ver .esg-ev.is-seal b { color: var(--esg-a); }
.esg-ver .esg-ev.is-new { background: rgba(17, 17, 16, 0.05); box-shadow: -8px 0 0 rgba(17, 17, 16, 0.05), 8px 0 0 rgba(17, 17, 16, 0.05); }

/* Papperet */
.esg-paper {
  position: relative; width: 100%; max-width: 600px; padding: 44px 50px 30px; background: var(--esg-paper); color: var(--esg-p-ink);
  border-radius: 3px; box-shadow: 0 1px 1px rgba(17, 17, 16, 0.06), 0 6px 14px -6px rgba(17, 17, 16, 0.16), 0 24px 40px -24px rgba(17, 17, 16, 0.22);
  font-size: 15px; line-height: 22px;
}
:where(.dark, [data-theme="dark"]) #c-esign .esg-paper { box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
.esg-paper .esg-mk { color: var(--esg-a); }
.esg-lh { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 2px solid var(--esg-a); transition: border-color 180ms var(--esg-ease); }
.esg-mk--lg { width: 34px; height: 34px; }
.esg-lh-n { display: flex; flex-direction: column; align-items: flex-start; line-height: 18px; flex: 1; min-width: 0; }
.esg-lh-n b { font-size: 15px; font-weight: 600; color: var(--esg-a); }
.esg-lh-n span, .esg-lh-r span { font-size: 12px; color: var(--esg-p-text); }
.esg-lh-r { display: flex; flex-direction: column; align-items: flex-end; line-height: 18px; text-align: right; }
.esg-lh-r .esg-mono { color: var(--esg-p-ink); font-size: 13px; }
.esg-kind { margin-top: 26px; font-size: 13px; color: var(--esg-p-text); }
.esg-title { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; margin: 2px 0 18px; }
.esg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--esg-p-line); margin-bottom: 18px; }
.esg-fields div { padding: 9px 0 8px; border-bottom: 1px solid var(--esg-p-line); min-width: 0; }
.esg-fields dt { font-size: 12px; line-height: 16px; color: var(--esg-p-text); }
.esg-fields dd { font-weight: 500; }
.esg-body { color: var(--esg-p-ink); margin-bottom: 16px; text-wrap: pretty; }
.esg-f--crm { background: var(--esg-a-tint); box-shadow: 0 0 0 2px var(--esg-a-tint); border-radius: 3px; border-bottom: 1.5px dashed var(--esg-a); }
:where(.dark, [data-theme="dark"]) #c-esign .esg-paper .esg-f--crm, :where(.dark, [data-theme="dark"]) #c-esign .esg-f--crm { background: rgba(17, 17, 16, 0.07); box-shadow: 0 0 0 2px rgba(17, 17, 16, 0.07); }
.esg-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--esg-p-ink); margin-bottom: 26px; }
.esg-box { width: 18px; height: 18px; border-radius: 4px; flex: none; margin-top: 2px; box-shadow: inset 0 0 0 1.5px var(--esg-p-text); display: grid; place-items: center; }
.esg-box.is-on { background: var(--esg-a); box-shadow: none; color: #fff; }
.esg-box .esg-i { width: 14px; height: 14px; stroke-width: 2.2; }
.esg-sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; margin-bottom: 26px; }
.esg-sig { display: flex; flex-direction: column; line-height: 18px; font-size: 13px; color: var(--esg-p-text); min-width: 0; }
.esg-sig b { color: var(--esg-p-ink); font-weight: 600; margin-top: 6px; }
.esg-sig .esg-mono { font-size: 12px; }
.esg-sig-line { height: 34px; border-bottom: 1.5px solid var(--esg-p-ink); display: flex; align-items: flex-end; gap: 6px; padding-bottom: 5px; color: var(--esg-ok); }
.esg-sig:not(.is-signed) .esg-sig-line { border-bottom: 1.5px dashed var(--esg-p-text); }
.esg-sig-line span { font-size: 13px; font-weight: 600; color: #17663F; }
.esg-sig-line .esg-i { color: #17663F; stroke-width: 2; }
.esg-pf { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--esg-p-text); padding-top: 12px; border-top: 1px solid var(--esg-p-line); }
.esg-pf span:last-child { white-space: nowrap; }
.esg-paper-seal { position: absolute; right: 34px; bottom: 54px; }

/* Sigillet */
.esg-seal { width: 140px; height: 140px; color: var(--esg-a); }
.esg-seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
.esg-seal-t { font-family: var(--sans); font-size: 12px; font-weight: 600; fill: currentColor; }
.esg-seal-c { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: currentColor; }
.esg-paper-seal .esg-seal { opacity: 0.88; }
.esg-seal--m { width: 150px; height: 150px; margin: 0 auto 14px; }
.esg-seal--s { width: 140px; height: 140px; margin: 0 auto 10px; }
.esg-seal.is-new { animation: esg-stamp 190ms var(--esg-ease) both; }
@keyframes esg-stamp { from { opacity: 0; transform: scale(1.22); } to { opacity: 1; transform: none; } }

/* Mottagarens telefon */
.esg-phone { width: 360px; padding: 10px; border-radius: 48px; background: #161615; box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.2), 0 24px 48px -24px rgba(17, 17, 16, 0.45); }
:where(.dark, [data-theme="dark"]) #c-esign .esg-phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 48px -24px rgba(0, 0, 0, 0.8); }
.esg-scr {
  --esg-ink: #111110; --esg-text: rgba(17, 17, 16, 0.70); --esg-muted: rgba(17, 17, 16, 0.62); --esg-line: rgba(17, 17, 16, 0.09); --esg-line-2: rgba(17, 17, 16, 0.15); --esg-hover: rgba(17, 17, 16, 0.04); --esg-a-ui: var(--esg-a);
  position: relative; height: 700px; border-radius: 38px; background: #fff; color: #111110; overflow: hidden; display: flex; flex-direction: column;
}
.esg-sb { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 4px; font-size: 13px; font-weight: 600; }
.esg-sb-r { display: flex; align-items: flex-end; gap: 2px; }
.esg-sb-r i { display: block; width: 3px; background: #111110; border-radius: 1px; }
.esg-sb-r i:nth-child(1) { height: 5px; } .esg-sb-r i:nth-child(2) { height: 7px; } .esg-sb-r i:nth-child(3) { height: 9px; }
.esg-sb-r b { display: block; width: 22px; height: 11px; margin-left: 6px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #111110; position: relative; }
.esg-sb-r b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 7px; border-radius: 1px; background: #111110; }
.esg-url { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 6px 16px 0; height: 32px; border-radius: 10px; background: #F1F0ED; font-size: 12px; color: rgba(17, 17, 16, 0.75); }
.esg-url .esg-i { width: 13px; height: 13px; color: #1E7A4C; }
.esg-bh { display: flex; align-items: center; gap: 9px; padding: 14px 20px 12px; border-bottom: 2px solid var(--esg-a); }
.esg-bh .esg-mk { width: 24px; height: 24px; color: var(--esg-a); }
.esg-bh b { font-weight: 600; font-size: 15px; color: var(--esg-a); }
.esg-mbody { flex: 1; overflow-y: auto; padding: 18px 20px 16px; overscroll-behavior: contain; }
.esg-m-k { font-size: 13px; color: rgba(17, 17, 16, 0.65); }
.esg-m-t { font-size: 21px; line-height: 27px; font-weight: 600; letter-spacing: -0.012em; margin: 2px 0 12px; outline: none; }
.esg-m-f { display: flex; flex-direction: column; border-top: 1px solid rgba(17, 17, 16, 0.09); margin-bottom: 12px; }
.esg-m-f div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(17, 17, 16, 0.09); font-size: 13px; }
.esg-m-f dt { color: rgba(17, 17, 16, 0.65); flex: none; }
.esg-m-f dd { font-weight: 500; text-align: right; }
.esg-m-b { font-size: 15px; line-height: 21px; color: #2A2927; margin-bottom: 16px; }
.esg-form { padding: 14px; border-radius: 14px; background: #F6F5F2; }
.esg-m-who { font-size: 13px; color: rgba(17, 17, 16, 0.65); margin-bottom: 8px; }
.esg-fl { display: block; font-size: 13px; font-weight: 500; margin: 8px 0 4px; }
.esg-in { width: 100%; height: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 17, 16, 0.16); font: inherit; font-size: 15px; color: #111110; transition: box-shadow 160ms var(--esg-ease); }
.esg-in.esg-mono { font-family: var(--mono); font-size: 15px; }
.esg-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--esg-a); }
.esg-cb { position: relative; display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 15px; line-height: 20px; cursor: pointer; }
.esg-cb input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.esg-cb-b { width: 22px; height: 22px; flex: none; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(17, 17, 16, 0.4); display: grid; place-items: center; color: transparent; transition: background-color 140ms var(--esg-ease), box-shadow 140ms var(--esg-ease); }
.esg-cb-b .esg-i { width: 16px; height: 16px; stroke-width: 2.2; }
.esg-cb input:checked + .esg-cb-b { background: var(--esg-a); box-shadow: none; color: #fff; }
.esg-cb input:focus-visible + .esg-cb-b { outline: 2px solid var(--esg-a); outline-offset: 2px; }
.esg-mfoot { padding: 12px 20px 20px; border-top: 1px solid rgba(17, 17, 16, 0.08); background: #fff; display: flex; flex-direction: column; gap: 6px; }
.esg-btn--bid { min-height: 50px; border-radius: 12px; background: #111110; color: #fff; font-weight: 600; font-size: 15px; }
.esg-btn--bid:hover:not(:disabled) { background: #2A2927; }
.esg-btn--bid:disabled { background: #E4E2DD; color: rgba(17, 17, 16, 0.62); }
.esg-scr .esg-btn--acc { min-height: 48px; border-radius: 12px; }
.esg-scr .esg-btn--line { min-height: 48px; border-radius: 12px; }
.esg-hint { font-size: 12px; color: rgba(17, 17, 16, 0.65); text-align: center; }
.esg-m-sealed { text-align: center; font-size: 15px; color: #2A2927; padding: 6px 0 10px; }

.esg-veil { position: absolute; inset: 0; background: rgba(17, 17, 16, 0.32); touch-action: none; }
.esg-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px 22px; background: #fff; border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column; gap: 8px; transform: translateY(100%); transition: transform 190ms var(--esg-ease);
  box-shadow: 0 -10px 30px -12px rgba(17, 17, 16, 0.3);
}
.esg-sheet.is-in { transform: none; }
.esg-sheet { touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: contain; }
.esg-sheet.is-drag { cursor: grabbing; }
.esg-sh-top { position: relative; display: flex; justify-content: center; align-items: center; height: 28px; margin: -6px 0 2px; cursor: grab; }
.esg-sh-top .esg-grab { margin: 0; }
.esg-sh-x { position: absolute; right: -8px; top: 0; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: rgba(17, 17, 16, 0.62); transition: background-color 140ms var(--esg-ease), transform 140ms var(--esg-ease); }
.esg-sh-x:hover:not(:disabled) { background: rgba(17, 17, 16, 0.05); color: #111110; }
.esg-sh-x:active:not(:disabled) { transform: scale(0.94); }
.esg-sh-x:focus-visible { outline: 2px solid var(--esg-a); outline-offset: 2px; }
.esg-grab { width: 38px; height: 5px; border-radius: 3px; background: rgba(17, 17, 16, 0.18); margin: 0 auto 8px; }
.esg-sheet h4 { font-size: 18px; line-height: 24px; font-weight: 600; }
.esg-sheet p { font-size: 15px; line-height: 20px; color: rgba(17, 17, 16, 0.70); margin-bottom: 8px; }
.esg-qr { width: 168px; height: 168px; margin: 0 auto 10px; display: block; border-radius: 8px; box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.1); }
.esg-wait { display: flex; justify-content: center; gap: 8px; padding: 10px 0 16px; }
.esg-wait span { width: 8px; height: 8px; border-radius: 50%; background: var(--esg-a); opacity: 0.35; }
.esg-wait span:nth-child(2) { opacity: 0.6; } .esg-wait span:nth-child(3) { opacity: 0.9; }

.esg-rc { text-align: center; padding-top: 12px; }
.esg-rc-h { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.015em; }
.esg-rc-p { font-size: 15px; color: rgba(17, 17, 16, 0.68); margin: 2px 0 18px; }
.esg-rc-l { text-align: left; display: flex; flex-direction: column; border-top: 1px solid rgba(17, 17, 16, 0.09); }
.esg-rc-l li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(17, 17, 16, 0.09); font-size: 15px; line-height: 20px; }
.esg-rc-l .esg-i { color: #1E7A4C; margin-top: 2px; stroke-width: 2; }
.esg-rc-l i { color: rgba(17, 17, 16, 0.65); font-size: 13px; }


/* Porterad från affectUI Progress Tracker (Clean), MIT, Copyright (c) 2026 Florian Höller. Omskriven under esg-, Nolmas färger, utan glans och med kortare rörelse. */
.esg-prog h3 .esg-mono b { font-weight: 500; color: var(--esg-ink); }
.esg-bar { position: relative; height: 4px; margin: 0 0 8px; border-radius: 2px; background: var(--esg-line); overflow: hidden; }
.esg-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--esg-a-ui); transition: width 190ms var(--esg-ease); }
.esg-prog[data-complete] .esg-fill { background: var(--esg-ok); }
.esg-pn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Porterad från affectUI Notification Stack (Clean), MIT, Copyright (c) 2026 Florian Höller. Utan linjemönster och skalning, korten bakom smalnar med indrag. */
.esg-ns { position: relative; display: grid; margin: 14px 4px 0; padding-bottom: 0; }
.esg-ns[data-n="2"] { padding-bottom: 8px; }
.esg-ns[data-n="3"] { padding-bottom: 16px; }
.esg-nc { grid-area: 1 / 1; position: relative; padding: 10px 10px 12px 14px; border-radius: 10px; background: var(--esg-bg); box-shadow: 0 0 0 0.5px var(--esg-line-2), 0 1px 1px -1px rgba(17, 17, 16, 0.1), 0 1px 2px 0 rgba(17, 17, 16, 0.06); transition: transform 190ms var(--esg-ease), opacity 160ms ease; z-index: 3; }
:where(.dark, [data-theme="dark"]) #c-esign .esg-nc { background: var(--esg-soft); box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.4); }
.esg-nc[data-depth="1"] { z-index: 2; margin: 0 8px; transform: translateY(8px); }
.esg-nc[data-depth="2"] { z-index: 1; margin: 0 16px; transform: translateY(16px); }
.esg-nc:not([data-depth="0"]) > * { visibility: hidden; }
.esg-nc[data-leaving] { opacity: 0; transform: translateX(24px); }
.esg-nc-top { display: flex; align-items: center; gap: 8px; }
.esg-nc-top time { font-size: 12px; color: var(--esg-muted); }
.esg-nc-badge { height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; background: var(--esg-hover); color: var(--esg-text); }
.esg-nc-badge[data-tone="acc"] { background: var(--esg-a-tint); color: var(--esg-a-ui); }
.esg-nc-badge[data-tone="ok"] { background: var(--esg-ok-tint); color: var(--esg-ok); }
.esg-nc-badge[data-tone="warn"] { background: var(--esg-warn-tint); color: var(--esg-warn); }
.esg-nc-x { margin-left: auto; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--esg-muted); transition: background-color 140ms var(--esg-ease), color 140ms var(--esg-ease), transform 140ms var(--esg-ease); }
.esg-nc-x:hover { background: var(--esg-hover); color: var(--esg-ink); }
.esg-nc-x:active { transform: scale(0.94); }
.esg-nc-t { display: block; font-size: 13px; line-height: 20px; font-weight: 600; margin-top: 4px; }
.esg-nc-p { font-size: 13px; line-height: 20px; color: var(--esg-text); }
.esg-nc-a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; margin-top: 8px; border-radius: 6px; font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 0.5px var(--esg-line-2), 0 1px 2px rgba(17, 17, 16, 0.06); transition: background-color 140ms var(--esg-ease), transform 140ms var(--esg-ease); }
.esg-nc-a:hover { background: var(--esg-hover); }
.esg-nc-a:active { transform: scale(0.97); }
.esg-nc-a .esg-i { width: 14px; height: 14px; }
.esg-nc-more { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--esg-muted); }

/* Clean-precision i panelen */
.esg-panel { font-size: 13px; line-height: 20px; box-shadow: 0 0 0 0.5px var(--esg-line-2), 0 1px 2px 0 rgba(17, 17, 16, 0.05); }
.esg-panel .esg-btn--line, .esg-panel .esg-btn--acc { min-height: 32px; border-radius: 6px; font-size: 13px; }
.esg-panel .esg-row-a b, .esg-panel .esg-pt b { font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  #c-esign *, #c-esign *::before, #c-esign *::after { transition-duration: 0ms !important; animation: none !important; }
}

/* Smal yta: staplat, telefonen blir hela skärmen */
@container (max-width: 820px) {
  .esg-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .esg-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .esg-bbtn { justify-content: center; padding: 0 6px; }
  .esg-bbtn .esg-wm { font-size: 13px; white-space: normal; line-height: 16px; text-align: center; }
  .esg-list, .esg-tabs, .esg-path, .esg-ph { display: none; }
  #c-esign .esg-prog { margin-top: 0; padding-top: 0; border-top: 0; }
  .esg-sheets { max-height: 650px; }
  .esg-kind { display: none; }
  .esg-views { width: 100%; }
  .esg-vbtn { flex: 1; text-align: center; }
  .esg-main { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .esg-panel { padding: 14px 10px 16px; }
  .esg-desk { padding: 8px 10px 0; border-radius: 14px; }
  .esg-addr { margin: 0 -4px 10px; flex-wrap: wrap; row-gap: 0; }
  .esg-addr-n { display: none; }
  .esg-paper { padding: 22px 18px 18px; font-size: 15px; }
  .esg-ver { padding: 18px 16px 14px; }
  .esg-ver .esg-ev { grid-template-columns: 78px minmax(0, 1fr); }
  .esg-panel .esg-btn--line, .esg-panel .esg-btn--acc { min-height: 40px; }
  #c-esign[data-view="r"] .esg-ns { display: none; }
  .esg-title { font-size: 24px; line-height: 26px; }
  .esg-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .esg-paper-seal { position: static; display: flex; justify-content: flex-end; margin: -6px 0 10px; }
  .esg-lh-r span:last-child { display: none; }
  #c-esign[data-view="r"] .esg-main { display: flex; flex-direction: column-reverse; }
  #c-esign[data-view="r"] .esg-ph, #c-esign[data-view="r"] .esg-tabs, #c-esign[data-view="r"] .esg-list, #c-esign[data-view="r"] .esg-prog { display: none; }
  #c-esign[data-view="r"] .esg-sec { margin-top: 0; padding-top: 0; border-top: 0; }
  #c-esign[data-view="r"] .esg-desk { background: none; padding: 0; }
  #c-esign[data-view="r"] .esg-addr { display: none; }
  .esg-phone { width: 100%; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  :where(.dark, [data-theme="dark"]) #c-esign .esg-phone { box-shadow: none; }
  .esg-scr { height: 680px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(17, 17, 16, 0.12); }
  .esg-sb { display: none; }
  .esg-url { margin-top: 10px; }
  .esg-sheet .esg-btn { font-size: 15px; padding: 0 10px; }
  .esg-sheet { padding: 10px 14px 18px; }
}
