/* ==========================================================================
   ÄTA i datorn (ata.js; Linus 2026-11-13, tre bilder)

   Byggd exakt efter bild 1 (översikten), bild 2 (Ny ÄTA) och bild 3 (rutan "Skicka till kunden?"), alla i fönstret
   1481 × 831 i skala 1,35. Måtten är bildernas, uppmätta i Safaris motor, och färgerna är avlästa i dem. Sidan har ett
   enda utseende. Allt här börjar på at-, och rör ingen annan sida. (ÄTA-sidans gamla klasser, ata-, står kvar i skal.css:
   sidan Offert är byggd av dem.)

   Sidan fyller ytan under raden längst upp och rullar aldrig som helhet: i översikten rullar listan (och den valda
   ÄTA:n för sig, om den är lång), i en öppnad ÄTA och i formuläret rullar den mörka delen. I ett smalt fönster staplas
   delarna, och då rullar sidan som helhet.

   Linjerna är skuggor inåt eller egna ytor, inte kanter: Safaris motor tappar en kant på 1 punkt i skala 1,35.
   ========================================================================== */

@property --at-vald-y { syntax: '<length>'; inherits: true; initial-value: 0px; }
@property --at-vald-h { syntax: '<length>'; inherits: true; initial-value: 0px; }

.at-sida, .at-fraga-yta {
  --at-gul: #f5c900;
  --at-gul-ljus: #ffd934;       /* den gula knappens överkant */
  --at-gul-text: #171717;
  --at-mork: #161616;           /* de mörka delarna i ramen */
  --at-mork-falt: #1b1b1b;      /* fälten i den mörka delen */
  --at-mork-kant: #262626;
  --at-ram: #fdfdfd;            /* den vita ramen, korten och fälten på ljust */
  --at-ljus: #ecedea;           /* listans yta */
  --at-ljus-falt: #f3f4f1;      /* fälten i den ljusa delen */
  --at-kant-ute: 0 0.3px 0 1px; /* de ljusa fältens kant: en linje utanför fältet (bild 2), en aning tyngre nertill */
  --at-ljus-kant: #e3e3e0;
  --at-text: #f5f5f5;
  --at-text-2: #9b9b9b;
  --at-text-3: #6f6f6f;
  --at-l-text: #151515;         /* texten på ljust */
  --at-l-text-2: #6b6b69;
  --at-l-text-3: #9a9a98;
  --at-rod: #e5484d;
  --at-mjuk: cubic-bezier(0.22, 1, 0.36, 1);
  --at-glid: cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font);
}

/* ---------- Ytan ---------- */

/* Sidan har sitt eget huvud (rubriken, ÄTA-timpriset och knapparna): projektets huvud är borta här, och ytan går ända
   ut till sidomenyn och fönstrets kant. */
