/* Státuszfelmérés: a kitöltő varázsló (urlap.php) és az admin megtekintő közös stílusa. Mobil először: nyugodt, nagy érintési felületek. */
.modal.wide { width: min(1100px, 100%); } /* a görgetés a háttéren (.modal-back) van, így az ablak lekerekítése és a csúszka nem ütközik */

/* státuszszínek */
.sfdot { display: inline-block; padding: .08rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eceef2; color: #15171c; }
.sfdot.zold { background: #d9f2e3; color: #0c4a2c; }
.sfdot.sarga { background: #fff1c2; color: #6b4a00; }
.sfdot.piros { background: #fddcd8; color: #7a1610; }
.sfdot.szurke { background: #e1e4e9; color: #3d424b; }

/* olvasható összefoglaló */
.sfsec { margin: 1.4rem 0; }
.sfsec h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.sfsec h4 { margin: 1rem 0 .3rem; font-size: .92rem; color: var(--muted); font-weight: 600; }
.sfdl { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: .25rem .9rem; margin: 0; }
.sfdl dt { color: var(--muted); font-size: .88rem; }
.sfdl dd { margin: 0; overflow-wrap: anywhere; }
.sfpre { white-space: pre-wrap; margin: 0; }
table.sfsum th, table.sfsum td { vertical-align: top; font-size: .88rem; }
table.sfsum th[scope], table.sfsum tbody th { text-align: left; font-weight: 600; }

/* kitöltő oldal */
body.sf { background: var(--bg); }
.sfwrap { max-width: 860px; margin: 0 auto; padding: 14px 16px 90px; }
.sfhead { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.sfhead h1 { margin: 0; font-size: 1.25rem; }
.sfsaved { font-size: .85rem; color: var(--muted); }
.sfsaved.err { color: var(--out); }
.sfcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; margin-bottom: 14px; }
.sfcard h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.sfintro { color: var(--muted); margin: 0 0 .8rem; font-size: 1.02rem; }
.sfhello { max-width: 520px; margin: 8vh auto 0; text-align: center; }
.sfhello h1 { font-size: 1.5rem; }
.sfhello p { font-size: 1.05rem; }
.sfcode { font-size: 2rem; letter-spacing: .5rem; text-align: center; max-width: 14rem; margin: .6rem auto; display: block; }

/* haladásjelző */
.sfprog { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0 10px; }
.sfbar { height: 8px; background: #dfe2e8; border-radius: 999px; overflow: hidden; }
.sfbar > span { display: block; height: 100%; background: var(--accent, #5b3df5); border-radius: 999px; transition: width .25s; }
.sfsteps { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.sfstep { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 11px; font-size: .82rem; cursor: pointer; white-space: nowrap; color: var(--text); }
.sfstep.done { background: #e7f5ee; border-color: #a9dbc1; }
.sfstep.cur { background: var(--accent, #5b3df5); border-color: var(--accent, #5b3df5); color: #fff; font-weight: 600; }
.sfnow { font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* mezők */
.sfgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sfgrid > .sff.wide { grid-column: 1 / -1; }
.sff { margin-bottom: 14px; }
.sff > label, .sff > .lab { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.sff .hint { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.sff .msg { font-size: .82rem; margin-top: 3px; color: var(--out); }
.sff .msg.ok { color: #0c6b3d; }
.sff input, .sff select, .sff textarea { font-size: 1rem; padding: 10px 11px; min-height: 44px; }
.sff textarea { min-height: 110px; resize: vertical; }
.sfunit { display: flex; align-items: center; gap: 8px; }
.sfunit > span { color: var(--muted); font-size: .95rem; }
.sf-invalid input, .sf-invalid select { border-color: var(--out); }
.sfchips { display: flex; flex-wrap: wrap; gap: 8px; }
.sfchip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .95rem; cursor: pointer; color: var(--text); min-height: 42px; }
.sfchip.zold.on { background: #d9f2e3; border-color: #2fa66a; font-weight: 700; }
.sfchip.sarga.on { background: #fff1c2; border-color: #e0ab00; font-weight: 700; }
.sfchip.piros.on { background: #fddcd8; border-color: #d4473a; font-weight: 700; }
.sfchip.szurke.on { background: #e1e4e9; border-color: #8a909b; font-weight: 700; }
.sfchip.plain.on { background: var(--accent-soft, #eeeaff); border-color: var(--accent, #5b3df5); font-weight: 700; }

/* táblázatok: soronként egy kártya */
.sfblock { margin: 6px 0 20px; }
.sfblock > h3 { font-size: 1.05rem; margin: 0 0 6px; }
.sfrow { background: #fafbfc; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 2px; margin-bottom: 10px; }
.sfrow > .sfrowhead { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 8px; font-weight: 700; }
.sfrow > .sfrowhead .btn { font-weight: 400; }
.sfguide { margin: 0 0 12px; border: 1px dashed #c9ced6; border-radius: 10px; padding: 8px 12px; background: #fcfcfd; }
.sfguide > summary { cursor: pointer; font-weight: 600; color: var(--accent, #5b3df5); }
.sfguide p { margin: .5rem 0 0; font-size: .92rem; }
.sfstatus-legend { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; font-size: .9rem; margin: .5rem 0; align-items: start; }

/* alsó gombsor */
.sfnav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(244, 245, 247, .96); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); z-index: 10; }
.sfnav > div { max-width: 860px; margin: 0 auto; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.sfnav .btn { font-size: 1rem; padding: 12px 20px; min-height: 46px; }
.sfprob { margin: 0 0 12px; padding-left: 1.2rem; }
.sfprob a { cursor: pointer; }

@media (max-width: 640px) {
  .sfgrid { grid-template-columns: 1fr; }
  .sfdl { grid-template-columns: 1fr; gap: 0; }
  .sfdl dt { margin-top: .5rem; }
  .sfcard { padding: 14px 14px 4px; border-radius: 12px; }
  .sfnav .btn { padding: 12px 14px; }
}

/* pályázatok listája (kitöltő) és admin-sorok */
.sfapp { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sfapp:last-of-type { border-bottom: 0; }
.sfadd { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.sfaddname { flex: 1 1 260px; font-size: 1rem; padding: 10px 11px; min-height: 44px; }
.sfappline { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: 3px 0; }

/* alcímek, csatolás, verzió-vagy-dátum, színes státuszblokkok */
.sfsub { font-size: 1.1rem; margin: 22px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.sfsec h4.sfsub { font-size: .95rem; border-top: 0; padding-top: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent, #5b3df5); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
.sfattach .sfattachhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sfattach .sffile { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 4px 0; }
.sfvd .sfchips { margin-bottom: 8px; }
.sfvd input { width: 100%; }
/* a státusz jelentése: a #sftip buborék (assets/sfform.js), a tartalomkereten kívül */
.sftip { position: fixed; z-index: 1000; padding: 8px 10px; border-radius: 8px; background: #15171c; color: #fff; font-size: .82rem; line-height: 1.35; font-weight: 400; text-align: left; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); pointer-events: none; }
.sftip[hidden] { display: none; }
/* a kiválasztott szín a mező egész blokkját elszínezi */
.sff[data-st="zold"], .sfrow:has(.sff[data-st="zold"]) { background: #e9f7ef; border-color: #2fa66a; }
.sff[data-st="sarga"], .sfrow:has(.sff[data-st="sarga"]) { background: #fff7d6; border-color: #e0ab00; }
.sff[data-st="piros"], .sfrow:has(.sff[data-st="piros"]) { background: #fdeceb; border-color: #d4473a; }
.sff[data-st="szurke"], .sfrow:has(.sff[data-st="szurke"]) { background: #eceef2; border-color: #8a909b; }
.sff[data-st] { border: 1px solid transparent; border-radius: 12px; padding: 8px 10px 10px; }
.sfrow:has(.sff[data-st]) { border-width: 2px; }
.sfrow .sff[data-st]:not([data-st=""]) { border-color: transparent; background: transparent; }

/* vonallal összekötött haladásjelző: fehér = üres, sárga = szerkesztve de hiányos, zöld = minden ki van töltve */
.sfstepper { display: flex; align-items: flex-start; overflow-x: auto; padding: 6px 4px 8px; scrollbar-width: thin; }
.sfnode { position: relative; flex: 0 0 auto; width: 92px; background: none; border: 0; padding: 0 2px; cursor: pointer; text-align: center; color: var(--text); font: inherit; }
.sfnode + .sfnode::before { content: ''; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: #d5d9e0; z-index: 0; }
.sfnode.done + .sfnode::before { background: #2fa66a; }
.sfcirc { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #d5d9e0; background: #fff; font-size: .8rem; font-weight: 700; }
.sfnode.part .sfcirc { background: #ffd84d; border-color: #e0ab00; }
.sfnode.done .sfcirc { background: #2fa66a; border-color: #2fa66a; color: #fff; }
.sfnode.info .sfcirc { background: #eef1f6; border-color: #c9ced6; color: #5b6472; }
.sfnode.cur .sfcirc { box-shadow: 0 0 0 4px rgba(91, 61, 245, .25); }
.sfnode.cur .sfnodel { font-weight: 700; }
.sfnodel { display: block; margin-top: 4px; font-size: .72rem; line-height: 1.2; max-height: 2.5em; overflow: hidden; }
.sflegend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sfk { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #d5d9e0; background: #fff; }
.sfk.part { background: #ffd84d; border-color: #e0ab00; }
.sfk.done { background: #2fa66a; border-color: #2fa66a; }
/* a mezők a dokumentum sorrendjében, egy oszlopban */
.sfblock > .sfgrid { grid-template-columns: 1fr; max-width: 680px; }
.sff .fdesc { font-size: .88rem; color: var(--muted); margin: -2px 0 6px; line-height: 1.35; }

/* ---- kompakt megjelenés: egysoros táblázatsorok, soronkénti (címke | mező) elrendezés, kisebb térközök */
.sfwrap { padding-top: 8px; }
.sfcard { padding: 12px 14px 4px; margin-bottom: 10px; }
.sfcard h2 { font-size: 1.15rem; margin-bottom: 2px; }
.sfintro { font-size: .93rem; margin-bottom: 6px; }
.sff { margin-bottom: 8px; }
.sff > label, .sff > .lab { font-size: .9rem; margin-bottom: 2px; }
.sff input, .sff select, .sff textarea { font-size: .95rem; padding: 6px 9px; min-height: 36px; }
.sff textarea { min-height: 72px; }
.sfchip { padding: 5px 12px; font-size: .88rem; min-height: 34px; }
.sfblock { margin: 4px 0 12px; }
.sfblock > h3 { font-size: 1rem; margin: 10px 0 4px; }
.sfsub { margin: 14px 0 6px; padding-top: 8px; font-size: 1.02rem; }
.sfguide { margin-bottom: 8px; padding: 6px 10px; }
.sfrow { padding: 8px 10px 2px; margin-bottom: 6px; border-radius: 10px; }
.sfrowhead { margin-bottom: 4px; }
/* soronkénti mező: címke balra, bevitel jobbra (mint a dokumentum kétoszlopos táblázata) */
.sfgrid.lined .sff:not(.sfarea) { display: grid; grid-template-columns: minmax(180px, 36%) minmax(0, 1fr); column-gap: 12px; align-items: center; margin-bottom: 6px; }
.sfgrid.lined .sff:not(.sfarea) > label { grid-column: 1; grid-row: 1; margin: 0; }
.sfgrid.lined .sff:not(.sfarea) > .fdesc { grid-column: 1; grid-row: 2; margin: 0; }
.sfgrid.lined .sff:not(.sfarea) > :is(input, select, textarea, .sfunit, .sfchips, .sfvd, .sfattach) { grid-column: 2; grid-row: 1 / span 2; }
.sfgrid.lined .sff:not(.sfarea) > :is(.msg, .hint) { grid-column: 2; margin: 2px 0 0; }
.sfblock > .sfgrid { max-width: 820px; }
/* egysoros táblázatsor: név + mezők egymás mellett, az oszlopcímek csak a fejlécben */
.sfrow.line { display: grid; align-items: center; column-gap: 8px; padding: 5px 8px; margin-bottom: 4px; }
.sfrow.line > .sff { margin: 0; min-width: 0; }
.sfrow.line > .sff > label { display: none; }
.sfrow.line .sfrname { font-weight: 600; font-size: .9rem; line-height: 1.25; }
.sfrow.line .sfchips { gap: 4px; flex-wrap: nowrap; }
.sfrow.line .sfchip { padding: 4px 9px; font-size: .82rem; min-height: 30px; }
.sfrow.line .sfattachhead { flex-wrap: nowrap; }
.sfrow.line .sffile { font-size: .85rem; }
.sfrowhdr { background: transparent; border: 0; padding-top: 0; padding-bottom: 0; font-size: .78rem; font-weight: 700; color: var(--muted); }
.sfrowhdr > span { padding: 0 2px; }
@media (max-width: 760px) {
  .sfrow.line, .sfrow.line.sfrowhdr { display: block !important; }
  .sfrowhdr { display: none !important; }
  .sfrow.line > .sff > label { display: block; }
  .sfrow.line .sfrname { margin-bottom: 4px; }
  .sfrow.line .sfchips { flex-wrap: wrap; }
  .sfgrid.lined .sff:not(.sfarea) { display: block; }
}

.sfvd { display: flex; gap: 6px; align-items: center; }
.sfvd .sfvdsel { flex: 0 0 150px; width: 150px; }
.sfvd input { flex: 1 1 auto; min-width: 0; width: auto; }
.sfrow.line .btn.small, .sfattachhead .btn { white-space: nowrap; }
.sfattachhead .btn.small { padding: 4px 9px; }
.sfrows { overflow-x: auto; }

/* a széles táblázatoknak szélesebb a lap (egy sorban elférjenek az oszlopok) */
.sfwrap { max-width: 1320px; }
.sfhello, .sfwrap > .sfhello { max-width: 520px; }

/* módosítási napló (csak az admin megtekintőjében) */
.sflog { margin: 10px 0; }
.sflogch { margin: 4px 0 0; padding-left: 1.1rem; font-size: .85rem; }
.sflogch del { background: #fdeceb; color: #7a1610; text-decoration: line-through; padding: 0 3px; border-radius: 3px; }
.sflogch ins { background: #e9f7ef; color: #0c4a2c; text-decoration: none; padding: 0 3px; border-radius: 3px; }
.sfrow.line input, .sfrow.line select { padding: 5px 7px; min-height: 34px; }
.sfrow.line { column-gap: 6px; }
.sfgrid.lined .sff:not(.sfarea) .sfchips { flex-wrap: nowrap; }
@media (max-width: 760px) { .sfgrid.lined .sff:not(.sfarea) .sfchips { flex-wrap: wrap; } }

/* „nem releváns / nincs információ” jelölés: mező-, sor- és táblázatszinten */
.sff.hasna { position: relative; }
.sfna { background: #fff; border: 1px solid #c9ced6; border-radius: 6px; width: 24px; height: 24px; line-height: 1; padding: 0; cursor: pointer; font-size: .85rem; color: #5b6472; }
.sfna:hover { background: #eef1f6; }
.sff.hasna > .sfna { position: absolute; top: 0; right: 0; }
.sfgrid.lined .sff.hasna:not(.sfarea) > .sfna { position: static; grid-column: 3; grid-row: 1; margin-left: 6px; }
.sfgrid.lined .sff.hasna:not(.sfarea) { grid-template-columns: minmax(180px, 36%) minmax(0, 1fr) 30px; }
.sfrow.line .sff.hasna > .sfna { top: 50%; transform: translateY(-50%); right: 3px; }
.sfrow.line .sff.hasna input, .sfrow.line .sff.hasna select { padding-right: 28px; }
.sfnatag { display: none; font-size: .82rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #e1e4e9; color: #3d424b; align-self: center; }
.sfnatag.on, .sff.is-na > .sfnatag { display: inline-block; }
.sff.is-na > :not(label):not(.fdesc):not(.sfna):not(.sfnatag):not(.msg) { display: none !important; }
.sfgrid.lined .sff.is-na:not(.sfarea) > .sfnatag { grid-column: 2; grid-row: 1; justify-self: start; }
.sff.is-na { background: #f4f5f7; border-radius: 10px; }
.sfrow.line .sff.is-na > .sfnatag { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); }
.sfrow.line .sff.is-na { min-height: 36px; }
.sfrow.is-na { background: #f4f5f7; }
.sfnatagrow { grid-column: 2 / -2; color: var(--muted); font-size: .9rem; }
.sfrowbtns { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.sfna.static { position: static; }
.sftblhead { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sftblhead h3 { margin: 10px 0 4px; }
.sfnatable { padding: 10px 12px; border: 1px dashed #c9ced6; border-radius: 10px; background: #f4f5f7; }
.sfnamenu { position: fixed; z-index: 1001; background: #fff; border: 1px solid #c9ced6; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 4px; display: flex; flex-direction: column; min-width: 210px; }
.sfnamenu[hidden] { display: none; }
.sfnaitem { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .9rem; color: var(--text); }
.sfnaitem:hover { background: #eef1f6; }
.sfnaitem.on { font-weight: 700; background: #eeeaff; }

/* felmérés-fülek: a kiválasztott felmérés jól látszik */
.sfsurveys { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .2rem 0 .6rem; }
.sfsv { border: 1px solid var(--line, #c9ced8); background: transparent; color: inherit; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; font: inherit; opacity: .75; }
.sfsv:hover { opacity: 1; }
.sfsv.on { background: #1f6feb; border-color: #1f6feb; color: #fff; font-weight: 700; opacity: 1; box-shadow: 0 0 0 3px rgba(31,111,235,.25); }
.sfsv.arch { font-style: italic; }

/* vízszintes igazítás: a ⊘ gomb, a mértékegység és a beviteli mező egy középvonalon */
.sfunit input, .sfunit select { margin: 0; }
.sfunit > span { line-height: 1; }
.sfgrid.lined .sff.hasna:not(.sfarea) > .sfna { grid-row: 1 / span 2; align-self: center; }
.sfgrid.lined .sff.is-na:not(.sfarea) > .sfnatag { grid-row: 1 / span 2; }
.sfrow.line .sff.hasna input:not([type="checkbox"]):not([type="radio"]), .sfrow.line .sff.hasna select { width: 100%; box-sizing: border-box; }
.sfrow.line .sfunit { min-width: 0; }
.sfrow.line .sfunit > input { flex: 1 1 0; min-width: 0; width: auto; }
.sfrow.line .sfunit > span { flex: none; }
.sfrow.line .sff.hasna .sfunit { padding-right: 30px; }
.sfrow.line .sff.hasna .sfunit > input { padding-right: 7px; }

/* Csatolás: az Igen/Nem jelölés és a „Fájl csatolása” gomb egy középvonalon */
.sfattachhead { align-items: center; }
.sfattachhead > * { margin: 0 !important; vertical-align: middle; }
.sfattachhead .btn, .sfattachhead label { display: inline-flex; align-items: center; line-height: 1.2; align-self: center; position: static; top: auto; transform: none; }
.sfattachhead label.btn { position: relative; }
.sfattachhead label.btn input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; min-height: 0; padding: 0; margin: 0; pointer-events: none; }
.sff .msg.warn { color: #8a5a00; }

/* „+ Sor hozzáadása”: mindig halványzöld háttér */
.btn.sfaddrow, .btn.sfaddrow:hover, .btn.sfaddrow:focus, .btn.sfaddrow:active { background: #e3f4e8; border-color: #9fd3b0; color: #14532d; }
.btn.sfaddrow:hover { background: #d3edda; }

/* Elemzés (superadmin) */
.ea-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: .8rem 0; }
.ea-tile { background: var(--card, #fff); border: 1px solid var(--line, #e3e6ea); border-radius: 12px; padding: .6rem .9rem; display: flex; flex-direction: column; gap: 2px; }
.ea-tile strong { font-size: 1.45rem; line-height: 1.2; }
.ea-pill { color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .85rem; white-space: nowrap; align-self: flex-start; }
.ea-dash { margin-top: 1.2rem; padding-top: .6rem; border-top: 2px solid var(--line, #e3e6ea); }
.ea-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ea-head h2 { margin: 0 0 2px; }
.ea-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: .9rem; margin-top: .6rem; }
.ea-card { background: var(--card, #fff); border: 1px solid var(--line, #e3e6ea); border-radius: 14px; padding: .8rem 1rem 1rem; min-width: 0; }
.ea-card.ea-wide { grid-column: 1 / -1; }
.ea-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.ea-svg { width: 100%; height: auto; display: block; }
.ea-svg.ea-sq { max-width: 340px; margin: 0 auto; }
.ea-stack { display: flex; height: 30px; border-radius: 8px; overflow: hidden; color: #fff; font-weight: 700; text-align: center; line-height: 30px; }
.ea-stack span { min-width: 22px; }
.ea-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .5rem; }
.ea-legend i, .ea-find i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.ea-find { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ea-find li { line-height: 1.35; font-size: .93rem; }
.ea-table tr.sel { background: #eef3ff; }
.ea-table tr.clickable { cursor: pointer; }

/* Napló: a megnyitások (és a beküldés) színes kiemelése, hogy a szem hamar megtalálja */
.sflog tr.sflog-open > td { background: #e8f1ff; }
.sflog tr.sflog-open > td:first-child { border-left: 4px solid #2453d4; }
.sflog tr.sflog-open strong { color: #1d44b5; }
.sflog tr.sflog-open strong::before { content: '👁 '; }
.sflog tr.sflog-submit > td { background: #e7f5ee; }
.sflog tr.sflog-submit > td:first-child { border-left: 4px solid #2fa66a; }

/* Személyek táblája: minden cella (név, állapot, pályázatok, gombok) függőlegesen középre igazítva */
table.sfpeople td, table.sfpeople th { vertical-align: middle; }
table.sfpeople .sfappline { min-height: 38px; padding: 2px 0; }
table.sfpeople td.nowrap { white-space: nowrap; }
table.sfpeople .btn.small { vertical-align: middle; }

/* Napló a személyek táblájában, a pályázat sora alatt */
.sfappwrap { border-bottom: 1px dashed var(--line, #e3e6ea); }
.sfappwrap:last-child { border-bottom: 0; }
.sflogbox { margin: 4px 0 10px; padding: 8px 10px; background: #f8f9fb; border-radius: 10px; max-height: 360px; overflow: auto; }
.sflogbox .sflog { margin: 0; }
.btn.small.on { background: #e8f1ff; border-color: #2453d4; }

/* Áttekintés: Státuszfelmérés – legutóbbi események */
.sfact .card-title { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .4rem; }
.sfact .card-title h3 { margin: 0; font-size: 1rem; }
.sfact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.sfact-row { display: flex; align-items: center; gap: .7rem; padding: .35rem 0; border-bottom: 1px dashed var(--line, #e3e6ea); }
.sfact-row:last-child { border-bottom: 0; }
.sfact-ic { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: .85rem; }
.sfact-row .grow { min-width: 0; }
.sfact-last { margin-top: .7rem; padding-top: .6rem; border-top: 1px solid var(--line, #e3e6ea); display: flex; flex-direction: column; gap: 2px; }
.ok-text { color: #0c6b3d; font-weight: 600; }
.err-text { color: #b42318; font-weight: 600; }
.modal-back { scrollbar-gutter: stable; }
.modal { overflow: visible; }

/* Felmérések: fülek + a kiválasztott felmérésre vonatkozó gombok egy keretben */
.sfgroup { border: 2px solid #2453d4; border-radius: 16px; background: var(--card, #fff); overflow: hidden; margin: .4rem 0 1rem; }
.sfgroup .sfsurveys { margin: 0; padding: .55rem .8rem; background: #eef3ff; border-bottom: 1px solid #c9d8fb; }
.sfgroup .sfsv.on { box-shadow: none; }
.sfgroup-body { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; padding: .7rem .9rem; }
.sfgroup-title { font-size: 1.05rem; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.sfgroup-title strong { color: #1d44b5; }
.sfgroup-body .head-actions { margin: 0; }

/* Kitöltési példák (lenyitható) */
.sfexample > summary { color: #7c3aed; font-weight: 700; }
.sfex-body { padding: .2rem .2rem .6rem; line-height: 1.45; font-size: .93rem; }
.sfex-body h4 { margin: .9rem 0 .25rem; font-size: .98rem; color: #1d2433; }
.sfex-body p { margin: .35rem 0; }
.sfex-body ul { margin: .3rem 0 .5rem 1.2rem; padding: 0; }
.sfex-tbl { overflow-x: auto; margin: .5rem 0 .8rem; border-radius: 10px; border: 1px solid var(--line, #e3e6ea); }
.sfex-tbl table { margin: 0; width: 100%; font-size: .88rem; }
.sfex-tbl th { background: #f4f5f7; text-align: left; }
.sfex-tbl td, .sfex-tbl th { padding: .4rem .6rem; vertical-align: top; }
.sfex-first { font-weight: 600; }

/* Áttekintés: Vizualizáció (projektváros) lenyitható */
.dash-viz > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: .1rem 0; }
.dash-viz[open] > summary { margin-bottom: .6rem; }
.dash-grid3 > .card { min-width: 0; }
.dash-grid3 + .kpis, .page-head + .dash-grid3 { margin-top: 18px; }
.kpis + .card, .kpis + details.dash-viz { margin-top: 1.4rem; }
.dash-viz > .card { box-shadow: none; border: 0; padding: 0; margin: 0; background: transparent; }

/* Saját fiók (superadmin): saját adatok külön színnel, ügyféllista, a kiválasztott ügyfél egy keretben */
.sec { border-radius: 24px; padding: 1.1rem 1.2rem 1.2rem; margin: 0 0 1.4rem; }
.sec .card { box-shadow: none; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .7rem; }
.sec-head h2, .sec-title h2 { margin: .1rem 0 0; font-size: 1.35rem; }
.sec-kicker { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.sec-own { background: #e9f5f0; border: 1px solid #bfe0d2; }
.sec-own .sec-kicker { background: #2f8f6b; color: #fff; }
.sec-clients { margin-top: .4rem; }
.sec-title { margin: 0 .3rem .6rem; }
.sec-clients .sec-kicker { background: #6a4bd8; color: #fff; }
.sec-client { background: #f1eefc; border: 2px solid #8a73ea; margin-top: 1rem; }
.sec-client .sec-kicker { background: #8a73ea; color: #fff; }
.sec-client .card { background: #fff; margin-bottom: .7rem; }
.client-list { border: 1px solid #d9d1f7; }
.client-row.sel > td { background: #f1eefc; }
.client-row.sel > td:first-child { box-shadow: inset 4px 0 0 #8a73ea; }

/* Saját adatok: kompakt csempék (a megnyitott csempe teljes szélességű) */
.sec-own { padding: .8rem .9rem .9rem; border-radius: 20px; }
.sec-own .sec-head { margin-bottom: .5rem; }
.sec-own .sec-head h2 { display: inline-block; margin-right: .6rem; font-size: 1.15rem; }
.sec-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .55rem; align-items: start; }
.sec-tiles > details.card { margin: 0; padding: .5rem .8rem; border-radius: 14px; }
.sec-tiles > details[open] { grid-column: 1 / -1; padding: .7rem .9rem .9rem; }
.sec-tiles > details > summary { display: flex; flex-direction: column; gap: 1px; cursor: pointer; line-height: 1.25; }
.sec-tiles > details[open] > summary { flex-direction: row; align-items: baseline; gap: .3rem; margin-bottom: .5rem; }
.sec-tiles > details > summary .tblock-title, .sec-tiles > details > summary strong { font-size: .98rem; }
.sec-tiles > details > summary .small { font-size: .78rem; }
.sec-tiles > p { grid-column: 1 / -1; margin: .2rem 0 0; }

/* Ügyfelek kártya: fejléc + „Új ügyfél hozzáadása” (nem fekete gomb), a mezők azonos magassággal és stílussal */
.client-list-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .3rem; }
.client-list-head h2 { margin: 0; }
.btn.client-add, .btn.client-add:hover, .btn.client-add:focus { background: #6a4bd8; border-color: #6a4bd8; color: #fff; }
.btn.client-add:hover { background: #5a3cc4; }
.client-new { align-items: flex-end; gap: .8rem; padding: .8rem 1rem; margin: .5rem 0 .9rem; background: #f6f3ff; border: 1px solid #d9d1f7; border-radius: 14px; }
.client-new[hidden] { display: none; }
.client-new label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; }
.client-new .ie, .client-new select, .client-new input { height: 40px; box-sizing: border-box; min-width: 14rem; padding: 0 .7rem; font-size: .95rem; border: 1px solid var(--line, #cfd4dc); border-radius: 10px; background: #fff; }
.client-new .btn { height: 40px; }
/* Saját adatok fejléc: a felirat és a cím ne csússzon össze */
.sec-own .sec-head > div { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.sec-own .sec-head .sec-kicker { align-self: center; }

/* Saját adatok: csempék egy sorban, a tartalom alattuk jelenik meg (a csempék helye nem mozdul) */
.otile-t { font-weight: 700; font-size: .95rem; }
.otile-s { font-size: .78rem; opacity: .75; }

/* Visszajelző sáv: rögzített (görgetett oldalon is látszik), magától elhalványul */
.alert.flashbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 400; max-width: min(92vw, 720px); margin: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); cursor: pointer; animation: flashfade 9s ease forwards; }
@keyframes flashfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* Saját adatok: nézetváltó, jobb oldali almenü */
.osplit { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: .8rem; align-items: start; }
.opane { background: #fff; min-width: 0; }
.opane h3 { margin: 0 0 .6rem; }
.omenu { position: sticky; top: 12px; display: flex; flex-direction: column; gap: .35rem; }
.omenu-i { text-align: left; background: #fff; border: 1px solid #cfe5dc; border-radius: 12px; padding: .5rem .8rem; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font: inherit; color: inherit; border-left: 5px solid transparent; }
.omenu-i:hover { border-color: #2f8f6b; }
.omenu-i.on { background: #e1f3ea; border-color: #2f8f6b; border-left-color: #2f8f6b; font-weight: 600; }
@media (max-width: 820px) { .osplit { grid-template-columns: 1fr; } .omenu { position: static; } }

/* Saját adatok: alapból zárt, lenyitható szakasz */
.sec-fold > summary.sec-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; cursor: pointer; list-style: none; margin: 0; }
.sec-fold > summary.sec-head::-webkit-details-marker { display: none; }
.sec-fold > summary.sec-head::after { content: '▾'; margin-left: auto; opacity: .6; transition: transform .15s; }
.sec-fold:not([open]) > summary.sec-head::after { transform: rotate(-90deg); }
.sec-fold[open] > summary.sec-head { margin-bottom: .7rem; }
.sec-fold > summary h2 { margin: 0; font-size: 1.15rem; }

/* Új felhasználó meghívása: egyforma mezőmagasság, közös alapvonal */
.invite-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem .8rem; }
.invite-form label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; margin: 0; }
.invite-form input:not([type="checkbox"]), .invite-form select { height: 40px; box-sizing: border-box; min-width: 12rem; padding: 0 .7rem; font-size: .95rem; border: 1px solid var(--line, #cfd4dc); border-radius: 10px; background: #fff; margin: 0; }
.invite-form label.small { flex-direction: row; align-items: center; gap: .4rem; height: 40px; }
.invite-form label.small input { height: auto; min-width: 0; }
.invite-form .btn { height: 40px; }

/* Áttekintés: az értékek (KPI) csempén ülnek */
.kpis { gap: 14px; }
.kpis .tile-link { display: block; text-decoration: none; color: inherit; }
.kpis .kpi { background: #fff; border-radius: 18px; padding: .85rem 1.1rem 1rem; box-shadow: var(--shadow, 0 2px 12px rgba(16, 24, 40, .06)); height: 100%; box-sizing: border-box; }
.kpis .tile-link:hover .kpi { box-shadow: 0 6px 20px rgba(16, 24, 40, .12); }
.kpis .kpi .tag { background: #f1f2f6; box-shadow: none; }
.kpis .kpi .tag.bad { background: #fff0f0; }

.sf-owner { display: block; font-size: .72rem; font-weight: 400; opacity: .75; line-height: 1.1; }
.sf-badge { display: inline-block; margin-left: .4rem; background: #e5531f; color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .72rem; font-weight: 700; }
.sfsv { text-align: left; }

/* kétsoros táblázatsor (pl. 13. HR-terv): kártya, a mezők két sorban, a címkék a mezők felett */
.sfrow.line.twoline { display: block; padding: 8px 10px 10px; }
.sftwotop { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 6px; }
.sftwogrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px 10px; }
.sftwocell { min-width: 0; }
.sftwocell > .sff { margin: 0; min-width: 0; }
.sftwocell > .sff > label, .sftwocell > .sff > .sflabel { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.sftwocell input:not([type="checkbox"]):not([type="radio"]), .sftwocell select { width: 100%; box-sizing: border-box; padding: 5px 7px; min-height: 34px; }
@media (max-width: 900px) { .sftwogrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* a mezők alja egy vonalban, a „nem releváns” gomb a beviteli mező mellett (nem a címke magasságában) */
.sftwogrid { align-items: end; }
.sftwocell .sff { position: relative; }
.sfrow.line.twoline .sftwocell .sff.hasna > .sfna { top: auto; bottom: 4px; transform: none; right: 4px; }
.sfrow.line.twoline .sftwocell .sff.is-na > .sfnatag { position: absolute; left: 8px; top: auto; bottom: 9px; transform: none; }
.sfrow.line.twoline .sftwocell .sff.hasna input:not([type="checkbox"]):not([type="radio"]), .sfrow.line.twoline .sftwocell .sff.hasna select { padding-right: 32px; }
/* dátummezőnél a naptár-ikon (📅) marad a szélén, a „nem releváns” gomb tőle balra */
.sfrow.line.twoline .sftwocell .sff.hasna:has(.date-wrap) > .sfna { right: 36px; }
.sfrow.line.twoline .sftwocell .sff.hasna .date-wrap .date-txt { padding-right: 64px; }

/* Ügyfelek modul */
.kl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 12px; }
.kl-f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kl-f.wide { grid-column: 1 / -1; }
.kl-f .ie { width: 100%; box-sizing: border-box; }
.kl-block { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.kl-block > summary { cursor: pointer; font-weight: 700; margin-bottom: 6px; }
.kl-groups { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0; }
.kl-chk { white-space: nowrap; }
.kl-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kl-search { flex: 1 1 260px; min-width: 200px; }
.kl-filter { width: auto; }
.kl-tablewrap { overflow-x: auto; }
.kl-row { cursor: pointer; }
.kl-row:hover, .kl-row:focus { background: #f2f5ff; outline: none; }
.kl-row.arch { opacity: .6; }
.kl-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.kl-di.wide { grid-column: 1 / -1; white-space: pre-wrap; }
.kl-goal { max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kl-row .pill + .pill, .page-head .pill + .pill { margin-left: 4px; }

.kl-flist { margin: 4px 0 10px; padding-left: 1.1rem; display: grid; gap: 2px; }
.kl-flist .pill { margin-left: 6px; }
.kl-step { margin: 10px 0; padding-top: 6px; border-top: 1px solid var(--line); }
.kl-step h3 { font-size: 1rem; margin: 0 0 4px; }
.kl-step h4 { font-size: .9rem; margin: 8px 0 2px; color: var(--muted); }

.kl-namecell { display: flex; align-items: center; gap: 10px; }
.kl-thumb { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); flex: none; }
.kl-headwrap { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.kl-logo { max-width: 120px; max-height: 120px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 4px; }
.kl-file { display: none; }
.kl-logoact { display: inline-flex; gap: 6px; margin-top: 6px; }

.kl-acc { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }


/* Státuszfelmérés – Hozzáférések */
.sf-modes { display: inline-flex; gap: 6px; }
.ac-chip { display: inline-flex; align-items: center; gap: 4px; background: #e8edfb; color: #1a3fa6; border-radius: 999px; padding: .1rem .2rem .1rem .6rem; font-size: .82rem; margin: 2px 4px 2px 0; }
.ac-chip.warn { background: #fff3d6; color: #8a6200; } .ac-chip.off { background: #eceff4; color: #555e70; }
.ac-x { border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .35rem; color: inherit; border-radius: 50%; }
.ac-x:hover { background: rgba(0,0,0,.1); }
.ac-c { text-align: center; }

.ac-sws { display: grid; gap: 10px; margin: 14px 0; }
.ac-sw { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.ac-sw input { margin-top: 4px; }
.sfsaved.warn { color: #8a6200; font-weight: 700; }

.ac-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 4px 0 8px; padding-left: .2rem; }

.ac-members { margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px 8px; background: #fafbfe; }
.ac-mhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ac-mem { font-size: .86rem; }
.ac-mem td, .ac-mem th { padding: 4px 8px; vertical-align: middle; }
.ac-off td { opacity: .6; }
.sfmemrow > td { padding-top: 0; border-top: 0; }
.sff .hint.ex { color: var(--text); font-weight: 600; background: var(--accent-soft); display: inline-block; padding: 4px 10px; border-radius: 8px; }
.sff .msg.info { color: #1c5fc4; }

/* teljes csomag / Wordben kitöltött pályázat feltöltője */
.sfpkg { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px 10px; margin: 0 0 14px; background: #fafbfc; }
.sfpkg h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.sfbig .sferr { color: #b42318; }
.sfwordopt { display: flex; align-items: center; gap: 6px; margin: 4px 0 6px; font-size: .95rem; cursor: pointer; }
.sfwordopt input { width: 18px; height: 18px; }
.sfro { padding: 9px 11px; background: #f1f3f6; border-radius: 8px; }

/* feltöltés-jelző */
.sfprog { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid #9fd3b0; border-radius: 10px; background: #f1faf4; }
.sfprog[hidden] { display: none; }
.sfprogtop { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 6px; }
.sfprogname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sfprogpct { font-size: 1.15rem; color: #14532d; font-variant-numeric: tabular-nums; }
.sfprogbar { height: 14px; border-radius: 999px; background: #d9e8de; overflow: hidden; }
.sfprogbar i { display: block; height: 100%; width: 0; border-radius: 999px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 10px, transparent 10px 20px), linear-gradient(90deg, #22a45d, #3ec47a); background-size: 28px 28px, 100% 100%; transition: width .25s ease; animation: sfprogmove 1s linear infinite; }
.sfprog.full .sfprogbar i { animation: none; }
@keyframes sfprogmove { from { background-position: 0 0, 0 0; } to { background-position: 28px 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .sfprogbar i { animation: none; } }

/* ---- látványosabb felületek: feltöltő zóna, fájlkártyák, kapacitás-sáv, Word-mód, sikerképernyő */
.sfdrop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 26px 18px; border: 2px dashed #9fd3b0; border-radius: 16px; background: linear-gradient(180deg, #f6fcf8, #eef8f1); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.sfdrop:hover, .sfdrop.over { border-color: #22a45d; background: linear-gradient(180deg, #ebf8f0, #dff3e7); transform: translateY(-1px); }
.sfdrop.over { box-shadow: 0 0 0 4px rgba(34, 164, 93, .18); }
.sfdrop strong { font-size: 1.05rem; color: #14532d; }
.sfdropicon { width: 48px; height: 48px; border-radius: 50%; background: #22a45d; color: #fff; font-size: 1.5rem; display: grid; place-items: center; margin-bottom: 6px; box-shadow: 0 4px 12px rgba(34, 164, 93, .35); }
.sfmeter { margin: 12px 0 4px; }
.sfmetertop { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-bottom: 5px; }
.sfmetertop b { color: var(--text); font-variant-numeric: tabular-nums; }
.sfmeterbar { height: 8px; border-radius: 999px; background: #e6eaf0; overflow: hidden; }
.sfmeterbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f7cff, #7aa2ff); transition: width .3s ease; }
.sffgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.sffcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); min-width: 0; }
.sffinfo { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sffinfo .linklike { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sfext { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: #fff; background: #6b7280; }
.sfext.g-pdf { background: #e5484d; } .sfext.g-zip { background: #f59e0b; } .sfext.g-doc { background: #2f6fe4; } .sfext.g-xls { background: #1f9d55; } .sfext.g-ppt { background: #e8590c; } .sfext.g-img { background: #8b5cf6; }
.sffdel { flex: 0 0 auto; }
.sfwordopt { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 4px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fafbfc; cursor: pointer; transition: border-color .15s, background .15s; }
.sfwordopt:hover { border-color: #9db7ff; }
.sfwordopt:has(input:checked) { border-color: #2f6fe4; background: #eef3ff; }
.sfwordopt input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; accent-color: #2f6fe4; }
.sfwordtxt { display: flex; flex-direction: column; gap: 2px; }
.sfwordtxt strong { font-size: 1.02rem; }
.sfwordpill { background: #2f6fe4; color: #fff; font-weight: 700; }
.sfwordhero { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.sfwordhero h2 { margin: 0; }
.sfwordhero .sfintro { margin: 2px 0 0; }
.sfwordicon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #2f6fe4, #5b93ff); color: #fff; font-size: 1.9rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(47, 111, 228, .35); }
.sfgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .sfgrid2 { grid-template-columns: 1fr; } }
.sfwordcard .sff > label { font-weight: 700; }
.sfdone { display: flex; align-items: center; gap: 18px; padding: 22px 22px 18px; border-color: #9fd3b0; background: linear-gradient(135deg, #f1faf4, #ffffff); }
.sfdone h2 { margin-top: 0; }
.sfokicon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: #22a45d; color: #fff; font-size: 2.1rem; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(34, 164, 93, .4); }
.sffacts { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.sffacts > div { flex: 1 1 200px; padding: 10px 14px; border-radius: 12px; background: #f3f6fb; display: flex; flex-direction: column; }
.sffacts span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sffacts strong { font-size: 1.1rem; word-break: break-all; }
@media (max-width: 520px) { .sfdone { flex-direction: column; text-align: center; } }

/* ---- pályázatlista: összesítő csempék, színes kártya-sorok, külön „új pályázat” panel, kapcsoló */
.sfstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 14px; }
.sfstat { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 14px; color: #fff; box-shadow: 0 6px 16px rgba(16, 24, 40, .12); }
.sfstat b { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.sfstat span { font-size: .85rem; opacity: .92; margin-top: 4px; }
.sfstat.all { background: linear-gradient(135deg, #2f6fe4, #5b93ff); }
.sfstat.work { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #422d00; }
.sfstat.done { background: linear-gradient(135deg, #1f9d55, #3ec47a); }
@media (max-width: 520px) { .sfstat b { font-size: 1.5rem; } .sfstat { padding: 10px 12px; } }
.sfapps { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sfapps .sfapp { padding: 14px 16px; border: 1px solid var(--line); border-left-width: 6px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); transition: box-shadow .15s, transform .15s; }
.sfapps .sfapp:hover { box-shadow: 0 6px 16px rgba(16, 24, 40, .12); transform: translateY(-1px); }
.sfapps .sfapp:last-of-type { border-bottom: 1px solid var(--line); border-bottom-width: 1px; }
.sfapp-done { border-left-color: #22a45d !important; }
.sfapp-work { border-left-color: #f59e0b !important; }
.sfapp-new { border-left-color: #9aa3b2 !important; }
.sfappmain { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sfappico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; color: #fff; background: #9aa3b2; }
.sfapp-done .sfappico { background: #22a45d; }
.sfapp-work .sfappico { background: #f59e0b; }
.sfapptitle { font-size: 1.08rem; }
.sfnewcard { border: 2px dashed #9db7ff; background: linear-gradient(180deg, #f5f8ff, #ffffff); }
.sfnewcard h2 { display: flex; align-items: center; gap: 10px; }
.sfnewico { width: 32px; height: 32px; border-radius: 50%; background: #2f6fe4; color: #fff; display: grid; place-items: center; font-size: 1.3rem; }
.sfwordopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sfswitch { flex: 0 0 auto; position: relative; width: 46px; height: 26px; border-radius: 999px; background: #c5cbd6; transition: background .15s; margin-top: 2px; }
.sfswitch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.sfwordopt:has(input:checked) .sfswitch { background: #2f6fe4; }
.sfwordopt:has(input:checked) .sfswitch::after { transform: translateX(20px); }
.sfwordopt:has(input:focus-visible) { outline: 3px solid rgba(47, 111, 228, .4); }
.sfaddname[hidden] { display: none !important; }
.sfadd:has(> .sfaddname[hidden]:only-child) { display: none; }

/* Word / Excel betöltése az űrlapba */
.sfi-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.sfi-table th, .sfi-table td { border-bottom: 1px solid #e3e6ec; padding: 6px 8px; vertical-align: top; text-align: left; }
.sfi-table .sfi-orig { max-width: 22rem; white-space: pre-wrap; word-break: break-word; }
.sfi-table tr.sfi-err { background: #fdf0f0; }
.sfi-table tr.sfi-warn { background: #fffaf0; }
.sfi-table tr.sfi-grp td { background: #eef1f6; font-weight: 600; }
.sfi-err { color: #b3261e; }
.sfi-warn { color: #8a5a00; }
.sfi-step { margin: .6rem 0; border: 1px solid #dfe3ea; border-radius: 10px; padding: 6px 10px; }
.sfi-step > summary { cursor: pointer; }
/* párhuzamos átnézés: ki döntött, ki szerkeszti most, ütközés */
.sfi-who { color: #2f6b3f; margin-top: 2px; }
.sfi-who.other { color: #2453d4; font-weight: 600; }
.sfi-live { color: #7c3aed; font-weight: 600; }
.sfi-table tr.sfi-busy td { box-shadow: inset 0 0 0 9999px rgba(124, 58, 237, .06); }
.sfi-table tr.sfi-busy td:first-child { box-shadow: inset 3px 0 0 #7c3aed, inset 0 0 0 9999px rgba(124, 58, 237, .06); }
.sfi-conf .alert { margin: 4px 0 0; padding: 4px 8px; }
.sfi-peers { background: #f4f1fe; border: 1px solid #ddd3fb; border-radius: 8px; padding: 4px 10px; }

/* Import-felmérés (a valós adatok átvétele): más alapszín, a Wordös pályázatok megjelölve, a sorok halvány háttérrel */
.sfsv.imp { border-color: #0f8f7a; color: #0b6b5b; }
.sfsv.imp.on { background: #0f8f7a; border-color: #0f8f7a; color: #fff; }
.sfgroup.imp { border-color: #0f8f7a; }
.sfgroup.imp .sfsurveys { background: #e8f6f3; border-bottom-color: #b6e0d8; }
.sfgroup.imp .sfgroup-title strong { color: #0b6b5b; }
.sfappwrap.imp { background: #f1faf8; border-radius: 8px; padding: 2px 8px; margin: 3px 0; border-bottom: 0; }
.sfappwrap.imp.word { background: #fff6e5; box-shadow: inset 3px 0 0 #e0a030; }
.sf-wordtag { display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #ffe7b8; color: #7a4f00; border: 1px solid #f0c978; }
.sfmemdet { margin: .2rem 0; border: 1px solid #e3e6ec; border-radius: 8px; padding: 2px 8px; background: #fafbfc; }
.sfmemdet > summary { cursor: pointer; color: #5a6477; }
.sfmemdet.imp { background: #f6fbfa; border-color: #cfe9e4; }

/* Wordből átvett mezők jelölése az admin-nézetben */
.sfimp { background: rgba(255, 226, 120, .28); border-radius: 4px; }
td.sfimp { box-shadow: inset 3px 0 0 rgba(230, 180, 20, .55); }
dd.sfimp { padding: .1rem .35rem; }
.sfimpbtn { border: 0; background: transparent; cursor: pointer; font-size: .85rem; padding: 0 .25rem; margin-left: .25rem; opacity: .75; }
.sfimpbtn:hover { opacity: 1; }
.sfimpbtn.warn { opacity: 1; background: rgba(240, 140, 30, .25); border-radius: 4px; }
.sfimpnote { font-size: .82rem; margin: .15rem 0 .1rem; padding: .2rem .45rem; border-left: 3px solid rgba(240, 140, 30, .7); background: rgba(240, 140, 30, .1); border-radius: 0 4px 4px 0; white-space: pre-wrap; }
.sfimpnote[hidden] { display: none; }
.sfimpnote q { font-style: normal; font-weight: 600; }
.sfimpchip { padding: 0 .4rem; }
.sfimplegend { margin: .6rem 0; }
.sfh3row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.sfh3row .sfwordbtn { font-weight: 500; }
/* Adatlap-beállítások: kompakt, tagolt */
.sfadm > summary { cursor: pointer; }
.sfadm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: .6rem 1.4rem; margin-top: .5rem; }
.sfadm-sec h5 { margin: 0 0 .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.sfadm-row { display: flex; flex-wrap: wrap; align-items: end; gap: .45rem .6rem; margin: .1rem 0; }

/* Projektértékelés */
.pe-dot { display: inline-block; padding: 0 .5rem; border-radius: 999px; font-size: .8rem; border: 1px solid rgba(0,0,0,.15); }
.pe-dot.zold { background: #cfeed2; } .pe-dot.sarga { background: #fff0b3; } .pe-dot.piros { background: #f7c4c0; } .pe-dot.szurke { background: #d9dde2; } .pe-dot.nincs { background: transparent; color: var(--muted); }
.pe-state { font-size: .8rem; padding: 0 .5rem; border-radius: 999px; background: #e3ecff; } .pe-state.closed { background: #e6e6e6; }
.pe-row { cursor: pointer; } .pe-row:hover { background: rgba(0,0,0,.04); }
.pe-tabs { display: flex; gap: .3rem; border-bottom: 1px solid rgba(0,0,0,.15); margin: .8rem 0; flex-wrap: wrap; }
.pe-tab { border: 0; background: transparent; padding: .45rem .9rem; cursor: pointer; border-bottom: 3px solid transparent; font: inherit; }
.pe-tab.on { border-bottom-color: currentColor; font-weight: 600; }
.pe-need { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.pe-needi { font-size: .82rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.15); }
.pe-needi.ok { background: #e1f4e3; } .pe-needi.miss { background: #fff4e0; }
.pe-up { margin: .6rem 0 1rem; padding: .5rem .8rem; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; }
.pe-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .5rem 1rem; margin: .5rem 0; }
.pe-pick { max-height: 50vh; overflow: auto; margin-top: .5rem; }
.pe-pickrow { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid rgba(0,0,0,.1); background: transparent; padding: .5rem .3rem; cursor: pointer; font: inherit; }
.pe-pickrow:hover { background: rgba(0,0,0,.05); }
.pe-list { margin: .3rem 0 1rem; }
.pe-lrow { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: end; margin: .3rem 0; padding: .4rem; border: 1px solid rgba(0,0,0,.1); border-radius: 6px; }
.pe-lf { display: flex; flex-direction: column; min-width: 9rem; } .pe-lf.wide { flex: 1 1 22rem; }

/* Csatolt fájlok és ZIP-tartalom a Word-betöltő ablakban */
.sfi-files { margin: 10px 0; padding: 8px 10px; border: 1px solid var(--line, #dde1e6); border-radius: 10px; }
.sfi-files > summary { cursor: pointer; font-weight: 600; }
.sfi-file { padding: 4px 0; border-top: 1px solid var(--line, #eceff2); }
.sfi-file:first-of-type { border-top: 0; }
.sfi-zipd { margin: 2px 0 2px 16px; }
.sfi-zipd > summary { cursor: pointer; color: var(--muted, #667); }
.sfi-zip { max-height: 260px; overflow: auto; padding: 4px 0 2px 4px; }
.sfi-zipe { padding: 1px 0; word-break: break-all; }

/* Pályázatok összesítője */
.sfsum td.num, .sfsum th:nth-child(n+6) { text-align: right; white-space: nowrap; }
.sfsum tfoot td { border-top: 2px solid var(--line, #cfd5db); font-weight: 600; }
.sfsumcard { margin-top: 14px; }

/* Projektértékelés: az elemzés külön oldala */
.pe-refbox { margin: 8px 0 12px; padding: 8px 12px; border: 1px solid var(--line, #dde1e6); border-radius: 10px; background: rgba(36, 83, 212, .05); }
.pe-refbox.warn { background: rgba(183, 121, 31, .10); border-color: rgba(183, 121, 31, .45); }
.pe-ta { width: 100%; box-sizing: border-box; }
.pe-cell { width: 100%; min-width: 90px; box-sizing: border-box; resize: vertical; }
.pe-edtable td { vertical-align: top; }
.pe-role { display: inline-block; font-size: .75rem; font-weight: 600; padding: .05rem .5rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.pe-role.ref { background: rgba(36, 83, 212, .13); color: #1d44b0; border-color: rgba(36, 83, 212, .35); }
.pe-role.teny { background: rgba(31, 138, 76, .14); color: #166b3a; border-color: rgba(31, 138, 76, .38); }
.pe-role.egyeb { background: rgba(120, 120, 120, .12); color: #5b6168; border-color: rgba(120, 120, 120, .3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pe-role.ref { color: #9db8ff; } :root:not([data-theme="light"]) .pe-role.teny { color: #7fd6a3; } :root:not([data-theme="light"]) .pe-role.egyeb { color: #b5bac0; } }
.pe-srcgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.pe-srcgrp { padding: 6px 10px; border-radius: 8px; border-left: 4px solid var(--line, #ccc); }
.pe-srcgrp ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.pe-srcgrp.ref { border-left-color: rgba(36, 83, 212, .6); background: rgba(36, 83, 212, .05); }
.pe-srcgrp.teny { border-left-color: rgba(31, 138, 76, .6); background: rgba(31, 138, 76, .06); }
@media (max-width: 720px) { .pe-srcgrid { grid-template-columns: 1fr; } }
.pe-edtable .pe-grprow th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; text-align: center; padding: .15rem .4rem; }
.pe-edtable .pe-g-first { border-left: 2px solid rgba(120, 120, 120, .35); }
.pe-edtable th.pe-g-terv, .pe-edtable td.pe-g-terv { background: rgba(36, 83, 212, .06); }
.pe-edtable th.pe-g-teny, .pe-edtable td.pe-g-teny { background: rgba(31, 138, 76, .08); }
.pe-edtable th.pe-g-egyeb, .pe-edtable td.pe-g-egyeb { background: rgba(120, 120, 120, .05); }
.pe-edtable .pe-grprow th.pe-g-terv { color: #1d44b0; } .pe-edtable .pe-grprow th.pe-g-teny { color: #166b3a; } .pe-edtable .pe-grprow th.pe-g-egyeb { color: #5b6168; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pe-edtable .pe-grprow th.pe-g-terv { color: #9db8ff; } :root:not([data-theme="light"]) .pe-edtable .pe-grprow th.pe-g-teny { color: #7fd6a3; } :root:not([data-theme="light"]) .pe-edtable .pe-grprow th.pe-g-egyeb { color: #b5bac0; } }
.pe-dlbox { margin: 12px 0; padding: 8px 12px; border: 1px solid var(--line, #dde1e6); border-radius: 10px; }
.pe-sec { margin: 12px 0; padding: 4px 16px 12px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--line, #dde1e6); }
.pe-sec > summary { cursor: pointer; font-weight: 700; padding: .55rem 0; list-style: none; display: flex; align-items: center; gap: .5rem; }
.pe-sec > summary::-webkit-details-marker { display: none; }
.pe-sec > summary::before { content: '▾'; display: inline-block; width: 1rem; color: var(--muted, #6b7280); transition: transform .15s; }
.pe-sec:not([open]) > summary::before { transform: rotate(-90deg); }
.pe-sec .table-wrap { margin: 0; padding: 0; background: transparent; box-shadow: none; border: 1px solid var(--line, #dde1e6); border-radius: 12px; overflow-x: auto; }
.pe-sec .pe-edtable { border-collapse: separate; border-spacing: 0; margin: 0; }
.pe-sec > ul, .pe-sec > .pe-form { margin-top: 0; }

/* Projektértékelés: jól látható súgólink a lista fölött */
.pe-helplink { display: inline-block; margin-left: .3rem; padding: .15rem .6rem; border-radius: 999px; background: #e0ecff; color: #1d4ed8; font-weight: 600; text-decoration: none; }
.pe-helplink:hover { background: #cfe0ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pe-helplink { background: #1e3a5f; color: #bcd6ff; } }
:root[data-theme="dark"] .pe-helplink { background: #1e3a5f; color: #bcd6ff; }

/* Projektértékelés-varázsló: lebegő sáv a lap alján (a menüket nem érinti) – letisztult: semleges keret, egy kiemelőszín. Az admin felületnek nincs sötét módja, ezért itt sincs. */
body.has-pewiz { padding-bottom: 12rem; }
body.has-pewiz.pewiz-min { padding-bottom: 4.5rem; }
.pewiz { --wz: #2563eb; --wz-ok: #16a34a; --wz-line: #e5e7eb; --wz-mut: var(--muted, #6b7280);
  position: fixed; left: 50%; transform: translateX(-50%); bottom: .6rem; width: min(1100px, calc(100% - 1.2rem)); z-index: 90; background: var(--card, #fff); color: var(--text, #111);
  border: 1px solid var(--wz-line); border-radius: 12px; box-shadow: 0 8px 28px rgba(15, 23, 42, .14); padding: .55rem .9rem .7rem; max-height: 70vh; overflow-y: auto; }
.pewiz-head { display: flex; align-items: center; gap: .7rem; }
.pewiz-ico { font-size: 1.15rem; line-height: 1; }
.pewiz-id { flex: 1 1 auto; min-width: 0; }
.pewiz-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pewiz-sub { font-size: .78em; color: var(--wz-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.pewiz-prog { display: flex; align-items: center; gap: .45rem; flex: 0 0 auto; }
.pewiz-bar { display: block; width: 7rem; height: 6px; border-radius: 99px; background: var(--wz-line); overflow: hidden; }
.pewiz-bar > span { display: block; height: 100%; background: var(--wz-ok); border-radius: 99px; transition: width .3s; }
.pewiz-count { font-size: .82em; font-weight: 600; color: var(--wz-mut); font-variant-numeric: tabular-nums; }
.pewiz-btns { display: inline-flex; gap: .15rem; flex: 0 0 auto; }
.pewiz-ib { border: 0; background: transparent; color: var(--wz-mut); font: inherit; font-size: .95em; min-width: 1.9rem; height: 1.9rem; padding: 0 .35rem; border-radius: 7px; cursor: pointer; }
.pewiz-ib.txt { font-size: .82em; font-weight: 600; color: var(--wz); }
.pewiz-ib:hover { background: rgba(100, 116, 139, .12); color: var(--text, #111); }
.pewiz-ib:focus-visible, .pewiz-dot:focus-visible { outline: 2px solid var(--wz); outline-offset: 2px; }
.pewiz-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: .6rem 0 0; padding-top: .5rem; border-top: 1px solid var(--wz-line); }
.pewiz-phase { padding: 0 .3rem; }
.pewiz-phase + .pewiz-phase { border-left: 1px solid var(--wz-line); }
.pewiz-phname { font-size: .7em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wz-mut); text-align: center; }
.pewiz-phase.cur .pewiz-phname { color: var(--wz); }
.pewiz-phase.done .pewiz-phname { color: var(--wz-ok); }
.pewiz-steps { list-style: none; display: flex; margin: .35rem 0 0; padding: 0; }
.pewiz-step { flex: 1 1 0; min-width: 0; position: relative; text-align: center; }
.pewiz-step + .pewiz-step::before { content: ''; position: absolute; top: .7rem; left: -50%; width: 100%; height: 2px; background: var(--wz-line); z-index: 0; }
.pewiz-step.done + .pewiz-step::before, .pewiz-step.skip + .pewiz-step::before { background: var(--wz-ok); }
.pewiz-dot { position: relative; z-index: 1; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 2px solid #cbd5e1; background: var(--card, #fff); color: var(--wz-mut); font: inherit; font-size: .74em; font-weight: 700; cursor: pointer; padding: 0; }
.pewiz-dot:hover { border-color: var(--wz); }
.pewiz-step.done .pewiz-dot { background: var(--wz-ok); border-color: var(--wz-ok); color: #fff; }
.pewiz-step.skip .pewiz-dot { border-style: dashed; color: var(--wz-mut); }
.pewiz-step.cur .pewiz-dot { background: var(--wz); border-color: var(--wz); color: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.pewiz-step.pre .pewiz-dot { border: 2px dashed #86d1a3; color: var(--wz-ok); }
.pewiz-lbl { display: block; font-size: .72em; line-height: 1.2; margin-top: .25rem; color: var(--wz-mut); padding: 0 .15rem; }
.pewiz-step.cur .pewiz-lbl { color: var(--text, #111); font-weight: 600; }
.pewiz-step.skip .pewiz-lbl { text-decoration: line-through; }
.pewiz-hint { margin: .6rem 0 0; padding-top: .55rem; border-top: 1px solid var(--wz-line); font-size: .9em; line-height: 1.45; }
.pewiz-next { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: space-between; }
.pewiz-nextl { font-weight: 600; color: var(--wz); }
.pewiz-acts { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.pewiz-text { margin: .3rem 0 0; color: var(--text, #111); }
.pewiz-note { margin: .25rem 0 0; }
.pewiz-err { color: #b91c1c; }
.pe-pickbar { display: flex; gap: .5rem; flex-wrap: wrap; }
.pe-pickbar select { flex: 0 1 16rem; min-width: 0; }
.pe-pickbar input { flex: 1 1 14rem; min-width: 0; }
.pe-pickrow { display: flex !important; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.pe-pickrow strong { flex: 1 1 14rem; min-width: 0; }
.pe-pickmeta { font-size: .85em; color: var(--muted, #6b7280); }
.pe-pickst { font-size: .75em; font-weight: 600; padding: .05rem .5rem; border-radius: 99px; background: #f1f5f9; color: #475569; }
.pe-pickst.ev { background: #e8f0ff; color: #1d4ed8; }
.pe-pickst.sub { background: #e7f6ec; color: #166534; }
@media (max-width: 760px) { .pewiz-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .6rem; } .pewiz-phase:nth-child(3) { border-left: 0; } .pewiz-bar { width: 3.5rem; } body.has-pewiz { padding-bottom: 18rem; } }

/* Hiánypótlás: a pótlandó mező piros kerettel és megjegyzéssel, a többi zárolva (kitöltő); az admin nézetben is jelölve */
.pill.hp { background: #fde8e8; color: #a51d1d; border: 1px solid #f3b4b4; }
.sfhptag { display: inline-block; margin: 2px 0 4px; padding: 1px 8px; border-radius: 6px; background: #fde8e8; color: #a51d1d; font-size: .82rem; font-weight: 600; }
.sfhptag span { font-weight: 400; }
.sfhpfield { outline: 2px solid #e05252; outline-offset: 2px; border-radius: 6px; background: #fff7f7; }
.sfhplocked { opacity: .55; }
.sfhplocked input, .sfhplocked select, .sfhplocked textarea, .sfhplocked button { pointer-events: none; }
.sfhplocked input, .sfhplocked select, .sfhplocked textarea { cursor: not-allowed; }
.sfhpmark { box-shadow: inset 3px 0 0 #e05252; background: #fff5f5; }
dt.sfhpmark { color: #a51d1d; }
.sfnode.hpstep .sfcirc { box-shadow: 0 0 0 3px #e05252; }
.sfhpbanner { border: 2px solid #e05252; background: #fff7f7; }
.sfhpbanner h2 { color: #a51d1d; }
.sfhpmsg { white-space: pre-wrap; background: #fff; border-left: 3px solid #e05252; padding: 6px 10px; }
.sfhp-banner { margin: .4rem 0; }
.sfhplegend { margin: .3rem 0; }
.sfi-hp { margin-top: 4px; color: #a51d1d; }
.sfi-hp label { cursor: pointer; font-weight: 600; }
.sfi-hpnote { width: 100%; margin-top: 2px; }
.sfi-table tr.sfi-hprow td { background: #fff5f5; }
.sfi-hpbtn { border-color: #e05252; color: #a51d1d; }
.sfhp-pick { padding: 3px 0; border-bottom: 1px dashed #eee; }
.sfhp-pick label { cursor: pointer; }
.sfhp-tbl { margin: 4px 0 6px; padding-left: 6px; border-left: 2px solid #e3e6ec; }
