/* Pályázati segédlet — Sajó Autó Group arculat (az élő sajoauto.hu site.css :root-tokenjei, sajo-arculat skill) */
@font-face{font-family:"Mona Sans";src:url("/fonts/mona-sans-latin-ext.woff2") format("woff2");font-weight:200 900;font-stretch:75% 125%;font-display:swap;
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Mona Sans";src:url("/fonts/mona-sans-latin.woff2") format("woff2");font-weight:200 900;font-stretch:75% 125%;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Mona Fallback";src:local("Arial"),local("Helvetica Neue"),local("Roboto");size-adjust:104%;ascent-override:104.8%;descent-override:30.8%;line-gap-override:0%}

:root {
  --ink: #0a0b0d; --ink-3: #23262c; --mute: #5c5f66;
  --paper: #f4f3f0; --paper-2: #eae8e3; --white: #fff; --line: rgba(10,11,13,.12);
  --brand-1: #0a7cff; --brand-2: #00c2ff; --brand-ink: #0057c2;
  --ok: #0b7d57; --err: #c22541; --figy: #8a5300;
  /* a fontosság három lépcsője: egy árnyalat, sötéttől a világosig; a dataviz-ellenőrzőn mért skála (csak adatjelre) */
  --lepcso-1: #004aa8; --lepcso-2: #2a82e4; --lepcso-3: #74b9f6;
  --font: "Mona Sans","Mona Fallback",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Helvetica,Arial,sans-serif;
  --max: 1180px; --res: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: var(--brand-ink); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.7rem; font-weight: 650; font-stretch: 110%; line-height: 1.2; }
