/* GBT administrace a OZ systém – vlastní vzhled v barvách corporate identity (logo GBT.): zelená #1f8f3f, tmavě zelená #0d3d1d, oranžová #f07d00 */
:root { --ink: #1f2933; --muted: #6b7785; --line: #e1e6eb; --bg: #f4f6f8; --side: #0d3d1d; --accent: #1f8f3f; --accent-dark: #166e30; --accent-soft: #e8f5ec; --accent-ring: #a6d9b5; --warn: #f07d00; --danger: #c0392b; --ok: #1f8f3f;
  /* plochy a políčka (světlé provedení; tmavé přepisuje html[data-theme=dark] na konci souboru) */
  --panel: #fff; --panel-2: #f1f4f6; --panel-hover: #f9fbfc; --row-hover: #eaf6f6; --panel-soft: #f7f9fb; --input-bg: #fff; --input-border: #cbd3da; --danger-soft: #fdecea; --danger-line: #e3b4ae; --warn-soft: #fff8e6; --warn-line: #f3d99a; --badge-bg: #e8edf1; --panel-a92: rgba(255,255,255,.92); --panel-a90: rgba(255,255,255,.9); --panel-a70: rgba(255,255,255,.7); --panel-a97: rgba(255,255,255,.97); }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--bg); display: flex; min-height: 100vh; }
a { color: var(--accent-dark); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.sidebar { width: 230px; background: var(--side); color: #d6e6da; flex-shrink: 0; padding-bottom: 30px; }
.brandrow { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 6px; gap: 10px; }
.brand { display: block; font-size: 24px; font-family: Figtree, system-ui, sans-serif; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
.brand .sq { display: inline-block; width: .22em; height: .22em; background: var(--warn); margin-left: .04em; }
.brand-home { font-size: 13px; color: #d6e6da; padding: 5px 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); white-space: nowrap; }
.brand-home:hover { background: rgba(255,255,255,.08); text-decoration: none; } .brand-home.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.brand span { display: block; font-size: 12px; font-family: system-ui, 'Segoe UI', Roboto, sans-serif; font-weight: 400; letter-spacing: 0; color: #9fc5aa; margin-top: 5px; }
.brand:hover { text-decoration: none; }
.sidebar nav p { margin: 18px 20px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #7fa88a; }
.sidebar nav a { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; color: #d6e6da; border-left: 3px solid transparent; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.sidebar nav a.is-active { background: rgba(255,255,255,.1); border-left-color: var(--warn); color: #fff; }
.sidebar nav em { background: var(--warn); color: #fff; font-style: normal; font-size: 12px; border-radius: 10px; padding: 0 8px; }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 26px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar h1 { font-size: 21px; }
.topbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.user { font-weight: 600; margin-left: 8px; }
.content { padding: 22px 26px 60px; }
.flash { margin: 16px 26px 0; padding: 10px 14px; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 4px 4px 0; }
.flash--error, .error { background: var(--danger-soft); border-left: 4px solid var(--danger); padding: 10px 14px; border-radius: 0 4px 4px 0; margin-bottom: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; margin-bottom: 20px; }
.panel h2 { font-size: 16px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.cards.us-stats { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .cards.us-stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stat strong { display: block; font-size: 28px; } .stat span { color: var(--muted); font-size: 13px; }
.stat--hot { border-color: var(--warn); } .stat--hot strong { color: var(--warn); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .cols--wide { grid-template-columns: 2fr 1fr; }
table.data { width: 100%; border-collapse: collapse; background: var(--panel); }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: var(--panel-hover); }
.r { text-align: right !important; } .c { text-align: center !important; } .muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.thumb { width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 10px; background: var(--badge-bg); color: var(--ink); white-space: nowrap; }
.badge--New { background: #fdebd8; color: #9a4f0c; } .badge--Confirmed { background: #e8f5ec; color: #166e30; } .badge--Processing { background: #e8e3f7; color: #4b3a94; }
.badge--Shipped { background: #dcecf9; color: #1d5b8f; } .badge--Done { background: #dff2e5; color: #226b43; } .badge--Cancelled { background: #f6dedb; color: #8f2a1f; }
.badge--oz { background: var(--side); color: #fff; } .badge--off { background: #f0f0f0; color: #999; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
input, select, textarea, button { font: inherit; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=number], input[type=search], select, textarea { padding: 7px 10px; border: 1px solid var(--input-border); border-radius: 5px; background: var(--input-bg); color: var(--ink); max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-ring); border-color: var(--accent); }
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 5px; padding: 8px 16px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn--light { background: var(--panel); color: var(--ink); border: 1px solid var(--input-border); font-weight: 500; } .btn--light:hover { background: var(--panel-2); }
.btn--danger { background: var(--panel); color: var(--danger); border: 1px solid var(--danger-line); } .btn--danger:hover { background: var(--danger-soft); }
.btn--small { padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.head-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 16px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.form label.w2 { grid-column: span 2; } .form label.w4, .form .w4 { grid-column: 1 / -1; }
.form label.check, label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.form textarea { min-height: 90px; font-family: inherit; } .form textarea.code { min-height: 260px; font-family: Consolas, monospace; font-size: 13px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.tree { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 5px; padding: 8px 12px; background: var(--panel); }
.tree label { display: flex; gap: 6px; align-items: center; color: var(--ink); font-size: 14px; padding: 1px 0; }
.imgs { display: flex; gap: 12px; flex-wrap: wrap; }
.imgs figure { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px; text-align: center; background: var(--panel); }
.imgs figure.is-main { border-color: var(--accent); }
.imgs img { width: 110px; height: 110px; object-fit: contain; display: block; margin-bottom: 6px; }
.pager { display: flex; gap: 5px; margin-top: 16px; flex-wrap: wrap; }
.pager a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--ink); }
.pager a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 5px 12px; margin: 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; } .timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); margin-left: 4px; }
.indent-1 { padding-left: 26px !important; } .indent-2 { padding-left: 52px !important; } .indent-3 { padding-left: 78px !important; }
.login { margin: auto; width: 360px; max-width: calc(100% - 30px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 30px; }
.login h1 { font-size: 22px; margin-bottom: 4px; } .login label { display: block; margin-top: 14px; font-size: 13px; color: var(--muted); }
.login input { width: 100%; margin-top: 4px; padding: 10px; } .login .btn { width: 100%; margin-top: 20px; padding: 11px; }
.hint { margin-top: 18px; font-size: 12px; color: var(--muted); background: var(--bg); padding: 10px; border-radius: 6px; }

/* OZ systém */
body.oz { display: block; }
.oz-top { background: var(--side); color: #fff; display: flex; align-items: center; gap: 18px; padding: 10px 22px; flex-wrap: wrap; }
.oz-top .brand { padding: 0; font-size: 21px; } .oz-top .brand span { display: inline; margin-left: 10px; margin-top: 0; }
.oz-top nav { display: flex; gap: 4px; flex: 1; } .oz-top nav a { color: #d6e6da; padding: 7px 14px; border-radius: 5px; }
.oz-top nav a.is-active, .oz-top nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.oz-customer { background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.oz-customer strong { font-size: 17px; }
.oz-tabs { display: flex; gap: 4px; margin-left: auto; } .oz-tabs a { padding: 6px 14px; border-radius: 5px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); }
.oz-tabs a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.oz-body { padding: 20px 22px 60px; max-width: 1500px; margin: 0 auto; }
.oz-grid { display: grid; grid-template-columns: 1fr 420px; gap: 20px; align-items: start; }
.oz-cart { position: sticky; top: 12px; }
.qty { width: 70px; text-align: center; }
.bigsearch { display: flex; gap: 8px; margin-bottom: 14px; } .bigsearch input { flex: 1; padding: 11px 14px; font-size: 17px; }
.total-line { display: flex; justify-content: space-between; padding: 4px 0; } .total-line--big { font-size: 19px; font-weight: 700; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 8px; }
.opt { display: flex; gap: 8px; align-items: flex-start; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 5px; cursor: pointer; font-size: 14px; }
.opt[hidden] { display: none; } .opt span { flex: 1; } .opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 1000px) { body { flex-direction: column; } .sidebar { width: 100%; } .cards { grid-template-columns: 1fr 1fr; } .cols, .cols--wide, .oz-grid { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr 1fr; } .oz-cart { position: static; } }
@media print { .sidebar, .topbar, .noprint { display: none !important; } body { background: #fff; color: #000; } .content { padding: 0; } }

.hintbox { font-size: 13px; background: var(--bg); border-radius: 5px; padding: 6px 10px; } .hintbox summary { cursor: pointer; color: var(--accent-dark); } .hintbox p { margin: 6px 0; }
.inline-form { display: flex; gap: 6px; align-items: center; }

.ares-btn { background: none; border: 0; padding: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; font-size: 12px; text-align: left; }
.ares-info { color: var(--muted); font-size: 12px; }

/* záložky v nastavení prodejny */
.subtabs { display: flex; gap: 4px; align-items: flex-end; border-bottom: 1px solid var(--line); margin: -6px 0 18px; flex-wrap: wrap; }
.subtabs a { padding: 8px 16px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; color: var(--muted); margin-bottom: -1px; }
.subtabs a.is-active { background: var(--panel); border-color: var(--line); color: var(--ink); font-weight: 600; }
.subtabs a:hover { text-decoration: none; color: var(--ink); }
.subtabs .subtabs__ext { margin-left: auto; font-size: 13px; }
.visually-hidden { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* editor titulní strany */
.hblocks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hblock { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; }
.hblock.is-off { border-left-color: var(--input-border); background: var(--panel-soft); }
.hblock.is-off .hblock__name, .hblock.is-off .hblock__icon { opacity: .55; }
.hblock.is-dragging { opacity: .45; outline: 2px dashed var(--accent); }
.hblock__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
.hblock__handle, .hblock__handle-demo { display: inline-block; width: 12px; height: 18px; cursor: grab; user-select: none; vertical-align: middle;
  background: radial-gradient(circle, #9aa6b1 1.6px, transparent 1.8px) 0 0 / 6px 6px; }
.hblock__handle:hover { background-image: radial-gradient(circle, var(--accent) 1.6px, transparent 1.8px); }
.hblock__handle-demo { cursor: default; height: 15px; margin: 0 2px; }
.hblock__num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.hblock__icon { font-size: 18px; width: 24px; text-align: center; }
.hblock__name { flex: 1; min-width: 200px; }
.hblock__on { font-size: 13px !important; margin: 0 6px 0 0; }
.hblock__body { border-top: 1px solid var(--line); padding: 0 14px 14px; }
.hblock__body > summary { cursor: pointer; padding: 9px 0; color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.hblock__body[open] > summary { margin-bottom: 2px; }
.hblock__hint { margin: 0 0 12px; }
.radios { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.radios label.check { margin: 0; }
.pick-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pick-banner { position: relative; display: flex !important; flex-direction: column; gap: 5px !important; border: 1px solid var(--line); border-radius: 6px; padding: 6px; cursor: pointer; color: var(--ink) !important; font-size: 12px !important; }
.pick-banner:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-ring); }
.pick-banner.is-off { opacity: .6; }
.pick-banner input { position: absolute; top: 10px; left: 10px; }
.pick-banner img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.picked__list { margin: 0; padding-left: 22px; font-size: 13px; max-height: 190px; overflow: auto; }
.picked__list li { padding: 2px 0; }
.picked__list img { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.picked__missing { color: var(--danger); }
.picked__list li { display: flex; align-items: center; gap: 4px; padding: 3px 0; border-bottom: 1px solid var(--line); }
.picked__list li > a { flex: 1 1 auto; min-width: 0; }
.picked__list li.picked__missing { flex-wrap: wrap; }
.picked__tools { margin-left: auto; display: flex; gap: 3px; flex-shrink: 0; }
.picked__tools .btn--small { padding: 1px 7px; min-width: 26px; }
.picker__search { position: relative; margin-bottom: 10px; }
.picker__search input { width: 100%; }
.picker__results { position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); max-height: 380px; overflow: auto; }
.picker__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; font: inherit; font-size: 13px; }
.picker__item:hover:not([disabled]) { background: var(--accent-soft); }
.picker__item[disabled] { cursor: default; opacity: .6; }
.picker__item img, .picker__noimg { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.picker__item span { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.picker__item small { color: var(--muted); }
.picker__item b { color: var(--accent-dark); white-space: nowrap; font-size: 12.5px; }
.picker__none { margin: 0; padding: 10px; color: var(--muted); font-size: 13px; }
.picker__cols { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.picker__cols .picked__list { max-height: 320px; }
@media (max-width: 900px) { .picker__cols { grid-template-columns: 1fr; } }
.hblocks__bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.hblocks__add { display: flex; gap: 6px; align-items: center; margin-left: auto; }

/* ceny konkurence */
.cmp { font-weight: 600; font-size: 13px; }
.cmp small { font-weight: 400; }
.cmp--dearer { color: var(--danger); }
.cmp--cheaper { color: var(--ok); }
.cmp-change { font-size: 11px; margin-left: 3px; }
.cmp-change--down { color: var(--danger); } .cmp-change--up { color: var(--ok); }
.cmp-table td { vertical-align: top; }
.cmp-table .thumb { width: 36px; height: 36px; vertical-align: middle; margin-right: 6px; }
.cmp-name { width: 100%; max-width: 220px; font-weight: 600; }
.cmp-box { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.cmp-box ul { margin: 6px 0; padding-left: 18px; }
.cmp-box li { padding: 2px 0; }
.panel--alert { border-left: 4px solid var(--danger); }
form.inline { display: inline; }

/* navigace sekcí pod nadpisem (zůstává nahoře při rolování) – detail zboží ručně, ostatní stránky se 3+ panely automaticky (admin.js) */
.secnav { position: sticky; top: 0; z-index: 30; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin: -22px -26px 18px; padding: 8px 26px;
  background: var(--panel-a97); border-bottom: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0, 0, 0, .04); }
.secnav a { padding: 5px 12px; border-radius: 16px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.secnav a:hover { background: var(--bg); text-decoration: none; }
.secnav a.is-active { background: var(--accent); color: #fff; }
.secnav__save { margin-left: auto; }
.panel[id] { scroll-margin-top: 64px; }
.panel.is-target { animation: secflash 1.2s ease; }
@keyframes secflash { 0% { box-shadow: 0 0 0 3px var(--accent-ring); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* parametry zboží: název z roletky, hodnota volně */
.prows { display: flex; flex-direction: column; gap: 6px; }
.prow { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.prow__btns { display: flex; gap: 3px; }
.param-rename { display: flex; gap: 6px; align-items: center; }
.param-rename input { min-width: 260px; }
.param-rename .param-sk { min-width: 200px; background: var(--panel-soft); }

/* překladač CZ → SK */
.tr-msg { font-size: 13px; color: var(--ok); margin-left: 8px; }
.tr-msg--error { color: var(--danger); }
.tr-row { display: flex; gap: 6px; margin-top: 4px; } .tr-row input { flex: 1; }
.is-translated { animation: trflash 1.6s ease; }
@keyframes trflash { 0% { box-shadow: 0 0 0 3px #b9e4c9; } 100% { box-shadow: 0 0 0 3px transparent; } }
.param-rename .param-sk.is-changed { background: var(--accent-soft); border-color: var(--accent-ring); }

/* filtr: parametry v seznamu a u kategorie */
.param-rename .param-unit { width: 90px; min-width: 0; }
.param-rename select { max-width: 240px; }
.filter-pick { margin: 8px 0 0; padding-left: 26px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.filter-pick li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 3px 8px 3px 0; border-bottom: 1px solid var(--line); }
.filter-pick li label.check { margin: 0; font-size: 14px; }
.filter-pick__move { display: flex; gap: 3px; }

/* GDPR */
.danger-zone { margin-top: 14px; border: 1px solid var(--danger-line); border-radius: 6px; padding: 8px 12px; background: var(--danger-soft); }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--danger); }
.danger-zone input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; margin-right: 6px; }
.gdpr-tabs { margin-bottom: 14px; }
.gdpr-text { white-space: pre-wrap; background: var(--bg); border-radius: 6px; padding: 10px 12px; margin: 0; }
.deadline--late { color: var(--danger); font-weight: 700; }

/* platby */
.row--alert td { background: var(--warn-soft); }
.pay-resolve { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.pay-resolve input { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; }

/* hledání v administraci (Přehled) */
.asearch-panel { padding: 12px 20px; }
.asearch { position: relative; display: flex; gap: 8px; }
.asearch input { flex: 1; font-size: 15px; padding: 9px 12px; }
.asearch--orders { margin-bottom: 12px; } .asearch--orders input[type=search] { border-color: var(--accent); }
.asearch__results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(0,0,0,.14); max-height: 70vh; overflow: auto; }
.asearch__group { padding: 8px 12px 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.asearch__item { display: flex; flex-direction: column; padding: 7px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.asearch__item:hover { background: var(--accent-soft); text-decoration: none; } .asearch__item small { color: var(--muted); }
.asearch__list { margin: 0; padding-left: 18px; } .asearch__list li { padding: 3px 0; }

/* ---------- UX úpravy (23. 9. 2026) ---------- */
.cards--5 { grid-template-columns: repeat(5, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); }
a.stat { color: var(--ink); } a.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat--warn { border-color: var(--warn); } .stat--warn strong { color: var(--warn); }
.stat--soft { background: var(--bg); border-color: transparent; } .stat--soft strong { font-size: 22px; }
.tasks { border-left: 4px solid var(--warn); } .tasks--done { border-left-color: var(--ok, #2e9e5b); }
details.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.fold > summary::before { content: "▸"; color: var(--muted); font-size: 13px; } details.fold[open] > summary::before { content: "▾"; }
details.fold > summary h2 { margin: 0; display: inline; } details.fold:not([open]) { padding-bottom: 12px; }
.filters .filters__submit { display: none; }
.filters select.is-set, .filters input.is-set { border-color: var(--accent); background: var(--accent-soft); }
table.data tr.row-link td { cursor: pointer; } table.data tr.row-link:hover td { background: var(--row-hover); }
.content table.data thead th { position: sticky; top: var(--stick-top, 0px); z-index: 2; background: var(--panel); box-shadow: 0 1px 0 var(--line); }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; } .tablewrap table.data thead th { position: static; }
nav.pager--top { margin: 0 0 12px; }
details.help { margin: 0 0 10px; } details.help > summary { cursor: pointer; color: var(--accent-dark); font-size: 13px; list-style: none; }
details.help > summary::-webkit-details-marker { display: none; } details.help .help__text { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.savebar { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 8px; align-items: center; background: var(--panel); border-top: 1px solid var(--line); padding: 10px 16px; margin: 16px -20px -18px; box-shadow: 0 -4px 14px rgba(0,0,0,.06); border-radius: 0 0 8px 8px; }
form > .savebar { margin-left: 0; margin-right: 0; border-radius: 8px; border: 1px solid var(--line); }
.savebar__state { margin-left: auto; color: var(--warn); font-size: 13px; } .savebar__links { font-size: 13px; }
.flash { transition: opacity .5s; } .flash.is-hiding { opacity: 0; }
dialog.cdialog { border: 0; border-radius: 10px; padding: 0; max-width: 420px; background: var(--panel); color: var(--ink); box-shadow: 0 16px 48px rgba(0,0,0,.25); }
dialog.cdialog::backdrop { background: rgba(22,50,74,.45); }
dialog.cdialog form { padding: 18px 20px; } dialog.cdialog h4 { margin: 0 0 6px; font-size: 16px; } dialog.cdialog p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.cdialog__actions { display: flex; gap: 8px; justify-content: flex-end; }
.sidebar nav p.menu-group { cursor: pointer; user-select: none; display: flex; justify-content: space-between; align-items: center; padding-right: 20px; }
.sidebar nav p.menu-group::after { content: "▸"; font-size: 11px; opacity: .7; } .sidebar nav p.menu-group.is-open::after { content: "▾"; }
.sidebar nav p.menu-group:hover { color: #fff; }
.savedf { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: -6px 0 12px; }
.chipf { display: inline-block; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--input-border); background: var(--panel); font-size: 12.5px; color: var(--ink); }
.chipf.is-on { background: var(--accent); border-color: var(--accent); color: #fff; } .chipf:hover { text-decoration: none; border-color: var(--accent); }
.chipf b { font-weight: 400; opacity: .6; margin-left: 4px; } .chipf--add { color: var(--accent-dark); border-style: dashed; }
.colpick { position: relative; margin-left: auto; font-size: 12.5px; } .colpick summary { cursor: pointer; list-style: none; color: var(--muted); padding: 3px 8px; }
.colpick[open] > div { position: absolute; right: 0; top: 100%; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.col-hidden { display: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 12px; }
.chips .chipf b { font-weight: 600; opacity: .8; margin-left: 4px; } .chips .chipf.is-on b { opacity: 1; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.dot--ok { background: var(--ok); } .dot--no { background: #c9d1d8; } .dot--late { background: var(--danger); }
.badge--mini { font-size: 10px; padding: 1px 6px; margin-left: 5px; vertical-align: middle; }
.col-check { width: 28px; }
@media (max-width: 1200px) { .col-opt { display: none; } }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; padding: 8px 14px; margin-bottom: 12px; }
.bulkbar .sep, .actionbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.bulkbar__select { padding: 4px 8px; font-size: 13px; border: 1px solid var(--input-border); border-radius: 4px; }
.actionbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }
.actionbar form { margin: 0; } .actionbar__nav { margin-left: auto; font-size: 13px; display: flex; gap: 10px; }
.col-name { width: 52%; } .col-code { white-space: nowrap; }
.note-pick { margin-bottom: 4px; font-size: 13px; }

/* zboží: rychlá úprava v řádku, příznaky, obrázky tažením */
.inline-edit { border-bottom: 1px dashed var(--input-border); cursor: text; padding: 0 2px; } .inline-edit:hover { background: var(--warn-soft); }
.inline-edit input { width: 90px; padding: 3px 6px; font: inherit; border: 1px solid var(--accent); border-radius: 3px; text-align: right; }
.inline-edit.is-saving { opacity: .5; } .inline-edit.is-error { background: var(--danger-soft); }
.flags { white-space: nowrap; } .flag-toggle { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; font-size: 12px; cursor: pointer; color: var(--muted); }
.flag-toggle input { margin: 0; } .flag-toggle:has(input:checked) { color: var(--ink); font-weight: 600; }
.thumb--none { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px dashed var(--input-border); border-radius: 4px; color: var(--muted); }
.dropzone { display: block; border: 2px dashed var(--input-border); border-radius: 8px; padding: 18px; text-align: center; cursor: pointer; color: var(--muted); }
.dropzone.is-over { background: var(--accent-soft); border-color: var(--accent); } .dropzone input { display: block; margin: 10px auto 0; }
.imgs figure[draggable] { cursor: grab; } .imgs figure.is-dragging { opacity: .4; } .imgs figure.is-over { outline: 2px dashed var(--accent); }
.panel[data-fold] > h2, .panel[data-fold] > .head-actions > h2 { cursor: pointer; } .panel[data-fold] > h2::before, .panel[data-fold] > .head-actions > h2::before { content: "▾ "; color: var(--muted); font-size: 13px; }
.panel[data-fold="closed"] > h2::before, .panel[data-fold="closed"] > .head-actions > h2::before { content: "▸ "; }
.panel[data-fold="closed"] > :not(h2):not(.head-actions) { display: none; } .panel[data-fold="closed"] { padding-bottom: 12px; }
.fold-note { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
/* kategorie: strom */
.tree-toggle { display: inline-block; width: 18px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 12px; padding: 0; margin-right: 2px; }
.tree-toggle--leaf { cursor: default; } tr.tree-hidden { display: none; }
/* mobil (C4) */
.menu-btn { display: none; border: 1px solid var(--input-border); background: var(--panel); border-radius: 6px; font-size: 18px; padding: 2px 9px; cursor: pointer; }
@media (max-width: 900px) {
  body { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; width: 250px; transform: translateX(-100%); transition: transform .2s; overflow-y: auto; }
  .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vw rgba(0,0,0,.35); }
  .menu-btn { display: inline-block; }
  .topbar { padding: 10px 14px; gap: 10px; } .topbar h1 { font-size: 17px; } .topbar__right .chip, .topbar__right .user { display: none; }
  .content { padding: 14px 12px 60px; } .secnav { margin: -14px -12px 12px; padding: 6px 12px; }
  .cards, .cards--5, .cards--4, .cols, .cols--wide { grid-template-columns: 1fr 1fr; } .cols, .cols--wide { display: grid; }
  .form { grid-template-columns: 1fr !important; } .form label.w2, .form label.w4, .form .w4 { grid-column: 1 / -1; } .filters { gap: 6px; } .filters label { flex: 1 1 45%; }
  .panel { padding: 12px 12px; } .head-actions { flex-direction: column; align-items: stretch; }
  .savebar { margin-left: -12px; margin-right: -12px; }
}
@media (max-width: 560px) { .cards, .cards--5, .cards--4, .cols, .cols--wide { grid-template-columns: 1fr; } }

.bulkbar[hidden], .savedf[hidden], [data-bulkbar][hidden] { display: none !important; }

/* atribut hidden má vždy přednost před display v třídách (menu, lišty, tlačítka) */
[hidden] { display: none !important; }
/* oprávnění uživatele */
.perms__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 20px; }
.perms__group strong { display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.perms__group label.check { margin: 2px 0; }

/* objednávky: filtr a řazení v hlavičce tabulky (nabídka pod názvem sloupce) */
.olist-bar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.olist-bar__count strong { color: var(--ink); font-size: 14px; }
.olist-bar__filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 10px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 12.5px; white-space: nowrap; }
.fchip b { font-weight: 400; opacity: .75; } .fchip:hover { text-decoration: none; background: var(--accent-dark); }
.fclear { font-size: 12.5px; color: var(--muted); text-decoration: underline; margin-left: 4px; }
.content table.data thead th:has(.thf.is-open) { z-index: 6; }
.thf { position: relative; display: inline-block; }
.thf__btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 3px 6px; margin: -3px -6px; border-radius: 4px; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.thf__btn i { font-style: normal; font-size: 10px; color: var(--accent); min-width: 8px; }
.thf__btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #b9c2c9; }
.thf__btn:hover, .thf.is-open .thf__btn { background: var(--accent-soft); color: var(--ink); }
.thf.is-set .thf__btn { color: var(--accent-dark); font-weight: 700; }
.thf.is-set .thf__btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.thf__pop { position: fixed; z-index: 60; min-width: 250px; max-width: 360px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.14); padding: 10px 12px 12px; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; color: var(--ink); white-space: normal; text-align: left; }
.thf__pop[hidden] { display: none; }
.thf__pop--wide { min-width: 460px; max-width: 560px; }
/* hlavička nabídky s křížkem (na počítači skrytá, na telefonu v horní části panelu) */
.thf__head { display: none; }
.thf__close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
/* telefon: panel u spodního okraje přes celou šířku */
.thf__pop--sheet { top: auto !important; left: 0 !important; right: 0 !important; bottom: 0; max-width: none; min-width: 0; max-height: 82vh !important; border-radius: 14px 14px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
.thf__pop--sheet .thf__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; padding: 4px 0 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.thf__pop--sheet .thf__sort a, .thf__pop--sheet .thf__list .check { padding: 9px 8px; font-size: 14px; }
.thf__pop--sheet .thf__list { max-height: none; }
.thf__pop--sheet .thf__cols { grid-template-columns: 1fr; }
.thf__pop--sheet .thf__range input { padding: 9px 10px; font-size: 15px; }
.thf__pop--sheet .thf__quick button { padding: 6px 12px; font-size: 13px; }
.thf__pop--sheet .thf__foot .btn { padding: 10px 22px; font-size: 14px; }
.thf__backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.35); }
body.thf-sheet-open { overflow: hidden; }
.thf__sort { display: flex; flex-direction: column; gap: 2px; margin: 0 -6px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.thf__sort a { padding: 5px 8px; border-radius: 4px; color: var(--ink); }
.thf__sort a::before { content: "↕"; display: inline-block; width: 16px; color: var(--muted); }
.thf__sort a:hover { background: var(--accent-soft); text-decoration: none; }
.thf__sort a.is-on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; } .thf__sort a.is-on::before { content: "✓"; color: var(--accent-dark); }
.thf__filter h5 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.thf__list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow: auto; }
.thf__list .check { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.thf__list .check:hover { background: var(--accent-soft); } .thf__list .check input { margin: 0; }
.thf__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thf__range { display: flex; gap: 8px; } .thf__range label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); flex: 1; }
.thf__range input { width: 100%; padding: 6px 8px; font-size: 13px; }
.thf__quick { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.thf__quick button { border: 1px solid var(--input-border); background: var(--panel); border-radius: 12px; padding: 2px 9px; font: inherit; font-size: 12px; color: var(--ink); cursor: pointer; }
.thf__quick button:hover { border-color: var(--accent); color: var(--accent-dark); }
.thf__hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.thf__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.thf__foot a { font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.chan { font-size: 13px; } .chan--oz { display: inline-block; background: var(--side); color: #fff; border-radius: 10px; padding: 1px 9px; font-size: 12px; font-weight: 600; }
table.olist td:nth-child(7) strong { font-size: 14.5px; }

/* ---------- OZ systém: ovládání na dotykovém tabletu (11") – velké cíle pro prst (min. 48 px), větší písmo, žádná malá políčka ---------- */
body.oz { font-size: 16px; }
body.oz .oz-top { min-height: 168px; padding: 14px 28px; gap: 28px; flex-wrap: nowrap; }
/* logo GBT. s dovětkem pod ním – dovětek je stejně široký jako logo (písmo loga se dopočítá z šířky dovětku) */
body.oz .oz-top .brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
body.oz .oz-top .brand__logo { font-family: Figtree, system-ui, sans-serif; font-weight: 800; font-size: 66px; letter-spacing: -.04em; color: #fff; }
body.oz .oz-top .brand__tag { font-family: system-ui, 'Segoe UI', Roboto, sans-serif; font-weight: 500; font-size: 14.5px; letter-spacing: .04em; color: #fff; margin-top: 8px; white-space: nowrap; }
/* čtvercová tlačítka – světlá, aby nesplývala s pozadím; aktivní zelené */
body.oz .oz-top nav { gap: 14px; }
body.oz .oz-top nav a { position: relative; width: 124px; height: 124px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 12px; color: #1f2933; font-size: 19px; font-weight: 700; border: 0; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
/* barvy tlačítek (světlé pastely, tmavý text – na tmavě zelené liště dobře kontrastují); aktivní = sytější odstín a bílý rámeček */
body.oz .oz-nav--customer { background: #cfe4ff; } body.oz .oz-nav--customer:hover { background: #bcd8fb; } body.oz .oz-nav--customer.is-active { background: #8fbcf5; }
body.oz .oz-nav--catalog { background: #ffd2d2; } body.oz .oz-nav--catalog:hover { background: #fbbcbc; } body.oz .oz-nav--catalog.is-active { background: #f59a9a; }
body.oz .oz-nav--cart { background: #b8f0ea; } body.oz .oz-nav--cart:hover { background: #9fe6de; } body.oz .oz-nav--cart.is-active { background: #5fd1c5; }
body.oz .oz-nav--orders { background: #e6d6ff; } body.oz .oz-nav--orders:hover { background: #d9c3fb; } body.oz .oz-nav--orders.is-active { background: #bf9ff2; }
body.oz .oz-top nav a:hover { color: #1f2933; }
body.oz .oz-top nav a.is-active { color: #111; }
body.oz .oz-top nav a:focus, body.oz .oz-top nav a:focus-visible { outline: none; }
body.oz .oz-top nav a em { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; line-height: 28px; padding: 0 8px; border-radius: 14px; background: var(--warn); color: #fff; font-style: normal; font-size: 15px; font-weight: 700; }
/* společné hledání mezi logem a tlačítky; nad ním stav zákazníka */
body.oz .oz-find { flex: 1; min-width: 220px; max-width: 460px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
body.oz .oz-find__wrap { position: relative; display: block; }
body.oz .oz-find__form input[type=search] { width: 100%; min-height: 56px; font-size: 18px; border-radius: 10px; border: 0; padding: 12px 56px 12px 16px; background: var(--input-bg); color: var(--ink); }
body.oz .oz-find__form input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
body.oz .oz-find__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
body.oz .oz-find__clear:hover, body.oz .oz-find__clear:active { background: var(--accent); color: #fff; }
body.oz .oz-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
body.oz .oz-who__label { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: #9fc5aa; }
body.oz .oz-who__name { font-size: 19px; font-weight: 700; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.oz .oz-who__detail { font-size: 14px; color: #cfe3d4; }
body.oz .oz-who__off { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
body.oz .oz-who__off:hover { background: rgba(255,255,255,.12); }
body.oz .oz-who__none { font-size: 18px; font-weight: 600; color: #cfe3d4; }
body.oz .oz-me { margin-left: auto; }
body.oz .oz-notfound { padding: 14px 16px; border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: 8px; } body.oz .oz-notfound p { margin: 0 0 10px; font-size: 16px; }
/* jméno obchodníka nad tlačítkem Odhlásit */
body.oz .oz-me { display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.oz .oz-top .user { font-size: 17px; color: #fff; margin: 0; }
/* nabídka obchodníka pod jménem */
body.oz .oz-menu { position: relative; }
body.oz .oz-menu > summary { list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 8px; white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent; }
body.oz .oz-menu > summary::-webkit-details-marker { display: none; }
body.oz .oz-menu > summary i { font-style: normal; font-size: 12px; opacity: .7; margin-left: 2px; }
body.oz .oz-menu[open] > summary, body.oz .oz-menu > summary:hover { background: rgba(255,255,255,.12); }
body.oz .oz-menu__pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 120; min-width: 220px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.25); padding: 6px; }
body.oz .oz-menu__item { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
body.oz .oz-menu__item:hover { background: var(--accent-soft); color: var(--accent-dark); }
body.oz .oz-top .btn--light { min-height: 52px; padding: 12px 22px; font-size: 16px; }
@media (max-width: 1000px) { body.oz .oz-top nav a { width: 96px; height: 96px; font-size: 16px; } body.oz .oz-top { gap: 14px; padding: 14px 16px; } body.oz .oz-top .brand__logo { font-size: 52px; } body.oz .oz-top .brand__tag { font-size: 11.5px; } body.oz .oz-find { min-width: 170px; } body.oz .oz-find__form input[type=search] { min-height: 50px; font-size: 16px; } }
body.oz .oz-btn-wide { min-width: 200px; text-align: center; }
body.oz .oz-customer { padding: 10px 18px; gap: 12px; }
body.oz .oz-customer strong { font-size: 18px; }
body.oz .oz-tabs { gap: 8px; } body.oz .oz-tabs a { padding: 12px 18px; font-size: 16px; min-height: 48px; display: inline-flex; align-items: center; border-radius: 8px; }
body.oz .oz-body { padding: 16px 18px 90px; }
@media (max-width: 1300px) { body.oz .oz-grid { grid-template-columns: 1fr 360px; gap: 16px; } }
body.oz .panel { padding: 16px 18px; border-radius: 10px; }
body.oz .panel h2 { font-size: 18px; }
body.oz .btn { min-height: 48px; padding: 12px 22px; font-size: 16px; border-radius: 8px; }
body.oz .btn--small { min-height: 44px; padding: 10px 16px; font-size: 15px; }
body.oz input[type=text], body.oz input:not([type]), body.oz input[type=email], body.oz input[type=password], body.oz input[type=number], body.oz input[type=search], body.oz select, body.oz textarea { min-height: 48px; padding: 10px 14px; font-size: 16px; border-radius: 8px; }
body.oz .bigsearch { gap: 10px; } body.oz .bigsearch input { min-height: 54px; font-size: 18px; } body.oz .bigsearch select { max-width: 260px; }
body.oz .filters label { font-size: 14px; }
body.oz table.data th { font-size: 12px; padding: 10px 10px; }
body.oz table.data td { padding: 12px 10px; font-size: 15.5px; }
body.oz table.data tr.row-link td { cursor: pointer; }
body.oz .badge { font-size: 13px; padding: 4px 11px; }
body.oz .thumb { width: 64px; height: 64px; border-radius: 6px; }
body.oz .oz-products__img { width: 72px; }
body.oz .oz-products__name { font-size: 16px; }
body.oz .oz-products__price { font-size: 17px; }
body.oz .oz-products__main { width: 99%; }
body.oz .oz-products__avail { font-size: 14px; white-space: nowrap; color: var(--muted); } body.oz .oz-products__avail.is-in { color: var(--ok); font-weight: 600; }
body.oz .oz-products__avail::before { content: "· "; }
body.oz .oz-add { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
body.oz .oz-add__btn { white-space: nowrap; }
/* stepper: − [číslo] + s tlačítky 48 × 48 px */
.oz-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--input-border); border-radius: 8px; overflow: hidden; background: var(--input-bg); }
.oz-stepper button { width: 48px; min-height: 48px; border: 0; background: var(--panel-2); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.oz-stepper button:active { background: var(--accent-soft); color: var(--accent-dark); }
body.oz .oz-stepper input[type=number] { width: 64px; min-height: 48px; border: 0; border-radius: 0; text-align: center; font-size: 17px; font-weight: 600; padding: 0 4px; -moz-appearance: textfield; }
.oz-stepper input::-webkit-outer-spin-button, .oz-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* košík */
body.oz .oz-cart { top: 10px; }
body.oz .oz-lines { margin: 0 0 6px; }
body.oz .oz-line { padding: 10px 0; border-bottom: 1px solid var(--line); }
body.oz .oz-line__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
body.oz .oz-line__name { font-size: 15px; line-height: 1.35; }
body.oz .oz-line__total { white-space: nowrap; font-size: 16px; }
body.oz .oz-line__form { display: flex; align-items: center; gap: 10px; }
body.oz .oz-line__remove { margin-left: auto; min-height: 44px; padding: 0 14px; border: 1px solid var(--danger-line); border-radius: 8px; background: var(--panel); color: var(--danger); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
body.oz .total-line { padding: 8px 0; font-size: 16px; } body.oz .total-line--big { font-size: 20px; }
body.oz .opt { padding: 12px 14px; gap: 12px; align-items: center; margin-bottom: 8px; border-radius: 8px; font-size: 16px; min-height: 52px; }
body.oz .opt input[type=radio], body.oz .check input[type=checkbox] { width: 22px; height: 22px; flex-shrink: 0; }
body.oz .oz-order-btn { flex: 1; min-height: 58px; font-size: 18px; }
body.oz textarea { min-height: 72px; }
body.oz .kv dt, body.oz .kv dd { font-size: 15.5px; }
/* lišta košíku dole – jen když je košík pod seznamem (jeden sloupec) */
.oz-cartbar { display: none; }
@media (max-width: 1000px) {
  body.oz .oz-grid { grid-template-columns: 1fr; }
  body.oz .oz-cart { position: static; }
  .oz-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px; background: var(--side); color: #fff; font-size: 16px; text-decoration: none; box-shadow: 0 -6px 20px rgba(0,0,0,.18); }
  .oz-cartbar strong { color: #fff; } .oz-cartbar__go { background: var(--warn); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
  body.oz .oz-add { flex-wrap: wrap; }
}

/* OZ: dlaždice hlavních kategorií (Katalog bez fráze) – vyplní plochu pod lištou, počet sloupců podle šířky tabletu */
body.oz .oz-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-auto-rows: 1fr; gap: 16px; min-height: calc(100vh - 168px - 40px); }
body.oz .oz-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 22px 16px; background: var(--panel-a92); border: 1px solid var(--line); border-radius: 14px; color: var(--tile-ink, var(--side)); font-size: 20px; font-weight: 700; text-align: center; line-height: 1.25; box-shadow: 0 3px 12px rgba(0,0,0,.06); min-height: 160px; }
body.oz .oz-tile img { width: 76px; height: 76px; object-fit: contain; }
body.oz .oz-tile:hover, body.oz .oz-tile:active { background: var(--accent); color: #fff; text-decoration: none; border-color: var(--accent); }
body.oz .oz-tile:hover img, body.oz .oz-tile:active img { filter: brightness(0) invert(1); }
@media (max-width: 1000px) { body.oz .oz-tiles { min-height: calc(100vh - 140px - 40px); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } body.oz .oz-tile { font-size: 18px; } body.oz .oz-tile img { width: 64px; height: 64px; } }
/* vodoznak: logo GBT. a dovětek v zelené CI na bílé ploše pod veškerým obsahem */
body.oz { position: relative; }
body.oz .oz-watermark { position: fixed; left: 0; right: 0; top: 168px; bottom: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; user-select: none; color: #1f8f3f; opacity: .08; }
body.oz .oz-watermark__logo { font-family: Figtree, system-ui, sans-serif; font-weight: 800; font-size: min(28vw, 320px); letter-spacing: -.04em; line-height: 1; }
body.oz .oz-watermark__logo .sq { display: inline-block; width: .22em; height: .22em; background: #f07d00; margin-left: .04em; }
body.oz .oz-watermark__tag { font-family: system-ui, 'Segoe UI', Roboto, sans-serif; font-weight: 600; font-size: min(5.6vw, 64px); letter-spacing: .06em; margin-top: .3em; }
body.oz .oz-body, body.oz .oz-customer, body.oz .oz-cartbar { position: relative; z-index: 1; }
body.oz .panel { background: var(--panel-a90); }
body.oz table.data { background: transparent; }
/* OZ: nenalezený zákazník – velký text a čtvercová tlačítka uprostřed */
body.oz .oz-notfound--big { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 28px; padding: 48px 24px; min-height: calc(100vh - 168px - 120px); background: transparent; border: 0; }
body.oz .oz-notfound--big p { margin: 0; font-size: 24px; line-height: 1.45; max-width: 760px; color: var(--ink); }
body.oz .oz-notfound--big p strong { font-size: 30px; display: inline-block; margin-bottom: 8px; }
body.oz .oz-notfound__btns { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
body.oz .oz-sqbtn { width: 190px; height: 190px; display: inline-flex; align-items: center; justify-content: center; text-align: center; border-radius: 16px; background: var(--panel); color: var(--tile-ink, var(--side)); font-size: 22px; font-weight: 700; line-height: 1.3; border: 2px solid var(--input-border); box-shadow: 0 4px 14px rgba(0,0,0,.10); }
body.oz .oz-sqbtn:hover, body.oz .oz-sqbtn:active { text-decoration: none; background: var(--accent-soft); }
body.oz .oz-sqbtn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
body.oz .oz-sqbtn--primary:hover, body.oz .oz-sqbtn--primary:active { background: var(--accent-dark); color: #fff; }
/* OZ: dvousloupcové stránky Košík a Historie (50 / 50, na výšku pod sebou) */
body.oz .oz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
body.oz .oz-two__col { display: flex; flex-direction: column; gap: 16px; }
body.oz .oz-two__col > .panel { margin: 0; }
body.oz .oz-cart--page { position: static; }
/* neaktivní levý sloupec bez zákazníka: zašedlý, s vodotiskem „Přihlaste zákazníka“ */
body.oz .oz-inactive { position: relative; }
body.oz .oz-inactive > .panel { opacity: .45; pointer-events: none; }
body.oz .oz-inactive::after { content: attr(data-watermark); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-family: Figtree, system-ui, sans-serif; font-weight: 800; font-size: clamp(28px, 4.2vw, 56px); line-height: 1.1; color: #1f8f3f; opacity: .35; transform: rotate(-12deg); pointer-events: none; letter-spacing: -.02em; }
/* historie: rozklikávací objednávky */
body.oz .oz-hist { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--panel-a70); }
body.oz .oz-hist summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 16px; cursor: pointer; list-style: none; min-height: 56px; }
body.oz .oz-hist summary::-webkit-details-marker { display: none; }
body.oz .oz-hist summary::before { content: "›"; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .15s; }
body.oz .oz-hist[open] summary::before { transform: rotate(90deg); }
body.oz .oz-hist__num { font-size: 17px; font-weight: 700; color: var(--accent-dark); }
body.oz .oz-hist__total { margin-left: auto; white-space: nowrap; font-size: 16px; }
body.oz .oz-hist__body { padding: 0 16px 14px; border-top: 1px solid var(--line); }
body.oz .oz-hist__items td { padding: 10px 6px; }
@media (max-width: 1000px) { body.oz .oz-two { grid-template-columns: 1fr; } }
/* OZ karta zákazníka: řádky údajů (vyplněné jen ke čtení, prázdné k doplnění), dodací adresy */
body.oz .oz-card { display: flex; flex-direction: column; }
body.oz .oz-card__row { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
body.oz .oz-card__row > span { color: var(--muted); font-size: 14px; }
body.oz .oz-card__row input { min-height: 44px; }
body.oz .oz-addr { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: var(--panel-a70); line-height: 1.4; }
.addr { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; } .addr summary { cursor: pointer; } .addr--new summary { color: var(--accent-dark); font-weight: 600; }
/* OZ: dialog při přepnutí zákazníka – stejný styl jako obrazovka „zákazník nenalezen“ (velký text, čtvercová tlačítka) */
body.oz .cdialog { max-width: 760px; width: calc(100vw - 48px); border-radius: 16px; }
body.oz .cdialog form.oz-switch { padding: 40px 32px 36px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
body.oz .oz-switch p { margin: 0; font-size: 22px; line-height: 1.45; color: var(--ink); }
body.oz .oz-switch p strong { font-size: 28px; display: inline-block; margin-bottom: 8px; }
body.oz .oz-switch .oz-sqbtn { font: inherit; font-size: 22px; font-weight: 700; cursor: pointer; }
body.oz .oz-sqbtn--muted { color: var(--muted); border-style: dashed; }

/* ---------- přepínač světlé / tmavé zobrazení (admin i OZ): pilulka s posuvným kolečkem podle vzoru „day / night mode switcher“ –
   světlé: bílá dráha, nápis Světlé vlevo, zelené kolečko se sluncem vpravo; tmavé: tmavě zelená dráha, bílé kolečko s měsícem vlevo, nápis Tmavé vpravo ---------- */
.theme-toggle { --tt-h: 20px; --tt-w: 64px; position: relative; display: inline-flex; align-items: center; width: var(--tt-w); height: var(--tt-h); padding: 0; border: 1px solid #cbd3da; border-radius: var(--tt-h); background: #fff; color: #0d3d1d; cursor: pointer; font: inherit; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: background .25s, border-color .25s; }
.theme-toggle b { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: calc(var(--tt-h) * .46); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: opacity .2s; }
.theme-toggle__day { left: calc(var(--tt-h) * .42); }
.theme-toggle__night { right: calc(var(--tt-h) * .42); opacity: 0; }
.theme-toggle__knob { position: absolute; top: 2px; left: 2px; width: calc(var(--tt-h) - 6px); height: calc(var(--tt-h) - 6px); border-radius: 50%; background: #1f8f3f; color: #fff; display: grid; place-items: center; transform: translateX(calc(var(--tt-w) - var(--tt-h))); transition: transform .25s, background .25s, color .25s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.theme-toggle__knob svg { position: absolute; width: 62%; height: 62%; transition: opacity .2s; }
.theme-toggle__moon { opacity: 0; }
html[data-theme="dark"] .theme-toggle { background: #0d3d1d; border-color: #1f8f3f; color: #fff; }
html[data-theme="dark"] .theme-toggle__day { opacity: 0; } html[data-theme="dark"] .theme-toggle__night { opacity: 1; }
html[data-theme="dark"] .theme-toggle__knob { transform: translateX(0); background: #fff; color: #0d3d1d; }
html[data-theme="dark"] .theme-toggle__sun { opacity: 0; } html[data-theme="dark"] .theme-toggle__moon { opacity: 1; }
.theme-toggle:hover { border-color: #1f8f3f; }
/* OZ: větší pro prst; v zelené liště má tmavá varianta světlejší rámeček */
body.oz .oz-me .theme-toggle { --tt-h: 22px; --tt-w: 70px; }
html[data-theme="dark"] body.oz .oz-me .theme-toggle { border-color: rgba(255,255,255,.35); }

/* ---------- tmavé provedení: stejné rozvržení, jen jiná paleta (přepíná se přepínačem, volba se pamatuje v prohlížeči) ---------- */
html[data-theme="dark"] { color-scheme: dark;
  /* výrazně tmavé – černé pozadí, panely téměř černé, zelená lišta tmavší */
  --ink: #e6e9ec; --muted: #8d98a3; --line: #262b30; --bg: #000; --side: #06200f; --accent: #229a46; --accent-dark: #4cc477; --accent-soft: #10261a; --accent-ring: #2f7a49; --danger: #ef7b71; --ok: #4cc477;
  --panel: #101214; --panel-2: #1b1f23; --panel-hover: #16191c; --row-hover: #12211a; --panel-soft: #0a0c0e; --input-bg: #000; --input-border: #33393f; --danger-soft: #2e1512; --danger-line: #5e2c27; --warn-soft: #2c1f0c; --warn-line: #5c4118; --badge-bg: #22272c;
  --panel-a92: rgba(16,18,20,.94); --panel-a90: rgba(16,18,20,.92); --panel-a70: rgba(16,18,20,.8); --panel-a97: rgba(16,18,20,.97); --tile-ink: #e6e9ec; }
html[data-theme="dark"] .btn { color: #fff; } html[data-theme="dark"] .btn:hover { background: #2fb457; }
html[data-theme="dark"] .badge--New { background: #4a2e12; color: #f5b26b; } html[data-theme="dark"] .badge--Confirmed, html[data-theme="dark"] .badge--Done { background: #17382a; color: #7fd49a; }
html[data-theme="dark"] .badge--Processing { background: #2d2650; color: #b9a8f0; } html[data-theme="dark"] .badge--Shipped { background: #17324a; color: #8ac2f0; }
html[data-theme="dark"] .badge--Cancelled { background: #45231f; color: #f0a097; } html[data-theme="dark"] .badge--off { background: #2b3641; color: #8a96a2; }
html[data-theme="dark"] .thumb { background: #fff; }                      /* fotky zboží mají bílé pozadí – nechat světlé */
html[data-theme="dark"] .thf__btn::after { border-top-color: #5a6876; }
html[data-theme="dark"] .secnav a.is-active, html[data-theme="dark"] .pager a.is-active, html[data-theme="dark"] .chipf.is-on, html[data-theme="dark"] .fchip, html[data-theme="dark"] .oz-tabs a.is-active { color: #fff; }
html[data-theme="dark"] .chan--oz, html[data-theme="dark"] .badge--oz { background: #1f8f3f; }
html[data-theme="dark"] .sidebar nav a.is-active { background: rgba(255,255,255,.14); }
html[data-theme="dark"] body.oz .oz-watermark { opacity: .14; }
html[data-theme="dark"] body.oz .oz-inactive::after { opacity: .45; }
html[data-theme="dark"] body.oz .oz-tile:hover, html[data-theme="dark"] body.oz .oz-tile:active { color: #fff; }
html[data-theme="dark"] body.oz .oz-tile img { filter: brightness(0) invert(1); opacity: .85; }
html[data-theme="dark"] body.oz .oz-sqbtn--primary { color: #fff; }
html[data-theme="dark"] body.oz .oz-top nav a { box-shadow: 0 3px 10px rgba(0,0,0,.4); }
html[data-theme="dark"] .stat--soft { background: var(--panel-soft); }
html[data-theme="dark"] .hint, html[data-theme="dark"] .hintbox, html[data-theme="dark"] .gdpr-text, html[data-theme="dark"] .hblock__num, html[data-theme="dark"] .pick-banner img { background: var(--panel-2); }
html[data-theme="dark"] .secnav a:hover { background: var(--panel-2); }
html[data-theme="dark"] .imgs img, html[data-theme="dark"] .picker__item img, html[data-theme="dark"] .picked__list img { background: #fff; border-radius: 4px; }
/* OZ: tablet na výšku – lišta ve třech řádcích:
   1. řádek: přepínač vzhledu v levém rohu | přihlášený zákazník (jeden řádek, začíná nad hledáním)
   2. řádek: hledání nad čtyřmi tlačítky (ne nad logem)
   3. řádek: logo GBT. s dovětkem a jménem obchodníka (nabídka) pod ním, široké jako tlačítko + čtyři čtvercová tlačítka přes zbytek šířky */
@media (max-width: 1000px) and (orientation: portrait) {
  body.oz .oz-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; gap: 8px 14px; align-items: center; min-height: 0; padding: 10px 16px 14px; }
  body.oz .oz-find { display: contents; }
  /* zákazník začíná až nad hledacím polem (odsazení o šířku pole s logem); vlevo od něj je přepínač vzhledu */
  body.oz .oz-who { grid-row: 1; grid-column: 1 / -1; margin-left: calc((100% - 4 * 12px) / 5 + 12px); flex-wrap: nowrap; align-items: center; gap: 8px; overflow: hidden; min-height: 36px; }
  body.oz .oz-who__label { white-space: nowrap; flex-shrink: 0; }
  body.oz .oz-who__detail { display: none; }   /* město a IČ se vedle jména obchodníka nevejdou – jsou na kartě */
  body.oz .oz-who__name { flex: 0 1 auto; min-width: 0; font-size: 19px; }
  body.oz .oz-who form { flex-shrink: 0; margin-left: auto; }   /* odhlásit zákazníka až u pravého okraje */
  /* jméno obchodníka (s nabídkou) pod logem, přepínač vzhledu vpravo v 1. řádku */
  body.oz .oz-me { display: contents; }
  body.oz .oz-menu { grid-row: 3; grid-column: 1 / -1; align-self: end; justify-self: start; width: calc((100% - 4 * 12px) / 5); display: flex; justify-content: center; padding-bottom: 6px; }
  body.oz .oz-menu > summary { font-size: 13.5px; padding: 6px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  body.oz .oz-menu > summary i { display: none; }
  body.oz .oz-menu__pop { right: auto; left: 0; }
  /* přepínač vodorovně vycentrovaný s logem (stejně široké pole jako logo) */
  body.oz .oz-me .theme-toggle { grid-row: 1; grid-column: 1 / -1; justify-self: start; align-self: center; margin-left: calc(((100% - 4 * 12px) / 5 - 70px) / 2); }
  /* hledání jen nad čtyřmi tlačítky – zleva odsazené o šířku pole s logem */
  body.oz .oz-find__form { grid-row: 2; grid-column: 1 / -1; margin-left: calc((100% - 4 * 12px) / 5 + 12px); }
  body.oz .oz-find__form input[type=search] { min-height: 54px; font-size: 17px; }
  /* logo + tlačítka: pět stejně širokých polí přes celou šířku (logo je první z nich) */
  body.oz .oz-top nav { grid-row: 3; grid-column: 1 / -1; gap: 12px; margin-top: 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.oz .oz-top .brand { grid-row: 3; grid-column: 1 / -1; width: calc((100% - 4 * 12px) / 5); align-self: start; justify-self: start; align-items: center; text-align: center; margin-top: 14px; }
  /* logo o něco menší, aby se do pole vešlo i s oranžovým čtvercem (čtverec nikdy nesmí spadnout na další řádek) */
  body.oz .oz-top .brand__logo { font-size: clamp(36px, 7vw, 58px); white-space: nowrap; }
  body.oz .oz-top .brand__tag { font-size: clamp(10px, 1.6vw, 13.5px); margin-top: 6px; white-space: nowrap; }
  body.oz .oz-top nav::before { content: ""; }   /* první pole nechává místo logu */
  body.oz .oz-top nav a { width: auto; height: auto; aspect-ratio: 1 / 1; font-size: 19px; }
  body.oz .oz-top nav a em { top: 10px; right: 10px; }
  body.oz .oz-watermark { top: 285px; }
}
/* dialog s formulářem (nová dodací adresa) */
dialog.cdialog--form { max-width: 760px; width: calc(100vw - 48px); }
dialog.cdialog--form h4 { font-size: 20px; margin-bottom: 14px; }
dialog.cdialog--form .form { grid-template-columns: repeat(4, 1fr); }
dialog.cdialog--form .cdialog__actions { margin-top: 18px; }
body.oz dialog.cdialog--form form { padding: 26px 28px; }
body.oz dialog.cdialog--form .form label { font-size: 14px; }
@media (max-width: 900px) { dialog.cdialog--form .form { grid-template-columns: 1fr 1fr !important; } dialog.cdialog--form .form label.w2, dialog.cdialog--form .form label.w4 { grid-column: 1 / -1 !important; } }
/* obrysové tlačítko (jen rámeček) */
.btn--outline { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); font-weight: 600; } .btn--outline:hover { background: var(--accent-soft); }
dialog.cdialog .cdialog__head { margin-bottom: 14px; } dialog.cdialog .cdialog__head h4 { margin: 0; }
/* OZ na užší obrazovce: nadpis panelu a tlačítko zůstávají na jednom řádku (jako na šířku) */
@media (max-width: 900px) { body.oz .head-actions { flex-direction: row; align-items: center; } }

/* ================= OZ: telefon (do 600 px) – lišta ve čtyřech řádcích, seznamy jako karty místo širokých tabulek ================= */
@media (max-width: 600px) {
  body.oz { font-size: 15px; }
  body.oz .oz-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; gap: 8px 10px; align-items: center; min-height: 0; padding: 8px 10px 10px; }
  /* 1. řádek: malé logo vlevo, jméno obchodníka (nabídka) a přepínač vpravo */
  body.oz .oz-top .brand { display: flex; grid-row: 1; grid-column: 1; width: auto; margin: 0; flex-direction: row; align-items: baseline; gap: 8px; justify-self: start; align-self: center; }
  body.oz .oz-top .brand__logo { font-size: 30px; white-space: nowrap; }
  body.oz .oz-top .brand__tag { display: none; }
  body.oz .oz-me { display: flex; grid-row: 1; grid-column: 2; flex-direction: row; align-items: center; gap: 6px; margin: 0; justify-self: end; width: auto; padding: 0; }
  body.oz .oz-menu { display: block; grid-row: auto; grid-column: auto; width: auto; padding: 0; align-self: auto; justify-self: auto; }
  body.oz .oz-menu > summary { font-size: 14px; padding: 6px 6px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  body.oz .oz-menu > summary i { display: none; }
  body.oz .oz-menu__pop { right: 0; left: auto; }
  body.oz .oz-me .theme-toggle { grid-row: auto; grid-column: auto; margin: 0; justify-self: auto; }
  /* 2. řádek: zákazník (jen název a odhlásit) */
  body.oz .oz-find { display: contents; }
  body.oz .oz-who { grid-row: 2; grid-column: 1 / -1; margin: 0; padding: 0; flex-wrap: nowrap; align-items: center; gap: 8px; overflow: hidden; min-height: 32px; }
  body.oz .oz-who__label, body.oz .oz-who__detail { display: none; }
  body.oz .oz-who__name { flex: 0 1 auto; min-width: 0; font-size: 17px; }
  body.oz .oz-who__none { font-size: 16px; }
  body.oz .oz-who form { flex-shrink: 0; margin-left: auto; }
  body.oz .oz-who__off { min-height: 30px; padding: 3px 9px; font-size: 13px; }
  /* 3. řádek: hledání přes celou šířku */
  body.oz .oz-find__form { grid-row: 3; grid-column: 1 / -1; margin: 0; }
  body.oz .oz-find__form input[type=search] { min-height: 46px; font-size: 16px; padding: 8px 12px; }
  /* 4. řádek: čtyři čtvercová tlačítka přes celou šířku */
  body.oz .oz-top nav { display: flex; grid-row: 4; grid-column: 1 / -1; gap: 8px; margin: 0; }
  body.oz .oz-top nav::before { display: none; }
  body.oz .oz-top nav a { flex: 1 1 0; width: auto; height: auto; aspect-ratio: 1 / 1; font-size: 13.5px; padding: 0 4px; border-radius: 10px; }
  body.oz .oz-top nav a em { top: 5px; right: 5px; min-width: 22px; height: 22px; line-height: 22px; padding: 0 6px; font-size: 12px; }
  body.oz .oz-watermark { top: 260px; }
  /* obsah */
  body.oz .oz-body { padding: 10px 10px 90px; }
  body.oz .panel { padding: 12px 12px; }
  body.oz .panel h2 { font-size: 17px; }
  body.oz .head-actions { flex-wrap: wrap; gap: 8px; }
  body.oz .btn { min-height: 44px; padding: 10px 14px; font-size: 15px; }
  body.oz .btn--small { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  body.oz .oz-two { gap: 12px; }
  body.oz .oz-two__col { gap: 12px; }
  /* dlaždice kategorií: menší */
  body.oz .oz-tiles { gap: 10px; }
  body.oz .oz-tile { min-height: 110px; padding: 12px 8px; gap: 8px; font-size: 14.5px; border-radius: 10px; }
  body.oz .oz-tile img { width: 44px; height: 44px; }
  /* zboží: každý řádek jako karta – obrázek, název, cena; pod tím množství a Do košíku přes celou šířku */
  body.oz .oz-products thead { display: none; }
  body.oz .oz-products tbody tr { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
  body.oz .oz-products tbody td { display: block; padding: 0; border: 0; font-size: 14px; }
  body.oz .oz-products__img { grid-row: 1 / 3; grid-column: 1; }
  body.oz .oz-products .thumb { width: 64px; height: 64px; }
  body.oz .oz-products__main { grid-row: 1; grid-column: 2; width: auto; }
  body.oz .oz-products__name { font-size: 15px; }
  body.oz .oz-products tbody td.r.nowrap { grid-row: 2; grid-column: 2; text-align: left !important; }
  body.oz .oz-products__price { font-size: 17px; }
  body.oz .oz-products tbody td.r:last-child { grid-row: 3; grid-column: 1 / -1; margin-top: 6px; }
  body.oz .oz-add { justify-content: space-between; flex-wrap: nowrap; }
  body.oz .oz-add__btn { flex: 1 1 auto; }
  body.oz .oz-products td.muted.c { grid-column: 1 / -1; }
  /* ostatní tabulky (zákazníci, objednávky, položky historie): řádek = karta, buňky se skládají za sebou */
  body.oz table.data:not(.oz-products) thead { display: none; }
  body.oz table.data:not(.oz-products) tbody tr { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  body.oz table.data:not(.oz-products) tbody td { display: block; padding: 0; border: 0; font-size: 14.5px; }
  body.oz table.data:not(.oz-products) tbody td:empty { display: none; }
  body.oz table.data:not(.oz-products) tbody td:first-child { flex-basis: 100%; font-size: 16px; }
  body.oz table.data:not(.oz-products) tbody td.nowrap:last-child { flex-basis: 100%; margin-top: 6px; }
  body.oz table.data:not(.oz-products) tbody td.nowrap:last-child .btn { display: block; width: 100%; text-align: center; }
  body.oz table.data:not(.oz-products) tbody td.muted.c { flex-basis: 100%; text-align: center !important; padding: 16px 0; }
  body.oz table.data:not(.oz-products) tbody td.r { text-align: left !important; }
  /* historie: položky objednávky */
  body.oz .oz-hist summary { padding: 10px 10px; gap: 4px 10px; font-size: 14px; }
  body.oz .oz-hist__num { font-size: 15px; }
  body.oz .oz-hist__total { flex-basis: 100%; margin-left: 24px; font-size: 15px; }
  body.oz .oz-hist__body { padding: 0 10px 10px; }
  body.oz .oz-hist__items tbody tr { padding: 8px 0; }
  /* košík */
  body.oz .oz-line__name { font-size: 14px; }
  body.oz .oz-line__form { flex-wrap: wrap; gap: 8px; }
  body.oz .opt { padding: 10px 12px; font-size: 15px; min-height: 48px; }
  body.oz .oz-order-btn { min-height: 52px; font-size: 17px; }
  body.oz .kv { grid-template-columns: 110px 1fr; }
  body.oz .kv dt, body.oz .kv dd { font-size: 14.5px; }
  /* karta zákazníka */
  body.oz .oz-card__row { grid-template-columns: 110px 1fr; font-size: 15px; gap: 6px; }
  body.oz .oz-card__row > span { font-size: 13px; }
  /* nenalezený zákazník, dialog přepnutí: tlačítka pod sebou přes celou šířku */
  body.oz .oz-notfound--big { min-height: 0; padding: 24px 8px; gap: 20px; }
  body.oz .oz-notfound--big p { font-size: 18px; } body.oz .oz-notfound--big p strong { font-size: 22px; }
  body.oz .oz-notfound__btns { flex-direction: column; width: 100%; gap: 12px; }
  body.oz .oz-sqbtn { width: 100%; height: auto; min-height: 64px; padding: 12px; font-size: 18px; }
  body.oz .cdialog { width: calc(100vw - 16px); max-width: none; border-radius: 12px; }
  body.oz .cdialog form.oz-switch { padding: 24px 16px 20px; gap: 18px; }
  body.oz .oz-switch p { font-size: 17px; } body.oz .oz-switch p strong { font-size: 21px; }
  body.oz dialog.cdialog--form form { padding: 18px 14px; }
  body.oz dialog.cdialog--form .form { grid-template-columns: 1fr !important; }
  body.oz dialog.cdialog--form .cdialog__head { flex-direction: column; align-items: stretch; }
  body.oz .oz-inactive { overflow: hidden; }   /* natočený vodotisk nesmí rozšířit stránku */
  body.oz .oz-inactive::after { font-size: 26px; }
  /* formuláře (nový zákazník, karta): jeden sloupec, políčka nepřetékají */
  body.oz .form { grid-template-columns: 1fr !important; gap: 10px; }
  body.oz .form label { min-width: 0; grid-column: 1 / -1; }   /* w2/w4 by jinak vytvořily druhý sloupec */
  body.oz .form input, body.oz .form select, body.oz .form textarea { width: 100%; min-width: 0; }
  body.oz .panel[style*="max-width"] { max-width: none !important; }
  body.oz .actions { gap: 8px; } body.oz .actions .btn { flex: 1 1 auto; text-align: center; }
  .oz-cartbar { padding: 10px 12px; font-size: 14px; gap: 8px; } .oz-cartbar__go { padding: 8px 12px; }
}

/* Přehled → panel Provoz (stav serveru; data z hlídače na serveru) */
.provoz { border-left: 4px solid var(--ok, #2e9e5b); }
.provoz--info { border-left-color: var(--accent); } .provoz--warn { border-left-color: var(--warn); } .provoz--err { border-left-color: var(--danger); }
.provoz__state { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 12px; margin-left: 8px; vertical-align: middle; background: #dff2e5; color: #226b43; }
.provoz__state--info { background: #dcecf9; color: #1d5b8f; } .provoz__state--warn { background: #fdebd8; color: #9a4f0c; } .provoz__state--err { background: #f6dedb; color: #8f2a1f; }
.provoz__list { margin: 0 0 12px; padding-left: 20px; } .provoz__msg { margin: 3px 0; } .provoz__msg--err { color: var(--danger); font-weight: 600; } .provoz__msg--warn { color: #9a4f0c; }
.provoz__cards { margin-bottom: 8px; } .provoz__cards .stat strong { font-size: 17px; } .provoz__cards .stat > span { display: block; margin-top: 4px; line-height: 1.45; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: #b6bfb8; }
.dot--ok { background: #2e9e5b; box-shadow: 0 0 0 3px rgba(46,158,91,.18); } .dot--err { background: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.18); }
.provoz__shop { display: inline-block; margin: 2px 12px 2px 0; white-space: nowrap; color: var(--ink); }
.provoz__more > summary { padding-top: 4px; } .provoz__log { font-size: 12px; white-space: pre-wrap; background: var(--bg); padding: 8px 10px; border-radius: 6px; max-height: 200px; overflow: auto; }
.data--compact td { padding: 5px 8px; font-size: 14px; } .data--compact td:first-child { color: var(--muted); white-space: nowrap; }
html[data-theme="dark"] .provoz__state { background: #1f4a2e; color: #bfe8cb; } html[data-theme="dark"] .provoz__state--warn { background: #4a2f0f; color: #ffd39a; } html[data-theme="dark"] .provoz__state--err { background: #4a1a14; color: #f5b8b0; } html[data-theme="dark"] .provoz__state--info { background: #16344a; color: #b9dcf7; }

/* OZ: dlaždice podkategorií 2. úrovně nad výpisem zboží + drobečky v nadpisu */
body.oz .oz-subtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 14px; }
body.oz .oz-subtile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 10px 14px; background: var(--panel-a92, var(--bg)); border: 1px solid var(--line); border-radius: 10px; color: var(--tile-ink, var(--side)); font-size: 16px; font-weight: 600; line-height: 1.25; }
body.oz .oz-subtile__count { flex: none; min-width: 30px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--badge-bg, #eef2ec); border-radius: 999px; padding: 3px 8px; }
body.oz .oz-subtile:hover, body.oz .oz-subtile:active { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
body.oz .oz-subtile:hover .oz-subtile__count, body.oz .oz-subtile:active .oz-subtile__count { background: rgba(255,255,255,.22); color: #fff; }
body.oz .oz-crumb { color: var(--muted); font-weight: 600; } body.oz .oz-crumb__sep { color: var(--muted); margin: 0 8px; font-weight: 400; }
@media (max-width: 600px) { body.oz .oz-subtiles { grid-template-columns: 1fr 1fr; gap: 8px; } body.oz .oz-subtile { min-height: 48px; padding: 8px 10px; font-size: 14.5px; } }

/* OZ: domovská stránka – statistika měsíce (graf po dnech: tržba bez DPH + počet objednávek) */
body.oz .oz-stats__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.oz .oz-stats__head h2 { margin: 0; font-size: 24px; min-width: 190px; text-align: center; }
body.oz .oz-stats__nav { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 26px; line-height: 1; color: var(--ink); }
body.oz .oz-stats__nav:hover { background: var(--accent); color: #fff; text-decoration: none; border-color: var(--accent); }
body.oz .oz-stats__nav.is-off { opacity: .3; pointer-events: none; }
body.oz .oz-stats__today { margin-left: auto; }
body.oz .oz-stats__who { margin: 4px 0 12px; }
body.oz .oz-stats__cards { margin-bottom: 14px; } body.oz .oz-stats__cards .stat strong { font-size: 26px; }
body.oz .oz-stats__empty { text-align: center; margin: 0 0 8px; }
body.oz .oz-chart { display: grid; grid-template-columns: auto 1fr auto; gap: 0 8px; height: 280px; margin-top: 6px; }
body.oz .oz-chart__axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--muted); padding-bottom: 22px; text-align: right; }
body.oz .oz-chart__axis--l { color: #1f7a3a; } body.oz .oz-chart__axis--r { color: #c77700; text-align: left; }
body.oz .oz-chart__plot { display: flex; align-items: stretch; gap: 2px; padding-bottom: 22px; background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 25%); background-size: 100% calc((100% - 22px) / 1); background-origin: content-box; background-clip: content-box; }
body.oz .oz-day { flex: 1 1 0; min-width: 0; position: relative; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; border-radius: 4px; }
body.oz .oz-day:hover, body.oz .oz-day.is-on { background: var(--accent-soft, rgba(46,158,91,.12)); }
body.oz .oz-day.is-weekend .oz-day__bars { opacity: .85; }
body.oz .oz-day__bars { flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; gap: 1px; padding: 0 12%; }
body.oz .oz-bar { display: block; flex: 1 1 0; min-height: 0; border-radius: 3px 3px 0 0; }
body.oz .oz-bar--net { background: #1f7a3a; } body.oz .oz-bar--cnt { background: #f28c1c; }
body.oz .oz-day.is-empty .oz-bar { min-height: 2px; opacity: .25; }
body.oz .oz-day b { position: absolute; left: 0; right: 0; bottom: -22px; text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); }
body.oz .oz-day.is-today b { color: var(--accent-dark, #1f7a3a); font-weight: 800; }
body.oz .oz-day.is-today::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: -4px; height: 3px; background: var(--accent); border-radius: 2px; }
body.oz .oz-chart__legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 30px; font-size: 14px; color: var(--muted); }
body.oz .oz-chart__legend .oz-bar { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
body.oz .oz-chart__info { margin-left: auto; color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) { body.oz .oz-chart { height: 240px; } body.oz .oz-stats__cards { grid-template-columns: repeat(3, 1fr); gap: 10px; } body.oz .oz-stats__cards .stat { padding: 12px 14px; } body.oz .oz-stats__cards .stat strong { font-size: 22px; } }
@media (max-width: 600px) {
  body.oz .oz-stats__head h2 { font-size: 20px; min-width: 0; flex: 1; }
  body.oz .oz-stats__cards { grid-template-columns: 1fr; gap: 6px; } body.oz .oz-stats__cards .stat { padding: 8px 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } body.oz .oz-stats__cards .stat strong { font-size: 20px; }
  body.oz .oz-stats__today { flex-basis: 100%; margin: 6px 0 0; }
  body.oz .oz-chart { height: 200px; gap: 0 4px; } body.oz .oz-chart__axis { font-size: 10.5px; }
  body.oz .oz-chart__plot { gap: 1px; } body.oz .oz-day__bars { padding: 0 6%; }
  body.oz .oz-day b { font-size: 10px; } body.oz .oz-day:nth-child(even) b { visibility: hidden; }
  body.oz .oz-chart__legend { font-size: 13px; gap: 10px; } body.oz .oz-chart__info { flex-basis: 100%; margin: 4px 0 0; }
}

/* řazení klikem na hlavičku sloupce (OZ Moje objednávky / Moji zákazníci) + nabídka pro mobil */
.data th.sortable { padding: 0; } .data th.sortable a { display: block; padding: 8px 10px; color: inherit; white-space: nowrap; }
.data th.sortable a:hover { background: var(--accent-soft, rgba(46,158,91,.12)); text-decoration: none; }
.data th.sortable i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 3px; } .data th.sortable.is-on i { color: var(--accent-dark, #1f7a3a); }
.data th.sortable.is-on a { color: var(--accent-dark, #1f7a3a); }
.data th.sortable.r a { text-align: right; }
.sort-mobile { display: none; }
@media (max-width: 600px) {
  .sort-mobile { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
  .sort-mobile select { flex: 1; min-height: 44px; font-size: 15px; border: 1px solid var(--input-border, var(--line)); border-radius: 8px; padding: 6px 10px; background: var(--panel); color: var(--ink); }
}

/* OZ: klepnutí na miniaturu zboží = zvětšený obrázek přes stránku (zavře křížek, klepnutí mimo obrázek, Esc) */
body.oz img[data-preview] { cursor: zoom-in; }
.oz-peek { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.62); padding: 24px; cursor: zoom-out; }
.oz-peek.is-on { display: flex; }
.oz-peek img { max-width: min(92vw, 760px); max-height: 86vh; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.4); object-fit: contain; cursor: default; }
.oz-peek__close { position: fixed; top: 14px; right: 14px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: #1d2520; font-size: 34px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.oz-peek__close:hover { background: var(--accent); color: #fff; }
html.lightbox-open { overflow: hidden; }
body.oz .oz-products__detail { font-size: 13.5px; font-weight: 600; color: var(--accent-dark, #1f7a3a); margin-right: 6px; }

/* OZ: detail zboží na jednu obrazovku – malá fotka (zvětšení lightboxem), vpravo název/cena/košík, dole tři sloupce s vlastním rolováním */
body.oz .oz-detail { display: flex; flex-direction: column; }
body.oz .oz-detail__top { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; flex: none; }
body.oz .oz-detail__main { display: block; width: 200px; height: 200px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; }
body.oz .oz-detail__thumbs { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; width: 200px; }
body.oz .oz-detail__thumbs img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 2px solid var(--line); border-radius: 6px; flex: none; cursor: pointer; }
body.oz .oz-detail__thumbs img.is-active { border-color: var(--accent); }
body.oz .oz-detail__noimg { width: 200px; height: 200px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 10px; }
body.oz .oz-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.oz .oz-detail__head h2 { margin: 0 0 2px; font-size: 21px; line-height: 1.2; }
body.oz .oz-detail__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 6px; padding: 10px 14px; background: var(--bg); border-radius: 10px; }
body.oz .oz-detail__price strong { font-size: 28px; line-height: 1.1; }
body.oz .oz-detail__add { margin: 0; display: flex; gap: 10px; align-items: center; }
body.oz .oz-detail__short { font-size: 14.5px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.oz .oz-detail__short p { margin: 0; display: inline; }
body.oz .oz-detail__cols { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 14px; align-items: stretch; margin-top: 12px; height: clamp(220px, calc(100vh - 168px - 40px - 330px), 420px); }
body.oz .oz-detail__box { min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); }
body.oz .oz-detail__box h3 { margin: 0 0 6px; font-size: 14.5px; flex: none; }
body.oz .oz-detail__box h3 + * { min-height: 0; }
body.oz .oz-detail__box > table, body.oz .oz-detail__box > ul, body.oz .oz-detail__box > .oz-detail__desc { overflow: auto; }
body.oz .oz-detail__params { display: block; } body.oz .oz-detail__params tbody { display: table; width: 100%; }
body.oz .oz-detail__params td { padding: 3px 6px; font-size: 13.5px; } body.oz .oz-detail__params td:first-child { color: var(--muted); }
body.oz .oz-detail__list { margin: 0 0 8px 16px; padding: 0; font-size: 13.5px; } body.oz .oz-detail__list li { margin: 2px 0; }
body.oz .oz-detail__desc { font-size: 13.5px; line-height: 1.45; padding-right: 6px; flex: 1 1 auto; }
body.oz .oz-detail__desc img { max-width: 100%; height: auto; } body.oz .oz-detail__desc p { margin: 0 0 6px; } body.oz .oz-detail__desc h1, body.oz .oz-detail__desc h2, body.oz .oz-detail__desc h3 { font-size: 15px; margin: 6px 0 4px; }
@media (max-width: 1000px) {
  body.oz .oz-detail__cols { grid-template-columns: 1fr 1fr; height: auto; } body.oz .oz-detail__desc-wrap { grid-column: 1 / -1; }
  body.oz .oz-detail__box > table, body.oz .oz-detail__box > ul { max-height: 30vh; } body.oz .oz-detail__desc { max-height: 36vh; }
}
@media (max-width: 600px) {
  body.oz .oz-detail__top { display: block; }
  body.oz .oz-detail__gallery { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
  body.oz .oz-detail__main, body.oz .oz-detail__noimg { width: 120px; height: 120px; flex: none; } body.oz .oz-detail__thumbs { width: auto; margin: 0; flex-wrap: wrap; } body.oz .oz-detail__thumbs img { width: 40px; height: 40px; }
  body.oz .oz-detail__info { min-width: 0; }
  body.oz .oz-detail__head { flex-direction: column; gap: 6px; } body.oz .oz-detail__head h2 { font-size: 17px; }
  body.oz .oz-detail__buy { padding: 8px 10px; gap: 8px; } body.oz .oz-detail__price strong { font-size: 24px; }
  body.oz .oz-detail__add { width: 100%; justify-content: space-between; }
  body.oz .oz-detail__cols { grid-template-columns: 1fr; gap: 10px; }
  body.oz table.data.oz-detail__params tbody tr { display: table-row; padding: 0; border: 0; } body.oz table.data.oz-detail__params tbody td { display: table-cell; padding: 3px 6px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
}

/* OZ detail: slidery karet „Doporučujeme přikoupit“ a „Alternativy“ (posun prstem, šipky pro myš) */
body.oz .oz-slider { margin-top: 16px; }
body.oz .oz-slider__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
body.oz .oz-slider__head h3 { margin: 0; font-size: 16px; }
body.oz .oz-slider__nav button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; margin-left: 6px; }
body.oz .oz-slider__nav button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
body.oz .oz-slider__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
body.oz .oz-card-p { flex: 0 0 210px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; }
body.oz .oz-card-p img { width: 100%; height: 120px; object-fit: contain; background: #fff; border-radius: 6px; cursor: zoom-in; }
body.oz .oz-card-p__noimg { height: 120px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 6px; }
body.oz .oz-card-p__name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
body.oz .oz-card-p__meta { font-size: 12.5px; line-height: 1.4; } body.oz .oz-card-p__meta .oz-products__avail { font-size: 12.5px; }
body.oz .oz-card-p__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; } body.oz .oz-card-p__buy strong { font-size: 15px; }
body.oz .oz-card-p__buy .btn--small { min-height: 40px; padding: 0 12px; }
@media (max-width: 600px) { body.oz .oz-card-p { flex-basis: 170px; } body.oz .oz-card-p img { height: 100px; } body.oz .oz-slider__nav { display: none; } }

/* OZ Moje objednávky: pilulky období u nadpisu; detail objednávky: položky znovu do košíku */
body.oz .pills { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: middle; flex-wrap: wrap; }
body.oz .pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; }
body.oz .pill:hover { text-decoration: none; border-color: var(--accent); } body.oz .pill.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
body.oz .oz-add--compact { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
body.oz .oz-add--compact .oz-stepper input { width: 56px; } body.oz .oz-add--compact .oz-stepper button { width: 40px; min-height: 40px; } body.oz .oz-add--compact .btn--small { min-height: 40px; }
@media (max-width: 600px) { body.oz .pills { margin: 8px 0 0; display: flex; } body.oz .oz-add--compact { width: 100%; justify-content: space-between; } }
