/* Administrace půjčovny. Stejné tokeny jako web, hustší rozvržení pro práci u pultu. */
:root {
  --s-paid: #0b72d9;
  --s-deposit: #d99a00;
  --s-pending: #8b938a;
  --s-onsite: #2f6fdb;
}
body { background: var(--bg); }

/* ---------- přihlášení ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, rgba(3, 32, 70, 0.35), rgba(3, 28, 60, 0.8)), url(/img/voda-lode.jpg) center / cover; }
.login form { width: min(380px, 100%); background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.login img { width: 150px; height: auto; margin: 0 auto 4px; }
.login h1 { font-size: 22px; text-align: center; }
.login input { width: 100%; border: 0; border-radius: var(--radius-sm); padding: 13px 14px; box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 16px; }
.login input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-tint); }
.login .err { color: var(--red); font-weight: 700; font-size: 14px; min-height: 1em; margin: 0; }

/* ---------- rám ---------- */
.top { background: #121712; position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.top .logo { flex: none; }
.top .logo img { height: 40px; width: auto; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { text-decoration: none; color: rgba(255, 255, 255, 0.72); font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 99px; white-space: nowrap; transition: background-color 0.15s, color 0.15s; }
.tabs a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.tabs a[aria-current] { background: var(--brand); color: #fff; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top .link-btn { color: rgba(255, 255, 255, 0.72); }
.top .link-btn:hover, .top .link-btn.on { color: #fff; }
.link-btn { background: none; border: 0; color: var(--muted); font-weight: 700; cursor: pointer; padding: 8px 4px; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; font-size: 14px; }
.link-btn:hover { color: var(--ink); }
.link-btn svg { width: 16px; height: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 6px; }
.btn-sm svg { width: 16px; height: 16px; }

main.view { padding: 28px 0 80px; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.view-head h1 { font-size: 34px; letter-spacing: -0.03em; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.card h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h2 small { font-size: 14px; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }

/* ---------- přepínač dne ---------- */
.daypick { display: flex; align-items: center; gap: 6px; background: var(--white); border-radius: 99px; padding: 5px; box-shadow: var(--shadow); }
.daypick .icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.daypick .icon-btn:hover { background: var(--brand-tint); color: var(--brand); }
.daypick .icon-btn svg { width: 18px; height: 18px; }
.daypick label { position: relative; font-weight: 900; padding: 0 10px; min-width: 190px; text-align: center; cursor: pointer; }
.daypick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.daypick .today-btn { border: 0; background: var(--brand-tint); color: var(--brand-dark); font-weight: 900; border-radius: 99px; padding: 8px 14px; cursor: pointer; }
.daypick .today-btn[disabled] { opacity: 0.4; cursor: default; }

/* ---------- dnešek: věta + flotila ---------- */
.headline { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 24px; max-width: 34em; text-wrap: balance; }
.headline em { font-style: normal; color: var(--brand); }
.headline .amt { background: var(--amber-tint); color: #7a4e00; border-radius: 6px; padding: 0 6px; }
.fleet { display: grid; gap: 10px; margin-bottom: 24px; }
.fleet-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 140px; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 26px; }
.fleet-row h3 { font-size: 17px; margin: 0; }
.fleet-row .sub { color: var(--muted); font-size: 13px; font-weight: 700; }
.tokens { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px 8px; }
/* každá loď ve flotile = jedna silueta kánoe */
.token { height: 22px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath d='M1 9C9 1.5 35 1.5 43 9 35 16.5 9 16.5 1 9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath d='M1 9C9 1.5 35 1.5 43 9 35 16.5 9 16.5 1 9z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.3s var(--ease); }
.token:hover { transform: translateY(-2px); }
.token.paid { background: var(--s-paid); }
.token.deposit { background: var(--s-deposit); }
.token.pending { background: repeating-linear-gradient(135deg, #c9cec8 0 4px, #e6e9e5 4px 8px); }
.token.free { background: #dfe3dd; }
.fleet-count { text-align: right; }
.fleet-count b { font-size: 36px; color: var(--brand); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.fleet-count span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.legend .paid { background: var(--s-paid); } .legend .deposit { background: var(--s-deposit); }
.legend .pending { background: repeating-linear-gradient(135deg, #c9cec8 0 3px, #e6e9e5 3px 6px); }
.legend .free { background: #dfe3dd; }
.legend .onsite { background: var(--s-onsite); }

.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.list { display: grid; }
.item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.item:first-child { border-top: 0; }
.item:hover .who { color: var(--brand); }
.item .time { font-weight: 900; font-size: 17px; }
.item .who { font-weight: 900; transition: color 0.15s; }
.item .what { color: var(--muted); font-size: 14px; }
.item .side { display: flex; align-items: center; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.collect { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: var(--amber-tint); color: #7a4e00; font-weight: 900; border-radius: 8px; padding: 8px 12px; font-size: 14px; transition: background-color 0.15s; }
.collect:hover { background: #ffe7b0; }
.collect svg { width: 16px; height: 16px; }
.empty { color: var(--muted); padding: 16px 0 4px; margin: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 900; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.paid { background: var(--ok-tint); color: var(--ok-dark); }
.pill.deposit { background: var(--amber-tint); color: #7a4e00; }
.pill.pending { background: #eceeeb; color: #4b524a; }
.pill.cancelled, .pill.expired { background: var(--red-tint); color: var(--red); }

/* ---------- kalendář ---------- */
.heat { overflow-x: auto; }
.heat table { border-collapse: separate; border-spacing: 3px; min-width: 100%; }
.heat th { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 2px; text-align: center; white-space: nowrap; }
.heat th.we { color: var(--ink); }
.heat th.now { color: var(--brand); }
.heat tbody th { text-align: left; color: var(--ink); font-size: 14px; font-weight: 900; padding-right: 12px; position: sticky; left: 0; background: var(--white); }
.heat td { padding: 0; }
.heat button { width: 100%; min-width: 38px; height: 46px; border: 0; border-radius: 6px; cursor: pointer; font-weight: 900; font-size: 13px; position: relative; overflow: hidden; display: grid; place-items: center; transition: transform 0.15s var(--ease); }
.heat button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.heat button .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; display: flex; gap: 1px; }
.heat .total button { white-space: nowrap; font-size: 12px; height: 34px; background: var(--bg); color: var(--ink); }

/* ---------- rezervace ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); }
.search input, .filters select { border: 0; border-radius: 8px; padding: 10px 12px; font-size: 15px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.search input { padding-left: 38px; width: min(320px, 70vw); }
.search input:focus, .filters select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tbody tr { cursor: pointer; transition: background-color 0.12s; }
.table tbody tr:hover { background: var(--brand-wash); }
.table .num { text-align: right; white-space: nowrap; }
.table .code { font-weight: 900; white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }

/* ---------- detail (boční panel) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(17, 20, 17, 0.35); z-index: 40; animation: fade 0.25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--white); z-index: 41; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide 0.35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; background: var(--white); padding: 22px 26px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; z-index: 1; }
.drawer-head h2 { font-size: 24px; }
.drawer-body { padding: 8px 26px 40px; }
.drawer section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.drawer section:last-child { border-bottom: 0; }
.drawer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.money div { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.money span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
.money b { font-size: 20px; font-weight: 900; }
.money .due { background: var(--amber-tint); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-danger { background: var(--white); color: var(--red); box-shadow: inset 0 0 0 2px #f1c6c0; }
.btn-danger:hover { background: var(--red-tint); color: var(--red); }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.log li { display: grid; grid-template-columns: 112px 1fr; gap: 10px; }
.log time { color: var(--muted); font-weight: 700; }
.pays { width: 100%; border-collapse: collapse; font-size: 14px; }
.pays td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pays td:last-child { text-align: right; }
.confirm-box { background: var(--red-tint); border-radius: 10px; padding: 14px 16px; margin-top: 12px; }
.confirm-box p { margin: 0 0 10px; }

/* ---------- finance ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.kpi span { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin: 2px 0; }
.kpi small { font-size: 13px; color: var(--ink-2); }
.chart { position: relative; }
.chart svg { width: 100%; height: 260px; overflow: visible; }
.chart .gl { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart rect.hit { fill: transparent; cursor: crosshair; }
.chart rect.hit:hover { fill: rgba(17, 20, 17, 0.04); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 8px; padding: 10px 12px; font-size: 13px; min-width: 170px; transform: translate(-50%, -100%); margin-top: -10px; opacity: 0; transition: opacity 0.12s; z-index: 2; }
.tip.on { opacity: 1; }
.tip b { display: block; margin-bottom: 4px; }
.tip div { display: flex; justify-content: space-between; gap: 14px; }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.util { display: grid; gap: 14px; }
.util-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; }
.util-bar { height: 12px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.util-bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.split { display: flex; height: 14px; border-radius: 99px; overflow: hidden; gap: 2px; margin: 10px 0 12px; }
details.table-view { margin-top: 14px; font-size: 14px; }
details.table-view summary { cursor: pointer; font-weight: 700; color: var(--muted); }

/* ---------- e-maily ---------- */
.mail-grid { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.mail-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 12px 14px; border-radius: 10px; cursor: pointer; }
.mail-list button:hover { background: var(--bg); }
.mail-list button[aria-current] { background: var(--brand-tint); }
.mail-list b { display: block; font-size: 14px; }
.mail-list span { font-size: 13px; color: var(--muted); }
.mail-frame { width: 100%; height: 720px; border: 0; border-radius: var(--radius); background: var(--bg); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 700; padding: 12px 20px; border-radius: 10px; z-index: 60; box-shadow: var(--shadow-lg); animation: toast 0.35s var(--ease); }
@keyframes toast { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- výdej a vrácení ---------- */
.seg-lg { display: inline-flex; background: var(--white); border-radius: 14px; padding: 5px; box-shadow: var(--shadow); gap: 4px; }
.seg-lg a { text-decoration: none; color: var(--ink-2); font-weight: 800; padding: 10px 18px; border-radius: 10px; }
.seg-lg a[aria-selected='true'] { background: var(--ink); color: #fff; }
.scan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.scan-card { display: grid; gap: 14px; }
.cam { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #121712; color: #fff; }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 20px; }
.cam-idle p { margin: 0; color: rgba(255, 255, 255, 0.75); max-width: 30ch; }
.cam.live .cam-idle { display: none; }
.cam-frame { position: absolute; inset: 18% 22%; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.28); border: 3px solid rgba(255, 255, 255, 0.85); opacity: 0; transition: opacity 0.3s; }
.cam.live .cam-frame { opacity: 1; }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.flash.ok { background: rgba(10, 138, 9, 0.45); opacity: 1; transition: none; }
.flash.bad { background: rgba(196, 50, 28, 0.5); opacity: 1; transition: none; }
.manual { display: flex; gap: 8px; }
.manual input { flex: 1; min-width: 0; border: 0; border-radius: 12px; padding: 13px 14px; font-size: 18px; font-weight: 800; letter-spacing: 0.04em; box-shadow: inset 0 0 0 1.5px var(--line-strong); text-transform: uppercase; }
.manual input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 600; }
.manual input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 4px var(--brand-tint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.scan-hint { margin: 0; color: var(--muted); font-size: 14px; }
.result { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; }
.result > svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; color: #fff; }
.result b { display: block; font-size: 17px; }
.result span { color: var(--ink-2); font-size: 14px; }
.result.ok { background: var(--ok-tint); } .result.ok > svg { background: var(--ok); }
.result.bad { background: var(--red-tint); } .result.bad > svg { background: var(--red); }
.damage { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.damage input { flex: 1; min-width: 160px; border: 0; border-radius: 10px; padding: 9px 12px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.res-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.alert-bad, .alert-warn { border-radius: 10px; padding: 10px 14px; font-weight: 700; margin-bottom: 12px; }
.alert-bad { background: var(--red-tint); color: var(--red); }
.alert-warn { background: var(--amber-tint); color: #7a4e00; }
.collect-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--amber-tint); color: #7a4e00; border-radius: 12px; padding: 10px 12px 10px 16px; margin-bottom: 14px; }
.collect-row .collect { background: var(--white); }
.slot-list { display: grid; gap: 10px; }
.slot-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
.slot-name { font-weight: 800; font-size: 14px; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { min-width: 64px; height: 36px; border-radius: 10px; border: 2px dashed var(--line-strong); display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.slot.full { border: 0; background: var(--brand); color: #fff; animation: pop 0.35s var(--ease); }
@keyframes pop { from { transform: scale(0.8); } }
.done-line { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 800; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.done-line.ok { color: var(--ok-dark); }
.done-line svg { width: 20px; height: 20px; }
.prog { display: inline-grid; justify-items: center; font-weight: 900; font-size: 17px; line-height: 1.1; }
.prog small { font-size: 11px; font-weight: 700; color: var(--muted); }
.prog.done { color: var(--brand); }
.unit-chip { display: inline-block; background: var(--bg); border-radius: 6px; padding: 1px 7px; font-weight: 800; font-size: 13px; color: var(--ink); }

/* ---------- evidence lodí ---------- */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.unit { display: grid; gap: 2px; border-radius: 12px; padding: 12px 14px; background: var(--bg); text-align: left; }
.unit b { font-size: 18px; font-weight: 900; }
.unit span { font-size: 13px; color: var(--muted); min-height: 2.6em; }
.unit .link-btn { justify-self: start; padding: 4px 0 0; font-size: 13px; color: var(--brand-dark); }
.unit.out { background: var(--brand-tint); }
.unit.servis { background: var(--red-tint); }
.unit.servis span { color: var(--red); }
.unit.add { border: 2px dashed var(--line-strong); background: none; cursor: pointer; place-content: center; justify-items: center; font-weight: 800; color: var(--muted); font: inherit; }
.unit.add svg { width: 20px; height: 20px; }
.unit.add:hover { border-color: var(--brand); color: var(--brand); }

/* QR štítky: na obrazovce skryté, tisknou se na A4 (24 na list) */
.labels { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body > *:not(#app), .top, .view > *:not(.labels) { display: none !important; }
  .view { padding: 0 !important; }
  .labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4mm; }
  .label { border: 0.3mm dashed #999; border-radius: 3mm; padding: 4mm; display: grid; justify-items: center; gap: 1mm; break-inside: avoid; text-align: center; }
  .label .lq { width: 30mm; height: 30mm; } .label .lq svg { width: 100%; height: 100%; }
  .label b { font-size: 20pt; font-weight: 900; } .label span { font-size: 8pt; } .label small { font-size: 7pt; color: #555; }
}

@media (max-width: 900px) {
  .scan-grid { grid-template-columns: 1fr; }
  .slot-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- přihlášení, místo ---------- */
.demo-login { display: grid; gap: 8px; background: var(--amber-tint); color: #6d4700; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.demo-login label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; }
.demo-login select { border: 0; border-radius: 8px; padding: 6px 8px; font: inherit; }
.top-staff { background: #0d2a0d; }
.place-chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-weight: 800; font-size: 14px; background: rgba(255, 255, 255, 0.12); border-radius: 99px; padding: 7px 12px; }
.place-chip svg { width: 16px; height: 16px; color: #7cc0ff; }
.top-who { color: rgba(255, 255, 255, 0.6); font-size: 13px; font-weight: 700; white-space: nowrap; }
.place-pick { max-width: 760px; margin: 0 auto; text-align: center; }
.place-pick h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.place-btn { display: grid; justify-items: center; gap: 6px; border: 0; cursor: pointer; background: var(--white); border-radius: 18px; padding: 24px 16px; box-shadow: var(--shadow); font: inherit; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.place-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.place-btn.on { box-shadow: inset 0 0 0 2.5px var(--brand), var(--shadow); }
.place-btn svg { width: 30px; height: 30px; color: var(--brand); }
.place-btn b { font-size: 20px; font-weight: 900; }
.place-btn span { font-size: 13px; color: var(--muted); }

/* ---------- stanoviště: výdej (zelená) a příjem (tmavá) ---------- */
.st-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-radius: 22px; padding: 22px 24px; margin-bottom: 16px; color: #fff; }
.st-head.vydej { background: var(--brand); }
.st-head.prijem { background: #1d2733; }
.st-head.cash { background: #6d4700; }
.st-head.prep { background: #0b72d9; }
.st-head a { color: #fff; }
.st-head h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -0.03em; }
.st-head.compact { padding: 12px 18px; }
.st-head.compact h1 { font-size: 22px; }
.st-head.compact .st-switch { display: none; }
.st-kicker { font-weight: 800; font-size: 14px; opacity: 0.85; }
.st-switch { display: flex; gap: 6px; background: rgba(0, 0, 0, 0.22); padding: 5px; border-radius: 16px; }
.st-switch a { display: grid; justify-items: center; min-width: 98px; padding: 8px 14px; border-radius: 12px; color: rgba(255, 255, 255, 0.8); text-decoration: none; font-weight: 800; line-height: 1.15; }
.st-switch a b { font-size: 22px; }
.st-switch a small { font-size: 11px; font-weight: 700; opacity: 0.75; }
.st-switch a.on { background: #fff; color: var(--ink); }
.st-scan { margin-bottom: 10px; }
.cam.small { display: none; aspect-ratio: 16 / 9; margin-bottom: 10px; }
.cam.small.open { display: block; }
.st-list { display: grid; gap: 10px; }
.st-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform 0.15s var(--ease); }
.st-row:hover { transform: translateY(-1px); }
.st-row.done { opacity: 0.6; }
.st-main { display: grid; gap: 2px; min-width: 0; }
.st-main b { font-size: 18px; font-weight: 900; }
.st-main span { color: var(--muted); font-size: 14px; }
.st-main .st-eq { color: var(--ink-2); font-weight: 700; }
.st-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.st-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 5px 10px; font-weight: 800; font-size: 13px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.st-chip svg { width: 14px; height: 14px; }
.st-chip.ok { background: var(--ok-tint); color: var(--ok-dark); }
.st-chip.due { background: var(--amber-tint); color: #7a4e00; }
.st-chip.late { background: var(--red-tint); color: var(--red); }
.st-chip.big { font-size: 15px; padding: 8px 14px; }

.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 4px; }
.sheet-head h2 { font-size: 26px; margin: 2px 0; }
.sheet-note { margin: 8px 0 0; background: var(--amber-tint); border-radius: 8px; padding: 8px 10px; font-size: 14px; }
.steps-v { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps-v > li { counter-increment: s; position: relative; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line); }
.steps-v > li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--bg); }
.steps-v > li.ok::before { content: ''; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat; }
.steps-v h3 { margin: 4px 0 8px; font-size: 18px; }
.steps-v p { margin: 0 0 10px; }
.steps-v p svg { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--brand); }
.doc-no { font-size: 20px; letter-spacing: 0.06em; }
.due-big { font-size: 26px; font-weight: 900; color: #7a4e00; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input { border: 0; border-radius: 10px; padding: 10px 12px; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.slot.out { border: 2px solid var(--ink); background: var(--white); }
.eq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.eq-cell { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px; padding: 8px 8px 8px 12px; font-weight: 800; font-size: 14px; }
.eq-cell .stepper-row { background: var(--white); }
.eq-cell output { min-width: 26px; text-align: center; font-weight: 900; font-size: 18px; }
.eq-cell button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; cursor: pointer; }
.eq-cell button svg { width: 15px; height: 15px; }
.ret-note { width: 100%; margin-top: 10px; border: 0; border-radius: 10px; padding: 10px 12px; min-height: 64px; font: inherit; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.sheet-foot { padding-top: 18px; display: flex; justify-content: flex-end; }
.sheet-foot .btn { font-size: 18px; padding: 16px 28px; }
.done-big { display: flex; gap: 14px; align-items: flex-start; background: var(--ok-tint); border-radius: 16px; padding: 18px; margin-top: 14px; }
.done-big > svg { flex: none; width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--ok); color: #fff; }
.done-big b { display: block; font-size: 20px; }
.done-big span { display: block; color: var(--ink-2); }
.warn-text { color: var(--red); font-weight: 800; }
.ok-text { color: var(--ok-dark); font-weight: 800; }

.envelope { max-width: 560px; }
.env-label { margin: 0; font-weight: 800; color: var(--muted); }
.env-big { margin: 4px 0 6px; font-size: 56px; font-weight: 900; letter-spacing: -0.03em; }
.env-form { margin-top: 18px; display: grid; gap: 8px; }
.env-form label { font-weight: 800; }
.env-form input { width: 160px; font-size: 22px; font-weight: 900; }
.user-form { display: grid; gap: 12px; }
.user-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.user-form input, .user-form select { border: 0; border-radius: 10px; padding: 11px 12px; font-size: 16px; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.table tfoot td { padding: 12px; border-top: 2px solid var(--ink); }
@media (max-width: 640px) {
  .st-row { flex-direction: column; align-items: flex-start; }
  .st-side { justify-content: flex-start; }
  .st-switch { width: 100%; } .st-switch a { flex: 1; min-width: 0; }
  .sheet-head { flex-direction: column; }
  .manual { flex-wrap: wrap; }
  .manual input { flex-basis: 100%; }
  .manual .btn { flex: 1; }
}

@media (max-width: 1180px) {
  .top .wrap { gap: 16px; }
  .top-actions .top-who { display: none; }
  .tabs a { padding: 8px 9px; font-size: 14px; }
  .top .logo img { height: 24px !important; width: auto; }
  .top-actions { gap: 4px; }
}
@media (max-width: 1000px) {
  .fleet-row { grid-template-columns: 1fr auto; }
  .fleet-row .tokens { grid-column: 1 / -1; grid-row: 2; }
  .two, .mail-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top .wrap { flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; }
  .tabs { order: 3; flex-basis: 100%; }
  .top-actions { margin-left: auto; }
  .view-head h1 { font-size: 24px; }
  .daypick { width: 100%; }
  .daypick label { min-width: 0; flex: 1; padding: 0 4px; }
  .tokens { gap: 4px; }
  .token { height: 18px; }
  .item { grid-template-columns: 48px minmax(0, 1fr); }
  .item .side { grid-column: 2; justify-content: flex-start; }
  .money { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .kpis { grid-template-columns: 1fr; }
}

/* nová rezervace od správce */
.pill.onsite { background: #e6eef8; color: #24527a; }
.money small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.price-form { display: grid; grid-template-columns: 140px 1fr; gap: 10px; margin-top: 14px; padding: 14px; background: var(--bg); border-radius: 12px; }
.price-form[hidden] { display: none; }
.price-form label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.price-form .btn-row { grid-column: 1 / -1; }
.price-form input, .nr input, .nr select { border: 0; border-radius: 10px; padding: 11px 12px; font: 600 16px 'Nunito Sans', sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--white); min-width: 0; width: 100%; }
.nr input:focus-visible, .nr select:focus-visible, .price-form input:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--brand); }
.nr input.bad, .nr select.bad { box-shadow: inset 0 0 0 2px var(--red); }
.price-note { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #24527a; }
.nr { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.nr-main { display: grid; gap: 20px; }
.nr h2 { margin-bottom: 12px; }
.nr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nr-grid.one { grid-template-columns: 1fr; margin-top: 10px; }
.nr-grid label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.nr-grid label em { font-style: normal; font-weight: 600; color: var(--muted); }
.nr-grid .wide { grid-column: 1 / -1; }
.nr-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.nr-num { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.nr-num input { font-weight: 900; font-size: 18px; }
.nr-hint { font-size: 13.5px; margin: 12px 0; }
.nr-more { margin-top: 16px; }
.nr-more summary { cursor: pointer; font-weight: 800; color: var(--brand-dark); margin-bottom: 12px; }
.nr-side { position: sticky; top: 90px; display: grid; gap: 12px; }
.nr-side h2 { margin: 0; }
.nr-quote { display: grid; gap: 6px; font-size: 15px; }
.nr-quote div { display: flex; justify-content: space-between; gap: 10px; }
.nr-quote .sum { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 17px; }
.nr-check { display: flex; gap: 10px; align-items: center; font-weight: 700; cursor: pointer; }
.nr-check input { width: 20px; height: 20px; accent-color: var(--brand); box-shadow: none; padding: 0; }
.nr-err { margin: 0; color: var(--red); font-weight: 800; font-size: 14px; }
.nr-err[hidden] { display: none; }
@media (max-width: 900px) {
  .nr { grid-template-columns: 1fr; }
  .nr-side { position: static; }
}
@media (max-width: 560px) {
  .nr-grid, .price-form { grid-template-columns: 1fr; }
}
.nr-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 18px 0 8px; }

/* kalkulačka ceny pro skupiny */
.nr-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nr-modes label { position: relative; cursor: pointer; }
.nr-modes input { position: absolute; opacity: 0; pointer-events: none; }
.nr-modes span { display: block; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 800; font-size: 14px; background: var(--bg); color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease; }
.nr-modes input:checked + span { background: var(--brand); color: #fff; }
.nr-modes input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.nr-quote small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nr-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14px; }
.nr-inline[hidden] { display: none; }
.nr-inline label { display: flex; align-items: center; gap: 8px; }
.nr-inline input { width: 110px; }
.nr-chips { display: flex; gap: 6px; }
.nr-chips button { border: 0; border-radius: 99px; padding: 7px 11px; font: 800 13px 'Nunito Sans', sans-serif; background: var(--brand-tint); color: var(--brand-dark); cursor: pointer; }
.nr-final { background: var(--brand-tint); border-radius: 12px; padding: 12px 14px; }
.nr-final span { display: block; font-size: 13px; font-weight: 800; color: var(--brand-dark); }
.nr-final b { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.nr-final small { display: block; font-size: 13px; color: var(--muted); font-weight: 700; }
#nrNote[hidden] { display: none; }
.price-quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.price-quick:empty { display: none; }
.price-quick button { border: 0; border-radius: 99px; padding: 7px 12px; font: 800 13px 'Nunito Sans', sans-serif; background: var(--brand-tint); color: var(--brand-dark); cursor: pointer; }

/* výbava ten den proti skladu */
.stock-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 28px; }
.stock-strip .stock { position: relative; display: grid; gap: 2px; padding: 12px 14px 16px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); overflow: hidden; }
.stock-strip span { font-size: 13px; font-weight: 800; color: var(--muted); }
.stock-strip b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stock-strip small { font-size: 14px; color: var(--muted); font-weight: 700; }
.stock-strip i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: var(--brand); }
.stock-strip em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--red); }
.stock-strip .over { box-shadow: inset 0 0 0 1.5px var(--red); background: var(--red-tint); }
.stock-strip .over i { background: var(--red); }

/* obsazenost typu lodě jako pruh (flotila má desítky lodí) */
.fbar { position: relative; display: flex; gap: 2px; height: 26px; border-radius: 8px; overflow: hidden; }
.fbar-seg { min-width: 4px; }
.fbar-seg.paid { background: var(--s-paid); }
.fbar-seg.deposit { background: var(--s-deposit); }
.fbar-seg.pending { background: repeating-linear-gradient(135deg, #c9cec8 0 4px, #e6e9e5 4px 8px); }
.fbar-seg.free { background: #e6e9e5; }
/* jemné dělení po pěti lodích, aby šlo odhadnout počty */
.fbar-scale { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(500% / var(--n) - 1px), rgba(255, 255, 255, 0.85) calc(500% / var(--n) - 1px) calc(500% / var(--n))); }
@media (max-width: 640px) { .fleet-row .fbar { grid-column: 1 / -1; grid-row: 2; } }

/* políčko na evidenční číslo místo prázdného rámečku */
.slot-in { width: 88px; padding: 0 6px; font: 800 15px 'Nunito Sans', sans-serif; text-transform: uppercase; text-align: center; background: var(--white); color: var(--ink); cursor: text; }
.slot-in::placeholder { color: var(--muted); font-weight: 700; text-transform: none; }
.slot-in:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--brand); border-color: var(--brand); }

/* úprava objednávky */
.order-form { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--bg); display: grid; gap: 12px; }
.order-form h3 { margin: 0; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.of-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.of-grid label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.of-grid label em { font-style: normal; font-weight: 600; color: var(--muted); }
.of-grid input, .of-grid select { border: 0; border-radius: 10px; padding: 10px 11px; font: 700 16px 'Nunito Sans', sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--white); min-width: 0; width: 100%; }
.of-note { margin: 0; font-size: 13px; }
.sheet-acts { display: grid; gap: 6px; justify-items: end; }

/* platby přijaté na místě, s možností vzít zpět */
.onsite { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; font-weight: 700; }
.onsite li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.onsite .link-btn { padding: 0; color: var(--red); }

/* co připravit na výdej */
.need-line { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-dark); font-size: 15px; }
.place-need { margin: 0 0 24px; }
.pn-row { display: grid; grid-template-columns: 150px 90px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pn-row span:last-child { color: var(--muted); font-weight: 700; }

/* lodě: přidání do evidence */
.inline-add { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.inline-add[hidden] { display: none; }
.inline-add label { display: grid; gap: 4px; font-weight: 700; font-size: 13px; }
.inline-add select { border: 0; border-radius: 10px; padding: 10px 11px; font: 700 15px 'Nunito Sans', sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* pokladna: řádky a obálky */
tr.clickable { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { tr.clickable:hover td { background: var(--bg); } }
.env-list { display: grid; gap: 8px; margin-bottom: 12px; }
.env, .env-add { display: grid; grid-template-columns: 1fr 100px 1fr auto auto; gap: 8px; align-items: center; }
.env-add { grid-template-columns: 1fr 100px auto; }
.env input, .env-add input, .env-add select { border: 0; border-radius: 10px; padding: 9px 10px; font: 700 15px 'Nunito Sans', sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); min-width: 0; }
@media (max-width: 560px) {
  .pn-row { grid-template-columns: 1fr auto; } .pn-row span:last-child { grid-column: 1 / -1; }
  .env { grid-template-columns: 1fr 90px; } .env input[name="note"] { grid-column: 1 / -1; }
}
.boat-filter { margin: 0 0 16px; }
.boat-filter button { border: 0; background: none; font: inherit; cursor: pointer; }
.boat-filter b { font-weight: 900; margin-left: 4px; }
.boat-filter button { color: var(--ink-2); font-weight: 800; padding: 10px 18px; border-radius: 10px; }
.boat-filter button[aria-selected='true'] { background: var(--ink); color: #fff; }

/* kemp: obsazenost chatek a sektorů */
.camp-card { margin-top: 20px; }
.camp-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 900px; font-size: 13px; table-layout: fixed; }
.camp-grid thead th:first-child { width: 110px; }
.camp-grid th, .camp-grid td { padding: 0; height: 34px; border-bottom: 1px solid var(--line); }
.camp-grid thead th { font-weight: 700; color: var(--muted); text-align: center; padding: 6px 0; line-height: 1.2; }
.camp-grid thead th.today { color: var(--brand-dark); background: var(--brand-tint); border-radius: 8px 8px 0 0; }
.camp-grid .cu { text-align: left; padding: 0 12px 0 4px; white-space: nowrap; font-weight: 800; position: sticky; left: 0; background: var(--white); }
.camp-grid .cgroup th { text-align: left; padding: 14px 4px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.camp-grid .cc { border-left: 1px solid var(--line); }
.cbar { display: block; width: calc(100% - 4px); margin: 2px; height: 28px; border: 0; border-radius: 8px; padding: 0 8px; font: 800 12.5px 'Nunito Sans', sans-serif; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: var(--brand); color: #fff; }
.cbar.in { background: #054f05; }
.cbar.out { background: #c9cfc6; color: var(--ink-2); }
.cbar.pending { background: repeating-linear-gradient(135deg, #c9cec8 0 6px, #e6e9e5 6px 12px); color: var(--ink); }
.legend .cl { display: inline-block; width: 14px; height: 10px; border-radius: 3px; background: var(--brand); margin-right: 6px; }
.legend .cl.in { background: #054f05; } .legend .cl.out { background: #c9cfc6; } .legend .cl.pending { background: #d7dbd5; }
.unit-move { border: 0; border-radius: 8px; padding: 5px 8px; font: 800 14px 'Nunito Sans', sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* kemp je zelený, půjčovna lodí modrá */
.camp-zone { --brand: #0a9809; --brand-dark: #077607; --brand-tint: #eaf6e9; --brand-wash: #f4faf3; }
.tabs a.tab-kemp[aria-current='page'] { background: #0a9809; }
.legend .cl { background: #0a9809; } .legend .cl.in { background: #054f05; }

/* obsah webu a hřiště */
.web-tabs { margin: 0 0 18px; }
.day-nav { display: flex; gap: 10px; align-items: center; }
.web-list { display: grid; gap: 8px; }
.web-item { border-radius: 14px; background: var(--bg); }
.web-item summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.web-item summary span { color: var(--muted); font-weight: 700; }
.web-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; padding: 4px 16px 16px; }
.web-form .wide { grid-column: 1 / -1; }
.web-form label, .web-note { display: grid; gap: 6px; font-weight: 800; font-size: 13.5px; }
.web-form input, .web-form select, .web-form textarea, .web-row input, .web-row select, .web-note input { border: 0; border-radius: 10px; padding: 10px 12px; font: 600 15px 'Nunito Sans', sans-serif; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.web-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.web-row .link-btn svg { width: 16px; height: 16px; }
.web-period { margin: 10px 0 14px; }
.web-note { margin-top: 10px; }
@media (max-width: 700px) { .web-form { grid-template-columns: 1fr; } .web-row input { width: 100% !important; } }

/* ---------- správce: levé menu podle oblastí celého kempu ---------- */
.adm { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.side-nav { position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: #121712; color: rgba(255, 255, 255, 0.78); display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; scrollbar-width: thin; }
.side-logo { display: grid; gap: 6px; padding: 6px 10px 4px; text-decoration: none; }
.side-logo img { width: 170px; height: auto; }
.side-logo span { font-size: 12.5px; font-weight: 800; color: rgba(255, 255, 255, 0.5); }
.side-nav nav { display: grid; gap: 14px; }
.nav-group { display: grid; gap: 2px; }
.nav-label { margin: 0 0 4px; padding: 0 10px; font-size: 12px; font-weight: 800; color: rgba(255, 255, 255, 0.45); display: flex; align-items: center; gap: 8px; }
.nav-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.tone-kemp .nav-label::before { background: #0a9809; }
.tone-lode .nav-label::before { background: #1e88f0; }
.side-nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color 0.15s, color 0.15s; }
.side-nav nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.7; }
.side-nav nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.side-nav nav a[aria-current='page'] { background: #fff; color: #121712; }
.side-nav nav a[aria-current='page'] svg { opacity: 1; }
.tone-kemp a[aria-current='page'] svg { color: #0a9809; }
.tone-lode a[aria-current='page'] svg { color: #0b72d9; }
.side-foot { margin-top: auto; display: grid; gap: 6px; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.side-foot a { display: flex; gap: 8px; align-items: center; color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 700; }
.side-foot a svg { width: 16px; height: 16px; }
.side-who { color: rgba(255, 255, 255, 0.5); font-weight: 700; }
.side-foot .link-btn { color: rgba(255, 255, 255, 0.78); justify-self: start; padding-left: 0; }
.adm-main { min-width: 0; }
.adm-main main.view { padding: 28px clamp(16px, 3vw, 40px) 80px; max-width: 1240px; }
.adm-top { display: none; }
@media (max-width: 1000px) {
  .adm { grid-template-columns: 1fr; }
  .side-nav { position: fixed; z-index: 50; inset: 0 auto 0 0; width: min(300px, 86vw); transform: translateX(-100%); transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1); box-shadow: 20px 0 50px -20px rgba(0, 0, 0, 0.6); }
  .adm.open .side-nav { transform: none; }
  .adm.open::after { content: ''; position: fixed; inset: 0; z-index: 40; background: rgba(10, 14, 10, 0.45); }
  .adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #121712; color: #fff; }
  .adm-top .icon-btn { background: rgba(255, 255, 255, 0.1); color: #fff; }
  .adm-top b { font-size: 16px; }
  .adm-top-logo { margin-left: auto; }
  .adm-top-logo img { width: 110px; height: auto; display: block; }
}
@media (prefers-reduced-motion: reduce) { .side-nav { transition: none; } }
.day-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
.ds { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); --ds: #c9cfc6; transition: transform 0.15s; }
.ds::before { content: ''; width: 28px; height: 4px; border-radius: 99px; background: var(--ds); margin-bottom: 8px; }
.ds:hover { transform: translateY(-2px); }
.ds span { font-size: 13px; font-weight: 800; color: var(--muted); }
.ds b { font-size: 20px; font-weight: 900; letter-spacing: -0.01em; }
.ds small { font-size: 13.5px; color: var(--muted); }
.ds-kemp, .ds-sport { --ds: #0a9809; }
.ds-lode { --ds: #0b72d9; }
.ds-money { --ds: #111411; }
.day-h { font-size: 20px; margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.day-h::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #0b72d9; }
@media (max-width: 900px) { .day-sum { grid-template-columns: 1fr 1fr; } }
.adm .headline { font-size: clamp(20px, 2vw, 26px); }
/* přehled dne: tři rovnocenné oblasti */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; align-items: start; }
.area-col { border-top: 4px solid #0a9809; }
.area-lode { border-top-color: #0b72d9; }
.area-col h3 { font-size: 14px; margin: 16px 0 6px; color: var(--muted); }
.area-col h3 small { font-weight: 700; }
.occ-mini { display: grid; gap: 10px; margin-top: 4px; }
.occ-mini > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.occ-mini span { font-weight: 800; }
.occ-mini b { font-size: 20px; font-weight: 900; }
.occ-mini b small { font-size: 14px; color: var(--muted); }
.occ-mini i { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #eaf6e9; position: relative; overflow: hidden; }
.occ-mini i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: #0a9809; border-radius: 99px; }
.boat-more { margin-top: 20px; }
.boat-more summary { cursor: pointer; list-style: none; }
.boat-more summary::-webkit-details-marker { display: none; }
.boat-more summary h2::after { content: '+'; margin-left: auto; color: #0b72d9; font-size: 22px; }
.boat-more[open] summary h2::after { content: '−'; }
.boat-more summary h2 { display: flex; gap: 8px; align-items: baseline; }
.boat-more[open] summary { margin-bottom: 14px; }
@media (max-width: 1100px) { .areas { grid-template-columns: 1fr; } }
.areas .item { grid-template-columns: 58px minmax(0, 1fr); }
.areas .item .side { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
.web-item summary { align-items: center; }
.web-item summary span:not(.web-acts):not(.link-btn) { margin-left: auto; }
.web-acts { display: flex; gap: 4px; align-items: center; }
.web-acts .link-btn { font-size: 14px; }
.web-del { color: #c4321c; display: inline-flex; gap: 4px; align-items: center; }
.web-del svg { width: 15px; height: 15px; }
.web-item[open] .web-acts > span { display: none; }
.adm .btn svg { width: 18px; height: 18px; flex: none; } .adm .btn { white-space: nowrap; }
/* lodě v přehledu dne: jasný stav a tlačítka vždy na stejném místě */
.brow { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.brow:first-child { border-top: 0; }
.brow-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.brow .what { color: var(--muted); font-size: 14.5px; }
.hs { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; background: #e7f1fc; color: #075bb0; font-size: 13px; font-weight: 800; white-space: nowrap; }
.hs svg { width: 14px; height: 14px; }
.hs-done { background: #eaf6e9; color: #077607; }
.hs-ret { background: #f3f3f3; color: var(--ink-2); }
.brow-act { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.brow-act .brow-go { margin-left: auto; }
.check-inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; } .match { display: flex; gap: 6px; } .match input { width: 130px; border: 0; border-radius: 10px; padding: 8px 10px; font: 700 14px "Nunito Sans", sans-serif; box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* přepínač sekce správce: lodě modře, ubytování zeleně */
.area-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.area-switch button { border: 0; border-radius: 9px; padding: 9px 6px; font: 800 14px/1 inherit; font-family: inherit; color: rgba(255, 255, 255, 0.75); background: transparent; cursor: pointer; }
.area-switch button[aria-pressed='true'].area-lode { background: #0b72d9; color: #fff; }
.area-switch button[aria-pressed='true'].area-kemp { background: #0a9809; color: #fff; }
.area-tag { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 6px; font-size: 12px; color: #fff; vertical-align: 2px; }
.area-tag.area-lode { background: #0b72d9; }
.area-tag.area-kemp { background: #0a9809; }

/* doplatek převodem: QR na účet půjčovny */
.pay-qr { display: flex; gap: 18px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: 12px; background: #f1f6fc; flex-wrap: wrap; }
.pay-qr[hidden] { display: none; }
.pq-code { width: 168px; height: 168px; background: #fff; padding: 8px; border-radius: 8px; flex: none; }
.pq-code svg { width: 100%; height: 100%; }
.pay-qr p { margin: 0 0 8px; }
.after-issue { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e3e6e1); }
.after-issue h3 { margin: 0 0 8px; font-size: 17px; }

/* příprava na výdej */
.prep-table td { vertical-align: top; }
.prep-table td b, .prep-table td span { display: block; }
.prep-table td span { font-size: 13px; color: var(--muted, #667); }
.prep-table tr.idle td { opacity: 0.55; }
.prep-table .prep-total { background: #f1f6fc; }

/* recepce kempu: zelená jako web kempu */
.st-head.rcpt { background: #077607; }
.rc-h { font-size: 20px; margin: 22px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.rc-h small { color: var(--muted); font-size: 15px; }
.rc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
.rc-dl div { display: contents; }
.rc-dl dt { color: var(--muted); }
.rc-dl dd { margin: 0; font-weight: 700; }
.rc-units { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rc-units div { display: grid; padding: 10px 14px; border-radius: 10px; background: #eaf6e9; }
.rc-units b { font-size: 20px; color: #0d3a12; }
.rc-units span { font-size: 13px; color: var(--muted); }
.tabs a.tab-recepce[aria-current] { background: #077607; }
.rc-sheet .btn:not(.btn-dark):not(.btn-ghost) { background: #077607; }
.rc-guests { display: grid; gap: 8px; }
.rc-guest { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; }
.rc-guest summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; margin-top: 12px; }
.rc-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rc-grid input, .rc-grid select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.rc-guest .st-chip { white-space: normal; text-align: left; }
.tabs a.tab-obsazenost[aria-current] { background: #077607; }
.rc-fix { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #fbf7ee; }
.rc-fix p { margin: 0; color: var(--ink); }
.rc-full { grid-column: 1 / -1; }
.sp-grid { border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.sp-grid th { text-align: left; font-weight: 700; color: var(--muted); padding: 2px 6px; white-space: nowrap; }
.sp-grid td { width: 38px; height: 30px; border-radius: 6px; background: #eef1ec; text-align: center; font-size: 11px; font-weight: 800; }
.sp-grid td.part { background: #b9e3b6; }
.sp-grid td.full { background: #077607; color: #fff; }
.sp-light { display: flex !important; align-items: center; gap: 8px; grid-column: 1 / -1; }
.sp-light input { width: auto; }
.tabs a.tab-hriste[aria-current] { background: #077607; }
.rc-note { margin: -4px 0 10px; font-size: 14px; }
.rc-state { margin-right: 6px; }
.st-chip.rc-state.done { background: #eef1ec; color: var(--muted); }
.sheet-head h2 .rc-state { font-size: 13px; vertical-align: 4px; }
.rc-done { margin-top: 22px; }
.rc-done summary { cursor: pointer; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.rc-done summary small { color: var(--muted); font-size: 15px; }
.sp-kind button { padding: 8px 14px; }
.sp-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto; gap: 6px; margin-bottom: 14px; }
.sp-week a { display: grid; gap: 2px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13px; position: relative; overflow: hidden; }
.sp-week a.on { border-color: #077607; box-shadow: inset 0 0 0 1px #077607; }
.sp-week a span { color: var(--muted); }
.sp-week a i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--f); background: #0a9809; }
.sp-pick { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sp-pick input { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.sp-grid td { width: 22px; }
@media (max-width: 760px) { .sp-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tent-cap { display: grid; gap: 2px; min-width: 180px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); position: relative; overflow: hidden; }
.tent-cap b { font-size: 26px; }
.tent-cap i { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--f); background: #fff; }
.tabs a.tab-stany[aria-current], .tabs a.tab-kniha[aria-current] { background: #077607; }
.rc-edit { margin-top: 12px; }
.rc-edit summary { cursor: pointer; font-weight: 800; color: #077607; }
.rc-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rc-del { display: flex !important; align-items: center; gap: 6px; }
.rc-del input { width: auto; }
.camp-grid td.drop { background: #b9e3b6; }
.cbar[draggable] { cursor: grab; }
.kpis.k5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.view-as { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; opacity: 0.85; }
.view-as select { font: inherit; padding: 4px 6px; border-radius: 8px; }
.side-foot .view-as { margin-bottom: 6px; }
.top-staff .view-as, .side-foot .view-as { color: rgba(255, 255, 255, 0.82); }
.view-as select { color: #111; background: #fff; border: 0; }