h2 { font-size: 1.15rem; font-weight: 650; margin: 0 0 12px; }
.halk { color: var(--mute); }
.kicsi { font-size: .875rem; }
.szam { white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

/* ---------- fejléc ---------- */
.fejlec { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.fejlec-belso { max-width: var(--max); margin: 0 auto; padding: 0 var(--res); display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.marka { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 650; padding: 12px 0; }
.marka img { width: 132px; height: auto; display: block; }
.marka span { border-left: 1px solid var(--line); padding-left: 12px; white-space: nowrap; }
.menu { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.menu a { padding: 18px 12px 15px; text-decoration: none; color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap; }
.menu a[aria-current="page"] { color: var(--brand-ink); border-bottom-color: var(--brand-ink); font-weight: 650; }
.fiok { display: flex; align-items: center; gap: 12px; font-size: .875rem; }

/* ---------- gombok, mezők ---------- */
button, .gomb { font: inherit; cursor: pointer; border-radius: 10px; border: 1px solid #b9b6ae; background: var(--white); color: var(--ink); padding: 8px 14px; }
button:hover { border-color: var(--ink-3); }
button:disabled { opacity: .55; cursor: default; }
.fo-gomb { border: 0; color: #fff; font-weight: 650; padding: 10px 18px; background: linear-gradient(135deg, var(--brand-ink), var(--brand-1)); }
.szoveg-gomb { border: 0; background: none; color: var(--brand-ink); padding: 4px 2px; text-decoration: underline; }
.veszely { color: var(--err); }
input, select, textarea { font: inherit; width: 100%; padding: 9px 11px; border: 1px solid #b9b6ae; border-radius: 9px; background: var(--white); color: var(--ink); }
input[type="checkbox"] { width: 18px; height: 18px; padding: 0; }
textarea { min-height: 76px; resize: vertical; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 4px; }
.sugo { font-weight: 400; color: var(--mute); font-size: .8125rem; margin-top: 3px; }
.mezo { margin-bottom: 14px; }
.mezo-sor { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 14px; }
.pipa { display: flex; align-items: center; gap: 10px; font-weight: 400; }

/* ---------- oldalváz ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 28px var(--res) 72px; }
.oldal-fej { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.resz { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.ket-hasab { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; align-items: start; }
.ket-hasab > .resz { margin-bottom: 0; }
.resz > p { margin-bottom: 8px; }
.resz > p:last-child { margin-bottom: 0; }
.resz-fej { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.resz-fej h2 { margin: 0; }
.sor-lista, .naplo { list-style: none; margin: 0; padding: 0; }
.sor-lista li { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); }
.naplo li { padding: 9px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.sor-lista li:first-child, .naplo li:first-child { border-top: 0; padding-top: 0; }
.rejtett { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.keskeny { max-width: 460px; margin: 24px auto; }
.keskeny h1 { margin-bottom: 8px; }
.keskeny > p { margin-bottom: 16px; }
.ures { color: var(--mute); padding: 18px 0; }
.sav { background: var(--ink); color: #fff; padding: 10px var(--res); display: flex; gap: 14px; align-items: center; justify-content: center; }
.sav button { padding: 5px 12px; }

/* ---------- összesítő: a sáv-vonalzó ---------- */
.szint-valto { display: inline-flex; border: 1px solid #b9b6ae; border-radius: 10px; overflow: hidden; background: var(--white); }
.szint-valto button { border: 0; border-radius: 0; background: none; padding: 8px 14px; }
.szint-valto button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fo-szam { font-size: clamp(2.1rem, 6vw, 3.4rem); font-weight: 700; font-stretch: 118%; line-height: 1.05; letter-spacing: -.01em; }
.fo-allapot { margin-top: 6px; font-size: 1.05rem; }
.fo-allapot .allapot { font-size: 1rem; margin-right: 4px; }
.figyelj { font-size: .9375rem; margin-bottom: 10px; }
.figyelj .allapot { margin-right: 6px; vertical-align: -2px; }
.osszegzes { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.oszlop { display: grid; gap: 18px; }
.oszlop > .resz { margin-bottom: 0; }
.vonalzo { position: relative; margin: 46px 0 44px; height: 34px; }
.vonalzo-palya { position: absolute; inset: 0; background: var(--paper-2); border-radius: 6px; }
.vonalzo-cel { position: absolute; top: -9px; bottom: -9px; border: 1.5px dashed var(--ink-3); border-top: 0; border-bottom: 0;
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(10,11,13,.08) 7px 9px); }
.vonalzo-cimke { position: absolute; top: calc(100% + 13px); font-size: .8125rem; white-space: nowrap; transform: translateX(-50%); color: var(--ink-3); }
.vonalzo-szelet { position: absolute; top: 6px; bottom: 6px; box-shadow: inset 2px 0 0 var(--paper-2); }
.vonalzo-szelet.elso { box-shadow: none; border-radius: 4px 0 0 4px; }
.vonalzo-szelet.utolso { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.l1 { background: var(--lepcso-1); } .l2 { background: var(--lepcso-2); } .l3 { background: var(--lepcso-3); }
.vonalzo-jelolo { position: absolute; top: -14px; bottom: -14px; width: 2px; margin-left: -1px; background: var(--ink); }
.vonalzo-jelolo span { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.vonalzo-jelolo.bal span { left: 0; transform: none; }
.vonalzo-jelolo.jobb span { left: auto; right: 0; transform: none; }
.jelmagyarazat { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .875rem; margin-bottom: 10px; }
.jelmagyarazat i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.jelmagyarazat i.cel { border: 1.5px dashed var(--ink-3); border-top: 0; border-bottom: 0; border-radius: 0;
  background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(10,11,13,.18) 3px 4.5px); }
.cs-elfogadva { background: var(--ok); } .cs-feltoltve { background: var(--brand-ink); } .cs-potlas { background: var(--figy); }
.jelmagyarazat i.cs-hianyzik { background: var(--paper-2); box-shadow: inset 0 0 0 1px #b9b6ae; }
.adatok { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 28px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.adatok dt { color: var(--mute); font-size: .875rem; }
.adatok dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 650; }
.adatok dd small { display: block; font-size: .8125rem; font-weight: 400; color: var(--mute); }

/* ---------- állapot-jelek: ikon és szó együtt, soha nem csak szín ---------- */
.allapot { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 650; white-space: nowrap; }
.allapot::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--ikon) center / contain no-repeat; mask: var(--ikon) center / contain no-repeat; }
.allapot.jo { color: var(--ok); --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.3-4.2 4.6a.8.8 0 0 1-1.2 0L4.3 8.8l1.2-1.1 1.4 1.5 3.6-4 1.2 1.1z'/%3E%3C/svg%3E"); }
.allapot.rossz { color: var(--err); --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.2 10-1.2 1.2-2-2-2 2L4.8 10l2-2-2-2L6 4.8l2 2 2-2L11.2 6l-2 2 2 2z'/%3E%3C/svg%3E"); }
.allapot.figy { color: var(--figy); --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 .8.3 14.4h15.4L8 .8zm.8 11.4H7.2v-1.6h1.6v1.6zm0-2.8H7.2V5.6h1.6v3.8z'/%3E%3C/svg%3E"); }
.allapot.nincs { color: var(--mute); --ikon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm4 8.8H4V7.2h8v1.6z'/%3E%3C/svg%3E"); }

.szabaly { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.szabaly:first-of-type { border-top: 0; padding-top: 0; }
.szabaly .mert { grid-column: 1 / -1; color: var(--mute); font-size: .875rem; }
.csik { display: flex; height: 16px; gap: 2px; margin: 10px 0 12px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.csik span { display: block; }

/* ---------- táblák ---------- */
.tabla-keret { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .8125rem; font-weight: 600; color: var(--mute); padding: 6px 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
td.jobb, th.jobb { text-align: right; }
td select, td input { padding: 6px 8px; }
td button { white-space: nowrap; }
td { overflow-wrap: anywhere; }
.lapos { table-layout: fixed; }
.tetel-nev { font-weight: 650; }
.jelek { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.muveletek { display: flex; gap: 2px 12px; flex-wrap: wrap; justify-content: flex-end; }
tr.osszeg > td { font-weight: 650; background: var(--paper); }
.fajl-lista { list-style: none; margin: 0 0 6px; padding: 0; }
.fajl-lista li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.valasztott { box-shadow: inset 3px 0 0 var(--brand-ink); }

@media (max-width: 900px) {
  .fejlec { position: static; }
  .fejlec-belso { gap: 0 12px; }
  .marka { gap: 10px; padding: 10px 0; font-size: .9375rem; }
  .marka img { width: 92px; }
  .marka span { padding-left: 10px; }
  .fiok { margin-left: auto; gap: 8px; }
  #fiok-nev { display: none; }
  .fiok button { padding: 6px 10px; }
  .menu { order: 3; flex-basis: 100%; }
  .menu a { flex: 1; text-align: center; padding: 9px 2px 7px; font-size: .875rem; }
  .szint-valto { display: flex; width: 100%; }
  .szint-valto button { flex: 1; padding: 8px 6px; font-size: .875rem; }
  .lapos colgroup, .lapos thead { display: none; }
  .lapos, .lapos tbody, .lapos tr, .lapos td { display: block; width: 100%; }
  .lapos tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lapos tr:last-child { border-bottom: 0; }
  .lapos td { border: 0; padding: 3px 0; text-align: left !important; }
  .lapos td[data-cimke]::before { content: attr(data-cimke) ": "; color: var(--mute); font-size: .8125rem; }
  .lapos td select, .lapos td input[type="date"] { width: auto; min-width: 190px; max-width: 100%; }
  .lapos tr.osszeg { padding: 10px; background: var(--paper); border-radius: 8px; }
  .lapos .muveletek { justify-content: flex-start; margin-top: 4px; }
  .resz { padding: 16px; }
}

/* ---------- ablak, jelzés ---------- */
dialog { background: var(--white); border: 0; border-radius: 16px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: var(--ink); }
dialog::backdrop { background: rgba(10,11,13,.5); }
.ablak-fej { padding: 18px 22px 0; }
.ablak-torzs { padding: 14px 22px 4px; }
.ablak-torzs > p { margin-bottom: 10px; }
.ablak-torzs > .sugo { margin: -8px 0 14px; }
.ablak-lab { padding: 12px 22px 18px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--white); border-top: 1px solid var(--line); }
.hiba { color: var(--err); font-weight: 600; margin: 0 0 12px; }
#jelzes { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; display: flex; gap: 14px; align-items: center; max-width: calc(100vw - 24px); z-index: 20; }
#jelzes button { padding: 4px 10px; }
.jelszo-kod { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.3rem; background: var(--paper); padding: 10px 14px; border-radius: 10px; display: inline-block; user-select: all; }

/* ---------- belépőlap ---------- */
.belepes { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.belepes main { width: 100%; max-width: 380px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; margin: 0; }
.belepes .logo { display: block; width: 190px; height: auto; margin: 0 auto 14px; }
.belepes h1 { font-size: 1.3rem; text-align: center; margin-bottom: 20px; }
.belepes button { width: 100%; margin-top: 6px; padding: 13px; }

@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: be .16s ease-out; }
  @keyframes be { from { opacity: 0; transform: translateY(8px); } }
}
