/* ÄTA i mobilen (docs/mobile/ZIMLA_MOBIL_HANDOVER.md 6.10, prototypen .atasum/.atasheet). Bara under 1024 px – kundlägets
   ÄTA-kort på datorn rörs inte; templates/kunder/_m_ata.html och zimla-ata-mobile.js. Mått och färger ur prototypen. */
.zma { display: none; }
@media (max-width: 1023px) {
  .kl-ata:has(> .zma) > :not(.zma) { display: none !important; }
  .kl-card#kl-ata:has(.zma) { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  .zma, .zma-sheet { --zma-deep: #12382b; --zma-green: #1f6b4f; --zma-ink: #1d2420; --zma-mut: #5d6b61; --zma-soft: #6b746d; --zma-line: #e3e6e1; --zma-line2: #eef0ec;
    --zma-serif: Newsreader, Georgia, serif; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: var(--zma-ink); }
  .zma { display: flex; flex-direction: column; gap: 10px; }
  .zma-k { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px 0; }
  .zma-k span { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--zma-mut); }
  .zma-k button { min-height: 32px; border: 0; background: none; padding: 0; color: var(--zma-green); font-size: 13px; font-weight: 500; }
  .zma-sum { display: grid; gap: 5px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid #ebe8e1; font-size: 13px; color: #4d5951; font-variant-numeric: tabular-nums; }
  .zma-sum div { display: flex; justify-content: space-between; gap: 10px; }
  .zma-sum b { font-weight: 600; color: var(--zma-ink); white-space: nowrap; }
  .zma-sum .is-wait b { color: #1e4a6e; }
  .zma-sum .is-rest { color: var(--zma-soft); }
  .zma-sum .is-rest b { font-weight: 500; color: var(--zma-soft); }
  .zma-sum .is-tot { margin-top: 3px; padding-top: 8px; border-top: 1px solid var(--zma-line); align-items: baseline; }
  .zma-sum .is-tot span { color: var(--zma-ink); font-weight: 600; }
  .zma-sum .is-tot b { font: 500 22px/1.1 var(--zma-serif); color: var(--zma-deep); }
  .zma-sum small { font-size: 11.5px; line-height: 1.4; color: var(--zma-soft); }
  .zma-card { padding: 2px 14px; border-radius: 16px; background: #fff; border: 1px solid #ebe8e1; }
  .zma-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 6px 0; border: 0; border-top: 1px solid var(--zma-line2); background: none; font: inherit; color: inherit; text-align: left; }
  .zma-item:first-child { border-top: 0; }
  .zma-n { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff1d6; color: #6e4a00; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
  .zma-t { flex: 1; min-width: 0; }
  .zma-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zma-t small { display: block; font-size: 12px; color: var(--zma-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zma-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .zma-kr { font: 400 16px/1.1 var(--zma-serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .zma-pill { display: inline-flex; align-items: center; align-self: flex-start; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; font-style: normal; white-space: nowrap; }
  .zma-r .zma-pill { align-self: auto; }
  .zma-pill.is-draft { background: #fff1d6; color: #6e4a00; }
  .zma-pill.is-wait { background: #e2eef8; color: #1e4a6e; }
  .zma-pill.is-ok { background: #dff2e6; color: #0f5a33; }
  .zma-pill.is-no { background: #eef0ec; color: var(--zma-soft); }
  .zma-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin: 4px 0 10px; border: 1px dashed #c3d4c8; border-radius: 12px; background: #f8faf7; color: var(--zma-green); font-size: 14px; font-weight: 600; }
  .zma-add .material-symbols-outlined { font-size: 18px; }
  .zma-fine { margin: 6px 0; font-size: 12px; line-height: 1.45; color: var(--zma-soft); }
  .zma-card > .zma-fine { margin: 12px 0; }

  /* Bladet */
  .zma-b { display: flex; flex-direction: column; gap: 10px; }
  .zma-b > * { flex-shrink: 0; }
  .zma-sheet .zm-sheet__body > .zma-b + .zma-b { margin-top: 10px; }
  .zma-l { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--zma-mut); }
  .zma-text { border: 1.5px solid #dfe3de; border-radius: 16px; background: #fff; overflow: hidden; }
  .zma-text:focus-within { border-color: var(--zma-green); box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.12); }
  .zma-text textarea { display: block; width: 100%; box-sizing: border-box; min-height: 96px; padding: 12px 14px 6px; border: 0; outline: 0; resize: none; background: transparent; font: 400 16px/1.45 Inter, ui-sans-serif, system-ui, sans-serif; color: var(--zma-ink); }
  .zma-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 8px 8px; }
  .zma-cam { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px 0 11px; border: 0; border-radius: 999px; background: #f1f3ef; color: var(--zma-deep); font-size: 13.5px; font-weight: 600; }
  .zma-cam .material-symbols-outlined { font-size: 18px; }
  .zma-cam:disabled { opacity: 0.5; }
  .zma-ph { position: relative; flex: none; width: 44px; height: 38px; border-radius: 9px; overflow: hidden; background: repeating-linear-gradient(135deg, #e3ebe5 0 6px, #edf2ee 6px 12px); color: #5d6b61; display: inline-flex; align-items: center; justify-content: center; }
  .zma-ph img { width: 100%; height: 100%; object-fit: cover; }
  .zma-ph.is-up img { opacity: 0.5; }
  .zma-chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .zma-chips button { min-height: 36px; padding: 0 12px; border: 1px solid #dfe3de; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: #2f4237; }
  .zma-chips button[aria-pressed="true"] { background: var(--zma-deep); border-color: var(--zma-deep); color: #fff; }
  .zma-make .material-symbols-outlined { font-size: 17px; margin-right: 6px; color: #9be8bd; vertical-align: -3px; }
  .zma-think { align-items: center; justify-content: center; min-height: 180px; text-align: center; }
  .zma-think p { margin: 6px 0 0; max-width: 270px; font-size: 14px; line-height: 1.5; color: #4d5951; }
  .zma-spin { width: 22px; height: 22px; border: 3px solid #cfe5d8; border-top-color: var(--zma-green); border-radius: 50%; animation: zma-spin 0.8s linear infinite; }
  @keyframes zma-spin { to { transform: rotate(360deg); } }
  .zma-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; font-size: 13px; line-height: 1.45; color: #6e4a00; }
  .zma-err { margin: 0; font-size: 13px; color: #b3261e; }
  .zma-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: rgba(18, 56, 43, 0.08); }
  .zma-seg button { height: 36px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 600; color: var(--zma-mut); }
  .zma-seg button[aria-checked="true"] { background: #fff; color: var(--zma-deep); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
  .zma-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--zma-mut); }
  .zma-f input { height: 44px; padding: 0 12px; border: 1px solid #dfe3de; border-radius: 12px; font-size: 16px; color: var(--zma-ink); background: #fff; }
  .zma-f input:focus, .zma-q input:focus, .zma-search input:focus { outline: 0; border-color: var(--zma-green); box-shadow: 0 0 0 3px rgba(31, 107, 79, 0.12); }
  .zma-rows { border: 1px solid #ebe8e1; border-radius: 14px; overflow: hidden; }
  .zma-rows > .zma-fine { margin: 12px; }
  .zma-row { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 6px 10px 6px 6px; border-top: 1px solid #f0eee9; background: #fff; }
  .zma-row:first-child { border-top: 0; }
  .zma-tick { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; display: inline-flex; align-items: center; justify-content: center; }
  .zma-tick .material-symbols-outlined { width: 20px; height: 20px; border-radius: 50%; background: #e4f3e9; color: #07803e; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
  .zma-row.is-off .zma-tick .material-symbols-outlined { background: none; color: transparent; box-shadow: inset 0 0 0 1.5px #c9cec8; }
  .zma-rt { flex: 1; min-width: 0; }
  .zma-rt b { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.35; }
  .zma-rt small { display: block; font-size: 12px; color: var(--zma-soft); }
  .zma-q { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--zma-soft); }
  .zma-q input { width: 58px; height: 36px; padding: 0 8px; border: 1px solid #dfe3de; border-radius: 10px; font-size: 16px; text-align: right; color: var(--zma-ink); background: #fff; }
  .zma-row em { flex: none; min-width: 72px; font-style: normal; font-size: 13px; color: #2f4237; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
  .zma-row.is-off b, .zma-row.is-off em { color: #9aa29c; text-decoration: line-through; }
  .zma-row.is-off .zma-q { opacity: 0.45; }
  .zma-add2 { display: flex; gap: 8px; }
  .zma-add2 button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 1px dashed #c3d4c8; border-radius: 12px; background: #f8faf7; color: var(--zma-green); font-size: 13.5px; font-weight: 600; }
  .zma-add2 .material-symbols-outlined { font-size: 17px; }
  .zma-sugg { display: grid; gap: 6px; }
  .zma-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid #dfe3de; border-radius: 12px; background: #fff; color: var(--zma-mut); }
  .zma-search input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--zma-ink); box-shadow: none !important; }
  .zma-hit { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px; border: 1px solid #ebe8e1; border-radius: 12px; background: #fff; text-align: left; font: inherit; color: inherit; }
  .zma-hit b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; }
  .zma-hit small { flex: none; max-width: 40%; font-size: 12px; color: var(--zma-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .zma-hit .material-symbols-outlined { flex: none; font-size: 18px; color: var(--zma-green); }
  .zma-tot { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #f6f8f4; font-size: 13px; color: #4d5951; font-variant-numeric: tabular-nums; }
  .zma-tot div { display: flex; justify-content: space-between; gap: 10px; }
  .zma-tot .is-tot { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--zma-line); align-items: baseline; }
  .zma-tot .is-tot span { color: var(--zma-ink); font-weight: 600; }
  .zma-tot .is-tot b { font: 500 24px/1.1 var(--zma-serif); color: var(--zma-deep); }
  .zma-via { display: grid; gap: 8px; }
  .zma-via button { position: relative; display: block; width: 100%; padding: 11px 14px 11px 42px; border: 1.5px solid #dfe3de; border-radius: 14px; background: #fff; text-align: left; font: inherit; color: inherit; }
  .zma-via button::before { content: ""; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9c2bb; }
  .zma-via button[aria-checked="true"] { border-color: var(--zma-green); background: #f6faf7; }
  .zma-via button[aria-checked="true"]::before { box-shadow: inset 0 0 0 5px var(--zma-green); }
  .zma-via button:disabled { opacity: 0.55; }
  .zma-via b { display: block; font-size: 14.5px; font-weight: 600; }
  .zma-via small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--zma-soft); }
  .zma-doc { display: grid; gap: 5px; padding: 12px 14px; border-radius: 14px; background: #f6f8f4; font-size: 13px; color: #4d5951; font-variant-numeric: tabular-nums; }
  .zma-doc > b { font-size: 15.5px; font-weight: 600; color: var(--zma-ink); }
  .zma-doc p { margin: 0 0 4px; line-height: 1.45; }
  .zma-doc div { display: flex; justify-content: space-between; gap: 10px; }
  .zma-doc div > span:last-child { flex: none; white-space: nowrap; }
  .zma-doc div small { color: var(--zma-soft); }
  .zma-doc div b { color: var(--zma-deep); white-space: nowrap; }
  .zma-doc .is-tot { padding-top: 6px; border-top: 1px solid var(--zma-line); color: var(--zma-ink); font-weight: 600; }
  .zma-doc .zma-fine { margin: 4px 0 0; }
  .zma-preview .zm-sheet__body { padding: 0; }
  .zma-frame { display: block; width: 100%; height: 100%; min-height: 70dvh; border: 0; background: #fff; }
  @media (prefers-reduced-motion: reduce) { .zma-spin { animation-duration: 2.4s; } }
}
