/* ============ Ubytovňa Bernolákovo – štýly ============ */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --text: #1a2233;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #16a34a;
  --green-bg: #e8f7ee;
  --orange: #d97706;
  --orange-bg: #fdf3e3;
  --red: #dc2626;
  --red-bg: #fdecec;
  --blue-bg: #e8effd;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-lg: 0 8px 30px rgba(16, 24, 40, .14);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* atribút hidden musí skryť prvok aj keď mu trieda nastaví display:flex/grid */
[hidden] { display: none !important; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---------- Horná lišta ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-icon { font-size: 26px; }
.brand strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.1; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; }
.mainnav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
}
.mainnav a.active { background: var(--blue-bg); color: var(--primary); }
.mainnav a:not(.soon):hover { color: var(--primary); }
.mainnav a.soon { opacity: .45; cursor: default; position: relative; }
.mainnav a.soon::after { content: '•'; color: var(--orange); margin-left: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 80px; }

/* ---------- Štatistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.stat b { font-size: 26px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat.green b { color: var(--green); }
.stat.orange b { color: var(--orange); }
.stat.red b { color: var(--red); }
.stat.blue b { color: var(--primary); }

/* ---------- Filter prehľadu ---------- */
.filterbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: -8px 0 24px;
}
.filter-tabs {
  display: inline-flex; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 4px; gap: 4px; box-shadow: var(--shadow);
}
.filter-tab {
  border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; transition: all .12s; white-space: nowrap;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.on { background: var(--primary); color: #fff; }
.filter-info { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- Poschodia ---------- */
.floor { margin-bottom: 34px; }
.floor-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.floor-head h2 { font-size: 20px; font-weight: 800; }
.floor-head span { color: var(--muted); font-size: 13.5px; font-weight: 500; }

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

/* ---------- Karta izby ---------- */
.room-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; cursor: pointer; border: 1.5px solid transparent;
  border-top: 5px solid var(--green);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.room-card.st-volna    { border-top-color: var(--green); }
.room-card.st-ciastocna{ border-top-color: var(--orange); }
.room-card.st-obsadena { border-top-color: var(--red); }

.room-card-top { display: flex; align-items: center; gap: 8px; }
.room-num { font-size: 24px; font-weight: 800; letter-spacing: .5px; }
.room-card-top .badge { margin-left: auto; }

/* malá ikonka pôdorysu na karte izby */
.plan-btn {
  width: 26px; height: 26px; flex-shrink: 0; padding: 0; cursor: pointer;
  border: 1.5px solid var(--border); border-radius: 7px; background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all .12s;
}
.plan-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.plan-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--blue-bg); }
.badge {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge.volna     { background: var(--green-bg);  color: var(--green); }
.badge.ciastocna { background: var(--orange-bg); color: var(--orange); }
.badge.obsadena  { background: var(--red-bg);    color: var(--red); }
.badge.rez       { background: var(--blue-bg);   color: var(--primary); }

.beds-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bed-dot {
  width: 26px; height: 26px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 14px;
  background: var(--green-bg);
}
.bed-dot.occ { background: var(--red-bg); filter: grayscale(0); }

/* popisok pri ikonke lôžka – vykresľuje sa cez JS, aby nevyliezol z okna */
.bed-dot { cursor: default; }
.tip {
  position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
  background: #1e293b; color: #fff; padding: 7px 11px; border-radius: 8px;
  font-size: 12px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .1s;
}
.tip.on { opacity: 1; }

.beds-label { margin-left: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

.room-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.room-equip { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; background: var(--bg); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 999px; color: var(--muted); font-weight: 500;
}

/* ---------- Detail izby ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
  text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.detail-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.detail-head h1 { font-size: 30px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 18px;
}
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex;
  justify-content: space-between; align-items: center; }

.guest-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; background: var(--bg); margin-bottom: 8px;
}
.guest-row .g-main { min-width: 0; }
.guest-row .g-name { font-weight: 700; font-size: 14.5px; }
.guest-row .g-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.guest-row .g-sub .warn { color: var(--orange); font-weight: 600; }
.guest-actions { display: flex; gap: 6px; flex-shrink: 0; }

.equip-list { display: flex; flex-direction: column; gap: 6px; }
.equip-item { display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px; border-radius: 8px; background: var(--bg); font-size: 13.5px; }
.equip-item b { font-weight: 700; }
.equip-item .qty { color: var(--primary); font-weight: 800; margin-right: 8px; }

.layout-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.layout-table td { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.layout-table tr:last-child td { border-bottom: none; font-weight: 700; }
.layout-table td:last-child { text-align: right; color: var(--muted); }
.layout-table tr:last-child td:last-child { color: var(--text); }

.empty { color: var(--muted); font-size: 13.5px; padding: 8px 0; }

/* ---------- Tlačidlá ---------- */
.btn {
  border: none; border-radius: 10px; padding: 9px 16px; font-size: 13.5px;
  font-weight: 700; cursor: pointer; font-family: inherit;
  background: var(--bg); color: var(--text); transition: filter .1s;
}
.btn:hover { filter: brightness(.96); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); filter: none; }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn.small { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.ghost { background: transparent; border: 1.5px solid var(--border); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto;
}
.modal {
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px; padding: 24px;
  animation: pop .15s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal.wide { max-width: 1000px; }
.modal h2 { font-size: 19px; font-weight: 800; margin-bottom: 18px; }

/* ---------- Pôdorys ---------- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.plan-sub { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 5px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plan-box {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; display: flex; justify-content: center; align-items: center;
  overflow: auto;
}
.plan-box img { max-width: 100%; max-height: 68vh; object-fit: contain; display: block; }

.plan-thumb {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px; cursor: zoom-in; display: flex; justify-content: center;
  transition: border-color .12s;
}
.plan-thumb:hover { border-color: var(--primary); }
.plan-thumb img { max-width: 100%; max-height: 240px; object-fit: contain; display: block; }
.empty code { background: var(--bg); padding: 1px 5px; border-radius: 4px;
  font-size: 12.5px; border: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--surface); color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* Safari na iPhone renderuje input[type=date] po svojom: text vycentruje
   a poľu dá vlastnú minimálnu šírku, čím rozhodí mriežku formulára.
   Týmto sa dátumy zarovnajú rovnako ako ostatné polia. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  min-width: 0;
  min-height: 41px;
  line-height: 1.25;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { margin-left: auto; }
/* bez min-width:0 rozšíri široké pole celý stĺpec mriežky */
.form-grid > * { min-width: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ---------- Vybavenie editor ---------- */
.equip-edit-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.equip-edit-row input.name { flex: 1; }
.equip-edit-row input.qty { width: 72px; text-align: center; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #1e293b; color: #fff; padding: 11px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: pop .15s ease; max-width: 90vw;
}
.toast.err { background: var(--red); }
.toast.ok { background: var(--green); }

/* ---------- Rezervácie stránka ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.page-head h1 { font-size: 26px; font-weight: 800; }
.res-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.res-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.res-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.res-table tr:last-child td { border-bottom: none; }
.res-table .room-link { color: var(--primary); font-weight: 700; cursor: pointer; text-decoration: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- Upratovanie ---------- */
.nav-settings { font-size: 16px; padding: 8px 10px !important; }
.muted-note { font-size: 13px; color: var(--muted); font-weight: 500; }

.count-pill {
  display: inline-block; min-width: 24px; text-align: center; font-size: 13px;
  padding: 2px 8px; border-radius: 999px; margin-left: 4px; vertical-align: middle;
}
.count-pill.c-treba { background: var(--red-bg); color: var(--red); }
.count-pill.c-blizi { background: var(--orange-bg); color: var(--orange); }
.count-pill.c-ok    { background: var(--green-bg); color: var(--green); }

.room-card.cl-treba { border-top-color: var(--red); }
.room-card.cl-blizi { border-top-color: var(--orange); }
.room-card.cl-ok    { border-top-color: var(--green); }
.badge.cl-treba { background: var(--red-bg);    color: var(--red); }
.badge.cl-blizi { background: var(--orange-bg); color: var(--orange); }
.badge.cl-ok    { background: var(--green-bg);  color: var(--green); }

.cl-reason { font-size: 13px; color: var(--text); font-weight: 600; }
.cl-last { font-size: 12px; color: var(--muted); border-top: 1px solid var(--border);
  padding-top: 8px; margin-top: 2px; }

.cl-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 13px 18px; margin-bottom: 18px;
  border-left: 5px solid var(--green); font-size: 13.5px;
}
.cl-strip.cl-treba { border-left-color: var(--red); }
.cl-strip.cl-blizi { border-left-color: var(--orange); }
.cl-strip-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* checklist v okne upratovania */
.cl-tasks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cl-tasks-head label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cl-task {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; margin-bottom: 7px;
  background: var(--bg); border-radius: 10px; cursor: pointer; font-size: 14.5px;
  border: 1.5px solid transparent; user-select: none;
}
.cl-task:hover { border-color: var(--border); }
.cl-task input { width: 21px; height: 21px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.cl-task input:checked + span { color: var(--muted); text-decoration: line-through; }

/* fotky */
.photo-btns { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.photo-list { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-item { position: relative; width: 84px; height: 84px; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--border); }
.photo-del {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border: none;
  border-radius: 50%; background: var(--red); color: #fff; cursor: pointer;
  font-size: 12px; line-height: 1; display: flex; align-items: center; justify-content: center;
}

.cl-history { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 16px; }
.cl-history > label { font-size: 12.5px; font-weight: 600; color: var(--muted);
  display: block; margin-bottom: 8px; }
.cl-hist-row { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg); border-radius: 9px; margin-bottom: 7px; font-size: 13.5px; }
.cl-hist-fotky { display: flex; gap: 5px; flex-shrink: 0; }
.cl-hist-fotky img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px;
  cursor: zoom-in; border: 1px solid var(--border); }

/* ---------- Nastavenia ---------- */
.set-panel { max-width: 620px; }
.set-title { font-size: 14px; font-weight: 800; letter-spacing: .6px;
  color: var(--text); margin-bottom: 18px; }
.set-check { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px;
  background: var(--bg); border-radius: 10px; cursor: pointer; font-size: 14px;
  margin-top: 14px; }
.set-check input { width: 19px; height: 19px; accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0; margin-top: 1px; }
.set-check small { color: var(--muted); font-size: 12.5px; }
.add-dashed { width: 100%; border: 1.5px dashed var(--border) !important;
  background: transparent !important; color: var(--primary); margin-top: 4px; }
.add-dashed:hover { border-color: var(--primary) !important; background: var(--blue-bg) !important; }

/* ---------- Nastavenia – záložky ---------- */
.set-tabs { margin-bottom: 20px; }
a.filter-tab { text-decoration: none; display: inline-block; }

/* ---------- Nastavenia – ceny ubytovania ---------- */
.pr-note {
  background: var(--blue-bg); color: var(--primary); border-radius: 10px;
  padding: 11px 15px; font-size: 13.5px; font-weight: 500; margin-bottom: 18px;
}
.pr-predict { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-bottom: 14px; }
.pp-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; border-left: 5px solid var(--primary); }
.pp-card.pp-gap { border-left-color: var(--orange); }
.pp-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .5px; }
.pp-main { font-size: 26px; font-weight: 800; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.pp-sub { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.55; }
.pp-warn { background: var(--orange-bg); color: #92400e; border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px; }

.bulk { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; }
.bulk > label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.bulk-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bulk-row select { padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; background: var(--surface); }
.bulk-empty { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.bulk-empty input { accent-color: var(--primary); width: 16px; height: 16px; }
.bulk .btn { background: var(--surface); border: 1.5px solid var(--border); }
.bulk .btn:hover { border-color: var(--primary); color: var(--primary); filter: none; }
.bulk .hint, .panel > .hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.price-in { position: relative; display: inline-flex; align-items: center; }
.price-in input {
  width: 130px; padding: 8px 30px 8px 11px; border: 1.5px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; text-align: right; font-variant-numeric: tabular-nums;
  background: var(--surface); color: var(--text);
}
.price-in input:focus { outline: none; border-color: var(--primary); }
.price-in input::placeholder { color: #b6c0cd; font-size: 12.5px; }
.price-in input.bad { border-color: var(--red); background: var(--red-bg); }
.price-in span { position: absolute; right: 11px; color: var(--muted); font-size: 13.5px;
  pointer-events: none; }

.pr-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.pr-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--border); font-weight: 700; }
.pr-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.pr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pr-table .pr-floor td { background: var(--bg); font-weight: 800; font-size: 14.5px; padding: 11px 12px;
  border-bottom: none; }
.pr-table .pr-floor span { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 8px; }
.pr-table .pr-row:hover td { background: #fafbfd; }
.pr-table .pr-row.no-price td:not(:nth-child(3)) { color: var(--muted); }
.pr-table .room-link { font-weight: 800; font-size: 15px; color: var(--primary); text-decoration: none;
  padding: 4px 8px; margin-left: -8px; border-radius: 7px; }
.pr-table .room-link:hover { background: var(--blue-bg); }
.pr-table .pr-sum td { font-weight: 700; color: var(--muted); font-size: 13px; border-bottom: none;
  padding-bottom: 18px; }
.pr-table .pr-total td { font-weight: 800; font-size: 15px; border-top: 2px solid var(--text);
  border-bottom: none; padding-top: 12px; }

.save-bar {
  position: sticky; bottom: 16px; z-index: 40; margin-top: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #1e293b; color: #fff; padding: 12px 14px 12px 20px; border-radius: 14px;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px;
}
.save-bar-actions { display: flex; gap: 8px; }
.save-bar .btn:not(.primary) { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Prihlásenie ---------- */
.login-wrap { min-height: calc(100vh - 230px); display: flex; align-items: center; justify-content: center; }
.login-card {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  padding: 34px 32px 30px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px;
}
.login-logo { font-size: 42px; text-align: center; }
.login-card h1 { font-size: 21px; font-weight: 800; text-align: center; }
.login-sub { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: -8px; margin-bottom: 4px; }
.login-err { background: var(--red-bg); color: var(--red); font-size: 13.5px; font-weight: 600;
  padding: 10px 12px; border-radius: 9px; }
.login-btn { padding: 12px; font-size: 15px; margin-top: 4px; }
.login-btn:disabled { opacity: .7; cursor: wait; }

/* ---------- Menu používateľa ---------- */
.user-box { position: relative; display: flex; align-items: center; margin-left: 4px; }
.user-chip {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-family: inherit; font-weight: 800; font-size: 12.5px;
  letter-spacing: .3px;
}
.user-chip:hover { background: var(--primary-dark); }
.user-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; min-width: 230px;
  background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 4px;
}
.user-menu-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.user-menu-email { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; word-break: break-all; }

/* ---------- Logy ---------- */
.log-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.log-filters select, .log-filters input {
  padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px;
  font-family: inherit; background: var(--surface); color: var(--text);
}
.log-filters input { flex: 1; min-width: 200px; }
.log-filters select:focus, .log-filters input:focus { outline: none; border-color: var(--primary); }
.log-panel { padding: 8px 8px 12px; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
.log-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); padding: 10px 12px; border-bottom: 1.5px solid var(--border); }
.log-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.log-table tr:last-child td { border-bottom: none; }
.log-cas { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-user {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center;
  justify-content: center; background: var(--blue-bg); color: var(--primary);
  font-size: 10.5px; font-weight: 800; margin-right: 6px; vertical-align: middle;
}
.log-kto { white-space: nowrap; }
.log-mail { font-size: 12.5px; color: var(--muted); vertical-align: middle; }
.log-anon { color: #b6c0cd; }
.log-detail { line-height: 1.45; }
.log-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; white-space: nowrap; background: var(--bg); color: var(--text); }
.log-badge.t-hostia      { background: var(--blue-bg);   color: var(--primary); }
.log-badge.t-rezervacie  { background: #f1ebfd;          color: #7c3aed; }
.log-badge.t-izby        { background: #e6f6f8;          color: #0e7490; }
.log-badge.t-upratovanie { background: var(--green-bg);  color: var(--green); }
.log-badge.t-nastavenia  { background: var(--orange-bg); color: var(--orange); }
.log-badge.t-prihlasenie { background: var(--bg);        color: var(--muted); }
.log-badge.t-bezpecnost  { background: var(--red-bg);    color: var(--red); }
.log-foot { font-size: 12.5px; color: var(--muted); padding: 12px 12px 0; display: flex;
  align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .user-menu { right: auto; left: 0; }
  .login-card { padding: 28px 22px 24px; }
  .price-in input { width: 96px; }
  .pr-table td, .pr-table th { padding-left: 8px; padding-right: 8px; }
  .pr-table .room-link { margin-left: -4px; padding: 4px; }
  .topbar-inner { height: auto; padding: 10px 14px; flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
}
