*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-app: #1a1d27;
  --bg-surface: #21253a;
  --bg-card: #262b3d;
  --bg-input: #2a2f45;
  --border: #363c56;
  --border-hover: #4a5270;
  --text-primary: #eceef5;
  --text-secondary: #a0a8c0;
  --text-muted: #6b7290;
  --accent-blue: #7ab3f5;
  --accent-blue-bg: #1e2d4a;
  --accent-blue-border: #2e4a80;
  --accent-green: #4ade80;
  --accent-green-bg: #1a3a2a;
  --accent-green-border: #2d6a45;
  --accent-red: #f87171;
  --accent-red-bg: #3a1e1e;
  --accent-red-border: #6a2a2a;
  --accent-purple: #a78bfa;
  --accent-purple-bg: #251e3a;
  --accent-purple-border: #4a2a7a;
  --accent-yellow: #fbbf24;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ── Light mode — teplá písková / krémová paleta ────────────── */
body.light {
  /* Teplá písková — ne studená šedá, ne bílá */
  --bg-app:      #f5f0e8;   /* hlavní pozadí — teplý krém */
  --bg-surface:  #ede8dc;   /* topbar, sidebar panely */
  --bg-card:     #f9f6f0;   /* kartičky */
  --bg-input:    #ffffff;   /* inputy */
  --border:      #d6cfc0;   /* jemná teplá hranice */
  --border-hover:#b8af9e;

  --text-primary:   #1a1208;   /* velmi tmavá káva */
  --text-secondary: #3a3028;   /* tmavší hnědá */
  --text-muted:     #6e6354;   /* méně světlá hnědá */

  /* Akcenty — teplé, ne chladné modré */
  --accent-blue:        #5a7fcf;
  --accent-blue-bg:     #e8eef8;
  --accent-blue-border: #a8bed8;

  --accent-green:        #3a8a5c;
  --accent-green-bg:     #e2f0e8;
  --accent-green-border: #94c8a8;

  --accent-red:        #c44040;
  --accent-red-bg:     #f5e2e2;
  --accent-red-border: #dca0a0;

  --accent-purple:        #7050b8;
  --accent-purple-bg:     #ece8f5;
  --accent-purple-border: #baaad8;

  --accent-yellow: #b87820;
}

