/* Havi kimutatás bemutató: havi kép (napi grafikon, csatornák, levél), termékek, vásárlók, havi levél, adatforrások */
.racs { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; }
.tartalom { grid-template-columns: minmax(0, 1fr); }
.bal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }

/* hónapválasztó a fejlécben */
.honap-lapozo { align-items: center; }
.honap-lapozo > button { width: 30px; padding: 0; justify-content: center; }
.honap-lapozo > button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.honap-lapozo > button:disabled { opacity: .35; cursor: default; }
.honap-lapozo > button:not(:disabled):hover { background: rgba(255,255,255,.7); color: var(--ink); }
.honap-valaszto { position: relative; display: inline-flex; align-items: center; height: 30px; border-radius: 8px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(14,17,22,.12); }
.honap-valaszto svg { position: absolute; left: 9px; width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.honap-valaszto select { height: 30px; padding: 0 10px 0 30px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; }
.honap-valaszto select:focus-visible { outline: 2px solid var(--kek); outline-offset: 1px; }

/* napi grafikon */
.grafikon-doboz { position: relative; }
.grafikon svg { display: block; width: 100%; height: 190px; overflow: visible; }
.grafikon .oszlop { fill: #BFD5FB; cursor: pointer; transition: fill .12s; }
.grafikon .oszlop.hetvege { fill: var(--kek); }
.grafikon .oszlop:hover, .grafikon .oszlop:focus { fill: var(--kek-h); outline: none; }
.grafikon .oszlop:not(.hetvege):hover, .grafikon .oszlop:not(.hetvege):focus { fill: #8DB4F5; }
.grafikon .atlag { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 4; pointer-events: none; }
.grafikon .racsvonal { stroke: var(--line); }
.grafikon text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--font); pointer-events: none; }
.grafikon .jel { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.grafikon .jel span { display: inline-flex; align-items: center; gap: 6px; }
.grafikon .jel i { width: 10px; height: 10px; border-radius: 3px; background: var(--kek); }
.grafikon .jel i.vilagos { background: #BFD5FB; }
.grafikon .jel i.vonal { height: 0; border-top: 1.5px dashed var(--ink-3); border-radius: 0; background: none; width: 14px; }
.tipp { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 8px)); display: grid; gap: 1px; padding: 7px 10px; border-radius: 9px; background: #0F1520; color: #FFFFFF; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -8px rgba(14,17,22,.5); }
.tipp b { font-size: 12px; } .tipp span { color: #C9D1DD; }
.tipp[hidden] { display: none; }

/* csatornák */
.csatornak .sav { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.csatornak .sav i { min-width: 2px; }
.csatornak ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.csatornak li { display: grid; gap: 1px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.csatornak li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csatornak li b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.csatornak li span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--c, var(--kek)); }

/* a havi levél kártyája */
.level { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.level-fej { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.level-fej .cimke { margin-bottom: 8px; }
.level-fej small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-fej b { display: block; margin-top: 3px; font-size: 14.5px; line-height: 1.35; }
.level-test { padding: 14px 18px 16px; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); }
.level-test p { margin: 0; }
.belatasok { display: grid; gap: 12px; }
.belatas { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; }
.belatas i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-style: normal; }
.belatas i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.belatas b { display: block; color: var(--ink); font-size: 13px; }
.belatas span { display: block; font-size: 12.5px; line-height: 1.4; }
.belatas.zold i { background: var(--zold-h); color: var(--zold); } .belatas.kek i { background: var(--kek-hatter); color: var(--kek); } .belatas.sarga i { background: var(--sarga-h); color: var(--sarga); } .belatas.lila i { background: var(--lila-h); color: var(--lila); } .belatas.piros i { background: var(--piros-h); color: var(--piros); }
.forrasok { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line); }
.forrasok a.cimke { text-decoration: none; }
.forrasok a.cimke:hover { box-shadow: inset 0 0 0 1px var(--line-hi); }

/* sávok, értesítők */
.forras-sav { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: var(--r); background: var(--lila-h); color: #4A3A9A; font-size: 13px; border: 1px solid rgba(110,86,207,.2); }
.forras-sav svg, .ertesito svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.forras-sav span { flex: 1; min-width: 0; }
.forras-sav .szoveg-gomb { color: #4A3A9A; white-space: nowrap; }
.ertesito span { flex: 1; min-width: 0; font-weight: 500; }
.ertesito.sarga { background: var(--sarga-h); color: #8A5A12; border-color: rgba(183,121,31,.25); }
.ertesito .gomb { flex: none; }
.ikon-kor { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--kek-hatter); color: var(--kek); flex: none; }
.ikon-kor svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rejtett { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ablakok */
.mini-mutatok { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-mutatok div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mini-mutatok span { display: block; color: var(--ink-3); font-size: 12px; }
.mini-mutatok b { font-size: 17px; font-variant-numeric: tabular-nums; }
.ablak-test .diagram svg { margin-top: 4px; }
.ablak-test .tabla td { padding: 7px 10px; }

/* termékek */
.tabla th button { display: inline-flex; align-items: center; gap: 4px; }
.tabla th.jobb button { justify-content: flex-end; }
.tabla th .nyil { font-size: 9px; opacity: .55; }
.tabla th[aria-sort="ascending"] .nyil, .tabla th[aria-sort="descending"] .nyil { opacity: 1; color: var(--kek); }
.tabla tbody tr.kattinthato:focus-visible { outline: 2px solid var(--kek); outline-offset: -2px; }
.trend { display: inline-flex; align-items: center; gap: 8px; }
.trend em { font-style: normal; font-weight: 700; font-size: 12.5px; min-width: 40px; }
.szpark { width: 64px; height: 20px; }
.szpark polyline { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* vásárlók */
.szegmensek { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.szegmens { display: grid; justify-items: start; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--felulet); color: var(--ink); text-align: left; font: inherit; transition: border-color .15s, box-shadow .15s; }
.szegmens span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.szegmens span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.szegmens.zold span { color: #17784A; } .szegmens.kek span { color: var(--kek-h); } .szegmens.sarga span { color: #8A5A12; }
.szegmens b { font-size: 22px; font-variant-numeric: tabular-nums; }
.szegmens small { color: var(--ink-3); font-size: 12px; }
.szegmens:hover { border-color: var(--line-hi); }
.szegmens.aktiv { border-color: var(--kek); box-shadow: 0 0 0 1px var(--kek); }
.eszkoz-sor { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.eszkoz-sor .kereso-mezo { flex: 1; min-width: 220px; }
.eszkoz-sor .pipa-sor { align-items: center; white-space: nowrap; }
.eszkoz-sor .pipa-sor input { margin: 0; }
.pipa-oszlop { width: 34px; }
.pipa-oszlop input { width: 17px; height: 17px; margin: 0; accent-color: var(--kek); vertical-align: middle; }
.vevo-lista .gomb-sor:empty { display: none; }
.sms-elonezet { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: #F2F4F7; }
.sms-elonezet small { color: var(--ink-3); font-size: 12px; }
.buborek-sms { justify-self: start; max-width: 92%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #FFFFFF; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 2px rgba(14,17,22,.08); }
.lista .ikon-kor { background: var(--lila-h); color: var(--lila); }

/* havi levél */
.level-racs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.level-beall { display: grid; gap: 18px; }
.cimzettek { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.cimzettek li { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.cimzettek li span { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cimzettek li span svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; }
.cimzettek li.ures { border-style: dashed; padding: 9px 10px; color: var(--piros); }
.cimzettek .gomb.ikonos { border-color: transparent; color: var(--ink-3); }
.cimzettek .gomb.ikonos:hover { color: var(--piros); border-color: var(--line-hi); }
.uj-cimzett { display: flex; gap: 8px; align-items: flex-end; }
.uj-cimzett .mezo { flex: 1; min-width: 0; }
.level-elonezet { padding: 0; overflow: hidden; }
.level-meta { padding: 14px 18px; border-bottom: 1px solid var(--line); background: #FAFBFC; }
.level-meta .adatsor { grid-template-columns: 70px minmax(0, 1fr); gap: 4px 12px; font-size: 13px; }
.level-meta .adatsor dd { overflow-wrap: anywhere; }
.level-doboz { padding: 18px; background: #F2F4F7; }
.level-doboz h3 { font-family: var(--font); }

/* adatforrások */
.forras-racs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.forras { display: flex; flex-direction: column; gap: 10px; }
.forras .kicsi-szoveg { margin: 0; }
.forras-fej { display: flex; align-items: center; gap: 10px; }
.forras-fej > span:nth-child(2) { flex: 1; min-width: 0; }
.forras-fej b { display: block; font-size: 14.5px; }
.forras-fej small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adatsor.kicsi { grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; font-size: 12.5px; }
.halado { height: 8px; border-radius: 999px; background: #EEF1F5; overflow: hidden; }
.halado i { display: block; height: 100%; border-radius: inherit; background: var(--kek); transition: width .1s linear; }
.halado[hidden] { display: none; }
.forras small[data-lepes]:empty { display: none; }
.forras > .gomb { align-self: flex-start; margin-top: auto; }
.csv-minta { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #0F1520; color: #D6DEEA; font: 12.5px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-x: auto; }
.fajl-gomb { position: relative; cursor: pointer; }
.fajl-gomb input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fajl-gomb:focus-within { outline: 2px solid var(--kek); outline-offset: 2px; }
.csv-eredmeny { display: grid; gap: 12px; align-content: start; padding: 14px; border-radius: 12px; background: #FAFBFC; border: 1px solid var(--line); min-height: 100%; }
.csv-eredmeny .ures-allapot { display: grid; justify-items: center; gap: 8px; padding: 22px 10px; }
.csv-eredmeny .ures-allapot svg { width: 26px; height: 26px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; }
.csv-eredmeny .ures-allapot p { margin: 0; max-width: 340px; }
.csv-eredmeny .gomb-sor { margin-top: 0; }
.csv-fej { display: flex; align-items: center; gap: 10px; min-width: 0; }
.csv-fej b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hibak { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.hibak code { display: inline-block; max-width: 100%; padding: 0 5px; border-radius: 5px; background: #EEF0F3; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.naplo time { white-space: nowrap; }

@media (max-width: 1100px) { .level-racs { grid-template-columns: minmax(0, 1fr); } .forras-racs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .racs { grid-template-columns: minmax(0, 1fr); }
  .szegmensek { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .szegmens { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; padding: 10px 14px; }
  .szegmens small { grid-column: 1 / -1; }
  .mini-mutatok { grid-template-columns: minmax(0, 1fr); }
  .mini-mutatok div { display: flex; justify-content: space-between; align-items: baseline; }
  .csatornak ul { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ertesito { flex-wrap: wrap; }
  .eszkoz-sor .kereso-mezo { min-width: 100%; }
  .level-doboz { padding: 8px; }
  .tipp { white-space: normal; width: max-content; max-width: 200px; }
  .termek-tabla td:first-child { min-width: 190px; }
  .vevo-lista .tabla td:nth-child(2) { min-width: 180px; }
}
