/* =========================================================================
   Fodor — belső rendelési naptár
   Ugyanaz a dizájnrendszer, mint a weboldal és a tortakatalógus (fodor.css).
   ========================================================================= */

body { background: var(--cream-2); }
.muted { color: var(--muted-2); font-size: 13px; font-weight: 300; margin: 0 0 18px; }
.a-kicker { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin: 0 0 4px; }

/* ---------- Fejléc ---------- */
.a-head { position: sticky; top: 0; z-index: 30; background: rgba(207,188,171,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--champagne-border); box-shadow: 0 4px 20px -6px rgba(35,24,18,.12); }
.a-head-inner { max-width: 1480px; margin: 0 auto; padding: 0 28px; height: 84px; display: flex; align-items: center; gap: 28px; }
.a-brand { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.a-brand img { height: 50px; width: auto; }
.a-brand .a-kicker { color: #5A4E44; }
.a-brand h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; margin: 0; white-space: nowrap; }
.a-tabs { display: flex; gap: 4px; background: rgba(250,247,242,.45); padding: 4px; border-radius: 999px; }
.a-tab { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: #4A3E34; transition: all .2s; }
.a-tab:hover { color: var(--dark); }
.a-tab.active { background: var(--dark); color: #fff; }
.a-actions { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #4A3E34; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #4F7A55; box-shadow: 0 0 0 0 rgba(79,122,85,.6); animation: pulse 2s infinite; }
.live.off i { background: var(--danger); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(79,122,85,.55); } 70% { box-shadow: 0 0 0 8px rgba(79,122,85,0); } 100% { box-shadow: 0 0 0 0 rgba(79,122,85,0); } }
.a-new { padding: 13px 20px; }

/* ---------- Tartalom ---------- */
.a-main { max-width: 1480px; margin: 0 auto; padding: 28px 28px 80px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; transition: all .25s; text-align: left; }
.stat:hover { border-color: var(--champagne); box-shadow: var(--shadow-md); }
.stat .l { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.stat .s { display: block; font-size: 12px; color: var(--muted-3); margin-top: 4px; font-weight: 300; letter-spacing: 0; text-transform: none; }
.stat .n { font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--dark); }
.stat.alert { background: var(--dark); border-color: var(--dark); color: #fff; }
.stat.alert .l { color: var(--champagne-light); }
.stat.alert .s { color: rgba(255,255,255,.6); }
.stat.alert .n { color: #fff; }

.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.store-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.sf { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 9px 14px; border-radius: 999px; font-size: 12px; font-weight: 500; transition: all .2s; }
.sf i { width: 9px; height: 9px; border-radius: 50%; }
.sf:hover { border-color: var(--champagne); }
.sf.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.filters-right { display: flex; gap: 10px; align-items: center; }
.filters .select { width: auto; padding: 10px 12px; font-size: 13px; }
.a-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 0 12px; color: var(--muted-2); }
.a-search input { border: 0; outline: 0; padding: 10px 0; width: 250px; font-size: 13px; background: transparent; }
.a-search:focus-within { border-color: var(--gold); }

/* ---------- Naptár ---------- */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 22px; align-items: start; }
.cal-card { background: #fff; border: 1px solid var(--line); padding: 22px 22px 16px; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cal-head h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0; min-width: 240px; text-align: center; }
.round { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; display: grid; place-items: center; transition: all .2s; }
.round:hover { border-color: var(--dark); }
.today-btn { margin-left: auto; border: 1px solid var(--dark); background: none; padding: 8px 16px; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.today-btn:hover { background: var(--dark); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft); }
.cal-grid .dow { padding: 10px 10px 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.cday { position: relative; min-height: 118px; padding: 8px 8px 8px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; display: flex; flex-direction: column; gap: 4px; transition: background .2s; min-width: 0; font: inherit; border-top: 0; border-left: 0; }
.cday:hover { background: #FCFAF6; }
.cday.out { background: #FBF9F6; color: #C9BFB5; }
.cday.past .num { color: var(--muted-3); }
.cday .top { display: flex; align-items: center; justify-content: space-between; }
.cday .num { font-family: var(--serif); font-size: 20px; line-height: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.cday.today .num { background: var(--champagne); color: var(--dark); }
.cday.sel { box-shadow: inset 0 0 0 2px var(--dark); z-index: 1; }
.cday.blocked { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #F6F0E8 6px, #F6F0E8 12px); }
.cday .cnt { font-size: 10px; font-weight: 700; letter-spacing: .06em; background: var(--dark); color: #fff; border-radius: 999px; padding: 3px 8px; }
.cday .cnt.has-new { background: #B5553F; }
.chipline { display: flex; align-items: center; gap: 6px; font-size: 11px; line-height: 1.25; padding: 3px 6px; border-radius: 3px; background: var(--cream-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chipline i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.chipline b { font-weight: 600; }
.chipline.st-lemondva { text-decoration: line-through; opacity: .5; }
.chipline.st-uj { background: #F7E6DF; }
.more { font-size: 10.5px; color: var(--muted-2); padding-left: 4px; }
.dots { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 14px; font-size: 11.5px; color: var(--muted-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Napi panel ---------- */
.day-panel { position: sticky; top: 108px; background: #fff; border: 1px solid var(--line); max-height: calc(100vh - 128px); display: flex; flex-direction: column; }
.day-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.day-head h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 0; line-height: 1.1; }
.day-tools { display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 20px; transition: all .2s; }
.icon-btn:hover { border-color: var(--dark); background: var(--dark); color: #fff; }
.day-summary { padding: 12px 22px; border-bottom: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.day-summary:empty { display: none; }
.day-summary b { color: var(--dark); }
.day-list { overflow-y: auto; padding: 8px 22px 22px; }
.day-empty { text-align: center; padding: 50px 10px; color: var(--muted-3); font-family: var(--serif); font-style: italic; font-size: 20px; }

/* ---------- Rendelés kártya ---------- */
.ocard { border: 1px solid var(--line); margin-top: 14px; background: #fff; transition: box-shadow .3s, border-color .3s; }
.ocard.flash { animation: flash 2.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(181,85,63,.45); } 100% { box-shadow: none; } }
.ocard.st-lemondva { opacity: .6; }
.ohead { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); border-left: 4px solid var(--c, var(--gold)); }
.otime { font-family: var(--serif); font-size: 30px; line-height: 1; }
.ometa { flex: 1; min-width: 0; }
.ometa .no { font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.ometa .st { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-st { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.pill-st.uj { background: #F7E0D8; color: #9B3D2F; }
.pill-st.visszaigazolva { background: #E6ECF3; color: #3E5C7E; }
.pill-st.elkeszult { background: #F6EAD2; color: #8C6F3D; }
.pill-st.atadva { background: #E3EDE3; color: #3F6B45; }
.pill-st.lemondva { background: #EEE; color: #777; }
.src { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-3); font-weight: 600; }
.obody { padding: 12px 16px 14px; }
.oitem { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }
.oitem:last-child { border-bottom: 0; }
.oitem img { width: 54px; height: 54px; object-fit: cover; }
.oitem b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.15; }
.oitem .sz { font-size: 12px; font-weight: 600; }
.oitem .pers { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.oitem .insc { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold-dark); }
.ocust { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; padding: 12px 0 0; margin-top: 8px; border-top: 1px solid var(--line-soft); font-size: 12.5px; }
.ocust .full { grid-column: 1 / -1; }
.ocust span { color: var(--muted-2); }
.ocust a { color: var(--dark); font-weight: 500; border-bottom: 1px solid var(--champagne); }
.onote { margin-top: 10px; background: #FBF6EE; border-left: 3px solid var(--champagne); padding: 8px 12px; font-size: 12.5px; color: var(--muted); }
.oadmin { display: grid; grid-template-columns: 1fr 120px; gap: 8px; margin-top: 12px; }
.oadmin .input { padding: 9px 10px; font-size: 12.5px; }
.oactions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line-soft); background: var(--cream); }
.sbtn { border: 1px solid var(--line); background: #fff; padding: 7px 11px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; transition: all .2s; }
.sbtn:hover { border-color: var(--dark); }
.sbtn.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.sbtn.del { margin-left: auto; color: var(--danger); border-color: transparent; background: none; }
.sbtn.del:hover { border-color: var(--danger); }

/* ---------- Lista nézet ---------- */
.list-tools { margin-bottom: 18px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 9px 16px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted-2); }
.seg button.on { background: var(--dark); color: #fff; }
.lgroup { margin-bottom: 30px; }
.lgroup h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 4px; display: flex; align-items: baseline; gap: 12px; }
.lgroup h3 small { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 0 16px; }
.list-empty { background: #fff; border: 1px solid var(--line); padding: 60px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--muted-3); }

/* ---------- Beállítások ---------- */
.set-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.set-card { background: #fff; border: 1px solid var(--line); padding: 26px; }
.set-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 6px; }
.cake-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ct-cat { grid-column: 1 / -1; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin-top: 12px; }
.ct { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-soft); padding: 8px; cursor: pointer; }
.ct img { width: 48px; height: 48px; object-fit: cover; }
.ct span { flex: 1; font-family: var(--serif); font-size: 17px; line-height: 1.15; }
.ct input { display: none; }
.sw { width: 38px; height: 22px; border-radius: 999px; background: #D8CFC6; position: relative; transition: background .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.ct input:checked + .sw { background: #4F7A55; }
.ct input:checked + .sw::after { transform: translateX(16px); }
.ct.offc { opacity: .6; }
.block-add { display: flex; gap: 10px; margin-bottom: 14px; }
.blocked { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.blocked li { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--cream); border: 1px solid var(--line-soft); font-size: 13.5px; }
.blocked button { background: none; border: 0; color: var(--danger); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

/* ---------- Modalok ---------- */
.a-modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.a-modal.open { visibility: visible; }
.a-backdrop { position: absolute; inset: 0; background: rgba(24,19,15,.55); opacity: 0; transition: opacity .3s; }
.a-modal.open .a-backdrop { opacity: 1; }
.a-sheet { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 30px; opacity: 0; transform: translateY(20px); transition: all .35s var(--ease-out); }
.a-sheet.wide { width: min(860px, 100%); }
.a-modal.open .a-sheet { opacity: 1; transform: none; }
.a-sheet .x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; line-height: 1; color: var(--muted); }
.a-sheet .x:hover { background: var(--dark); color: #fff; }
.a-sheet .ocard { margin-top: 0; }
.sheet-title { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 20px; }
.nm-item { display: grid; grid-template-columns: 2fr 1fr 80px 2fr 36px; gap: 10px; align-items: end; padding: 14px; background: #fff; border: 1px solid var(--line-soft); margin-bottom: 8px; }
.nm-item .field { margin: 0; }
.nm-item .rm { height: 46px; border: 1px solid var(--line); background: none; color: var(--danger); font-size: 18px; }
.link-btn { background: none; border: 0; padding: 4px 0 18px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold-dark); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nm-errors { background: #F7E9E4; border: 1px solid #E3C3B8; color: var(--danger); padding: 12px 16px; font-size: 13px; margin-bottom: 12px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- Reszponzív ---------- */
@media (max-width: 1180px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .day-panel { position: static; max-height: none; }
  .a-brand h1 { font-size: 26px; }
}
@media (max-width: 900px) {
  .a-head-inner { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 10px 14px; }
  .a-brand img { height: 40px; }
  .a-brand .a-kicker { display: none; }
  .a-brand h1 { font-size: 24px; }
  .a-actions { flex: 0 0 auto; }
  .a-new span, .live #live-t { display: none; }
  .a-new { padding: 11px 16px; font-size: 16px; letter-spacing: 0; }
  .a-tabs { order: 3; width: 100%; justify-content: space-between; }
  .a-tab { flex: 1; padding: 9px 6px; font-size: 9.5px; letter-spacing: .1em; }
  .a-main { padding: 16px 12px 60px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 14px; }
  .stat .n { font-size: 34px; }
  .stat .s { display: none; }
  .filters { flex-direction: column; align-items: stretch; }
  .store-filter { min-width: 0; max-width: calc(100% + 24px); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
  .sf { flex: none; }
  .filters-right { width: 100%; }
  .filters .select { flex: none; max-width: 44%; }
  .a-search { min-width: 0; }
  .today-btn { padding: 7px 10px; }
  .a-search { flex: 1; }
  .a-search input { width: 100%; font-size: 16px; }
  .cal-card { padding: 14px 8px 10px; }
  .cal-head { gap: 8px; margin-bottom: 12px; }
  .cal-head h2 { font-size: 24px; min-width: 0; flex: 1; }
  .round { width: 34px; height: 34px; }
  .cal-grid .dow { padding: 6px 2px; text-align: center; font-size: 9px; letter-spacing: .06em; }
  .cday { min-height: 58px; padding: 4px 2px; align-items: center; }
  .cday .top { flex-direction: column; gap: 3px; }
  .cday .num { font-size: 16px; width: 26px; height: 26px; }
  .cday .cnt { font-size: 9px; padding: 2px 6px; }
  .cday .chipline, .cday .more { display: none; }
  .dots { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; }
  .dots i { width: 5px; height: 5px; border-radius: 50%; }
  .legend { gap: 10px; font-size: 10.5px; padding: 12px 6px 2px; }
  .day-head, .day-list, .day-summary { padding-left: 14px; padding-right: 14px; }
  .lgrid { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
  .a-modal { padding: 0; place-items: end stretch; }
  .a-sheet, .a-sheet.wide { width: 100%; max-height: 94vh; max-height: 94dvh; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
  .nm-item { grid-template-columns: 1fr 1fr; }
  .nm-item .f-cake, .nm-item .f-pers { grid-column: 1 / -1; }
  .grid3 { grid-template-columns: 1fr; gap: 0; }
  .input, .select, .textarea { font-size: 16px; }
  .ocust { grid-template-columns: 1fr; }
}

/* ---------- Nyomtatás: napi gyártási lista ---------- */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; font-family: var(--sans); color: #000; }
  #print-area h1 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 0 0 4px; }
  #print-area table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 12px; }
  #print-area th, #print-area td { border: 1px solid #999; padding: 6px 8px; text-align: left; vertical-align: top; }
  #print-area th { background: #eee; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
  #print-area .sum { font-size: 12px; margin: 8px 0; }
}

/* =========================================================================
   v2 — belépés, jogosultságok, mai feladatok, raktár, kérelmek
   ========================================================================= */
body:not(.is-boss) .boss-only { display: none !important; }
.muted.sm, .sm { font-size: 12px; }
.empty-p { color: var(--muted-3); font-family: var(--serif); font-style: italic; font-size: 18px; margin: 10px 0 6px; }

/* ---------- Belépés ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; isolation: isolate; background: var(--cream); }
.login::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/img/minta_arany.png") center / 640px auto repeat; opacity: .10; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 40px 36px 34px; text-align: center; }
.login-card .field { text-align: left; }
.login-logo { height: 76px; width: auto; margin: 0 auto 14px; }
.login-card h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 0 0 6px; }
.login-err { background: #F7E9E4; border: 1px solid #E3C3B8; color: var(--danger); padding: 10px 12px; font-size: 13px; text-align: left; margin: 0 0 14px; }

/* ---------- Fejléc: felhasználó ---------- */
.a-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.a-tabs::-webkit-scrollbar { display: none; }
.a-tab { white-space: nowrap; position: relative; }
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: #B5553F; color: #fff; font-size: 10px; letter-spacing: 0; }
.user-menu { position: relative; }
.user-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(24,19,15,.3); background: rgba(250,247,242,.6); display: grid; place-items: center; padding: 0; }
.ub-ico { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 16px; z-index: 40; }
.up-name { font-family: var(--serif); font-size: 20px; margin: 0; }
.up-role { font-size: 11.5px; color: var(--muted-2); margin: 2px 0 12px; }
.user-pop button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line-soft); padding: 10px 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.user-pop button:hover { color: var(--gold-dark); }
.sf.own { cursor: default; }
.store-filter.compact .sf { padding: 7px 12px; font-size: 11.5px; }

/* ---------- Mai feladatok ---------- */
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.today-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); margin: 0; line-height: 1.05; }
.today-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.clock { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold-dark); }
.t-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.tile { background: #fff; border: 1px solid var(--line); padding: 16px 18px; text-align: left; display: grid; gap: 2px; transition: all .2s; }
.tile:hover { border-color: var(--champagne); box-shadow: var(--shadow-md); }
.tile .l { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.tile .n { font-family: var(--serif); font-size: 42px; line-height: 1.05; }
.tile .s { font-size: 11.5px; color: var(--muted-3); }
.tile.alert { background: var(--dark); border-color: var(--dark); color: #fff; }
.tile.alert .l { color: var(--champagne-light); }
.tile.alert .s { color: rgba(255,255,255,.65); }
.t-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.t-col { display: grid; gap: 22px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); padding: 20px 22px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.panel-head h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.1; }
.panel-head .muted { margin: 2px 0 0; }

.trow { display: grid; grid-template-columns: 66px auto 1fr auto; gap: 12px; align-items: center; padding: 12px 10px 12px 12px; border-bottom: 1px solid var(--line-soft); border-left: 4px solid var(--c, var(--gold)); margin-top: 8px; background: #fff; transition: background .2s; }
.trow:hover { background: #FCFAF6; }
.trow.next { background: #FBF5EC; box-shadow: inset 0 0 0 1px var(--champagne); }
.trow.next .tr-time::after { content: "következik"; display: block; font-family: var(--sans); font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-top: 3px; }
.trow.late { background: #FBEDE8; }
.trow.st-atadva { opacity: .55; }
.trow.st-atadva .tr-main b { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.3); }
.trow.flash { animation: flash 2.4s ease; }
.tr-time { font-family: var(--serif); font-size: 26px; line-height: 1; }
.tr-time.sm { font-size: 20px; }
.tr-time small { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin-bottom: 3px; }
.tr-thumbs { display: flex; }
.tr-thumbs img { width: 44px; height: 44px; object-fit: cover; border: 2px solid #fff; }
.tr-thumbs img + img { margin-left: -14px; }
.tr-main { min-width: 0; }
.tr-main b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.2; }
.tr-main b em { font-style: normal; font-family: var(--sans); font-size: 11px; font-weight: 600; color: var(--muted-2); }
.tr-main small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.45; }
.tr-main small a { color: var(--dark); border-bottom: 1px solid var(--champagne); }
.late-t, .req-dot { color: var(--danger); font-weight: 600; }
.tr-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.qbtn { border: 1px solid var(--line); background: #fff; padding: 8px 11px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; transition: all .2s; white-space: nowrap; }
.qbtn:hover { border-color: var(--dark); }
.qbtn.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.qbtn.ghost { font-size: 15px; letter-spacing: 0; padding: 4px 10px; }

.xrow { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.xdot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.xrow.bad .xdot { background: var(--danger); }
.xrow.warn .xdot { background: #D9832B; }
.xm b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.xm small { font-size: 11.5px; color: var(--muted-2); }
.xl { font-size: 11.5px; font-weight: 600; text-align: right; }
.xrow.bad .xl { color: var(--danger); }
.refill-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.refill-mini div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.refill-mini b { font-weight: 600; white-space: nowrap; }

/* ---------- Kártya kiegészítők ---------- */
.req-banner { background: #FBEDE8; border-bottom: 1px solid #EBCFC4; padding: 10px 16px; font-size: 12.5px; color: #7A3426; line-height: 1.5; }
.ocard.has-req { border-color: #E3B9AB; }
.req-sent { margin-left: auto; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #B5553F; align-self: center; }
.muted-line { color: var(--muted-3); font-size: 11.5px; }
.sbtn:disabled { opacity: .4; cursor: not-allowed; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.rm-order { background: #fff; border: 1px solid var(--line-soft); padding: 12px 14px; font-size: 13px; margin-bottom: 14px; line-height: 1.5; }

/* ---------- Raktár ---------- */
.r-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.r-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); margin: 0; }
.r-head .select { width: auto; min-width: 260px; }
.r-seg { margin-bottom: 18px; }
.r-note { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--champagne); padding: 12px 16px; font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.r-note.ok { border-left-color: #4F7A55; background: #F2F7F1; color: #2F4F33; }
.r-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.r-tools .r-note { flex: 1; min-width: 260px; }
.r-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.chk input { accent-color: var(--dark); width: 16px; height: 16px; }

.z-form { display: grid; gap: 18px; }
.z-cat { background: #fff; border: 1px solid var(--line); padding: 6px 20px 8px; }
.z-cat h4 { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 12px 0 4px; }
.zrow, .frow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) 170px; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.frow { grid-template-columns: minmax(0, 1.5fr) 170px 210px 150px; }
.zrow.need { background: #FBEDE8; box-shadow: -20px 0 0 #FBEDE8, 20px 0 0 #FBEDE8; }
.zr-name b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.2; }
.zr-name small { font-size: 11.5px; color: var(--muted-2); }
.zr-input { display: flex; align-items: center; gap: 8px; }
.zr-input .num { width: 92px; text-align: center; font-size: 17px; font-weight: 600; padding: 10px 6px; }
.zr-input .unit { font-size: 12px; color: var(--muted-2); }
.step { width: 40px; height: 44px; border: 1px solid var(--line); background: var(--cream); font-size: 20px; color: var(--muted); }
.step:hover { border-color: var(--dark); color: var(--dark); }
.zr-calc { font-size: 12px; color: var(--muted); line-height: 1.55; }
.zr-calc b { color: var(--dark); }
.zrow.filled .zr-calc b { color: var(--gold-dark); }
.zrow.pct .zr-input { gap: 14px; }
.tub { flex: none; width: 34px; height: 44px; border: 2px solid var(--champagne-border); border-top-width: 1px; border-radius: 3px 3px 8px 8px; position: relative; overflow: hidden; background: #fff; }
.tub span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#F3DFC4, #E7C79E); transition: height .2s; }
.zrow.pct input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--gold-dark); height: 32px; }
.pct-out { font-family: var(--serif); font-size: 26px; min-width: 62px; text-align: right; }
.z-foot { position: sticky; bottom: 0; z-index: 5; background: rgba(250,247,242,.96); backdrop-filter: blur(6px); border: 1px solid var(--line); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.f-head { display: grid; grid-template-columns: minmax(0, 1.5fr) 170px 210px 150px; gap: 18px; padding: 0 20px 8px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.frow input[type="datetime-local"] { padding: 10px 8px; font-size: 13px; }

.x-table, .p-table { background: #fff; border: 1px solid var(--line); }
.x-h, .x-r { display: grid; grid-template-columns: 1.6fr .8fr 1.2fr 1fr 1fr 1.2fr; gap: 12px; padding: 12px 18px; align-items: center; font-size: 13px; }
.x-h { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); border-bottom: 1px solid var(--line); background: var(--cream); }
.x-r { border-bottom: 1px solid var(--line-soft); }
.x-r b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.x-r small { font-size: 11px; color: var(--muted-3); }
.x-st { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12px; }
.x-st i { width: 9px; height: 9px; border-radius: 50%; background: #4F7A55; }
.x-r.bad { background: #FBEDE8; } .x-r.bad .x-st { color: var(--danger); } .x-r.bad .x-st i { background: var(--danger); }
.x-r.warn .x-st i { background: #D9832B; } .x-r.warn .x-st { color: #A35A17; }
.x-r.soon .x-st i, .x-r.soon2 .x-st i { background: var(--gold); }

.p-table { margin-top: 12px; }
.p-cat { padding: 14px 18px 6px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
.p-r, .p-h { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 11px 18px; border-top: 1px solid var(--line-soft); align-items: center; font-size: 14px; }
.p-r b { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.p-r small { display: block; font-size: 11px; color: var(--muted-3); }
.p-r .tot { font-weight: 700; white-space: nowrap; }
.p-table.wide .p-r, .p-table.wide .p-h { grid-template-columns: 1.6fr repeat(5, 1fr); }
.p-h { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); background: var(--cream); border-top: 0; }

.stat-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; margin-top: 14px; align-items: start; }
.sb-cat h4 { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 14px 0 6px; }
.sbar { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr auto; gap: 12px; align-items: center; width: 100%; background: none; border: 0; padding: 7px 6px; text-align: left; border-radius: 4px; }
.sbar:hover, .sbar.on { background: var(--cream-2); }
.sb-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sbar.on .sb-name { font-weight: 600; }
.sb-track { height: 10px; background: var(--cream-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.sb-fill { display: block; height: 100%; background: #A68A68; border-radius: 0 4px 4px 0; }
.sbar.on .sb-fill { background: var(--gold-dark); }
.sb-val { font-size: 12px; font-weight: 600; white-space: nowrap; min-width: 70px; text-align: right; }
.ch-head h4 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; }
.cols { position: relative; height: 240px; display: flex; align-items: stretch; gap: 6px; padding: 22px 0 0; margin-top: 14px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 59px, var(--line-soft) 59px, var(--line-soft) 60px); }
.col { flex: 1; position: relative; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.col-bar { width: 72%; max-width: 34px; background: #A68A68; border-radius: 4px 4px 0 0; transition: background .2s; }
.col:hover .col-bar, .col:focus .col-bar { background: var(--gold-dark); }
.col-l { position: absolute; bottom: -22px; font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.col-tip { position: absolute; top: -6px; transform: translateX(-50%); background: var(--dark); color: #fff; font-size: 12px; padding: 6px 10px; white-space: nowrap; pointer-events: none; z-index: 2; }
.tbl-toggle { margin-top: 34px; font-size: 12.5px; }
.tbl-toggle summary { cursor: pointer; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.mini-tbl { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mini-tbl td, .mini-tbl th { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.mini-tbl th { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

.std-wrap { background: #fff; border: 1px solid var(--line); overflow-x: auto; }
.std { width: 100%; border-collapse: collapse; min-width: 980px; }
.std th { text-align: left; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); padding: 12px 8px; background: var(--cream); border-bottom: 1px solid var(--line); }
.std td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.std .input, .std .select { padding: 9px 9px; font-size: 13.5px; }
.std .input.sm { width: 88px; }
.std .sl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.std .rm { width: 34px; height: 34px; border: 1px solid var(--line); background: none; color: var(--danger); font-size: 18px; }
.std .lock { font-size: 13px; opacity: .5; display: inline-block; width: 34px; text-align: center; }
.std-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.std-foot .link-btn { padding: 0; }

/* ---------- Kérelmek, napló, fiókok ---------- */
.audit { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-height: 70vh; overflow-y: auto; }
.audit li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 3px; font-size: 12.5px; }
.au-t { font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.au-torles .au-t { color: var(--danger); }
.au-d { color: var(--muted-2); }
.au-r { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--cacao); }
.au-s { color: var(--muted); font-size: 12px; }
.set-col { display: grid; gap: 22px; }
.acc-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.acc-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.acc-ico.boss { background: var(--dark); color: #fff; }
.acc-m b { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; }
.acc-m small { font-size: 11.5px; color: var(--muted-2); }
.acc-m code { background: var(--cream-2); padding: 1px 6px; font-size: 11.5px; }
.blocked .none { background: none; border: 0; padding: 0; color: var(--muted-3); }

/* ---------- Reszponzív (v2) ---------- */
@media (max-width: 1280px) {
  .t-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .t-grid, .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .zrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .zrow .zr-calc { grid-column: 1 / -1; }
  .frow, .f-head { grid-template-columns: minmax(0, 1fr) 140px 190px; }
  .frow .zr-calc, .f-head span:last-child { display: none; }
  .x-h { display: none; }
  .x-r { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
}
@media (max-width: 900px) {
  .a-tabs { justify-content: flex-start; }
  .a-tab { flex: none; padding: 9px 12px; }
  .a-new span { display: none; }
  .today-head h2 { font-size: 28px; }
  .clock { font-size: 30px; }
  .today-right { width: 100%; justify-content: space-between; }
  .store-filter.compact { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 90px); }
  .t-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 12px; }
  .tile .n { font-size: 32px; }
  .panel { padding: 16px 14px; }
  .trow { grid-template-columns: 56px 1fr; gap: 8px 10px; padding: 10px; }
  .tr-thumbs { display: none; }
  .tr-act { grid-column: 1 / -1; justify-content: flex-start; }
  .refill-mini { grid-template-columns: 1fr; }
  .r-head .select { min-width: 0; width: 100%; }
  .r-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .r-seg button { flex: none; }
  .z-cat { padding: 4px 12px 6px; }
  .zrow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .zr-input .num { flex: 1; width: auto; }
  .step { width: 48px; height: 48px; }
  .frow, .f-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .f-head { display: none; }
  .frow .zr-calc { display: block; }
  .p-table.wide { overflow-x: auto; }
  .p-table.wide .p-r, .p-table.wide .p-h { min-width: 640px; }
  .sbar { grid-template-columns: minmax(0, 1fr) 1fr auto; }
  .cols { height: 190px; gap: 3px; }
  .col-l { font-size: 8.5px; }
  .x-r { grid-template-columns: 1fr; }
}

/* ---------- Nyomtatás: szállítólevél ---------- */
@media print {
  #print-area .dn { page-break-after: always; break-after: page; padding: 4mm 2mm; }
  #print-area .dn:last-child { page-break-after: auto; break-after: auto; }
  .dn-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 10px; }
  .dn-head h1 { font-size: 30px !important; margin: 0 !important; }
  .dn-head p { margin: 2px 0 0; font-size: 11px; }
  .dn-no { text-align: right; font-size: 12px; }
  .dn-to { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-bottom: 8px; font-size: 12px; }
  .dn-to span { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: #555; }
  .dn-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; font-size: 11px; }
  .dn-sign span { display: block; border-bottom: 1px solid #000; height: 34px; }
}
.step { flex: none; }
.std .sl .input { color: var(--dark); }
.cols-max { position: absolute; left: 0; top: 0; font-size: 10px; color: var(--muted-2); }

/* =========================================================================
   v3 — üzletszínek, havi/heti/napi naptár, tortaraktár, előzmények
   ========================================================================= */
.spill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .06em; font-weight: 700; text-transform: uppercase; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.spill.boss { background: var(--dark); color: #fff; }
.spill.online { background: var(--cream-2); color: var(--muted); border: 1px solid var(--line); }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0; }
.ro { font-size: 12px; color: var(--muted-2); }
.grid2 { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }

/* Jelmagyarázat */
.legend { align-items: center; gap: 10px 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); margin-top: 14px; }
.legend .lg-title { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.legend .lg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dark); }
.legend .lg i { width: 18px; height: 18px; border-radius: 4px; }
.legend .lg i.ring { background: #fff; border: 2px dashed var(--dark); }
.legend .lg small { color: var(--muted-2); font-size: 11.5px; }

/* Havi naptár: tömör, üzletszínű bejegyzések */
.cday { cursor: pointer; }
.chipline { background: var(--sc) !important; color: var(--st) !important; border-radius: 4px; padding: 3px 6px; font-size: 11px; }
.chipline b { font-weight: 700; }
.chipline.st-uj { outline: 2px dashed rgba(24,19,15,.55); outline-offset: -2px; }
.chipline.st-atadva { opacity: .55; }
.cday .cnt { background: var(--dark); }

.cal-head { flex-wrap: wrap; }
.cal-mode { margin-left: auto; }
.cal-mode + .today-btn { margin-left: 8px; }
#view-naptar.wide-cal .cal-layout { grid-template-columns: minmax(0, 1fr); }
#view-naptar.wide-cal .day-panel { display: none; }

/* Heti / napi idősávos nézet */
.cal-wrap { overflow-x: auto; }
.tg { min-width: 760px; --hw: 56px; }
.tg-head { display: grid; grid-template-columns: var(--hw) repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.tg-ch { padding: 10px 8px; text-align: center; border-left: 1px solid var(--line-soft); display: grid; gap: 1px; }
.tg-ch span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.tg-ch b { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; }
.tg-ch small { font-size: 10.5px; color: var(--muted-3); min-height: 14px; }
.tg-ch.today b { color: var(--gold-dark); }
.tg-ch[style] { border-left: 2px solid #fff; }
.tg-ch[style] b { font-size: 19px; }
.tg-ch[style] small { color: inherit; opacity: .85; }
.tg-body { position: relative; display: grid; grid-template-columns: var(--hw) repeat(var(--cols), minmax(0, 1fr)); }
.tg-hours { position: relative; }
.tg-hours span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 10.5px; color: var(--muted-3); }
.tg-hours span:first-child { transform: none; }
.tg-col { position: relative; border-left: 1px solid var(--line-soft); }
.tg-col.today { background: #FDF9F2; }
.tg-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-soft); }
.tg-now { position: absolute; left: 0; right: 0; border-top: 2px solid #C0392B; z-index: 1; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: #C0392B; }
.tg-ev { position: absolute; height: 46px; border: 0; border-radius: 6px; background: var(--sc); color: var(--st); padding: 4px 7px; text-align: left; font-size: 11.5px; line-height: 1.25; overflow: hidden; box-shadow: 0 2px 6px -2px rgba(0,0,0,.3); z-index: 1; transition: transform .15s, box-shadow .15s; }
.tg-ev:hover { transform: scale(1.03); box-shadow: 0 8px 18px -6px rgba(0,0,0,.45); z-index: 3; }
.tg-ev b { font-weight: 700; }
.tg-ev small { display: block; font-size: 10.5px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-ev.st-uj { outline: 2px dashed rgba(24,19,15,.6); outline-offset: -2px; }
.tg-ev.st-atadva { opacity: .5; }

/* Szűrő chipek üzletszínnel */
.sf.on:not([data-store="all"]) i { box-shadow: 0 0 0 2px #fff; }

/* Tortaraktár */
.cs-total { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); padding: 12px 18px; }
.cs-total .n { font-family: var(--serif); font-size: 44px; line-height: 1; }
.cs-total .l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; line-height: 1.4; }
.cs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.cs-add h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.cs-add-grid { display: grid; grid-template-columns: 2fr 1.2fr 90px; gap: 0 12px; }
.cs-add-grid .cs-note, .cs-add-grid #cs-name-f { grid-column: 1 / -1; }
.cs-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 12px; flex-wrap: wrap; }
.cs-toolbar .a-search { flex: 1; max-width: 420px; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.cs-card { background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr auto; gap: 10px 14px; align-items: center; padding: 12px; }
.cs-card.zero { opacity: .55; }
.cs-card img { width: 64px; height: 64px; object-fit: cover; }
.cs-card img.logo { object-fit: contain; padding: 8px; background: var(--cream-2); }
.cs-m b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.15; }
.cs-m small { font-size: 11px; color: var(--muted-2); }
.cs-qty { display: flex; align-items: center; border: 1px solid var(--line); }
.cs-qty button { width: 34px; height: 40px; border: 0; background: var(--cream); font-size: 18px; color: var(--muted); }
.cs-qty button:hover { background: var(--dark); color: #fff; }
.cs-qty span { min-width: 42px; text-align: center; font-family: var(--serif); font-size: 26px; }
.cs-acts { grid-column: 1 / -1; display: flex; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 10px; }
.cs-acts .del { margin-left: auto; }
.cs-moves { position: sticky; top: 108px; max-height: calc(100vh - 130px); overflow-y: auto; }
.mv-list { list-style: none; margin: 0; padding: 0; }
.mv-list li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mv-d { font-family: var(--serif); font-size: 20px; text-align: center; border-radius: 6px; padding: 4px 0; background: var(--cream-2); }
.mv-bevet .mv-d { background: #E3EDE3; color: #2F5B35; }
.mv-kivet .mv-d { background: #F7E0D8; color: #8B3426; }
.mv-m b { display: block; font-size: 13px; font-weight: 600; }
.mv-m small { display: block; font-size: 11.5px; color: var(--muted-2); }
.mv-n { font-style: italic; color: var(--muted) !important; }

/* Előzmények */
.h-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.h-filters .select { width: auto; }
.h-filters .a-search { flex: 1; min-width: 220px; }
.h-day { margin-bottom: 26px; }
.h-day h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 8px; }
.h-day h3 small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-left: 8px; }
.h-table { background: #fff; border: 1px solid var(--line); }
.h-row { display: grid; grid-template-columns: 64px 220px 1fr; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--line-soft); align-items: start; }
.h-row:first-child { border-top: 0; }
.h-time { font-family: var(--serif); font-size: 19px; }
.h-who { display: grid; gap: 3px; justify-items: start; }
.h-who small { font-size: 11.5px; color: var(--muted-2); }
.h-what b { font-size: 13.5px; font-weight: 600; }
.h-what small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.h-what .h-reason { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--cacao); }
.h-torles { background: #FDF6F3; }

@media (max-width: 1100px) {
  .cs-layout { grid-template-columns: minmax(0, 1fr); }
  .cs-moves { position: static; max-height: none; }
}
@media (max-width: 900px) {
  .cal-mode { margin-left: 0; order: 5; width: 100%; display: flex; }
  .cal-mode button { flex: 1; }
  .legend { padding: 12px 6px 2px; gap: 8px 14px; }
  .legend .lg-title { width: 100%; }
  .legend .lg { font-size: 12px; }
  .cday .chipline { display: none; }
  .tg { min-width: 640px; --hw: 44px; }
  .tg-ev { font-size: 10.5px; padding: 3px 5px; }
  .cs-add-grid { grid-template-columns: 1fr 1fr; }
  .cs-add-grid label:first-child { grid-column: 1 / -1; }
  .cs-grid { grid-template-columns: 1fr; }
  .h-row { grid-template-columns: 54px 1fr; }
  .h-what { grid-column: 1 / -1; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
}

/* Fejléc: a fülek külön sorban (sok fül fér el, nem lógnak a logóra) */
.a-head-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 0; row-gap: 10px; }
.a-brand h1 { font-size: 28px; }
.a-tabs { order: 3; flex: 1 1 100%; background: none; border-radius: 0; padding: 0; gap: 2px; border-top: 1px solid rgba(24,19,15,.12); }
.a-tab { border-radius: 0; padding: 13px 16px 12px; border-bottom: 2px solid transparent; }
.a-tab.active { background: none; color: var(--dark); border-bottom-color: var(--dark); }
.a-tab:hover { background: rgba(250,247,242,.35); }
.day-panel, .cs-moves { top: 150px; max-height: calc(100vh - 170px); }
.tg-ch[style] b, .tg-ch.today[style] b { color: inherit; font-family: var(--serif); }
@media (max-width: 900px) {
  .a-head-inner { padding: 10px 12px 0; }
  .a-tab { padding: 11px 12px 10px; font-size: 10px; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-width: 0; }
  .lgrid { grid-template-columns: minmax(0, 1fr); }
  .ocard { min-width: 0; }
  .ohead { flex-wrap: wrap; }
  .zr-input { min-width: 0; }
  .zr-input .num { min-width: 0; }
  .zrow.pct input[type="range"] { min-width: 0; }
}

/* ---------- Visszaigazolás / elutasítás, árak ---------- */
.pill-st.elutasitva { background: #F3D9D9; color: #8E2B2B; }
.ocard.st-elutasitva { opacity: .62; }
.chipline.st-elutasitva { text-decoration: line-through; opacity: .5; }
.confirm-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #FFF6E5; border-bottom: 1px solid #F0DDB5; }
.confirm-banner > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #6B4E12; }
.confirm-banner small { font-size: 11.5px; color: #8C7440; }
.cb-act { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm { min-height: 44px; padding: 10px 16px; font-size: 11px; }
.btn.ok, .qbtn.ok, .sbtn.ok { background: #3F6B45; border-color: #3F6B45; color: #fff; }
.btn.ok:hover, .qbtn.ok:hover { background: #2F5535; }
.btn.rej, .qbtn.rej, .sbtn.rej { color: #8E2B2B; border-color: #E2B8B8; }
.sbtn.rej.on { background: #8E2B2B; color: #fff; border-color: #8E2B2B; }
.req-banner.rej { background: #F7E4E4; color: #7A2626; }
.oprice { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 0 2px; border-top: 1px dashed var(--line); margin-top: 6px; }
.oprice span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.oprice b { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.oprice small { font-size: 11.5px; color: var(--muted-2); }
.oitem .sz .ip { font-weight: 700; color: var(--dark); }
.oitem .sz small { font-size: 10.5px; color: var(--muted-2); }
.oadmin { grid-template-columns: 1fr 130px auto; }
.warn-t { color: #A0522D; }

/* ---------- Online rendelhető torták: csempék + szerkesztő ---------- */
.ct { padding: 0; cursor: default; align-items: stretch; gap: 0; }
.ct-open { flex: 1; display: flex; align-items: center; gap: 12px; padding: 8px; border: 0; background: none; text-align: left; min-width: 0; cursor: pointer; }
.ct-open:hover { background: #FBF7F0; }
.ct-open > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ct-open b { font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.15; }
.ct-open small { font-size: 11.5px; color: var(--muted-2); line-height: 1.35; }
.ct-open em { font-style: normal; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--gold); white-space: nowrap; }
.ct-sw { display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--line-soft); cursor: pointer; }
.ct-sw input, .ce-sw input, .ce-avail input { display: none; }
.ct-sw input:checked + .sw, .ce-sw input:checked + .sw, .ce-avail input:checked + .sw { background: #4F7A55; }
.ct-sw input:checked + .sw::after, .ce-sw input:checked + .sw::after, .ce-avail input:checked + .sw::after { transform: translateX(16px); }
.ce-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 40px; flex-wrap: wrap; }
.ce-head img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line-soft); }
.ce-head > div { flex: 1; min-width: 160px; }
.ce-head .sheet-title { margin: 0; }
.ce-avail { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; cursor: pointer; padding: 10px 14px; border: 1px solid var(--line); background: #fff; }
.label-sm { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 0 0 8px; }
.label-sm small { letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted-2); font-size: 12px; }
.ce-row { display: grid; grid-template-columns: 54px repeat(3, minmax(0, 1fr)) 44px; gap: 10px; align-items: end; padding: 12px; background: #fff; border: 1px solid var(--line-soft); margin-bottom: 8px; transition: opacity .2s; }
.ce-row .field { margin: 0; }
.ce-row.off { opacity: .55; background: #F6F2EC; }
.ce-sw { display: flex; align-items: center; justify-content: center; height: 46px; cursor: pointer; }
.ce-row .rm { height: 46px; border: 1px solid var(--line); background: none; color: var(--danger); font-size: 18px; }
.ce-shapes { display: flex; gap: 10px; flex-wrap: wrap; }
.ce-shape { flex: 1; min-width: 140px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; min-height: 50px; }
.ce-shape input { width: 20px; height: 20px; accent-color: #4F7A55; }
.shape-ico { width: 18px; height: 18px; border: 1.6px solid currentColor; display: inline-block; }
.shape-ico.kerek { border-radius: 50%; }
.shape-ico.szogletes { border-radius: 3px; }
.ce-note { font-size: 12px; margin: 12px 0 0; }
.ce-preview { margin-top: 14px; padding: 12px 14px; background: #FBF7F0; border: 1px dashed var(--line); font-size: 12.5px; line-height: 2; }
.ce-chip { display: inline-block; padding: 2px 10px; margin: 0 4px 0 0; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12px; line-height: 1.6; }
.ce-chip.sh { background: var(--dark); color: #fff; border-color: var(--dark); }

/* Telefonos rendelés tétel */
.nm-item { grid-template-columns: 2fr 1.6fr 1fr 70px 36px; }
.nm-item .f-pers { grid-column: 1 / 3; }
.nm-marz { display: flex; align-items: center; gap: 8px; font-size: 13px; height: 46px; grid-column: 3 / 4; }
.nm-marz input { width: 18px; height: 18px; }
.nm-price { grid-column: 4 / 6; align-self: center; text-align: right; font-family: var(--serif); font-size: 18px; }
@media (max-width: 760px) {
  .ce-row { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .ce-row label:nth-of-type(4) { grid-column: 2 / 4; }
  .oadmin { grid-template-columns: 1fr 1fr; }
  .oadmin .input:first-child { grid-column: 1 / -1; }
  .nm-item { grid-template-columns: 1fr 1fr; }
  .nm-item .f-pers, .nm-item .f-cake { grid-column: 1 / -1; }
  .nm-marz { grid-column: 1 / 2; }
  .nm-price { grid-column: 2 / 3; }
  .confirm-banner .cb-act { width: 100%; }
  .confirm-banner .btn { flex: 1; }
}
.nm-item .rm { grid-column: 5; grid-row: 1; }
@media (max-width: 760px) { .nm-item .rm { grid-column: auto; grid-row: auto; } }
.cake-toggles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ct-open em { display: none; }
.ct-open::after { content: "›"; font-size: 22px; color: var(--gold); padding: 0 4px; }
.ce-shape input { display: none; }
.ce-shape:has(input:checked) { background: var(--dark); color: #fff; border-color: var(--dark); }
.ce-shape::after { content: "nem rendelhető"; margin-left: auto; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.ce-shape:has(input:checked)::after { content: "✓ rendelhető"; color: #CFE3D1; }

/* ---------- Napi zárás: eladva / maradt ---------- */
.zrow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 150px; }
.zr-src { color: var(--muted-2); }
.zr-pair { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.zr-f { display: flex; flex-direction: column; gap: 4px; }
.zr-f > span:first-child { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); }
.zr-pair .unit { font-size: 12px; color: var(--muted-2); padding-bottom: 14px; }
.zr-pair .zr-input .num { width: 76px; }

/* ---------- Szállítólevél (főnök) ---------- */
.dl-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.dl-chip { text-align: left; border: 1px solid var(--line); border-left: 5px solid var(--c); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-height: 76px; transition: all .2s; }
.dl-chip b { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.dl-chip small { font-size: 11.5px; color: var(--muted); }
.dl-chip.on { background: #FBF5EA; box-shadow: inset 0 0 0 2px var(--c); }
.dl-form { margin-top: 12px; }
.dl-top { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.dl-top .field { margin: 0; }
.dl-top .grow { flex: 1; min-width: 220px; }
.dl-editing { font-size: 13px; padding: 10px 14px; background: #FFF6E5; border: 1px solid #F0DDB5; }
.dl-table { background: #fff; border: 1px solid var(--line); }
.dl-h, .dl-r { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, .8fr)) minmax(130px, 1fr); gap: 12px; align-items: center; padding: 10px 16px; }
.dl-h { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted-2); background: #FBF7F0; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.dl-h span:nth-child(n+2), .dl-v { text-align: center; }
.dl-r { border-top: 1px solid var(--line-soft); }
.dl-cat { padding: 10px 16px 4px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); border-top: 1px solid var(--line); }
.dl-n b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.2; }
.dl-n small { font-size: 11px; color: var(--muted-2); }
.dl-v { font-size: 14px; color: var(--muted); }
.dl-v.sold { font-weight: 700; color: var(--dark); }
.dl-in { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.dl-in .num { width: 90px; text-align: center; font-size: 17px; font-weight: 600; padding: 10px 6px; }
.dl-in small { font-size: 11px; color: var(--muted-2); min-width: 34px; }
.dl-r:has([data-send]:not(:placeholder-shown)) { background: #F3F8F1; }
.dl-tools { font-size: 12px; color: var(--muted-2); }
.r-sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--gold); margin: 28px 0 10px; }
.dl-list { background: #fff; border: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.dl-row:first-child { border-top: 0; }
.dl-m b { font-size: 14px; }
.dl-m small, .dl-st small { display: block; font-size: 11.5px; color: var(--muted-2); }
.dl-st { font-size: 12px; font-weight: 600; color: #8C6F3D; }
.dl-row.atveve .dl-st { color: #3F6B45; }
.dl-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dl-act .sbtn { min-height: 40px; }
.dl-pend { margin-bottom: 8px; }
.dl-mini > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0 9px 12px; border-bottom: 1px dashed var(--line-soft); border-left: 4px solid var(--c); margin-bottom: 4px; }
.dl-mini b { font-size: 13px; }
.dl-mini small { display: block; font-size: 11.5px; color: var(--muted-2); font-weight: 400; }
.dl-mini b.ok { color: #3F6B45; }
@media (max-width: 1024px) {
  .dl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .zrow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .zr-pair { gap: 10px; }
  .dl-h { display: none; }
  .dl-r { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; padding: 12px; }
  .dl-n { grid-column: 1 / -1; }
  .dl-v::before { display: block; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
  .dl-v:nth-of-type(2)::before { content: "Nyitó"; }
  .dl-v:nth-of-type(3)::before { content: "Eladva"; }
  .dl-v:nth-of-type(4)::before { content: "Maradt"; }
  .dl-in { grid-column: 1 / -1; justify-content: flex-start; }
  .dl-in::before { content: "Küldendő:"; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-right: 6px; }
  .dl-row { grid-template-columns: 1fr; }
  .dl-act { justify-content: flex-start; }
}
.oadmin { grid-template-columns: minmax(0, 1fr) auto; }
.oadmin [data-field="internalNote"] { grid-column: 1 / -1; }
#dlv-form .z-foot { padding: 10px 14px; }
#dlv-form .z-foot .btn { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
@media (max-width: 760px) { .oadmin { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .sheet-foot { flex-wrap: wrap; }
  .sheet-foot .btn { flex: 1 1 140px; min-width: 0; padding-left: 10px; padding-right: 10px; letter-spacing: .12em; white-space: normal; }
}

/* ---------- Érintőképernyő (üzleti tabletek): nagyobb, könnyen nyomható elemek ---------- */
@media (pointer: coarse) {
  .sbtn, .qbtn { min-height: 44px; padding: 10px 14px; font-size: 10.5px; }
  .qbtn.ghost { min-width: 44px; }
  .a-tab { min-height: 48px; }
  .seg button { min-height: 44px; }
  .input, .select, .textarea { font-size: 16px; }
  .link-btn { min-height: 40px; display: inline-flex; align-items: center; }
  .step { width: 48px; height: 48px; }
  .zr-pair .zr-input .num, .dl-in .num { min-height: 48px; }
  .ct-sw { padding: 0 16px; }
}
/* Tablet álló (768–1024) */
@media (min-width: 761px) and (max-width: 1024px) {
  .zrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .zrow .zr-calc { grid-column: 1 / -1; }
  .dl-h, .dl-r { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, .7fr)) minmax(150px, 1fr); }
}
