/* Light modern UI for DC Jedáleň (cards + soft colors) */

:root{
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface2: #f7f9ff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(31,41,55,.10);
  --accent: #6c8cff;
  --accent2:#4f46e5;
  --danger:#ef4444;
  --shadow: 0 8px 24px rgba(31,41,55,.08);
  --radius: 16px;
}

*{ box-sizing:border-box; }

html, body{
  height:100%;
  margin:0;
}

 body{
    margin:0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background:
      radial-gradient(1200px 600px at 15% -10%, rgba(99,102,241,0.18), transparent 60%),
      radial-gradient(1000px 500px at 90% 0%, rgba(56,189,248,0.12), transparent 55%),
      var(--bg);
    background-repeat:no-repeat;
    background-attachment:fixed;
    color:var(--text);
  }

a{ color: inherit; }

.container{
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

/* Header */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand{ display:flex; flex-direction:column; gap:4px; line-height:1.15; }
.brand .title{ font-weight: 750; font-size: 18px; letter-spacing:.2px; }
.brand .sub{ font-size: 13px; color: var(--muted); }

.topnav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(247,249,255,.9);
  text-decoration:none;
  font-size: 13px;
  color: var(--text);
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
}
.pill:hover{ transform: translateY(-1px); box-shadow: 0 8px 18px rgba(31,41,55,.10); background:#fff; }
.pill.danger{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22); }
.pill.danger:hover{ background: rgba(239,68,68,.14); }

.card{
  margin-top: 18px;
  background: rgba(255,255,255,.85);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-head{
  padding: 16px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(247,249,255,.95), rgba(255,255,255,.85));
}

.card-title{ font-weight: 750; }
.card-sub{ color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Buttons from original */
.btn{
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color:#fff;
  font-weight: 650;
  cursor:pointer;
}
.btn:hover{ filter: brightness(.98); }
.btn:disabled{
  background: #dfe6f7;
  color: #7b86a3;
  cursor:not-allowed;
}

/* Grid of days */
.menu-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 16px;
}

.day-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(31,41,55,.06);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.day-card.is-disabled{
  background: rgba(247,249,255,.6);
}

.day-header{
  padding: 14px 14px 12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(108,140,255,.12), rgba(255,255,255,0));
}

.day-name{ font-weight: 750; font-size: 15px; }
.day-date{ margin-top: 2px; font-size: 12px; color: var(--muted); }

.day-badge{
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(247,249,255,.9);
  color: var(--muted);
  white-space:nowrap;
}

.day-card.is-disabled .day-badge{
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.22);
  color: #b91c1c;
}

/* Options */
.options{
  padding: 8px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.option-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 10px 10px;
  border-radius: 12px;
  border:1px solid rgba(31,41,55,.08);
  background: rgba(247,249,255,.65);
  cursor:pointer;
  transition: background .12s ease, transform .08s ease, box-shadow .12s ease;
}
.option-row:hover{
  background: rgba(255,255,255,.95);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(31,41,55,.08);
}

.option-main{ display:flex; flex-direction:column; gap:3px; min-width: 0; }
.option-menu{
  font-size: 12px;
  color: var(--muted);
}
.option-name{
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Radio UI */
.option-pick{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.option-row input[type="radio"]{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.radio-ui{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(31,41,55,.22);
  background:#fff;
  display:inline-block;
  position:relative;
}

.option-row input[type="radio"]:checked + .radio-ui{
  border-color: var(--accent2);
}

.option-row input[type="radio"]:checked + .radio-ui::after{
  content:"";
  position:absolute;
  inset:4px;
  border-radius:999px;
  background: var(--accent2);
}

/* Disabled radios */
.option-row input[type="radio"]:disabled + .radio-ui{
  border-color: rgba(31,41,55,.18);
  background: #f3f6ff;
}
.option-row:has(input[type="radio"]:disabled){
  cursor:not-allowed;
  opacity:.75;
}
.option-row:has(input[type="radio"]:disabled):hover{
  transform:none;
  box-shadow:none;
  background: rgba(247,249,255,.65);
}

/* Original table wrapper not used, but keep safe */
.table-wrap{ display:none; }


/* Desktop: fit 5 workdays on one row + show full meal names */
@media (min-width: 1100px){
  /* force exactly 5 columns for Mon–Fri */
  .menu-grid{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  /* allow cards/content to shrink without clipping */
  .day-card{ min-width: 0; }

  /* show full meal names (wrap instead of ellipsis) */
  .option-name{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
}

/* If screen is narrower, fall back to auto-fit columns */
@media (max-width: 1099px){
  .option-name{
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
/* Mobile tweaks */
@media (max-width: 720px){
  .header{ align-items:flex-start; }
  .topnav{ justify-content:flex-start; }
  .menu-grid{ padding: 12px; grid-template-columns: 1fr; }
  .option-name{ white-space:normal; }
}

/* ===== Vypnutie responsívneho stack módu len pre hr_objednavka ===== */

.no-stack-table table {
    display: table !important;
}

.no-stack-table thead {
    display: table-header-group !important;
}

.no-stack-table tbody {
    display: table-row-group !important;
}

.no-stack-table tr {
    display: table-row !important;
}

.no-stack-table td {
    display: table-cell !important;
}

@media (max-width: 1024px) {
    .no-stack-table table {
        overflow-x: auto;
        display: block;
    }
}
/* ===== CTA box (len pre hlášku v aktuálnom týždni) ===== */
.empty-cta{
  margin: 14px 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(17, 28, 51, .42);
  color: rgba(241,245,249,.95);
  line-height: 1.45;
  position: relative;
  overflow: hidden;
}

.empty-cta__title{
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 6px;
}

.empty-cta__text{
  font-size: 14px;
  color: rgba(226,232,240,.88);
  margin-bottom: 12px;
}

.empty-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-cta__btn{
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,.26);
  background: rgba(59,130,246,.18);
  color: rgba(241,245,249,.96);
}

.empty-cta__btn:hover{
  background: rgba(59,130,246,.26);
}

@media (max-width: 520px){
  .empty-cta{ margin: 12px; padding: 14px; border-radius: 14px; }
  .empty-cta__btn{ width: 100%; }
}

/* ===== Unified empty / info box (LIGHT, aby ladilo s UI) ===== */
.empty{
  margin: 14px 16px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247,249,255,.92);
  color: var(--text);
  line-height: 1.45;
  box-shadow: 0 10px 26px rgba(31,41,55,.10);
  font-size: 14px;
}

.empty .pill{
  margin-top: 10px;
  display: inline-flex;
}

@media (max-width: 520px){
  .empty{
    margin: 12px 12px;
    padding: 14px 14px;
    border-radius: 14px;
  }
}
.today-hint{
  margin: 6px 16px 4px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  background: rgba(108,140,255,.08);
  border-left: 3px solid rgba(108,140,255,.8);
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