/* Komponenty — teplé povrchy */
body.light .topbar          { background: #e8e2d6; border-color: var(--border); box-shadow: 0 1px 3px rgba(44,36,22,0.08); }
body.light .banner-top      { background: #ede8dc; border-color: var(--border); }
body.light .banner-bottom   { background: #e8e2d6; border-color: var(--border); }
body.light .columns-grid .col { border-color: var(--border); }
body.light .card            { background: #f9f6f0; border-color: var(--border); }
body.light .card:hover      { border-color: var(--border-hover); }
body.light .modal           { background: #f5f0e8; border: 0.5px solid var(--border); box-shadow: 0 8px 40px rgba(44,36,22,0.18); }
body.light .modal-bg.open   { background: rgba(44,36,22,0.35); }
body.light .admin-wrap      { background: #f5f0e8; }
body.light .admin-section   { background: #f9f6f0; border-color: var(--border); }
body.light .select-wrap     { background: #f5f0e8; }
body.light .location-card   { background: #f9f6f0; border-color: var(--border); }
body.light .location-card:hover { background: #e8eef8; border-color: var(--accent-blue-border); }

/* Formulářové prvky */
body.light input, body.light select, body.light textarea { background: #fff; border-color: var(--border); color: var(--text-primary); }
body.light input:focus, body.light select:focus, body.light textarea:focus { border-color: var(--accent-blue); }
body.light select option { background: #f9f6f0; }

/* Tlačítka */
body.light button, body.light .btn { background: #e8e2d6; color: var(--text-secondary); border-color: var(--border); }
body.light button:hover, body.light .btn:hover { background: #ddd8cc; border-color: var(--border-hover); }
body.light .btn-primary { background: #5a7fcf !important; color: #fff !important; border-color: #4a6abf !important; }
body.light .btn-primary:hover { background: #4a6abf !important; }
body.light .btn-danger  { background: #c44040 !important; color: #fff !important; border-color: #a83030 !important; }

/* Topbar specifika */
body.light .location-pill { background: #ddd8cc; border-color: var(--border); }
body.light .eur-pill      { background: var(--accent-blue-bg); border-color: var(--accent-blue-border); }
body.light .shiftq-pill   { background: var(--accent-green-bg); border-color: var(--accent-green-border); }
body.light .user-chip     { background: #ddd8cc; border-color: var(--border); }
body.light .avatar        { background: #c8b89a; border-color: var(--border); color: #5a4e3c; }

/* Karty a chipsy */
body.light .reader-chip   { background: #ddd8cc; color: var(--text-secondary); border-color: var(--border); }
body.light .done-divider  { color: var(--text-muted); border-color: var(--border); }
body.light .card-text.task-collapsible.is-long::after { background: linear-gradient(transparent, #f9f6f0); }

/* Manažerský panel dlaždice */
body.light .mgr-tile       { background: #f9f6f0; border-color: var(--border); }
body.light .mgr-tile:hover { background: #e8eef8; border-color: var(--accent-blue-border); }
body.light .mgr-panel      { }
body.light .mgr-panel-header { border-color: var(--border); }
body.light .mgr-close      { color: var(--text-muted); }
body.light .mgr-close:hover { background: #ddd8cc; color: var(--text-primary); }

/* Shift calendar */
body.light .shiftq-day         { background: #f9f6f0; border-color: var(--border); }
body.light .shiftq-day.today   { border-color: var(--accent-blue) !important; background: var(--accent-blue-bg); }
body.light .shiftq-week-label  { color: var(--text-muted); }

/* Hotel info popup */
body.light .hotel-info-cat          { border-color: var(--border); }
body.light .hotel-info-cat-header   { background: #f9f6f0; color: var(--text-primary); }
body.light .hotel-info-cat-header:hover { background: #e8e2d6; }
body.light .hotel-info-cat-body     { background: #ffffff; border-color: var(--border); color: var(--text-secondary); }

/* Archiv */
body.light .archive-link { color: var(--accent-blue); }

/* Newsy / badges */
body.light .news-unread { background: #f9f6f0; border-color: var(--border); }

/* Toggle tlačítko ve světlém módu */
body.light .theme-toggle       { background: #e8c87a; border-color: #c8a840; }
body.light .theme-toggle-knob  { transform: translateX(20px); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

/* ── Light mode — opravy hardcoded barev ───────────────────── */

/* Topbar */
body.light .location-pill   { color: var(--text-primary); }
body.light .user-chip       { color: var(--text-primary); }
body.light .eur-label       { color: var(--text-secondary); }
body.light .eur-value       { color: var(--text-primary) !important; }
body.light .eur-month       { color: var(--text-muted); }
body.light .shiftq-pill     { background: #e8f0dc; border-color: #94b870; }
body.light .shiftq-label    { color: var(--text-secondary); }
body.light .shiftq-name     { color: #2a5010 !important; }
body.light .topbar-shift-status.is-open { background:#dff3e8; border-color:#8fc6a5; color:#1f6b45; }
body.light .topbar-shift-status.is-waiting { background:#f2e3cf; border-color:#c99b61; color:#7a4a12; }

/* Banner top — název hotelu, popis, bubliny */
body.light .banner-title    { color: var(--text-primary) !important; }
body.light .banner-text     { color: var(--text-secondary) !important; }
body.light .bb-label        { color: var(--text-muted) !important; }
body.light .bb-text         { color: var(--text-secondary) !important; }
body.light .archive-link    { color: var(--accent-blue); }

/* Sloupcové nadpisy */
body.light .col-title       { color: var(--text-secondary) !important; }
body.light .col-count       { color: var(--text-primary); background: #ddd8cc; }
body.light .add-btn         { color: var(--text-secondary); }

/* Kartičky — text úkolů, novinek, vzkazy bez data */
body.light .card-text       { color: var(--text-primary) !important; }
body.light .card-text.done  { color: var(--text-muted) !important; }
body.light .card-author     { color: var(--text-muted) !important; }
body.light .card-time       { color: var(--text-muted) !important; }
body.light .card-top        { }

/* Due badge barvy — ponech, ale ztmav text pokud je světlé pozadí */
body.light .due-overdue     { }
body.light .due-today       { }

/* Novinky */
body.light .news-title      { color: var(--text-primary) !important; }
body.light .news-unread .card-text { color: var(--text-secondary) !important; }
body.light .read-btn        { color: var(--accent-blue); border-color: var(--accent-blue-border); background: var(--accent-blue-bg); }
body.light .readers-label   { color: var(--text-muted); }
body.light .readers-pending { color: var(--text-muted); }

/* Done divider */
body.light .done-divider    { color: var(--text-muted) !important; border-color: var(--border); }

/* Výběr hotelu */
body.light .select-title        { color: var(--text-primary) !important; }
body.light .select-sub          { color: var(--text-secondary) !important; }
body.light .location-card-name  { color: var(--text-primary) !important; }

/* Admin/manager/hotel-settings stránky */
body.light .admin-title         { color: var(--text-primary) !important; }
body.light .admin-section-title { color: var(--text-secondary) !important; }
body.light .data-table th       { color: var(--text-muted); border-color: var(--border); }
body.light .data-table td       { color: var(--text-primary); border-color: var(--border); }

/* Archiv */
body.light .archive-item-text   { color: var(--text-primary) !important; }
body.light .archive-item-meta   { color: var(--text-muted) !important; }

/* Modaly */
body.light .modal-title         { color: var(--text-primary) !important; }

/* Shift kalendář */
body.light .shiftq-day-label    { color: var(--text-muted); }
body.light .shiftq-day-num      { color: var(--text-primary); }
body.light .shiftq-week-label   { color: var(--text-muted); border-color: var(--border); }
body.light .shiftq-day-person   { font-weight: 600; }

/* Manažerský panel dlaždice */
body.light .mgr-tile-label      { color: var(--text-primary) !important; }
body.light .mgr-tile-sub        { color: var(--text-secondary) !important; }
body.light .mgr-panel-title     { color: var(--text-primary) !important; }

/* Hotel info popup — Neznam, Tech, Sluzby */
body.light .hotel-info-cat-header { color: var(--text-primary) !important; }
body.light .hotel-info-cat-body   { color: var(--text-secondary) !important; }
body.light .hotel-info-cat-arrow  { color: var(--text-muted) !important; }

/* Inline styly s color:#fff — globální override pro light mode */
body.light [style*="color:#fff"],
body.light [style*="color: #fff"],
body.light [style*="color:#ffffff"],
body.light [style*="color: #ffffff"] {
  color: var(--text-primary) !important;
}
/* Výjimky — bílý text na barevném pozadí zůstane bílý */
body.light .btn-primary [style*="color:#fff"],
body.light .btn-danger [style*="color:#fff"],
body.light [style*="background:#ef4444"] ,
body.light [style*="background: #ef4444"] { color: #fff !important; }

/* Inline color:#d0d4e8 */
body.light [style*="color:#d0d4e8"],
body.light [style*="color: #d0d4e8"] { color: var(--text-primary) !important; }

/* Inline color fca5a5 (červený text mimořádné události) */
body.light [style*="color:#fca5a5"] { color: #a83030 !important; }

/* Amenity dlazdice bublinky */
body.light span[style*="border-radius:20px"] { 
  background: #e8e2d6 !important; 
  border-color: var(--border) !important; 
  color: var(--text-primary) !important; 
}

/* Theme toggle button */

.theme-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.theme-toggle:hover { border-color: var(--border-hover); }
.theme-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  left: 3px;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.light .theme-toggle { background: #c7d2fe; border-color: #818cf8; }
body.light .theme-toggle-knob { transform: translateX(20px); background: #fff; }

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-app); color: var(--text-primary); font-size: 14px; line-height: 1.5; min-height: 100vh; overflow-y: auto; }
a { color: var(--accent-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

button, .btn { cursor: pointer; border: 0.5px solid var(--border); background: var(--bg-input); color: var(--text-secondary); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 13px; font-family: inherit; transition: border-color 0.15s, background 0.15s; }
button:hover, .btn:hover { border-color: var(--border-hover); background: #303660; }
.btn-primary { background: var(--accent-blue-bg); border-color: var(--accent-blue-border); color: var(--accent-blue); }
.btn-primary:hover { background: #253578; }
.btn-danger { background: var(--accent-red-bg); border-color: var(--accent-red-border); color: var(--accent-red); }
.btn-muted-danger { background: rgba(248,113,113,0.08); border-color: rgba(248,113,113,0.28); color: #f87171; }
.btn-muted-danger:hover { background: rgba(248,113,113,0.16); border-color: rgba(248,113,113,0.42); }
.btn-restore { background: var(--accent-green-bg); border-color: var(--accent-green-border); color: var(--accent-green); }
.btn-restore:hover { background: rgba(34,197,94,0.18); }
.btn-sm { padding: 3px 9px; font-size: 11px; }

input, select, textarea { background: var(--bg-input); border: 0.5px solid var(--border); color: var(--text-primary); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; font-family: inherit; width: 100%; outline: none; transition: border-color 0.15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-blue-border); }
textarea { resize: vertical; min-height: 70px; }
select option { background: var(--bg-surface); }
label { font-size: 12px; color: var(--text-secondary); display: block; margin-bottom: 4px; }

/* TOPBAR */
.topbar { background: var(--bg-surface); border-bottom: 0.5px solid var(--border); padding: 0 20px; height: 50px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; gap: 12px; }
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; overflow: hidden; }
.location-pill { background: var(--bg-input); border: 0.5px solid var(--border-hover); border-radius: 20px; padding: 4px 12px; font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.location-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-green); flex-shrink: 0; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-shift-status { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:inline-flex; align-items:center; gap:8px; max-width:340px; padding:6px 14px; border-radius:999px; border:0.5px solid var(--border); font-size:12px; font-weight:900; white-space:nowrap; box-shadow:0 8px 18px rgba(0,0,0,.12); }
.topbar-shift-status.is-open { background:#102f20; border-color:#2f8a5c; color:#86efac; }
.topbar-shift-status.is-waiting { background:#3a2816; border-color:#8a5a22; color:#f8d59a; }
.topbar-shift-status i { font-size:15px; }
.module-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.module-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.module-nav-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
}
.module-nav-link.active {
  background: var(--accent-blue-bg);
  border-color: var(--accent-blue-border);
  color: var(--accent-blue);
}
.module-nav-link i {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}
.user-chip { font-size: 12px; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #2d3560; border: 0.5px solid var(--border-hover); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #8b9cf4; flex-shrink: 0; }
/* EUR PILL */
.eur-pill { display: flex; align-items: center; gap: 6px; background: var(--accent-blue-bg); border: 0.5px solid var(--accent-blue-border); border-radius: 20px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
.eur-label { color: var(--accent-blue); font-weight: 600; font-size: 11px; }
.eur-value { color: #fff; font-weight: 500; }
.eur-month { color: var(--text-muted); font-size: 11px; }

/* SHIFT Q PILL */
.shiftq-pill { display: flex; align-items: center; gap: 6px; background: #2a2015; border: 0.5px solid #5a4010; border-radius: 20px; padding: 4px 12px; font-size: 12px; white-space: nowrap; }
.shiftq-label { color: var(--accent-yellow); font-weight: 600; font-size: 11px; }
.shiftq-name { color: #fff; font-weight: 500; }

/* BANNERS */
.banner-top { background: #1e2238; border-bottom: 0.5px solid var(--border); padding: 14px 20px; }
.banner-bottom { background: var(--bg-surface); border-top: 0.5px solid var(--border); padding: 14px 20px; }
.banner-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; flex-wrap: wrap; }
.banner-title { font-size: 16px; font-weight: 600; color: #fff; }
.banner-location-logo { height: 36px; max-width: 120px; object-fit: contain; opacity: 0.9; }
.badge { border-radius: 20px; padding: 3px 10px; font-size: 11px; display: inline-flex; align-items: center; }
.badge-blue { background: #1e2d4a; border: 0.5px solid var(--accent-blue-border); color: var(--accent-blue); }
.badge-green { background: var(--accent-green-bg); border: 0.5px solid var(--accent-green-border); color: var(--accent-green); }
.badge-red { background: var(--accent-red-bg); border: 0.5px solid var(--accent-red-border); color: var(--accent-red); }
.badge-purple { background: var(--accent-purple-bg); border: 0.5px solid var(--accent-purple-border); color: var(--accent-purple); }
.badge-amber { background: #3a2b12; border: 0.5px solid rgba(245,158,11,0.35); color: #fbbf24; }
.admin-inline-check { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.banner-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.bb-grid { display: grid; grid-template-columns: 1fr 1px auto; gap: 16px; align-items: start; }
.bb-divider { background: var(--border); }
.bb-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.bb-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.archive-link { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.archive-link:hover { color: var(--accent-blue); text-decoration: none; }

/* PROVOZNI POKYNY - bubliny */
.pp-bubble { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 8px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pp-bubble:last-child { margin-bottom: 0; }
.pp-bubble-text { flex: 1; }

/* COLUMNS */
.columns-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 0.5px solid var(--border); }
.col { border-right: 0.5px solid var(--border); padding: 14px; min-height: 300px; }
.col:last-child { border-right: none; }
.col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.col-title { font-size: 11px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.07em; }
.col-meta { display: flex; align-items: center; gap: 6px; }
.col-count { background: var(--bg-input); border-radius: 10px; padding: 2px 7px; font-size: 11px; color: var(--text-muted); }
.add-btn { width: 22px; height: 22px; border-radius: var(--radius-sm); background: var(--bg-input); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text-muted); cursor: pointer; padding: 0; transition: all 0.15s; }
.add-btn:hover { border-color: var(--accent-blue-border); color: var(--accent-blue); }
.add-text-btn { color: var(--accent-blue); border-color: var(--accent-blue-border); background: var(--accent-blue-bg); }

/* CARDS */
.card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 8px; transition: border-color 0.15s; }
.card:hover { border-color: var(--border-hover); }
.card.done { opacity: 0.45; }
.card.news-unread { border-left: 2px solid #4a6af5; }
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.card-text { font-size: 13px; color: #d0d4e8; line-height: 1.5; flex: 1; }
.card-text.done { color: var(--text-muted); text-decoration: line-through; }
.card-text.task-collapsible { position: relative; max-height: calc(1.5em * 3); overflow: hidden; cursor: default; transition: max-height 0.25s ease; }
.card-text.task-collapsible.is-long { cursor: pointer; }
.card-text.task-collapsible.is-long::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1.5em; background: linear-gradient(transparent, var(--bg-card)); pointer-events: none; transition: opacity 0.2s; }
.card-text.task-collapsible.expanded { max-height: 400px; }
.card-text.task-collapsible.expanded::after { opacity: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.card-author { font-size: 11px; color: var(--text-muted); }
.card-time { font-size: 11px; color: var(--text-muted); }

/* CHECKBOX */
.check { width: 16px; height: 16px; border-radius: 4px; border: 0.5px solid var(--border-hover); flex-shrink: 0; margin-top: 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.check:hover { border-color: var(--accent-green-border); }
.check.checked { background: var(--accent-green-bg); border-color: var(--accent-green-border); }
.check svg { display: none; }
.check.checked svg { display: block; }

/* DONE DIVIDER */
.done-divider { font-size: 10px; color: var(--border-hover); text-transform: uppercase; letter-spacing: 0.08em; margin: 10px 0 8px; display: flex; align-items: center; gap: 8px; }
.done-divider::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }

/* READ BTN */
.read-btn { flex-shrink: 0; background: var(--accent-blue-bg); border: 0.5px solid var(--accent-blue-border); border-radius: var(--radius-sm); padding: 3px 9px; font-size: 11px; color: var(--accent-blue); cursor: pointer; white-space: nowrap; font-family: inherit; }
.read-btn:hover { background: #253578; }

/* NEWS TITLE */
.news-title { font-size: 14px; font-weight: 700; color: #ffffff; letter-spacing: -0.01em; margin-bottom: 2px; }

/* READERS */
.readers-row { margin-top: 7px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.readers-label { font-size: 10px; color: var(--text-muted); }
.reader-chip { background: var(--accent-green-bg); border: 0.5px solid var(--accent-green-border); border-radius: 10px; padding: 2px 7px; font-size: 10px; color: var(--accent-green); }
.readers-pending { font-size: 10px; color: var(--text-muted); }

/* VIEW TOGGLE */
.view-toggle { display: flex; gap: 5px; margin-bottom: 12px; }
.vtbtn { padding: 4px 10px; font-size: 11px; }
.vtbtn.active { background: var(--accent-blue-bg); border-color: var(--accent-blue-border); color: var(--accent-blue); }

/* ADD FORM */
.add-form { background: #1c2035; border: 0.5px solid var(--border-hover); border-radius: var(--radius-md); padding: 10px 12px; margin-bottom: 10px; display: none; }
.add-form.open { display: block; }
.add-form-row { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
body.light .add-form { background: #f9f6f0; border-color: var(--border); }
.scope-select { width: auto; flex-shrink: 0; }
.form-field-row { margin-bottom: 4px; }

/* DUE DATE BADGES */
.due-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; flex-shrink: 0; }
.due-today { background: #1a3a1a; border: 0.5px solid #2d6a2d; color: #4ade80; }
.due-tomorrow { background: #2a2510; border: 0.5px solid #5a4a10; color: #fbbf24; }
.due-future { background: var(--accent-blue-bg); border: 0.5px solid var(--accent-blue-border); color: var(--accent-blue); }
.due-overdue { background: var(--accent-red-bg); border: 0.5px solid var(--accent-red-border); color: var(--accent-red); }

/* LOGIN */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px; width: 360px; }
.login-logo-img { width: 160px; margin-bottom: 24px; display: block; filter: brightness(0) invert(1); opacity: 0.9; }
.login-app-name { font-size: 13px; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.error-msg { background: var(--accent-red-bg); border: 0.5px solid var(--accent-red-border); color: var(--accent-red); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 13px; margin-bottom: 16px; }
.login-submit { width: 100%; padding: 10px; font-size: 14px; background: var(--accent-blue-bg); border-color: var(--accent-blue-border); color: var(--accent-blue); margin-top: 4px; }
.login-submit:hover { background: #253578; }

/* SELECT LOCATION */
.select-wrap { max-width: 700px; margin: 60px auto; padding: 0 20px; }
.select-title { font-size: 20px; font-weight: 500; color: #fff; margin-bottom: 6px; }
.select-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.locations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.location-card { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 16px 16px 14px; cursor: pointer; transition: all 0.15s; text-align: left; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
.location-card:hover { border-color: var(--accent-blue-border); background: var(--accent-blue-bg); }
.location-card-name { font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.location-card-sub { font-size: 11px; color: var(--text-muted); }

/* ADMIN */
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 30px 20px; }
.admin-title { font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 24px; }
.admin-section { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.admin-section-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 8px 12px; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 0.5px solid var(--border); font-weight: 400; }
.data-table td { padding: 10px 12px; border-bottom: 0.5px solid var(--border); color: var(--text-primary); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.form-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-row .form-group { margin-bottom: 0; }

/* ARCHIVE */
.archive-wrap { max-width: 900px; margin: 0 auto; padding: 30px 20px; }
.archive-item { background: var(--bg-surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 8px; }
.archive-item-text { font-size: 13px; color: #d0d4e8; margin-bottom: 6px; }
.archive-item-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* MODAL */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-surface); border: 0.5px solid var(--border-hover); border-radius: var(--radius-lg); padding: 24px; width: 440px; max-width: 95vw; }
.modal-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.reception-task-modal {
  width: min(680px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.36);
}
.reception-task-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.reception-task-modal-title {
  margin-bottom: 2px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.reception-task-modal-sub {
  color: var(--text-muted);
  font-size: 12px;
}
.reception-task-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.reception-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.42fr);
  gap: 12px;
  margin-bottom: 12px;
}
.reception-task-textarea {
  min-height: 120px;
  line-height: 1.55;
}
body.light .reception-task-modal {
  border-color: rgba(197,185,164,0.75);
  box-shadow: 0 24px 70px rgba(44,36,22,0.18);
}
body.light .reception-task-modal-title {
  color: #151515;
}
@media (max-width: 640px) {
  .reception-task-modal {
    padding: 18px;
    border-radius: 18px;
  }
  .reception-task-grid {
    grid-template-columns: 1fr;
  }
}

/* SHIFT Q CALENDAR */
.shiftq-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; }
.shiftq-day { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 6px 4px; text-align: center; cursor: pointer; transition: all 0.15s; min-height: 60px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.shiftq-day:hover { border-color: var(--border-hover); }
.shiftq-day.has-person { border-color: #5a4010; background: #2a2015; }
.shiftq-day.today { border-color: var(--accent-blue-border); }
.shiftq-day-label { font-size: 10px; color: var(--text-muted); }
.shiftq-day-num { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.shiftq-day-person { font-size: 9px; color: var(--accent-yellow); text-align: center; line-height: 1.2; }
.shiftq-week-label { grid-column: 1 / -1; font-size: 10px; color: var(--text-muted); padding: 4px 0 2px; border-top: 0.5px solid var(--border); margin-top: 4px; }

/* FADE */
.fade-out { animation: fadeSlide 0.35s ease forwards; }
@keyframes fadeSlide { to { opacity: 0; transform: translateY(-4px); max-height: 0; padding: 0; margin: 0; overflow: hidden; } }

/* UTIL */
.text-muted { color: var(--text-muted); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Hotel info popup - kategorie */
.hotel-info-cat { border: 0.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.hotel-info-cat-header { width: 100%; background: var(--bg-card); border: none; color: var(--text-primary); font-size: 13px; font-weight: 600; padding: 11px 14px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; transition: background 0.15s; }
.hotel-info-cat-header:hover { background: var(--bg-input); }
.hotel-info-cat-arrow { color: var(--text-muted); font-size: 12px; flex-shrink: 0; transition: transform 0.15s; }
.hotel-info-cat-body { padding: 12px 16px; font-size: 13px; color: var(--text-secondary); background: var(--bg-surface); border-top: 0.5px solid var(--border); }

/* ── User dropdown menu ─────────────────────────────────────── */
.user-menu-wrap {
  position: relative;
}
.user-chip {
  cursor: pointer;
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  border: 0.5px solid var(--border);
  background: var(--bg-input);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.user-chip:hover { border-color: var(--border-hover); background: var(--bg-card); }
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 200;
  overflow: hidden;
  animation: dropIn 0.15s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown.open { display: block; }
.user-dropdown-header {
  padding: 10px 14px 8px;
  font-size: 12px;
  color: var(--text-muted);
  border-bottom: 0.5px solid var(--border);
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  gap: 10px;
  text-decoration: none;
}
.user-dropdown-item:hover { background: var(--bg-card); color: var(--text-primary); }
.user-dropdown-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.user-dropdown-divider { height: 0.5px; background: var(--border); margin: 4px 0; }
.user-dropdown-item.logout { color: var(--accent-red); }
.user-dropdown-item.logout:hover { background: var(--accent-red-bg); }

/* Light mode dropdown */
body.light .user-chip { background: #ddd8cc; border-color: var(--border); }
body.light .user-dropdown { background: #f9f6f0; box-shadow: 0 8px 24px rgba(44,36,22,0.18); }
body.light .user-dropdown-item:hover { background: #e8e2d6; }
body.light .user-dropdown-item-icon { background: #e8e2d6; }
.disabled-tile { cursor: not-allowed !important; }
.disabled-tile:hover { transform: none !important; border-color: var(--border) !important; background: var(--bg-surface) !important; }

/* ── KK Floating Drawer ──────────────────────────────────────── */

/* Wrapper pro columns + KK drawer dohromady */
.columns-kk-wrap {
  position: relative;
  display: flex;
  border-bottom: 0.5px solid var(--border);
}

/* columns-grid zabere zbývající místo */
.columns-kk-wrap .columns-grid {
  flex: 1;
  border-bottom: none; /* border je na wrappu */
  /* Úkoly 40%, Vzkazy bez data zbytek — mění se JS */
  grid-template-columns: 40% 1fr;
  min-width: 0;
}

.kk-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;        /* 40% šířky celého wrappu */
  max-width: 560px;
  background: var(--bg-surface);
  border-left: 0.5px solid var(--border);
  z-index: 10;
  display: flex;
  flex-direction: row;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -4px 0 16px rgba(0,0,0,0.12);
}
.kk-drawer.kk-collapsed {
  transform: translateX(100%);
}
.kk-tab {
  width: 28px;
  flex-shrink: 0;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  transition: background 0.15s;
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  border-radius: 8px 0 0 8px;
  border: 0.5px solid var(--border);
  border-right: none;
}
.kk-tab:hover { background: var(--bg-input); }
.kk-tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.kk-tab-count {
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 5px;
  min-width: 16px;
  text-align: center;
  line-height: 1.4;
}
.kk-tab-count:empty, .kk-tab-count[data-zero="true"] { display: none; }
.kk-tab-arrow {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1;
}
.kk-drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* KK Radio buttons */
.kk-radio-label { cursor: pointer; }
.kk-radio-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: var(--bg-input);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s;
  user-select: none;
}
.kk-radio-label input:checked + .kk-radio-btn {
  background: var(--accent-blue-bg);
  border-color: var(--accent-blue-border);
  color: var(--accent-blue);
}
.kk-radio-btn:hover { border-color: var(--border-hover); }
.kk-type-hint {
  margin-top: 9px;
  padding: 9px 11px;
  border: 0.5px solid rgba(96, 165, 250, 0.30);
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.10);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.42;
}
.kk-type-hint.vcc-warning {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.10));
  color: #fbbf24;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.10);
}
body.light .kk-type-hint.vcc-warning {
  border-color: rgba(217, 119, 6, 0.38);
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  color: #92400e;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

/* Light mode */
body.light .kk-drawer { box-shadow: -4px 0 20px rgba(44,36,22,0.12); }
body.light .kk-tab { background: #e8e2d6; }
body.light .kk-tab:hover { background: #ddd8cc; }
body.light .kk-radio-btn { background: #fff; }
.kk-vcc-mail-card {
  margin-top: 8px;
  padding: 9px 10px;
  border: 0.5px solid rgba(245, 158, 11, 0.38);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.10);
  color: var(--text-secondary);
  max-width: 720px;
}
.kk-vcc-mail-card.sent {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
}
.kk-vcc-mail-card.sent-ops {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(148, 163, 184, 0.12);
}
.kk-vcc-mail-card.sent-ops.new-card {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.12);
}
.kk-vcc-mail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.kk-vcc-mail-head strong {
  color: #fbbf24;
  font-size: 12px;
}
.kk-vcc-mail-card.sent .kk-vcc-mail-head strong { color: var(--accent-green); }
.kk-vcc-mail-card.sent-ops .kk-vcc-mail-head strong { color: var(--text-secondary); }
.kk-vcc-mail-card.sent-ops.new-card .kk-vcc-mail-head strong { color: #f59e0b; }
.kk-vcc-mail-head span {
  color: var(--text-muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.kk-vcc-mail-to {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.kk-vcc-mail-to span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}
.kk-vcc-mail-to code {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
}
.kk-vcc-mail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  flex-wrap: wrap;
}
.kk-vcc-mail-action-left {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.kk-vcc-create-mail {
  border-color: rgba(245, 158, 11, 0.58) !important;
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.22);
}
.kk-vcc-mail-sent-btn {
  margin-left: auto;
}
.kk-vcc-ops-actions {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 2px;
}
body.light .kk-vcc-mail-card {
  background: #fff7ed;
  border-color: rgba(217, 119, 6, 0.30);
}
body.light .kk-vcc-mail-card.sent {
  background: #ecfdf5;
  border-color: rgba(22, 163, 74, 0.24);
}
body.light .kk-vcc-mail-card.sent-ops {
  background: #f1f5f9;
  border-color: rgba(100, 116, 139, 0.24);
}
body.light .kk-vcc-mail-card.sent-ops.new-card {
  background: #fef3c7;
  border-color: rgba(217, 119, 6, 0.36);
}
body.light .kk-vcc-mail-head strong { color: #92400e; }
body.light .kk-vcc-mail-card.sent .kk-vcc-mail-head strong { color: #15803d; }
body.light .kk-vcc-mail-card.sent-ops .kk-vcc-mail-head strong { color: #475569; }
body.light .kk-vcc-mail-card.sent-ops.new-card .kk-vcc-mail-head strong { color: #92400e; }

/* ── Sidebar layout ──────────────────────────────────────────── */
.app-layout {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 50px); /* minus topbar */
  overflow: hidden;
}
.hotel-strip {
  display: flex;
  flex-shrink: 0;
  border-bottom: 0.5px solid var(--border);
}
.hotel-strip-info {
  width: 350px;
  flex-shrink: 0;
  padding: 10px 12px;
  border-right: 0.5px solid var(--border);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}
.hotel-strip-banner {
  flex: 1;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  min-height: 0;
}
.app-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.app-sidebar {
  width: 215px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* HOP sablony */
.hop-module {
  background: var(--bg-main);
}
.hop-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 16px;
}
.hop-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(15,23,42,0.04);
}
.hop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.hop-card-head.compact {
  align-items: center;
}
.hop-card h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 750;
}
.hop-card p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
}
.hop-pill {
  display: inline-flex;
  align-items: center;
  border: 0.5px solid rgba(37,99,235,0.22);
  border-radius: 999px;
  background: rgba(37,99,235,0.08);
  color: var(--accent-blue);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.hop-form {
  display: grid;
  gap: 12px;
}
.hop-form label {
  display: grid;
  gap: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 650;
}
.hop-form input,
.hop-form select {
  width: 100%;
  height: 38px;
  border: 0.5px solid var(--border);
  border-radius: 9px;
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 0 10px;
  font-size: 13px;
}
.hop-grid-2,
.hop-grid-3 {
  display: grid;
  gap: 10px;
}
.hop-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hop-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hop-terms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hop-term-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px !important;
  min-height: 42px;
  border: 0.5px solid var(--border);
  border-radius: 11px;
  background: var(--bg-input);
  color: var(--text-primary) !important;
  padding: 9px 10px;
  cursor: pointer;
}
.hop-term-toggle input {
  width: 16px;
  height: 16px;
}
.hop-price-grid {
  display: grid;
  grid-template-columns: 150px repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: rgba(37,99,235,0.035);
  padding: 10px;
}
.hop-price-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
  padding-bottom: 9px;
}
.hop-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}
.hop-preview-card {
  min-width: 0;
}
.hop-preview-empty,
.hop-preview-email {
  min-height: 430px;
  max-height: 640px;
  overflow: auto;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}
.hop-preview-empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 28px;
  text-align: center;
}
.hop-preview-email {
  padding: 8px;
}
.hop-feedback {
  display: none;
  margin-bottom: 10px;
  border: 0.5px solid rgba(22,163,74,0.24);
  border-radius: 10px;
  background: rgba(22,163,74,0.08);
  color: #15803d;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 650;
}
.hop-feedback.show { display: block; }
.hop-feedback.error {
  border-color: rgba(220,38,38,0.24);
  background: rgba(220,38,38,0.08);
  color: #dc2626;
}
.hop-history {
  display: grid;
  gap: 8px;
}
.hop-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 0.5px solid var(--border);
  border-radius: 11px;
  background: var(--bg-input);
  padding: 10px 12px;
}
.hop-history-row strong {
  display: block;
  color: var(--text-primary);
  font-size: 13px;
}
.hop-history-row span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 3px;
}
.hop-history-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 22px;
  border: 0.5px dashed var(--border);
  border-radius: 12px;
  font-size: 13px;
}
body.light .hop-price-grid {
  background: #f6f8fb;
}
body.light .hop-preview-empty,
body.light .hop-preview-email {
  background: #f8fafc;
}
@media (max-width: 1180px) {
  .hop-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hop-grid-2,
  .hop-grid-3,
  .hop-terms,
  .hop-price-grid,
  .hop-history-row {
    grid-template-columns: 1fr;
  }
  .hop-card-head,
  .hop-card-head.compact {
    align-items: stretch;
    flex-direction: column;
  }
  .hop-actions {
    flex-direction: column-reverse;
  }
  .hop-actions .btn,
  .hop-card-head .btn {
    width: 100%;
  }
}
.app-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sidebar-hotel {
  padding: 12px 12px 10px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.sidebar-hotel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.2;
}
.sidebar-hotel-addr {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.3;
}
.sidebar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 8px;
}
.sidebar-chip {
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 2px 7px;
  font-size: 9px;
  color: var(--text-muted);
  line-height: 1.4;
}
.sidebar-info-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}
.sidebar-info-btn {
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 10px;
  cursor: pointer;
  border: 0.5px solid;
  background: none;
  font-family: inherit;
  white-space: nowrap;
}
.sidebar-nav {
  flex: 1;
  padding: 6px 0 16px;
}
.sidebar-nav-section {
  padding: 10px 14px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 500;
}
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.12s;
  position: relative;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.sidebar-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-nav-item.active { background: var(--bg-card); color: var(--text-primary); font-weight: 500; }
.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2.5px;
  background: var(--accent-blue);
  border-radius: 0 2px 2px 0;
}
.sidebar-nav-item.dim { opacity: 0.35; cursor: not-allowed; }
.sidebar-nav-item.dim:hover { background: none; }
.sidebar-nav-badge {
  margin-left: auto;
  background: var(--accent-red);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-nav-soon {
  margin-left: auto;
  font-size: 8px;
  color: var(--text-muted);
  opacity: 0.6;
}
.sidebar-nav-icon { width: 18px; flex-shrink: 0; font-size: 16px; }

/* Light mode sidebar */
body.light .app-sidebar { background: #ede8dc; }
body.light .sidebar-nav-item:hover { background: #e0dace; }
body.light .sidebar-nav-item.active { background: #e0dace; }
body.light .sidebar-hotel-name { color: var(--text-primary); }

/* ── App views ───────────────────────────────────────────────── */
.app-view { display: none; flex-direction: column; flex: 1; }
.app-view.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.app-view > .columns-kk-wrap { flex: 1; }
#view-transfers.active { overflow-y: auto; }

/* Sidebar nav override for <a> tags */
a.sidebar-nav-item { color: var(--text-secondary); }
a.sidebar-nav-item:hover { color: var(--text-primary); }

/* Make topbar height explicit for layout calc */
.topbar { height: 50px; flex-shrink: 0; }

/* Transfers view */
.reception-module {
  padding: 20px clamp(28px, 7vw, 10%);
}
.reception-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.reception-module-title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}
.reception-module-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.reception-module-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0;
}
.reception-module-title i {
  font-size: 24px;
  color: var(--accent-blue);
}
.reception-module-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 0.5px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.reception-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 13px;
  white-space: nowrap;
}
.reception-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.reception-modern-toolbar {
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 0.5px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,0.03);
}
.reception-search-wrap {
  flex: 1 1 280px;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 11px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-muted);
}
.reception-search-wrap i {
  font-size: 16px;
  flex: 0 0 auto;
}
.reception-search {
  flex: 1;
  min-width: 220px;
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 8px;
  border: 0.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
}
.reception-search-wrap .reception-search {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
.reception-date-filter {
  height: 38px;
  padding: 0 11px;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}
.reception-filter-pill,
.reception-filter-clear {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.reception-filter-pill span {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 11px;
}
.reception-filter-pill:hover,
.reception-filter-pill.active {
  color: var(--accent-blue);
  border-color: var(--accent-blue-border);
  background: var(--accent-blue-bg);
}
.reception-filter-pill.danger span {
  color: var(--accent-red);
  background: var(--accent-red-bg);
}
.reception-filter-clear {
  color: var(--text-muted);
  background: transparent;
}
.reception-filter-clear:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.reception-module-subtitle {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: -10px;
}
.reception-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-input);
  margin-left: auto;
}
.reception-view-toggle button {
  border: 0;
  border-radius: 9px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.reception-view-toggle button:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}
.reception-view-toggle button.active {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
}
.reception-view-toggle button.active:hover {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
}
.reception-empty-state {
  border: 0.5px solid var(--border);
  background: var(--bg-card);
  border-radius: 13px;
  padding: 30px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.reception-defect-form-grid {
  display: grid;
  grid-template-columns: 150px 150px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.reception-defect-form-grid label,
.reception-defect-description label {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.reception-defect-form-grid input,
.reception-defect-form-grid select,
.reception-defect-description textarea {
  width: 100%;
}
.reception-defect-description textarea {
  min-height: 90px;
}
.reception-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.reception-defect-toolbar {
  padding: 10px;
  border: 0.5px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,0.03);
}
.reception-defect-toolbar .reception-search {
  flex: 1 1 420px;
}
.reception-defect-table-wrap {
  border: 0.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
}
.reception-defect-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.reception-defect-table th {
  color: var(--text-muted);
  background: var(--bg-input);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
}
.reception-defect-table td {
  padding: 11px 12px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  vertical-align: top;
}
.reception-defect-table tr:last-child td {
  border-bottom: 0;
}
.reception-defect-table th:nth-child(1) { width: 92px; }
.reception-defect-table th:nth-child(2) { width: 110px; }
.reception-defect-table th:nth-child(4) { width: 95px; }
.reception-defect-table th:nth-child(5) { width: 130px; }
.reception-defect-table th:nth-child(6) { width: 135px; }
.reception-defect-table th:nth-child(7) { width: 118px; }
.reception-defect-title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
}
.reception-defect-desc {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.reception-defect-status,
.reception-defect-priority,
.reception-defect-note-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}
.reception-defect-status.status-new {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.16);
}
.reception-defect-status.status-assigned,
.reception-defect-status.status-in_progress {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}
.reception-defect-priority.urgent {
  color: #dc2626;
  background: rgba(248, 113, 113, 0.16);
}
.reception-defect-priority.normal {
  color: var(--accent-blue);
  background: var(--accent-blue-bg);
}
.reception-defect-note-count {
  color: var(--text-secondary);
  background: var(--bg-input);
  margin-top: 6px;
}
.reception-defect-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.reception-defect-card {
  border: 0.5px solid var(--border);
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 14px 16px;
}
.reception-defect-card-head,
.reception-defect-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.reception-defect-card-title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 800;
}
.reception-defect-card-room,
.reception-defect-card-author,
.reception-defect-card-meta {
  color: var(--text-muted);
  font-size: 11px;
}
.reception-defect-card-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 10px;
  white-space: pre-wrap;
}
.reception-defect-card-meta {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 0.5px solid var(--border);
}
.reception-defect-card-author {
  margin-top: 8px;
}
.reception-defect-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.reception-defect-notes div {
  border: 0.5px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.reception-defect-notes strong {
  display: block;
  color: var(--text-primary);
  font-size: 11px;
  margin-bottom: 3px;
}
.reception-defect-notes span {
  white-space: pre-wrap;
}
.reception-module-transfers .reception-modern-toolbar,
.reception-module-kk .reception-modern-toolbar {
  flex-wrap: nowrap;
}
.reception-module-transfers .reception-search-wrap,
.reception-module-kk .reception-search-wrap {
  flex: 1 1 50%;
  max-width: 50%;
}
.reception-module-transfers .reception-date-filter,
.reception-module-kk .reception-date-filter {
  margin-left: auto;
  flex: 0 0 145px;
}
.btn.tf-cancel-btn,
.btn.reception-create-cancel {
  color: #991b1b !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
  background: rgba(254, 226, 226, 0.72) !important;
}
.btn.tf-cancel-btn:hover,
.btn.reception-create-cancel:hover {
  color: #7f1d1d !important;
  border-color: rgba(239, 68, 68, 0.75) !important;
  background: rgba(254, 202, 202, 0.92) !important;
}
.tf-empty-cell {
  padding: 34px 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: transparent;
}
.reception-modal-open {
  overflow: hidden;
}
.reception-create-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 10, 18, 0.55);
  backdrop-filter: blur(8px);
}
.reception-create-dialog {
  width: min(100%, 720px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 0.5px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(96,165,250,0.10), transparent 34%),
    var(--bg-card);
  box-shadow: 0 24px 70px rgba(0,0,0,0.32);
  padding: 18px;
}
.reception-transfer-dialog {
  width: min(100%, 780px);
}
.reception-kk-dialog {
  width: min(100%, 560px);
}
.reception-create-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}
.reception-create-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 5px;
}
.reception-create-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}
.reception-create-title i {
  color: var(--accent-blue);
  font-size: 21px;
}
.reception-create-title-large {
  font-size: 24px;
}
.reception-create-title-large i {
  font-size: 28px;
}
.reception-create-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 0.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
}
.reception-create-close i {
  font-size: 19px;
  line-height: 1;
}
.reception-create-close:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}
.reception-create-submit {
  margin-left: auto;
  background: #16a34a;
  border-color: #15803d;
  padding: 7px 18px;
}
.transfer-create-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}
.transfer-create-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.transfer-create-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.transfer-create-grid-vehicle {
  grid-template-columns: 0.7fr 1fr 1fr 1.18fr;
  align-items: end;
}
.transfer-count-field input[type="number"],
#edit-person-count {
  appearance: auto;
  -moz-appearance: number-input;
}
.transfer-count-field input[type="number"]::-webkit-inner-spin-button,
.transfer-count-field input[type="number"]::-webkit-outer-spin-button,
#edit-person-count::-webkit-inner-spin-button,
#edit-person-count::-webkit-outer-spin-button {
  opacity: 1;
  display: block;
}
.transfer-vehicle-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  min-height: 36px;
  border: 0.5px solid rgba(96, 165, 250, 0.28);
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.08);
  transition: background 0.16s ease, border-color 0.16s ease;
}
.transfer-vehicle-toggle.van-selected {
  border-color: rgba(20, 184, 166, 0.38);
  background: rgba(20, 184, 166, 0.10);
}
.transfer-vehicle-option {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.transfer-vehicle-option i {
  font-size: 15px;
}
.transfer-vehicle-option.active {
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}
.transfer-vehicle-toggle.van-selected .transfer-vehicle-option.active {
  color: #064e3b;
}
.tf-vehicle-pill {
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0.5px solid rgba(96, 165, 250, 0.32);
  color: #1d4ed8;
  background: rgba(96, 165, 250, 0.13);
}
.tf-vehicle-pill.van {
  color: #047857;
  border-color: rgba(20, 184, 166, 0.36);
  background: rgba(20, 184, 166, 0.14);
}
.tf-vehicle-pill i {
  font-size: 15px;
}
.transfer-create-note {
  width: 100%;
  min-height: 68px;
  resize: vertical;
  line-height: 1.4;
}
.reception-table-shell {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255,255,255,0.01);
}
.reception-form-panel {
  display: none;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.reception-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.reception-form-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.bl-alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.bl-alpha-btn {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  border: 0.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.bl-alpha-btn:hover,
.bl-alpha-btn.active {
  border-color: var(--accent-blue-border);
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
}
.bl-action-btn {
  width: 25px;
  height: 25px;
  border-radius: 7px;
  border: 0.5px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
}
.bl-action-btn:hover {
  border-color: var(--accent-blue-border);
  color: var(--accent-blue);
}
.bl-action-btn.danger {
  border-color: rgba(248,113,113,0.28);
  background: rgba(248,113,113,0.08);
  color: #f87171;
}
.bl-action-btn.danger:hover {
  background: rgba(248,113,113,0.16);
}
.reception-supply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.reception-supply-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.reception-supply-switch button {
  border: 0.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 11px 14px;
  min-width: min(280px, 100%);
  text-align: left;
  cursor: pointer;
}
.reception-supply-switch button.active {
  border-color: var(--accent-blue-border);
  background: var(--accent-blue-bg);
}
.reception-supply-switch span,
.reception-supply-switch small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.reception-supply-switch strong {
  display: block;
  margin: 2px 0;
  font-size: 13px;
  line-height: 1.2;
}
.reception-supply-single-wrap {
  display: flex;
  justify-content: center;
}
.reception-supply-card {
  border: 0.5px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: 16px;
}
.reception-supply-single {
  width: min(760px, 100%);
}
.reception-supply-card.is-submitted {
  border-color: var(--accent-green-border);
}
.reception-supply-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.reception-supply-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  font-size: 22px;
}
.reception-supply-head span,
.reception-supply-head small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.reception-supply-head h2 {
  margin: 3px 0 4px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.2;
}
.reception-supply-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 12px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: 12px;
}
.reception-supply-status.done {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}
.reception-supply-status strong { color: inherit; }
.reception-supply-status span { color: inherit; opacity: .82; }
.reception-supply-empty {
  border: 0.5px dashed var(--border);
  border-radius: 10px;
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}
.reception-supply-form { display: grid; gap: 12px; }
.reception-supply-section-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}
.reception-supply-section-tabs button {
  border: 0.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-input);
  color: var(--text-secondary);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.reception-supply-section-tabs button.active {
  border-color: var(--accent-blue-border);
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
}
.reception-supply-section-title {
  margin: 2px 0 8px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.reception-supply-table {
  display: grid;
  gap: 7px;
}
.reception-supply-table-head,
.reception-supply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 150px;
  gap: 10px;
  align-items: center;
}
.reception-supply-table-head {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 4px;
}
.reception-supply-row {
  border: 0.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  padding: 7px;
  margin: 0;
}
.reception-supply-row .item-name {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
}
.reception-supply-row .item-unit {
  color: var(--text-muted);
  font-size: 12px;
}
.reception-supply-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.reception-supply-items label,
.reception-supply-note {
  display: grid;
  gap: 5px;
  margin: 0;
}
.reception-supply-items span,
.reception-supply-note span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.reception-supply-items small { color: var(--text-muted); font-weight: 500; }
.reception-supply-note textarea {
  min-height: 70px;
  resize: vertical;
}
.reception-supply-actions {
  display: flex;
  justify-content: flex-end;
}
body.light .reception-table-shell { background: rgba(255,255,255,0.45); }
body.light .bl-alpha-btn,
body.light .bl-action-btn { background: #fff; }
@media (max-width: 760px) {
  .reception-module { padding: 16px; }
  .reception-module-header { align-items: flex-start; }
  .reception-module-title-actions { width: 100%; }
  .reception-primary-action { width: 100%; }
  .reception-toolbar { align-items: stretch; }
  .reception-view-toggle {
    width: 100%;
    margin-left: 0;
  }
  .reception-view-toggle button {
    flex: 1;
    justify-content: center;
  }
  .reception-defect-form-grid {
    grid-template-columns: 1fr;
  }
  .reception-defect-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .reception-defect-table,
  .reception-defect-table tbody,
  .reception-defect-table tr,
  .reception-defect-table td {
    display: block;
    width: 100%;
  }
  .reception-defect-table thead {
    display: none;
  }
  .reception-defect-table tr {
    border: 0.5px solid var(--border);
    border-radius: 12px;
    background: var(--bg-card);
    padding: 10px;
    margin-bottom: 10px;
  }
  .reception-defect-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 7px 0;
  }
  .reception-defect-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .reception-defect-table td[data-label="Závada"] {
    grid-template-columns: 1fr;
  }
  .reception-defect-table td[data-label="Závada"]::before {
    margin-bottom: 2px;
  }
  .reception-search { min-width: 100%; }
  .reception-search-wrap {
    flex-basis: 100%;
    min-width: 100%;
  }
  .reception-date-filter {
    width: 100%;
    flex: 1 1 100%;
  }
  .reception-filter-pill,
  .reception-filter-clear {
    flex: 1 1 calc(50% - 6px);
  }
  .reception-module-transfers .reception-modern-toolbar,
  .reception-module-kk .reception-modern-toolbar {
    flex-wrap: wrap;
  }
  .reception-module-transfers .reception-search-wrap,
  .reception-module-kk .reception-search-wrap {
    flex-basis: 100%;
    max-width: none;
  }
  .reception-module-transfers .reception-date-filter,
  .reception-module-kk .reception-date-filter {
    margin-left: 0;
    flex-basis: 100%;
  }
  .reception-create-modal {
    padding: 12px;
    align-items: flex-start;
  }
  .reception-create-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 15px;
    padding: 14px;
  }
  .transfer-create-grid,
  .reception-kk-dialog form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .reception-supply-grid,
  .reception-supply-items { grid-template-columns: 1fr; }
  .reception-supply-table-head { display: none; }
  .reception-supply-row { grid-template-columns: 1fr; }
  .reception-supply-status { align-items: flex-start; flex-direction: column; }
}
.tf-row:hover { background: var(--bg-card); }
body.light .tf-row:hover { background: #e0dace; }

/* Transfers redesign — tabs */
.tf-tab-btn {
  background: none; border: none; border-bottom: 2px solid transparent;
  padding: 8px 16px 10px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: -1px; transition: color 0.15s;
}
.tf-tab-btn:hover { color: var(--text-primary); }
.tf-tab-active { color: var(--text-primary); border-bottom-color: var(--accent-blue); }
.tf-tab-count {
  background: var(--bg-input); color: var(--text-muted);
  font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 10px;
}
.tf-tab-active .tf-tab-count { background: var(--accent-blue-bg); color: var(--accent-blue); }

/* Section labels */
.tf-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px; color: var(--text-muted);
}
.tf-section-overdue { color: var(--accent-red); }
.tf-section-today   { color: #4ade80; }
.tf-section-count {
  background: var(--bg-input); color: var(--text-muted);
  font-size: 10px; padding: 1px 6px; border-radius: 10px;
  font-weight: 600; letter-spacing: 0; text-transform: none;
}
.tf-section-overdue .tf-section-count { background: var(--accent-red-bg); color: var(--accent-red); }
.tf-section-today   .tf-section-count { background: #1a3a1a; color: #4ade80; }

/* Transfer table layout */
.tf-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.tf-table thead tr {
  border-bottom: 1px solid var(--border);
}
.tf-table th {
  padding: 6px 10px; text-align: left;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
  background: var(--bg-input); white-space: nowrap;
}
.tf-table th:first-child { border-radius: 6px 0 0 6px; }
.tf-table th:last-child  { border-radius: 0 6px 6px 0; }
.tf-table td {
  padding: 8px 10px; border-bottom: 0.5px solid var(--border);
  vertical-align: middle; color: var(--text-primary);
}
.tf-data-row:hover td { background: var(--bg-input); }
.tf-table-done td { opacity: 0.55; }
.tf-td-clip {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0;
}
.tf-pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 2px 4px;
}
.tf-pag-info { font-size: 11px; color: var(--text-muted); }
.tf-page-btn {
  padding: 3px 9px; font-size: 12px; border-radius: 6px;
  border: 0.5px solid var(--border); background: var(--bg-input);
  color: var(--text-secondary); cursor: pointer; transition: background 0.12s;
}
.tf-page-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.tf-page-btn.active {
  background: var(--accent-blue-bg); border-color: var(--accent-blue-border);
  color: var(--accent-blue); font-weight: 700;
}

/* ── Multi-location dropdown ─────────────────────────────────── */
.multi-loc-dropdown { position: relative; display: inline-block; }
.multi-loc-trigger {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  min-width: 200px; padding: 7px 12px;
  background: var(--bg-input); border: 0.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 13px; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s;
}
.multi-loc-trigger:hover { border-color: var(--border-hover); }
.multi-loc-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 220px; background: var(--bg-surface);
  border: 0.5px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2); z-index: 100;
  padding: 4px 0;
}
.multi-loc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; font-size: 13px; color: var(--text-secondary);
  cursor: pointer; transition: background 0.12s;
}
.multi-loc-item:hover { background: var(--bg-card); color: var(--text-primary); }
.multi-loc-item input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; accent-color: var(--accent-blue); }
.multi-loc-divider { height: 0.5px; background: var(--border); margin: 4px 0; }

/* ── Light mode — strip buttony tmavší písmo ─────────────────── */
body.light button[style*="color:#1a7a5e"],
body.light button[style*="color:#34d399"] { color: #0d5c42 !important; }
body.light button[style*="color:#6b4fbb"],
body.light button[style*="color:#a78bfa"] { color: #4a2d9c !important; }
body.light button[style*="color:#185fa5"] { color: #0f3d72 !important; }
body.light button[style*="color:#c2600a"],
body.light button[style*="color:#fb923c"] { color: #8a3e00 !important; }

/* Reception mobile shell */
.reception-mobile-nav-toggle,
.reception-mobile-sidebar-backdrop {
  display: none;
}

@media (max-width: 760px) {
  body.reception-sidebar-open {
    overflow: hidden;
  }

  .reception-mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    border: 0.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 0;
    flex: 0 0 auto;
  }

  .reception-mobile-nav-toggle i {
    font-size: 19px;
  }

  .reception-mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 240;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  body.reception-sidebar-open .reception-mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    min-height: 52px;
    height: auto;
    padding: 7px 10px;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }

  .topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 7px;
  }

  .topbar-left > img {
    height: 24px !important;
    max-width: 88px !important;
  }

  .location-pill {
    max-width: 150px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px 9px;
  }

  .location-pill svg,
  .location-dot {
    display: none;
  }

  .eur-pill,
  .shiftq-pill {
    display: none;
  }

  .topbar-shift-status {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    max-width: none;
    justify-content: center;
    padding: 5px 10px;
    font-size: 11px;
    box-shadow: none;
  }

  .topbar-right {
    gap: 5px;
  }

  .module-nav {
    gap: 4px;
  }

  .module-nav-link {
    min-width: 34px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 11px;
  }

  .module-nav-link span {
    display: none;
  }

  .user-chip {
    min-height: 34px;
    padding: 3px 5px;
  }

  .user-chip > span,
  .user-chip > svg {
    display: none;
  }

  .app-layout {
    height: auto;
    min-height: calc(100vh - 52px);
    overflow: visible;
  }

  .hotel-strip {
    display: none;
  }

  .app-body {
    display: block;
    overflow: visible;
    min-height: calc(100vh - 52px);
  }

  .app-content {
    display: block;
    width: 100%;
    min-height: calc(100vh - 52px);
    overflow: visible;
  }

  .app-sidebar {
    position: fixed;
    z-index: 260;
    top: 0;
    left: 0;
    bottom: 0;
    width: 286px;
    max-width: 84vw;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 18px 0 38px rgba(15, 23, 42, 0.34);
  }

  body.reception-sidebar-open .app-sidebar {
    transform: translateX(0);
  }

  .app-view {
    min-width: 0;
  }

  .app-view > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .columns,
  .columns-kk-wrap,
  .blacklist-layout,
  .handover-status-grid,
  .handover-summary {
    grid-template-columns: 1fr !important;
  }

  .modal-content,
  .modal-card,
  .reception-create-dialog {
    max-width: 94vw;
  }

  table {
    max-width: 100%;
  }
}