.vy-projekt .ps-yta:has(> .ps-innehall > .at-sida) { padding-top: 0; }
.vy-projekt .ps-yta:has(> .ps-innehall > .at-sida) > .ps-huvud { display: none; }
.vy-projekt .ps-innehall:has(> .at-sida) { margin: 0 calc(-1 * var(--ps-panel)) 0 -20px; padding-bottom: 0; overflow: hidden; }
html.ps-fullskarm .vy-projekt .ps-innehall:has(> .at-sida) { margin: 0 -28px; }
/* Arnes rad ligger över sidan: det som rullar får luften inuti (skalet lägger annars luft under hela innehållet). */
html.har-arnerad .vy-projekt .ps-yta > .ps-innehall.is-rullbar:has(> .at-sida) { padding-bottom: 0; scroll-padding-bottom: 0; }
.at-sida { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; background: #101010; color: var(--at-text); }
.at-vy { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; box-sizing: border-box; padding: 15.1px 20.5px 19.9px 20.7px; }
/* Vyn som tonar bort ligger kvar där den stod, under den nya. */
.at-vy.is-lamnar { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.at-vy:not(.is-lamnar) { position: relative; z-index: 1; }
/* Grunden (utan egen tyngd, så att varje del bestämmer själv). */
:where(.at-sida, .at-fraga-yta) :where(p, h2, h3, h4, dl, dd, ul, ol) { margin: 0; }
:where(.at-sida, .at-fraga-yta) :where(ul, ol) { padding: 0; list-style: none; }
:where(.at-sida, .at-fraga-yta) :where(button, input, textarea) { font-family: inherit; }
.at-tomt { padding: 28px 0 0; font-size: 14px; line-height: 20px; color: var(--at-text-2); }
.at-fel { margin: 0; font-size: 13px; line-height: 18px; color: var(--at-rod); }
.at-fel[hidden] { display: none; }
.at-fel.is-sida { padding: 28px 0 0; font-size: 14px; line-height: 20px; }
.at-sida .at-oversikt > .at-fel.is-sida { padding: 14px 0 0; }
.at-punkt { white-space: pre; }
.at-antal { margin-left: 9px; font-weight: 400; color: var(--at-text-3); font-variant-numeric: tabular-nums; }
.at-prick { flex: none; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--at-gul); }
.at-sida .ikon { flex: none; }
/* De streckade ikonerna (bocken, krysset, plusset …) får sitt streck av skalet (styles.css, 1,7). Här bestämmer varje
   del sitt eget streck med --at-streck. */
:is(.at-sida, .at-fraga-yta) svg.ikon.ikon { stroke-width: var(--at-streck, 1.7); }

/* ---------- Sidans huvud ---------- */

.at-huvud { flex: none; display: flex; align-items: center; gap: 16px; min-height: 40px; }
/* Ryms inte allt på raden kortas texten efter rubriken först (vem och när): knapparna står kvar på en rad. */
.at-huvud-vanster { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.at-huvud-vanster > .at-bak, .at-huvud-vanster > .at-sidtitel, .at-huvud-vanster > .at-sidtitel-under { flex: none; }
.at-sidtitel { position: relative; top: -2.4px; margin-left: -1.5px; font-size: 30px; line-height: 40px; font-weight: 500; letter-spacing: -0.2px; color: var(--at-text); white-space: nowrap; }
.at-sidtitel-under { margin-left: 14.5px; padding-top: 6px; font-family: 'Aldrich', var(--font); font-size: 15px; line-height: 20px; color: var(--at-text-3); white-space: nowrap; }
.at-huvud-hoger { flex: none; display: flex; align-items: center; margin-left: auto; min-width: 0; }
/* Pilen tillbaka: en ruta med rundade hörn, som kugghjulet. */
/* Kugghjulet är skalets knapp (.ps-fullknapp), som skalet ritar utan ruta: här har den rutan, som i bilden. */
.at-bak, .at-sida .ps-ikonplats > .ps-fullknapp[aria-label]:has(> svg.ikon:only-child) {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 10px;
  background: var(--at-mork) !important; box-shadow: inset 0 0 0 1px var(--at-mork-kant) !important; color: #d6d6d4; cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.at-bak:hover, .at-sida .ps-ikonplats > .ps-fullknapp[aria-label]:has(> svg.ikon:only-child):hover:not(:disabled) { background: #1e1e1e !important; color: #ffffff; box-shadow: inset 0 0 0 1px #343434 !important; }
.at-bak:focus-visible, .at-sida .ps-ikonplats > .ps-fullknapp:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.45); outline-offset: 2px; }
.at-sida .ps-ikonplats > .ps-fullknapp[hidden] { display: none; }
.at-bak { margin-right: 14px; }
.at-bak .ikon { width: 11.3px; height: 11.3px; }
.at-bak + .at-sidtitel { margin-left: 0; }
.at-sida .ps-ikonplats { display: flex; align-items: center; gap: 7.4px; margin: 0 6.8px 0 18.6px; }
.at-sida .ps-ikonplats:empty, .at-sida .ps-ikonplats:not(:has(> :not([hidden]))) { margin-left: 18.6px; margin-right: 0; }
.at-sida .ps-ikonplats > .ps-fullknapp[aria-label]:has(> svg.ikon:only-child) > .ikon { width: 15.3px; height: 15.3px; }

/* Jobbets ÄTA-timpris: "ÄTA-timpris 650 kr/h Ändra". */
.at-timpris { position: relative; display: flex; align-items: baseline; gap: 0; font-size: 13.5px; line-height: 20px; white-space: nowrap; }
.at-timpris-etikett, .at-timpris-kalla { margin-right: 7.3px; color: var(--at-text-2); }
.at-timpris-varde { margin-right: 6.5px; font-size: 13.9px; font-weight: 600; color: var(--at-text); }
.at-lank {
  margin: 0; padding: 0; border: 0; background: none; color: #c9c9c7; font-size: inherit; line-height: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: #6a6a68;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}
.at-lank:hover { color: #ffffff; text-decoration-color: #ffffff; }
.at-lank:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.45); outline-offset: 3px; border-radius: 3px; }

/* Rutan under "Ändra". */
.at-timprisruta {
  position: absolute; z-index: 30; top: calc(100% + 14px); right: -8px; width: 316px; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 14px;
  background: #1a1a1a; box-shadow: inset 0 0 0 1px #2c2c2c, 0 18px 44px -12px rgba(0, 0, 0, 0.7), 0 4px 14px -4px rgba(0, 0, 0, 0.5);
  white-space: normal; transform-origin: 85% 0;
}
.at-timprisruta.is-ny { animation: at-ruta-in 240ms var(--at-mjuk) both; }
@keyframes at-ruta-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.at-timprisruta .at-falt { margin: 0; }
.at-kryssrad { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13.5px; line-height: 20px; color: #dededc; cursor: pointer; }
.at-kryss { position: absolute; opacity: 0; pointer-events: none; }
.at-kryss-ruta { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #121212; box-shadow: inset 0 0 0 1px #3a3a3a; transition: background 160ms ease, box-shadow 160ms ease; }
.at-kryss-ruta .ikon { width: 10px; height: 10px; color: #171717; --at-streck: 2.6; opacity: 0; transform: scale(0.6); transition: opacity 140ms ease, transform 200ms var(--at-mjuk); }
.at-kryss:checked + .at-kryss-ruta { background: var(--at-gul); box-shadow: inset 0 0 0 1px var(--at-gul); }
.at-kryss:checked + .at-kryss-ruta .ikon { opacity: 1; transform: scale(1); }
.at-kryss:focus-visible + .at-kryss-ruta { outline: 2px solid rgba(255, 255, 255, 0.45); outline-offset: 2px; }
.at-not { margin-top: 10px; font-size: 12.5px; line-height: 17px; color: var(--at-text-3); }
.at-timprisruta .at-fel { margin-top: 10px; }
.at-timprisruta-knappar { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---------- Knapparna ---------- */

/* Sidans vanliga knapp: mörk, med en tunn kant ("Spara utkast", "Avbryt"). */
.at-knapp {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; box-sizing: border-box; margin: 0; padding: 0 14.75px; border: 0; border-radius: 10px;
  background: var(--at-mork); box-shadow: inset 0 0 0 1px #2a2a2a; color: #ececec; font-size: 13.85px; line-height: 20px; font-weight: 400; white-space: nowrap; cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease, opacity 160ms ease;
}
.at-knapp:hover:not(:disabled) { background: #1f1f1f; box-shadow: inset 0 0 0 1px #3a3a3a; }
.at-knapp:active:not(:disabled) { background: #232323; }
.at-knapp:disabled { opacity: 0.45; cursor: default; }
.at-knapp:focus-visible, .at-gul:focus-visible, .at-oppna:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.at-knapp .ikon { width: 14px; height: 14px; }
.at-knapp.is-ljus { background: #f2f2f2; box-shadow: none; color: #171717; }
.at-knapp.is-ljus:hover:not(:disabled) { background: #ffffff; box-shadow: none; }
.at-knapp.is-tyst { background: none; box-shadow: none; color: var(--at-text-2); }
.at-knapp.is-tyst:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); box-shadow: none; color: var(--at-text); }
.at-knapp.is-lank { height: auto; padding: 0; background: none; box-shadow: none; border-radius: 4px; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.at-knapp.is-lank:hover:not(:disabled) { background: none; box-shadow: none; text-decoration-color: currentColor; }

/* Den gula knappen, sidans nästa steg (Ny ÄTA, Godkänn, Skicka till kunden): en mörk ruta med ikonen, och texten i
   rubrikernas snitt. Den lyser svagt gult under sig. */
.at-gul {
  position: relative; flex: none; display: inline-flex; align-items: center; height: 40px; box-sizing: border-box; margin: 0; padding: 0 17.1px 0 6px; border: 0; border-radius: 10px;
  background: linear-gradient(180deg, var(--at-gul-ljus), #fad027 46%, var(--at-gul));
  box-shadow: 0 6px 18px -4px rgba(245, 201, 0, 0.34), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
  color: var(--at-gul-text); font-family: 'Aldrich', var(--font); font-size: 14.9px; line-height: 20px; font-weight: 400; white-space: nowrap; cursor: pointer;
  transition: filter 160ms ease, box-shadow 200ms ease, transform 160ms ease, opacity 160ms ease;
}
.at-gul:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 8px 22px -4px rgba(245, 201, 0, 0.46), 0 1px 0 rgba(255, 255, 255, 0.35) inset; }
.at-gul:active:not(:disabled) { transform: translateY(0.5px) scale(0.985); filter: brightness(0.98); }
.at-gul:disabled { opacity: 0.5; cursor: default; }
.at-gul-ruta { flex: none; display: grid; place-items: center; width: 27.3px; height: 27.3px; margin-right: 10.7px; border-radius: 7px; background: #141414; color: var(--at-gul); }
.at-gul-ruta .ikon { width: 19px; height: 19px; --at-streck: 2.6; }
.at-gul-ruta .ikon:has(use[href="#i-send"]) { width: 14.5px; height: 14.5px; --at-streck: 2; }
.at-gul-text { -webkit-text-stroke: 0.35px currentColor; padding-top: 1px; }

/* Raden med knappar i sidans huvud (en öppnad ÄTA och formuläret). */
.at-fot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8.2px; min-width: 0; }
.at-fot .at-fel.is-fot { max-width: 340px; margin-right: 6px; text-align: right; font-size: 12.5px; line-height: 16px; }
.at-sparat { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 13px; line-height: 18px; color: var(--at-text-3); white-space: nowrap; }
.at-sparat[hidden] { display: none; }
.at-sparat .ikon { width: 11px; height: 11px; --at-streck: 2; }
.at-sparat.is-osparat { color: var(--at-gul); }
.at-sparat.is-osparat .ikon { display: none; }

/* ---------- Talen ---------- */

/* Raden är alltid 55,5 hög: ryms inte texten efter ett tal bryts den till en rad under, i luften ovanför ramen, och
   ramen står kvar. */
.at-talrad { flex: none; display: grid; grid-template-columns: 351fr repeat(5, 299.5fr); height: 55.5px; margin-top: 32.6px; }
.at-tal { min-width: 0; box-sizing: border-box; padding: 3.4px 0 0 24.4px; box-shadow: inset 1px 0 0 #222222; }
.at-tal:first-child { padding-left: 23.7px; box-shadow: none; }
.at-tal-rubrik { display: flex; align-items: center; gap: 7.4px; height: 16px; font-size: 12.8px; line-height: 16px; color: var(--at-text-2); white-space: nowrap; }
.at-tal-rad { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 9.6px; margin-top: 5px; }
.at-tal-varde { font-family: 'Aldrich', var(--font); font-size: 22.5px; line-height: 26px; word-spacing: -1px; white-space: nowrap; color: var(--at-text); font-variant-numeric: tabular-nums; -webkit-text-stroke: 0.3px currentColor; transition: color 300ms ease; }
.at-tal-varde.is-noll { color: #444444; }
.at-tal-under { position: relative; top: -0.5px; font-size: 12.5px; line-height: 16px; color: var(--at-text-3); }

/* ---------- Ramen ---------- */

.at-ram { position: relative; flex: 1 1 0; min-height: 0; display: grid; margin-top: 30.4px; border-radius: 15px; background: var(--at-ljus); overflow: hidden; }
.at-kropp { grid-template-columns: minmax(0, 590.2fr) minmax(0, 778.2fr); }

/* Listan till vänster. */
.at-lista { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.at-sok { flex: none; display: flex; align-items: center; gap: 7.2px; height: 40px; box-sizing: border-box; margin: 14.8px 11.9px 0 11.8px; padding: 0 14px 0 13.4px; border-radius: 10px; background: var(--at-ram); box-shadow: inset 0 0 0 1px var(--at-ljus-kant); cursor: text; transition: box-shadow 160ms ease; }
.at-sok:focus-within { box-shadow: inset 0 0 0 1px #b9b9b6; }
.at-sok .ikon { width: 17.4px; height: 17.4px; margin: 0.8px 1.5px 0 0.8px; color: #858583; --at-streck: 2.2; }
.at-sok-falt { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--at-l-text); font-size: 13.69px; line-height: 20px; -webkit-appearance: none; appearance: none; }
.at-sok-falt::placeholder { color: #8c8c8a; opacity: 1; }
.at-sok-falt::-webkit-search-cancel-button, .at-sok-falt::-webkit-search-decoration { -webkit-appearance: none; }
.at-rader { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 15.5px 0 0 11.8px; }
.at-rader::-webkit-scrollbar { display: none; }
.at-kort { position: relative; padding: 0 11.9px 16px 0; transition: --at-vald-y 360ms var(--at-glid), --at-vald-h 360ms var(--at-glid); }
.at-kort.is-direkt { transition: none; }

/* En rad i listan: ett vitt kort. Kortens mellanrum är en marginal under varje kort, så att ett kort som fälls ihop
   tar sitt mellanrum med sig. */
.at-rad {
  display: grid; grid-template-columns: 45.9px minmax(0, 1fr) auto minmax(112.6px, auto); align-items: center; height: 66px; box-sizing: border-box; margin-bottom: 8px; padding: 0 16.2px 0 0;
  border-radius: 10px; background: var(--at-ram); box-shadow: inset 0 0 0 1px var(--at-ljus-kant); color: var(--at-l-text); cursor: pointer; outline: none;
  transition: box-shadow 160ms ease;
}
.at-kort > ul > .at-rad:hover { box-shadow: inset 0 0 0 1px #cfcfcc; }
.at-kort > ul > .at-rad:focus-visible { box-shadow: inset 0 0 0 1px #cfcfcc, 0 0 0 2px rgba(23, 23, 23, 0.55); }
.at-rad-nr { width: 45px; text-align: center; font-family: 'Aldrich', var(--font); font-size: 15px; line-height: 20px; color: #2a2a2a; font-variant-numeric: tabular-nums; -webkit-text-stroke: 0.25px currentColor; }
.at-rad-vad { display: flex; flex-direction: column; min-width: 0; padding-right: 13px; }
.at-rad-rubrik { position: relative; top: -1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.1px; line-height: 21px; font-weight: 500; letter-spacing: -0.1px; }
.at-rad-vem { margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.9px; line-height: 18px; color: var(--at-l-text-2); }
.at-rad-tal { min-width: 111.5px; padding-right: 19.6px; text-align: right; font-size: 14.6px; line-height: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.at-rad-lage { display: flex; }
.at-rad-lage .at-lage { width: 100%; justify-content: center; padding: 0 10px; }
.at-rader-tomt { padding: 22px 6px; font-size: 14px; line-height: 20px; color: var(--at-l-text-2); }

/* Lägets bricka. Hos kunden: mörk med en klocka. Godkänd: gul med en bock. De andra lägena (inte i bilden) i samma form:
   det som väntar är vitt med en gul prick, ett nej grått med ett kryss. */
.at-lage { display: inline-flex; align-items: center; gap: 7.4px; height: 28.1px; box-sizing: border-box; padding: 0 12.2px 0 10px; border-radius: 8px; font-size: 12.8px; line-height: 18px; font-weight: 500; white-space: nowrap; }
.at-lage .ikon { width: 12.6px; height: 12.6px; }
.at-lage-bock { display: grid; place-items: center; }
.at-lage-bock .ikon { width: 18px; height: 18px; margin: 0 -3.6px; --at-streck: 2.1; }
.at-lage-kryss.ikon { width: 9px; height: 9px; margin: 0 1px; --at-streck: 2.4; }
.at-lage-prick { flex: none; display: block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--at-gul); }
.at-lage.is-hos { background: #171717; color: #fafafa; }
.at-lage.is-godkand { background: var(--at-gul); color: #171717; }
.at-lage.is-vantar, .at-lage.is-utkast, .at-lage.is-utgatt, .at-lage.is-ej { background: var(--at-ram); box-shadow: inset 0 0 0 1px #d9d9d6; color: #232323; }
.at-lage.is-utkast .at-lage-prick { background: #b4b4b1; }
.at-lage.is-nekad, .at-lage.is-avslagen { background: #e3e3e0; color: #2e2e2e; }

/* Gruppen under listan: "● Skickad från appen · väntar på dig". */
.at-grupp { display: flex; align-items: center; height: 18px; margin: 16.5px 0 9.2px 13.4px; font-size: 13.15px; line-height: 18px; color: var(--at-l-text-2); white-space: nowrap; }
.at-grupp .at-prick { margin-right: 9.6px; }
.at-grupp b { font-weight: 600; color: var(--at-l-text); }
.at-grupp span { white-space: pre; }
/* Ett kort från fältet. */
.at-inkommen { grid-template-columns: 59.9px minmax(0, 1fr) auto auto; height: 66.7px; padding-right: 14.9px; }
.at-inkommen .at-rad-vad { padding-right: 12px; }
.at-avatar { position: relative; flex: none; display: grid; place-items: center; width: 34.1px; height: 34.1px; margin-left: 14px; border-radius: 50%; background: #171717; color: #f5f5f5; font-size: 11.5px; line-height: 1; font-weight: 600; letter-spacing: 0.2px; }
.at-avatar .at-prick { position: absolute; top: 0; right: -1px; width: 7.4px; height: 7.4px; box-shadow: 0 0 0 1px var(--at-ram); }
.at-rad-bilder { display: inline-flex; align-items: center; gap: 7.2px; vertical-align: top; word-spacing: -1.5px; }
.at-rad-bilder .ikon { width: 10.6px; height: 10.6px; }
.at-punkt.is-rund { position: relative; top: -1.5px; margin: 0 3.3px 0 1.1px; color: #b0b0ad; }
.at-kortkryss {
  flex: none; display: grid; place-items: center; width: 31.8px; height: 32.6px; margin: 0 9.6px 0 0; padding: 0; border: 0; border-radius: 8px;
  background: var(--at-ram); box-shadow: inset 0 0 0 1px #dcdcd9; color: #4a4a48; cursor: pointer; transition: background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.at-kortkryss:hover { background: #f1f1ee; box-shadow: inset 0 0 0 1px #c9c9c6; color: #171717; }
.at-kortkryss:focus-visible { outline: 2px solid rgba(23, 23, 23, 0.55); outline-offset: 2px; }
.at-kortkryss .ikon { width: 9.5px; height: 9.5px; --at-streck: 1.9; }
/* På det vita kortet har knappen inget sken under sig (bild 1), bara en aning mörkare underkant. */
.at-gul.is-kort { height: 32.6px; padding: 0 11.4px 0 4.1px; border-radius: 8px; font-size: 13.8px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -1px 0 rgba(120, 92, 0, 0.2) inset; }
.at-gul.is-kort:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 -1px 0 rgba(120, 92, 0, 0.2) inset; }
.at-gul.is-kort .at-gul-ruta { width: 24.4px; height: 24.4px; margin-right: 8.2px; border-radius: 6px; }
.at-gul.is-kort .at-gul-ruta .ikon { width: 16.5px; height: 16.5px; --at-streck: 2.2; }
.at-rad.is-arbetar { pointer-events: none; }
.at-rad.is-arbetar > * { opacity: 0.5; transition: opacity 200ms ease; }
.at-rad.is-gar, .at-grupp.is-gar { overflow: hidden; pointer-events: none; }
/* Det sökningen tog bort tonar bort där det stod (en bild av raden, utanför flödet). */
.at-rad.is-spoke, .at-grupp.is-spoke { position: absolute; z-index: 0; box-sizing: border-box; margin: 0; pointer-events: none; }

/* Den mörka plattan under den valda raden. Över korten ligger en mörk tvilling av dem (bara att se), och den syns bara
   där plattan står: texten är då rätt hela vägen medan plattan glider. Plattan går ihop med den mörka delen till höger,
   och det ljusa över och under den har rundade hörn mot den (skarven). */
.at-vald {
  position: absolute; z-index: 2; inset: 0; box-sizing: border-box; padding: 0 11.9px 16px 0; background: var(--at-mork); pointer-events: none;
  clip-path: inset(var(--at-vald-y) 0 calc(100% - var(--at-vald-y) - var(--at-vald-h)) 0 round 10px 0 0 10px);
}
.at-vald-skarv {
  position: absolute; z-index: 2; right: 0; top: calc(var(--at-vald-y) - 8px); width: 8px; height: calc(var(--at-vald-h) + 16px); pointer-events: none;
  background: radial-gradient(circle at 0 0, transparent 7.6px, var(--at-mork) 8.4px) top / 8px 8px no-repeat, radial-gradient(circle at 0 100%, transparent 7.6px, var(--at-mork) 8.4px) bottom / 8px 8px no-repeat;
}
.at-kort:not(.har-vald) > .at-vald, .at-kort:not(.har-vald) > .at-vald-skarv { display: none; }
.at-vald .at-rad { background: none; box-shadow: none; color: #f7f7f7; cursor: default; }
.at-vald .at-rad-nr { color: var(--at-gul); }
.at-vald .at-rad-vem { color: #9d9d9b; }
.at-vald .at-grupp { visibility: hidden; }
.at-vald .at-lage.is-hos { background: #333333; }
.at-vald .at-lage.is-vantar, .at-vald .at-lage.is-utkast, .at-vald .at-lage.is-utgatt, .at-vald .at-lage.is-ej { background: #2a2a2a; box-shadow: inset 0 0 0 1px #3a3a3a; color: #f2f2f2; }
.at-vald .at-lage.is-nekad, .at-vald .at-lage.is-avslagen { background: #333333; color: #ededed; }
.at-vald .at-avatar { background: #2e2e2e; }
.at-vald .at-avatar .at-prick { box-shadow: 0 0 0 1px var(--at-mork); }
.at-vald .at-kortkryss { background: #1f1f1f; box-shadow: inset 0 0 0 1px #363636; color: #d0d0ce; }
.at-vald .at-punkt.is-rund { color: #5c5c5a; }

/* ---------- Den valda ÄTA:n till höger ---------- */

.at-forhand { position: relative; z-index: 1; min-width: 0; min-height: 0; margin: 3px 3px 3px -1px; border-radius: 10px 12px 12px 10px; background: var(--at-mork); overflow: hidden; }
.at-forhand-inne { position: absolute; inset: 0; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding: 28.1px 31.8px 28px 33.5px; }
.at-forhand-inne::-webkit-scrollbar { display: none; }
.at-forhand-inne.is-lamnar { pointer-events: none; }
.at-forhand-topp { display: flex; align-items: center; justify-content: space-between; height: 36.3px; }
.at-forhand-nr { font-size: 13.2px; line-height: 16px; letter-spacing: 0.3px; color: #8e8e8e; white-space: nowrap; }
.at-oppna {
  flex: none; display: inline-flex; align-items: center; gap: 9.4px; height: 36.3px; box-sizing: border-box; margin: 0; padding: 0 15px 0 14.5px; border: 0; border-radius: 10px;
  background: #ffffff; color: #171717; font-size: 13.56px; line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 160ms ease, transform 160ms ease;
}
.at-oppna:hover { background: #ececea; }
.at-oppna:active { transform: scale(0.985); }
.at-oppna .ikon { width: 15px; height: 15px; margin-right: -1.5px; --at-streck: 2.1; transition: transform 220ms var(--at-mjuk); }
.at-oppna:hover .ikon { transform: translateX(2px); }
.at-forhand-rubrik { margin-top: 13.5px; overflow-wrap: anywhere; font-family: 'Aldrich', var(--font); font-size: 28.05px; line-height: 34px; font-weight: 400; color: #f9f9f9; -webkit-text-stroke: 0.3px currentColor; }
/* Det vita kortet med priset, och under det var ÄTA:n är i sitt lopp. */
.at-forhand-kort { margin-top: 23.6px; border-radius: 13px; background: #1b1b1b; box-shadow: inset 0 0 0 1px #242424; overflow: hidden; }
.at-forhand-pris { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 114.7px; box-sizing: border-box; padding: 22px 24.4px 26px 23px; background: var(--at-ram); color: var(--at-l-text); }
.at-forhand-vardedel { min-width: 0; }
.at-forhand-etikett { font-size: 13px; line-height: 16px; font-weight: 400; color: var(--at-text-2); }
.at-forhand-pris .at-forhand-etikett { color: var(--at-l-text-2); }
.at-forhand-varderad { position: relative; top: 1.5px; display: flex; align-items: baseline; gap: 10px; margin-top: 6px; white-space: nowrap; }
.at-forhand-varde { font-family: 'Aldrich', var(--font); font-size: 44.15px; line-height: 44px; color: #111111; -webkit-text-stroke: 0.5px currentColor; font-variant-numeric: tabular-nums; }
.at-forhand-under { font-size: 13.3px; line-height: 16px; color: var(--at-l-text-3); }
.at-uppgifter { flex: none; display: flex; }
.at-uppgift { padding: 0 0 0 23px; }
.at-uppgift + .at-uppgift { margin-left: 21.5px; box-shadow: inset 1px 0 0 #e6e6e3; }
.at-uppgift dt { font-size: 12.5px; line-height: 16px; color: var(--at-l-text-3); }
.at-uppgift dd { margin-top: 1.8px; font-size: 15.3px; line-height: 20px; font-weight: 500; color: #131313; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Loppet: Pris satt — Hos kunden — Kundens svar. */
.at-steg { display: flex; align-items: center; height: 74.1px; box-sizing: border-box; padding: 0 23.5px 0 22.2px; }
.at-steg-del { flex: none; display: flex; align-items: center; gap: 10.4px; }
.at-steg-ring { flex: none; display: grid; place-items: center; width: 25.2px; height: 25.2px; box-sizing: border-box; border-radius: 50%; }
.at-steg-ring .ikon { width: 14px; height: 14px; --at-streck: 2.2; }
.at-steg-ord { display: flex; flex-direction: column; }
.at-steg-text { font-size: 14px; line-height: 18px; color: #9d9e9b; white-space: nowrap; }
.at-steg-under { font-size: 12.5px; line-height: 16px; color: #8a8a88; white-space: nowrap; }
.at-steg-del.is-klar .at-steg-ring { box-shadow: inset 0 0 0 1.25px #b89609; color: #dcb91c; }
.at-steg-del.is-klar .at-steg-ring .ikon { width: 12.5px; height: 12.5px; --at-streck: 2; }
.at-steg-del.is-nu .at-steg-ring { background: var(--at-gul); color: #171717; box-shadow: 0 0 0 4.5px rgba(245, 201, 0, 0.16), 0 0 16px 2px rgba(245, 201, 0, 0.28); }
.at-steg-del.is-nu .at-steg-ring .ikon { width: 12.5px; height: 12.5px; }
.at-steg-del.is-nu .at-steg-text, .at-steg-del.is-nej .at-steg-text { font-weight: 500; color: #fafafa; }
.at-steg-del.is-nej .at-steg-ring { background: #d9d9d6; color: #171717; }
.at-steg-del.is-nej .at-steg-ring .ikon:has(use[href="#i-klocka-fet"]) { width: 12.5px; height: 12.5px; }
.at-steg-del.is-kvar .at-steg-ring { width: 23.7px; height: 23.7px; margin: 0 0.75px; border: 1px dashed #4a4a4a; }
.at-steg-del.is-kvar .at-steg-text { color: #737471; }
.at-steg-linje { flex: 1 1 0; min-width: 16px; height: 1.5px; margin: 0 14px; background: repeating-linear-gradient(90deg, #3d3d3d 0 4px, transparent 4px 8.5px); }
.at-steg-linje.is-klar { background: #e3b906; }
/* Beskrivningen, med en gul linje till vänster. */
.at-forhand-del { margin-top: 26px; }
.at-forhand-del.is-text { position: relative; padding: 0.2px 0 2px 22.2px; }
.at-forhand-del.is-text::before { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--at-gul); box-shadow: 0 0 9px rgba(245, 201, 0, 0.35); }
.at-forhand-text { max-width: 668px; margin-top: 6.8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.6px; line-height: 24px; color: #f1f1f1; }

/* ---------- Bilder och filer ---------- */

.at-bilder { position: relative; display: flex; flex-wrap: wrap; gap: 10px; }
.at-fil { position: relative; flex: none; width: 96px; height: 96px; }
.at-fil.is-lamnar { position: absolute; pointer-events: none; }
.at-fil-oppna {
  position: relative; display: grid; place-items: center; align-content: center; gap: 8px; width: 100%; height: 100%; box-sizing: border-box; margin: 0; padding: 8px; border: 0; border-radius: 11px;
  background: linear-gradient(160deg, #3a332b, #2b2824 60%, #26241f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); color: #a9a9a6; overflow: hidden; cursor: pointer;
  transition: box-shadow 160ms ease, filter 160ms ease;
}
.at-fil:nth-child(3n + 2) .at-fil-oppna { background: linear-gradient(160deg, #3a3f46, #2c3037 60%, #262a30); }
.at-fil.is-pdf .at-fil-oppna, .at-fil.is-dokument .at-fil-oppna { background: #1f1f1f; }
.at-fil-oppna:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); filter: brightness(1.06); }
.at-fil-oppna:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.at-fil-ikon { display: grid; place-items: center; }
.at-fil-ikon .ikon { width: 19px; height: 19px; }
.at-fil-namn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; line-height: 14px; color: #b9b9b6; }
.at-fil-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms ease; }
.at-fil-oppna.har-bild .at-fil-bild { opacity: 1; }
.at-fil-bort {
  position: absolute; z-index: 1; top: 5px; right: 5px; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 7px;
  background: rgba(18, 18, 18, 0.82); color: #f2f2f2; cursor: pointer; opacity: 0; transform: scale(0.9); transition: opacity 160ms ease, transform 180ms var(--at-mjuk), background 160ms ease;
}
.at-fil:hover .at-fil-bort, .at-fil:focus-within .at-fil-bort { opacity: 1; transform: scale(1); }
.at-fil-bort:hover { background: #000000; }
.at-fil-bort:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 1px; }
.at-fil-bort .ikon { width: 8px; height: 8px; --at-streck: 2.2; }
@media (hover: none) { .at-fil-bort { opacity: 1; transform: none; } }
.at-slapp {
  flex: none; display: grid; place-items: center; align-content: center; gap: 11.5px; width: 96px; height: 96px; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 11px;
  background: none; color: #c9c9c7; font-size: 12px; line-height: 16px; cursor: pointer; transition: background 160ms ease, color 160ms ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Crect x='0.75' y='0.75' width='98.5%25' height='98.5%25' rx='10.5' fill='none' stroke='%23444444' stroke-dasharray='3.2 3.2'/%3E%3C/svg%3E");
}
.at-slapp:hover { background-color: rgba(255, 255, 255, 0.035); color: #ffffff; }
.at-slapp:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.at-slapp .ikon { width: 13px; height: 13px; --at-streck: 1.5; }
/* I den valda ÄTA:n till höger om listan: mindre rutor. */
.at-bilder.is-liten { gap: 8px; }
.at-bilder.is-liten .at-fil { width: 64px; height: 64px; }
.at-bilder.is-liten .at-fil-oppna { border-radius: 9px; }
.at-bilder.is-liten .at-fil-namn { display: none; }

/* ---------- Ny ÄTA och en öppnad ÄTA: den mörka delen till vänster och den ljusa till höger ---------- */

.at-ny > .at-ram, .at-oppen > .at-ram { margin-top: 16.3px; }
html.har-arnerad .at-rader { scroll-padding-bottom: 96px; }
html.har-arnerad .at-kort { padding-bottom: 96px; }
html.har-arnerad .at-vald { padding-bottom: 96px; }
html.har-arnerad .at-forhand-inne { padding-bottom: 96px; scroll-padding-bottom: 96px; }
html.har-arnerad .at-ny > .at-ram, html.har-arnerad .at-oppen > .at-ram { margin-bottom: 94px; }
.at-ram.is-tvadelad { grid-template-columns: minmax(0, 924.1fr) minmax(0, 444.3fr); background: var(--at-ram); }
.at-mork { min-width: 0; min-height: 0; box-sizing: border-box; margin: 3px 0 3px 3px; padding: 21.6px 27.4px 19.5px 27.9px; border-radius: 12px; background: var(--at-mork); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.at-mork::-webkit-scrollbar, .at-ljus::-webkit-scrollbar { display: none; }
.at-ljus { min-width: 0; min-height: 0; box-sizing: border-box; padding: 23.1px 28.2px 24px 28.8px; color: var(--at-l-text); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.at-kol.is-underlag { display: flex; flex-direction: column; min-height: 100%; }
.at-oppen .at-kol.is-underlag { min-height: 0; }
.at-delhuvud { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; }
.at-kol-rubrik { font-family: 'Aldrich', var(--font); font-size: 17px; line-height: 22px; font-weight: 400; -webkit-text-stroke: 0.3px currentColor; white-space: nowrap; }
.at-delhuvud-not { position: relative; top: 1.5px; font-size: 13px; line-height: 16px; color: var(--at-text-2); white-space: nowrap; }
.at-ljus .at-delhuvud-not { color: var(--at-l-text-2); }

/* Fälten. I den mörka delen är de mörka med en tunn kant, i den ljusa ljusgrå. */
.at-falt { display: block; margin-top: 20.8px; }
.at-delhuvud + .at-falt { margin-top: 21.4px; }
.at-etikettrad { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.at-etikett { font-size: 13px; line-height: 16px; color: var(--at-text-2); white-space: nowrap; }
.at-etikett-not { overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; line-height: 16px; color: var(--at-text-3); white-space: nowrap; }
.at-ljus .at-etikett { color: #5f5f5d; }
.at-ljus .at-etikett-not { color: var(--at-l-text-3); }
.at-in {
  display: block; width: 100%; height: 48px; box-sizing: border-box; margin: 9.3px 0 0; padding: 0 17px; border: 0; border-radius: 11px; outline: 0;
  background: var(--at-mork-falt); box-shadow: inset 0 0 0 1px var(--at-mork-kant); color: #f4f4f4; font-size: 15.5px; line-height: 22px; -webkit-appearance: none; appearance: none;
  transition: box-shadow 160ms ease, background 160ms ease;
}
.at-in::placeholder { color: #5f5f5d; opacity: 1; }
.at-in:hover { box-shadow: inset 0 0 0 1px #323232; }
.at-in:focus { box-shadow: inset 0 0 0 1px #5a5a58; }
textarea.at-in { height: 222.2px; min-height: 96px; padding: 14.5px 17px; line-height: 23.3px; resize: none; }
.at-falt.is-hog { flex: 1 1 auto; display: flex; flex-direction: column; }
.at-falt.is-hog > textarea.at-in { flex: 1 1 auto; height: auto; min-height: 120px; margin-top: 8.9px; }
.at-falt.is-bilagor { margin-top: 19.5px; }
.at-falt.is-bilagor .at-bilder { margin-top: 10px; }
.at-fel.is-falt { margin-top: 7px; }
.at-fel.is-utskick { margin-bottom: 16px; }
/* Fältet med sin enhet till höger ("kr/h"), i den ljusa delen: talet i rubrikernas snitt. */
.at-enhetsfalt { position: relative; display: flex; align-items: center; height: 40px; box-sizing: border-box; margin-top: 8.5px; border-radius: 10px; background: var(--at-ljus-falt); box-shadow: var(--at-kant-ute) #e4e5e2; transition: box-shadow 160ms ease, background 160ms ease; }
.at-enhetsfalt:hover { box-shadow: var(--at-kant-ute) #d2d3d0; }
.at-enhetsfalt:focus-within { background: #ffffff; box-shadow: var(--at-kant-ute) #9c9c9a; }
.at-enhetsfalt.is-last, .at-enhetsfalt.is-last:hover { box-shadow: var(--at-kant-ute) #e4e5e2; }
.at-enhetsfalt .at-in { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 0 0 17px; border-radius: 0; background: none; box-shadow: none; color: #151515; font-family: 'Aldrich', var(--font); font-size: 16px; line-height: 40px; -webkit-text-stroke: 0.3px currentColor; font-variant-numeric: tabular-nums; }
.at-enhetsfalt span.at-in { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-enhetsfalt .at-in::placeholder { color: #b1b1ae; -webkit-text-stroke: 0; }
.at-enhet { flex: none; padding: 0 15px 0 10px; font-size: 13px; line-height: 16px; color: #8a8a88; }
.at-ljus .at-falt { margin-top: 15.8px; }
.at-ljus .at-prisfalt + .at-falt { margin-top: 19.5px; }
/* I den mörka rutan (ÄTA-timpriset) är fältet mörkt. */
.at-timprisruta .at-enhetsfalt { background: #121212; box-shadow: inset 0 0 0 1px #303030; }
.at-timprisruta .at-enhetsfalt:focus-within { background: #121212; box-shadow: inset 0 0 0 1px #6a6a68; }
.at-timprisruta .at-enhetsfalt .at-in { color: #f4f4f4; }
.at-timprisruta .at-enhetsfalt .at-in::placeholder { color: #5f5f5d; }

/* Växeln Löpande | Fast pris: den mörka plattan glider till det valda. */
.at-vaxel { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 40px; box-sizing: border-box; margin: 16.2px 0 0 -1.5px; padding: 3px 3px 3px 3.7px; border-radius: 10px; background: var(--at-ljus); }
.at-vaxel-platta { position: absolute; top: 3px; bottom: 3px; left: 3.7px; width: calc(50% - 3.35px); border-radius: 8px; background: #171717; box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.28); transition: transform 320ms var(--at-glid); }
.at-vaxel[data-valt="1"] .at-vaxel-platta { transform: translateX(100%); }
.at-vaxel-knapp { position: relative; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: #3a3a38; font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; transition: color 240ms ease; }
.at-vaxel-knapp.is-vald { color: #fafafa; cursor: default; }
.at-vaxel-knapp:focus-visible { outline: 2px solid rgba(23, 23, 23, 0.55); outline-offset: 1px; }
/* Luften runt om (som dras av igen med marginalen) är till för fältens kant, som ligger utanför fältet. */
.at-prisfalt { overflow: hidden; margin: 0 -4px -3px; padding: 0 4px 3px; }
.at-prisfalt > .at-falt:first-child { margin-top: 22.7px; }

/* Jobbet som ÄTA:n läggs på: numret i en mörk bricka, namnet och "Ändra". */
.at-projektval { display: flex; align-items: center; gap: 9.6px; width: 100%; height: 42.2px; box-sizing: border-box; margin: 8.5px 0 0; padding: 0 16.4px 0 11px; border: 0; border-radius: 10px; background: var(--at-ljus-falt); box-shadow: var(--at-kant-ute) #e4e5e2; color: #151515; font-size: 14px; line-height: 20px; text-align: left; transition: box-shadow 160ms ease, background 160ms ease; }
button.at-projektval { cursor: pointer; }
button.at-projektval:hover { background: #eeefec; box-shadow: var(--at-kant-ute) #d2d3d0; }
button.at-projektval:focus-visible { outline: 2px solid rgba(23, 23, 23, 0.55); outline-offset: 2px; }
.at-projektnr { flex: none; height: 24.4px; box-sizing: border-box; padding: 0 5.05px; border-radius: 6px; background: #171717; color: #fafafa; font-family: 'Aldrich', var(--font); font-size: 12.5px; line-height: 25.4px; -webkit-text-stroke: 0.25px currentColor; }
.at-projektnamn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.at-projektval-andra { flex: none; display: inline-flex; align-items: center; gap: 4.4px; font-size: 13.5px; font-weight: 400; color: #4c4c4a; }
.at-projektval-andra .ikon { width: 16.2px; height: 16.2px; margin: 0 -4.05px; --at-streck: 1.9; }
.at-mork .at-projektval { background: var(--at-mork-falt); box-shadow: inset 0 0 0 1px var(--at-mork-kant); color: #f4f4f4; }

/* Summan: "Uppskattat pris 5 100 kr". */
.at-summa { margin-top: 20px; }
.at-summa-etikett { font-size: 13px; line-height: 16px; color: #5f5f5d; }
.at-summa-tal { margin-top: 1.5px; font-family: 'Aldrich', var(--font); font-size: 34px; line-height: 40px; color: #111111; -webkit-text-stroke: 0.45px currentColor; font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-summa-rakning { margin-top: 2.8px; font-size: 12.66px; line-height: 16px; color: #7f7f7d; }
.at-summa-not { margin-top: 2.4px; font-size: 12.36px; line-height: 16px; color: var(--at-l-text-3); }
.at-prisrad[hidden] { display: none; }
/* En rad som fälls ihop mjukt: höjden går till noll och raden tonar bort. */
.at-vik { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 300ms var(--at-glid), opacity 220ms ease; }
.at-vik-inne { min-height: 0; overflow: hidden; }
.at-vik.is-tom { grid-template-rows: 0fr; opacity: 0; }
.at-prisrad.is-moms { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 12px; box-shadow: inset 0 1px 0 #e9e9e6; font-size: 13.5px; line-height: 18px; color: #4a4a48; }
.at-prisrad-tal { font-family: 'Aldrich', var(--font); color: #151515; -webkit-text-stroke: 0.25px currentColor; }
.at-vaxel.is-last .at-vaxel-knapp { display: grid; place-items: center; cursor: default; }
.at-vaxel.is-last + .at-falt { margin-top: 22.7px; }
.at-ljus .at-knapp.is-papper { margin-top: 16px; color: #2a2a28; font-size: 13.5px; }
.at-ljus .at-not { color: var(--at-l-text-2); }
.at-hjalp { color: var(--at-l-text-3); }

/* En öppnad ÄTA: läget i sidans huvud, och det som bara går att läsa. */
.at-status { display: flex; align-items: center; gap: 12px; min-width: 0; margin-left: 16px; font-size: 13px; line-height: 18px; color: var(--at-text-2); white-space: nowrap; }
.at-status .at-lage.is-hos { background: #2c2c2c; }
.at-status-av { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.at-status > .at-lage, .at-status-version { flex: none; }
.at-status-version { color: var(--at-text-3); }
.at-varde { margin-top: 20px; }
.at-varde-text { margin-top: 8px; overflow-wrap: anywhere; font-size: 15.5px; line-height: 23.3px; color: #f4f4f4; }
.at-varde.is-text .at-varde-text { white-space: pre-wrap; }
.at-upplysning { margin-bottom: 16px; padding: 10px 14px; border-radius: 10px; background: #1f1c10; box-shadow: inset 0 0 0 1px #3a3312; font-size: 13.5px; line-height: 19px; color: #f1e3a6; }
.at-skal { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: var(--at-mork-falt); box-shadow: inset 0 0 0 1px var(--at-mork-kant); }
.at-skal-text { font-size: 15px; line-height: 22px; color: #f4f4f4; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Tid på ÄTA och fakturering: en rad var, som går att trycka på för den som har sidan. */
.at-koppling { display: flex; align-items: center; gap: 14px; width: 100%; height: 46px; box-sizing: border-box; margin: 24px 0 0; padding: 0 16px 0 17px; border: 0; border-radius: 11px; background: var(--at-mork-falt); box-shadow: inset 0 0 0 1px var(--at-mork-kant); color: #f4f4f4; font-size: 14px; line-height: 20px; text-align: left; transition: background 160ms ease, box-shadow 160ms ease; }
.at-koppling + .at-koppling { margin-top: 8px; }
button.at-koppling { cursor: pointer; }
button.at-koppling:hover { background: #202020; box-shadow: inset 0 0 0 1px #363636; }
button.at-koppling:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.at-koppling-rubrik { font-weight: 500; }
.at-koppling-text { color: var(--at-text-2); }
.at-koppling-not { margin-left: auto; color: var(--at-gul); font-size: 13px; }
.at-koppling > .ikon { width: 10px; height: 10px; margin-left: auto; color: #8a8a88; }
.at-koppling-not + .ikon { margin-left: 0; }
/* Tidigare versioner och historiken. */
.at-del { margin-top: 28px; }
.at-del-rubrik { font-family: 'Aldrich', var(--font); font-size: 15px; line-height: 20px; font-weight: 400; -webkit-text-stroke: 0.25px currentColor; }
.at-logg { margin-top: 10px; }
.at-logg li { display: grid; grid-template-columns: 96px 52px minmax(90px, 180px) minmax(0, 1fr) auto; gap: 0 14px; align-items: baseline; padding: 9px 0; box-shadow: inset 0 1px 0 #222222; font-size: 13.5px; line-height: 19px; color: #e6e6e4; }
.at-logg.is-versioner li { grid-template-columns: 96px 110px minmax(0, 1fr) auto; }
.at-logg-dag, .at-logg-tid, .at-logg-vem { color: var(--at-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.at-logg-vad { overflow-wrap: anywhere; }
.at-logg-tal { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Rutan som frågar (bild 3) ---------- */

.at-fraga-yta {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.at-fraga-yta.is-ny { animation: at-yta-in 280ms ease both; }
.at-fraga-yta.is-stanger { animation: at-yta-ut 200ms ease both; pointer-events: none; }
@keyframes at-yta-in { from { opacity: 0; } }
@keyframes at-yta-ut { to { opacity: 0; } }
.at-fraga {
  position: relative; display: flex; width: 780.4px; max-width: 100%; min-height: 432.4px; max-height: calc(100vh - 32px); box-sizing: border-box; border-radius: 18px;
  background: var(--at-ram); color: var(--at-text); overflow: hidden; outline: none;
}
.at-fraga-yta.is-ny .at-fraga { animation: at-fraga-in 460ms var(--at-mjuk) both; }
.at-fraga-yta.is-stanger .at-fraga { animation: at-fraga-ut 200ms cubic-bezier(0.4, 0, 1, 1) both; }
@keyframes at-fraga-in { from { opacity: 0; transform: translateY(10px) scale(0.975); } }
@keyframes at-fraga-ut { to { opacity: 0; transform: translateY(6px) scale(0.985); } }
/* Den ljusa delen: ÄTA:n och priset. */
.at-fraga-ljus { flex: none; display: flex; flex-direction: column; width: 301.3px; box-sizing: border-box; padding: 26px 21px 26.7px 25.9px; color: var(--at-l-text); }
.at-fraga-nr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 16px; color: #8b8b89; }
.at-fraga-namn { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 18.27px; line-height: 24px; letter-spacing: -0.25px; color: #151515; }
.at-fraga-linje { flex: none; display: block; height: 1px; margin-top: 13px; background: #ececea; }
.at-fraga-etikett { margin-top: 14px; font-size: 13px; line-height: 16px; color: #6b6b69; }
.at-fraga-tal { margin-top: 0.5px; font-family: 'Aldrich', var(--font); font-size: 30px; line-height: 36px; color: #151515; -webkit-text-stroke: 0.4px currentColor; white-space: nowrap; font-variant-numeric: tabular-nums; }
.at-fraga-under { margin-top: 2px; font-size: 12.84px; line-height: 18px; color: #8b8b89; }
.at-fraga-rader { margin-top: 15px; }
.at-fraga-rad { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.at-fraga-rad + .at-fraga-rad { margin-top: 15.5px; }
.at-fraga-rad dt { font-size: 13.5px; line-height: 18px; color: #3d3d3b; }
.at-fraga-rad dd { position: relative; top: -1.4px; font-family: 'Aldrich', var(--font); font-size: 15.03px; line-height: 18px; color: #151515; -webkit-text-stroke: 0.3px currentColor; white-space: nowrap; }
.at-fraga-rad.is-tunn dt { color: #8b8b89; }
.at-fraga-rad.is-tunn dd { top: -0.5px; font-family: inherit; font-size: 13.5px; color: #8b8b89; -webkit-text-stroke: 0; }
.at-fraga-bilagor { display: flex; align-items: center; gap: 8.5px; margin-top: auto; padding-top: 16px; font-size: 12.85px; line-height: 18px; color: #7a7a78; white-space: nowrap; }
.at-fraga-bilagor .ikon { width: 16px; height: 16px; margin: 0 -1.2px; --at-streck: 1.9; }
/* Den mörka delen: frågan. */
.at-fraga-mork { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; margin: 3.7px 3.7px 3.7px 0; border-radius: 14px; background: var(--at-mork); }
.at-fraga-kryss { position: absolute; top: 15.5px; right: 17.7px; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: none; color: #a2a2a0; cursor: pointer; transition: background 160ms ease, color 160ms ease; }
.at-fraga-kryss:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.at-fraga-kryss:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 1px; }
.at-fraga-kryss .ikon { width: 10.5px; height: 10.5px; --at-streck: 1.6; }
.at-fraga-rubrik { padding: 30.8px 60px 0 28.5px; font-family: 'Aldrich', var(--font); font-size: 22px; line-height: 28px; font-weight: 400; color: #f7f7f7; -webkit-text-stroke: 0.3px currentColor; }
.at-fraga-inne { flex: 1; min-height: 0; padding: 24.4px 26.1px 20px 28.5px; overflow-y: auto; scrollbar-width: none; }
.at-fraga-inne::-webkit-scrollbar { display: none; }
.at-fraga-inne .at-etikett { font-size: 12.8px; }
.at-fraga-inne > .at-etikett { display: block; }
.at-fraga-till { display: flex; align-items: center; gap: 12.6px; margin-top: 9px; }
.at-fraga-till .at-avatar { width: 36.3px; height: 36.3px; margin: 0; background: #232323; box-shadow: inset 0 0 0 1px #2e2e2e; font-size: 11.5px; }
.at-fraga-vem { display: flex; flex-direction: column; min-width: 0; }
.at-fraga-vemnamn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15.5px; line-height: 22px; color: #f7f7f7; }
.at-fraga-vem .at-fraga-under { margin-top: 0; color: var(--at-text-2); }
.at-fraga-inne .at-falt { margin-top: 18px; }
.at-fraga-inne .at-in { height: 46.5px; margin-top: 9px; padding: 0 17px; }
.at-fraga-text { margin-top: 18.2px; font-size: 14px; line-height: 21px; color: #cfcfcd; }
.at-fraga-text.har-ikon { display: flex; align-items: flex-start; gap: 11px; }
.at-fraga-text.har-ikon .ikon { flex: none; width: 14px; height: 14px; margin-top: 4.2px; color: #a8a8a6; }
.at-fraga-inne > .at-fraga-text:first-child { margin-top: 0; }
.at-fraga-inne .at-fel { margin-top: 12px; }
.at-fraga-knappar { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 11.1px; padding: 11.8px 20.7px 13.6px; box-shadow: inset 0 1px 0 #252525; }
.at-fraga-knappar .at-knapp { padding: 0 15px; }

/* ---------- Beskedet efter det man har gjort ---------- */

.at-besked {
  position: absolute; z-index: 20; left: 50%; bottom: 112px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 48px)); box-sizing: border-box; padding: 10px 10px 10px 16px;
  border-radius: 12px; background: #f2f2f2; color: #171717; font-size: 13.5px; line-height: 19px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
}
.at-besked.is-ny { animation: at-besked-in 320ms var(--at-mjuk) both; }
@keyframes at-besked-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.at-besked.is-fel { background: #2a1516; color: #ffd9da; box-shadow: inset 0 0 0 1px #5a2427, 0 14px 34px -10px rgba(0, 0, 0, 0.6); }
.at-besked-stang { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: none; color: inherit; opacity: 0.6; cursor: pointer; transition: opacity 160ms ease, background 160ms ease; }
.at-besked-stang:hover { opacity: 1; background: rgba(127, 127, 127, 0.18); }
.at-besked-stang .ikon { width: 9px; height: 9px; --at-streck: 2; }
html:not(.har-arnerad) .at-besked { bottom: 30px; }

/* ---------- Smalare fönster ---------- */

/* Under 1180 punkter: lite mindre luft, och talen i tre kolumner när sex inte ryms. */
@media (max-width: 1180px) {
  .at-talrad { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; row-gap: 14px; margin-top: 22px; }
  .at-tal, .at-tal:first-child { padding-left: 20px; }
  .at-tal:nth-child(3n + 1) { box-shadow: none; padding-left: 4px; }
  .at-ram { margin-top: 22px; }
  .at-kropp { grid-template-columns: minmax(0, 480fr) minmax(0, 520fr); }
  .at-ram.is-tvadelad { grid-template-columns: minmax(0, 600fr) minmax(0, 400fr); }
  .at-forhand-inne { padding-left: 25px; padding-right: 22px; }
  .at-forhand-pris { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 20px; }
  .at-uppgift:first-child { padding-left: 0; }
  .at-forhand-varde { font-size: 36px; line-height: 38px; }
  .at-steg { padding: 0 16px; }
  .at-steg-linje { margin: 0 9px; }
  .at-steg-under { display: none; }
  .at-rad-tal { min-width: 0; padding-left: 4px; padding-right: 14px; }
  .at-rad:not(.at-inkommen) { grid-template-columns: 45.9px minmax(0, 1fr) auto auto; }
  .at-rad-lage .at-lage { padding: 0 10px; }
  .at-mork { padding-left: 22px; padding-right: 22px; }
  .at-ljus { padding-left: 22px; padding-right: 22px; }
  .at-fot .at-sparat { display: none; }
  .at-status-av { display: none; }
  .at-huvud-hoger { flex: 0 1 auto; }
}
/* Under 900 punkter (en platta på högkant): delarna står under varandra, och sidan rullar som helhet. */
@media (max-width: 900px) {
  .at-vy { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .at-vy::-webkit-scrollbar { display: none; }
  html.har-arnerad .at-vy { padding-bottom: 110px; scroll-padding-bottom: 110px; }
  .at-huvud { flex-wrap: wrap; row-gap: 10px; }
  .at-ram, .at-ram.is-tvadelad, .at-kropp { flex: none; display: block; }
  html.har-arnerad .at-ny > .at-ram, html.har-arnerad .at-oppen > .at-ram { margin-bottom: 0; }
  .at-rader { flex: none; overflow: visible; }
  .at-kort, html.har-arnerad .at-kort { padding-bottom: 6px; }
  .at-vald, html.har-arnerad .at-vald { padding-bottom: 6px; clip-path: inset(var(--at-vald-y) 11.9px calc(100% - var(--at-vald-y) - var(--at-vald-h)) 0 round 10px); }
  .at-vald-skarv { display: none; }
  .at-forhand { margin: 0 3px 3px 3px; border-radius: 12px; }
  .at-forhand-inne, html.har-arnerad .at-forhand-inne { position: static; overflow: visible; padding-bottom: 28px; }
  .at-forhand-inne.is-lamnar { display: none; }
  .at-mork { margin: 3px; overflow: visible; }
  .at-ljus { overflow: visible; }
  .at-falt.is-hog > textarea.at-in { flex: none; height: 160px; }
  .at-timprisruta { right: auto; left: -8px; transform-origin: 15% 0; }
  .at-fraga { flex-direction: column; min-height: 0; overflow-y: auto; }
  .at-fraga-ljus { width: auto; padding-bottom: 18px; }
  .at-fraga-mork { margin: 0 3.7px 3.7px; }
}

/* Rutan till höger som visar ett papper eller en bilaga är samma ruta som på sidan Filer (Ui.filruta). Sidan Filer
   ger knapparna i rutans huvud sin egen grå (filer.css, .fl .fl-knapp): här får de samma, så att rutan är exakt lika. */
:root:not([data-theme="light"]) #ataPanel .fl-knapp { color: #6c6c6a; }
:root:not([data-theme="light"]) #ataPanel .fl-knapp:hover { color: #f2f2f2; }
