
:root {
  /* ZÁKLADNÉ FARBY APLIKÁCIE ZACHOVANÉ */
  --primary: #1a3b5c;
  --primary-light: #2c5282;
  --secondary: #9ab4cc;
  --bg-color: #f4f7fa;
  --panel-bg: #eef3f8;
  --input-bg: #ffffff;
  --accent: #27ae60;
  --danger: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --border-radius: 12px;
  
  /* APPLE MODERN DESIGN SYSTEM TOKENS */
  --apple-bg: #fbfbfd;
  --apple-text: #1d1d1f;
  --apple-secondary: #6e6e73;
  --apple-gray: #86868b;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-soft: rgba(0, 113, 227, 0.08);
  --apple-surface: #ffffff;
  --apple-surface-glass: rgba(255, 255, 255, 0.85);
  --apple-btn-gray: #f5f5f7;
  --apple-border: rgba(0, 0, 0, 0.07);
  --apple-border-light: rgba(0, 0, 0, 0.04);
  /* tiene vo vrstvách (v13.41): tesný tieň pri hrane + mäkký pod kartou, ako prihlásenie a platobná stránka */
  --apple-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px -6px rgba(0, 0, 0, 0.06), 0 22px 44px -18px rgba(0, 0, 0, 0.10);
  --apple-card-hover: 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 28px -10px rgba(0, 0, 0, 0.10), 0 34px 64px -22px rgba(0, 0, 0, 0.16);

  /* FARBY PRE FOOTER */
  --footer-bg: #12151c;
  --footer-text: #8e8e9e;
  --footer-title: #ffffff;
}
  
html { background-color: var(--apple-bg); scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Inter", sans-serif;
  background-color: var(--apple-bg);
  margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; 
  color: var(--apple-text); min-height: 100vh;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
  
/* =======================================
   ULTRA-MODERN APPLE-STYLE LANDING PAGE 
======================================= */
#landing-page {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%; 
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: var(--apple-bg); 
  z-index: 20000; 
  display: flex; 
  flex-direction: column;
  transition: opacity 0.4s ease, visibility 0.4s;
}
  
/* =======================================
   ANIMATED MODERN GRADIENT WAVE (HERO)
======================================= */
.gradient-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--apple-bg);
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(0, 113, 227, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 113, 227, 0.07) 1px, transparent 1px);
  z-index: 1;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 35%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 35%, transparent 85%);
  pointer-events: none;
}

.gradient-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  -webkit-filter: blur(95px);
  pointer-events: none;
  will-change: transform;
  opacity: 0.65;
}

.sphere-1 {
  width: 48vw;
  height: 48vw;
  max-width: 650px;
  max-height: 650px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.14), rgba(56, 189, 248, 0.10));
  top: -15%;
  left: -10%;
  animation: float-1 16s ease-in-out infinite alternate;
}

.sphere-2 {
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: linear-gradient(225deg, rgba(0, 122, 255, 0.12), rgba(125, 211, 252, 0.10));
  bottom: -15%;
  right: -10%;
  animation: float-2 19s ease-in-out infinite alternate;
}

.sphere-3 {
  width: 36vw;
  height: 36vw;
  max-width: 500px;
  max-height: 500px;
  background: linear-gradient(120deg, rgba(96, 165, 250, 0.10), rgba(56, 189, 248, 0.08));
  top: 45%;
  left: 15%;
  animation: float-3 22s ease-in-out infinite alternate;
}

.glow {
  position: absolute;
  width: 45vw;
  height: 45vh;
  max-width: 600px;
  max-height: 500px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(56, 189, 248, 0.03) 45%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse 9s ease-in-out infinite alternate;
  filter: blur(55px);
  pointer-events: none;
  opacity: 0.6;
}

@keyframes float-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(12%, 10%) scale(1.12); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-12%, -8%) scale(1.15); }
}

@keyframes float-3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-8%, 12%) scale(1.08); opacity: 0.9; }
}

@keyframes pulse {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.92); }
  100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.1); }
}
  
.reveal-1 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; opacity: 0; transform: translateY(40px); }
.reveal-2 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; transform: translateY(40px); }
.reveal-3 { animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; transform: translateY(40px); }
  
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
  
.navbar {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 21000;
  background: rgba(255, 255, 255, 0.75); 
  backdrop-filter: blur(25px) saturate(190%); -webkit-backdrop-filter: blur(25px) saturate(190%);
  padding: 16px 60px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02), 0 8px 24px -14px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.nav-left { display: flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity 0.2s; }
.nav-left:hover { opacity: 0.85; }
.logo-img { width: 38px; height: 38px; object-fit: contain; }
.brand-name { font-size: 21px; color: var(--apple-text); letter-spacing: -0.5px; margin-top: 1px; }
.brand-name strong { font-weight: 800; }
.brand-name span { font-weight: 400; color: var(--apple-secondary); }

.hamburger-btn {
  background: #f5f5f7; border: none; cursor: pointer; display: block;
  padding: 0; border-radius: 25px; overflow: hidden;
  transition: width 0.42s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.25s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  width: 44px; height: 44px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  position: fixed; top: 14px; right: 60px; outline: none; z-index: 23000;
}
.hamburger-btn:hover { background: #e8e8ed; transform: scale(1.05); }
.hamburger-btn:active { transform: scale(0.97); }
/* ikona stojí stále pri pravom okraji tlačidla (v zatvorenom stave presne v strede), takže pri rozšírení neskáče */
.hamburger-icon { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; }
.hamburger-btn .bar { position: absolute; top: 8px; left: 0; width: 18px; height: 2px; background-color: var(--apple-text); border-radius: 2px; transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease; }
.hamburger-btn .bar1 { transform: translateY(-6px); }
.hamburger-btn .bar2 { transform: translateY(0); }
.hamburger-btn .bar3 { transform: translateY(6px); }
.hamburger-btn.active { width: 105px; background: #e8e8ed; }
.hamburger-btn.active:hover { transform: scale(1.02); background: #dcdce1; }
.hamburger-btn.active:active { transform: scale(0.97); }
.hamburger-btn.active .bar1 { transform: translateY(0) rotate(45deg); }
.hamburger-btn.active .bar2 { opacity: 0; transform: scaleX(0); }
.hamburger-btn.active .bar3 { transform: translateY(0) rotate(-45deg); }

/* text „Menu“ je stále v tlačidle (skrytý), objaví sa plynulo spolu s rozšírením a pri zatvorení rýchlo zmizne */
.menu-text { position: absolute; left: 18px; top: 50%; margin-top: -10px; line-height: 20px; font-size: 15px; font-weight: 800; color: var(--apple-text); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateX(8px); transition: opacity 0.12s ease, transform 0.2s cubic-bezier(0.32, 0.72, 0, 1); }
.hamburger-btn.active .menu-text { opacity: 1; transform: translateX(0); transition: opacity 0.26s ease 0.08s, transform 0.42s cubic-bezier(0.32, 0.72, 0, 1) 0.04s; }

.drawer-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 21500;
  opacity: 0; visibility: hidden; transition: opacity 0.45s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.45s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* MENU (od v16.39): biely panel vpravo, položky postupne vplávajú, sivý podklad ide za myšou, panel sa dá odtiahnuť doprava */
.side-drawer {
  position: fixed; top: 0; right: 0; width: 380px; max-width: 85vw; height: 100vh;
  background: #ffffff; z-index: 22000; box-shadow: -24px 0 60px -20px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; padding: 84px 40px 32px; box-sizing: border-box;
  transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.side-drawer.active { transform: translateX(0); }
.side-drawer.dragging, .drawer-overlay.dragging { transition: none !important; }
.side-drawer.dragging { cursor: grabbing; }
.side-drawer a {
  position: relative; z-index: 1; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: var(--apple-text);
  padding: 13px 40px 13px 14px; margin: 0 -14px; border-radius: 12px; text-decoration: none; cursor: pointer;
  background: linear-gradient(rgba(0, 0, 0, 0.07), rgba(0, 0, 0, 0.07)) center bottom / calc(100% - 28px) 1px no-repeat;
  opacity: 0; transform: translateX(16px);
  transition: opacity 0.3s ease, transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
.side-drawer a:last-of-type { background: none; }
.side-drawer a::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 14px; margin-top: -7px; background: #86868b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1.5 1.5L6.5 7l-5 5.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1.5 1.5L6.5 7l-5 5.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0; transform: translateX(-6px); transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.side-drawer a:hover::after { opacity: 1; transform: none; }
.side-drawer a:active { opacity: 0.6 !important; transition-duration: 0.08s; }
.side-drawer a:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: -2px; }
.side-drawer.active a { opacity: 1; transform: none; }
.side-drawer.active a:nth-of-type(1) { transition-delay: 0.08s; }
.side-drawer.active a:nth-of-type(2) { transition-delay: 0.11s; }
.side-drawer.active a:nth-of-type(3) { transition-delay: 0.14s; }
.side-drawer.active a:nth-of-type(4) { transition-delay: 0.17s; }
.side-drawer.active a:nth-of-type(5) { transition-delay: 0.20s; }
.side-drawer.active a:nth-of-type(6) { transition-delay: 0.23s; }
/* sivý podklad pod položkou, na ktorej je myš (posúva sa z položky na položku) */
.drawer-hl {
  position: absolute; top: 0; left: 26px; right: 26px; height: 0; border-radius: 12px; background: #f5f5f7; pointer-events: none; z-index: 0; opacity: 0;
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), height 0.38s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s ease;
}
.drawer-hl.on { opacity: 1; }
.drawer-hl.press { background: #ececf0; }

.btn-nav-login {
  background-color: var(--apple-text); color: #ffffff; 
  padding: 8px 20px; border-radius: 980px; font-weight: 700; cursor: pointer; border: none; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); font-size: 13px; letter-spacing: 0.5px;
}
.btn-nav-login:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10), 0 8px 18px -8px rgba(0, 0, 0, 0.32);
}

/* tlačidlá ostávajú dole (pre konzultanta a pre firmu), pokojné, bez nadskakovania */
.side-drawer .btn-nav-login {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; padding: 0 20px; box-sizing: border-box;
  font-size: 15px; font-weight: 700; letter-spacing: 0; border-radius: 980px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease 0.24s, transform 0.55s cubic-bezier(0.32, 0.72, 0, 1) 0.24s, background-color 0.2s ease, color 0.2s ease;
}
.side-drawer .btn-nav-login:not(.secondary) { margin-top: 24px; background-color: var(--apple-text); }
.side-drawer.active .btn-nav-login { opacity: 1; transform: none; }
.side-drawer .btn-nav-login:hover { background-color: #000000; transform: none; box-shadow: none; }
.side-drawer .btn-nav-login:active { transform: scale(0.98); transition-duration: 0.1s; transition-delay: 0s; }
.side-drawer .btn-nav-login:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 2px; }
.side-drawer .btn-nav-login.secondary { margin-top: 10px; background-color: #f5f5f7; color: var(--apple-text); border: 0; }
.side-drawer .btn-nav-login.secondary:hover { background-color: #e8e8ed; color: var(--apple-text); }
.side-drawer .ordering-version-label { opacity: 0; transition: opacity 0.3s ease 0.3s; }
.side-drawer.active .ordering-version-label { opacity: 1; }
/* pri zatvorení všetko rýchlo zmizne naraz */
.side-drawer:not(.active) :is(a, .btn-nav-login, .ordering-version-label) { transition-delay: 0s; transition-duration: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .side-drawer a, .side-drawer .btn-nav-login { transform: none !important; transition: opacity 0.2s ease !important; }
}

/* HERO SECTION */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 94px 24px 60px 24px; position: relative; overflow: hidden; width: 100%; box-sizing: border-box; text-align: center;
}
.hero-content {
  max-width: 860px; margin: 0 auto; width: 100%; position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  font-size: clamp(38px, 6vw, 68px); color: var(--apple-text); margin: 0 0 16px 0;
  font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; text-align: center;
}
.text-gradient { 
  background: linear-gradient(to right, #1a3b5c 0%, #0071e3 16.667%, #00c6ff 33.333%, #0071e3 50%, #1a3b5c 66.667%, #1a3b5c 100%); 
  background-size: 300% auto; 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  display: inline-block; 
  padding: 0.1em 0.1em 0.1em 0; 
  margin-right: -0.1em; 
  animation: waveEffect 9s linear infinite; 
}

@keyframes waveEffect { 
  0% { background-position: 0% center; } 
  100% { background-position: -150% center; } 
}
.hero-subtitle {
  font-size: clamp(16.5px, 2vw, 19.5px); color: var(--apple-secondary); max-width: 660px;
  margin: 0 auto 30px auto; line-height: 1.55; font-weight: 450; letter-spacing: -0.01em; text-align: center;
}

.hero-buttons {
  display: flex; gap: 14px; justify-content: center; align-items: center; margin-bottom: 0; flex-wrap: wrap;
}
.btn-hero-primary {
  background: var(--apple-blue); color: #ffffff; padding: 14px 30px; border-radius: 980px;
  font-weight: 600; cursor: pointer; border: none; font-size: 15.5px; letter-spacing: 0.1px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 80, 170, 0.20), 0 6px 16px -6px rgba(0, 113, 227, 0.40); display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover {
  background: var(--apple-blue-hover); transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 80, 170, 0.20), 0 12px 24px -10px rgba(0, 113, 227, 0.50);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.85); color: var(--apple-text); padding: 14px 28px; border-radius: 980px;
  font-weight: 600; cursor: pointer; border: 1px solid rgba(0, 0, 0, 0.08); font-size: 15.5px; letter-spacing: 0.1px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px -6px rgba(0, 0, 0, 0.06); display: inline-flex; align-items: center; gap: 6px;
}
.btn-hero-secondary:hover {
  background: #ffffff; transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 22px -10px rgba(0, 0, 0, 0.14);
}

/* SECTIONS & BENTO */
.lp-section {
  padding: 85px 24px; max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column;
  align-items: center; text-align: center; position: relative; z-index: 1; box-sizing: border-box;
  scroll-margin-top: 76px;
}
.section-title {
  font-size: clamp(30px, 4vw, 42px); color: var(--apple-text); font-weight: 800; margin: 0 0 12px 0;
  letter-spacing: -0.03em; line-height: 1.15;
}
.section-subtitle {
  font-size: clamp(15px, 1.8vw, 18px); color: var(--apple-secondary); font-weight: 450;
  max-width: 820px; margin: 0 auto 46px auto; line-height: 1.55; letter-spacing: -0.01em;
}

.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; text-align: left;
}
.modern-card {
  background: var(--apple-surface); padding: 36px 30px; border-radius: 22px;
  box-shadow: var(--apple-card-shadow); border: 1px solid var(--apple-border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column;
}
.modern-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--apple-card-hover);
  border-color: rgba(0, 113, 227, 0.2);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke-width: 2.2; }
.modern-card h3 {
  font-size: 20px; color: var(--apple-text); font-weight: 750; margin: 0 0 10px 0; letter-spacing: -0.02em;
}
.modern-card p {
  font-size: 14.5px; color: var(--apple-secondary); font-weight: 450; line-height: 1.55; margin: 0;
}

/* DOKUMENTÁCIA COMPACT GRID */
.doc-compact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%;
}
.doc-compact-card {
  background: var(--apple-surface); border: 1px solid var(--apple-border); border-radius: 20px;
  padding: 24px 22px; display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); text-align: left;
  box-shadow: var(--apple-card-shadow);
}
.doc-compact-card:hover {
  transform: translateY(-4px); border-color: rgba(0, 113, 227, 0.25); box-shadow: var(--apple-card-hover);
}
.doc-compact-left { display: flex; align-items: center; gap: 14px; }
.doc-compact-icon {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(0, 113, 227, 0.08);
  color: var(--apple-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-compact-title { font-size: 15px; font-weight: 700; color: var(--apple-text); }
.doc-compact-arrow { color: var(--apple-blue); display: flex; align-items: center; }

/* KONTAKT: kontaktný formulár (v13.38); správa ide do Internal Systemu → E-maily (Kontaktný formulár) */
.contact-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; text-align: left;
}
.contact-card {
  background: var(--apple-surface); border-radius: 28px; max-width: 640px; width: 100%; box-sizing: border-box;
  padding: 32px 36px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -6px rgba(0, 0, 0, 0.06), 0 28px 56px -16px rgba(0, 0, 0, 0.10);
}
.contact-form[hidden], .cf-done[hidden] { display: none; }
.contact-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field { display: flex; flex-direction: column; min-width: 0; position: relative; }
/* popis je v poli (ako okno New Client); pri písaní sa zmenší hore a v poli sa ukáže vzor */
.cf-field input, .cf-field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; font-weight: 500; color: var(--apple-text);
  background: #f2f2f7; border: 1px solid transparent; border-radius: 14px; margin: 0;
  -webkit-appearance: none; appearance: none; outline: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.cf-field input { height: 56px; padding: 22px 15px 6px; }
.cf-field textarea { padding: 27px 15px 12px; resize: vertical; min-height: 140px; max-height: 420px; line-height: 1.5; }
.cf-field label {
  position: absolute; left: 16px; top: 18px; margin: 0; font-size: 16px; font-weight: 500; color: #8e8e93;
  pointer-events: none; white-space: nowrap; letter-spacing: -0.005em;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: transparent; font-weight: 400; transition: color 0.15s ease; }
.cf-field input:focus::placeholder, .cf-field textarea:focus::placeholder { color: #aeaeb2; }
.cf-field input:focus + label, .cf-field input:not(:placeholder-shown) + label,
.cf-field textarea:focus + label, .cf-field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 600; }
.cf-field input:focus + label, .cf-field textarea:focus + label { color: var(--apple-blue); }
.cf-field input:hover, .cf-field textarea:hover { background: #ececf1; }
.cf-field input:focus, .cf-field textarea:focus { background: #ffffff; border-color: var(--apple-blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12); }
.cf-field.invalid input, .cf-field.invalid textarea { background: #fff2f1; border-color: #ff3b30; }
.cf-field.invalid input:focus, .cf-field.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.10); }
.cf-field.invalid input + label, .cf-field.invalid textarea + label { color: #ff3b30; }
.cf-err { margin: 0; font-size: 13px; color: #d92d20; line-height: 1.4; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.2s ease, opacity 0.2s ease, margin 0.2s ease; }
.cf-field.invalid .cf-err { max-height: 40px; opacity: 1; margin-top: 6px; }
.cf-form-err { margin: 0; font-size: 14px; color: #d92d20; text-align: center; }
.cf-form-err:empty { display: none; }
/* pasca na roboty: človek pole nevidí */
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 2px; }
.cf-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--apple-gray); max-width: 300px; }
.cf-note a { color: var(--apple-blue); text-decoration: none; }
.cf-note a:hover { text-decoration: underline; }
.cf-submit {
  position: relative; flex-shrink: 0; height: 48px; padding: 0 26px; border: none; border-radius: 980px; cursor: pointer;
  background: var(--apple-blue); color: #ffffff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color 0.2s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s ease;
}
.cf-submit:hover { background: var(--apple-blue-hover); }
.cf-submit:active { transform: scale(0.97); }
.cf-submit:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 3px; }
.cf-submit-label { transition: opacity 0.15s ease; }
.cf-spinner {
  position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #ffffff; opacity: 0; transition: opacity 0.15s ease;
}
.cf-submit.sending { cursor: default; }
.cf-submit.sending .cf-submit-label { opacity: 0; }
.cf-submit.sending .cf-spinner { opacity: 1; animation: cfSpin 0.7s linear infinite; }
@keyframes cfSpin { to { transform: rotate(360deg); } }

/* po odoslaní: poďakovanie namiesto formulára */
/* po odoslaní: poďakovanie namiesto formulára, presne v strede karty (karta si drží výšku formulára) */
.cf-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: 1; padding: 8px; outline: none; }
.cf-done.show { animation: cfDoneIn 0.45s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes cfDoneIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.cf-done-icon {
  width: 64px; height: 64px; margin: 0 0 22px; border-radius: 50%; background: rgba(52, 199, 89, 0.12); color: #248a3d;
  display: flex; align-items: center; justify-content: center;
}
.cf-done-icon svg { width: 30px; height: 30px; }
.cf-done.show .cf-done-icon { animation: cfPop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 0.08s both; }
@keyframes cfPop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.cf-done h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; color: var(--apple-text); }
.cf-done p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--apple-secondary); letter-spacing: -0.01em; }
.cf-done-email { display: block; margin: 2px 0 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--apple-text); letter-spacing: -0.01em; overflow-wrap: anywhere; }
/* nenápadné tlačidlo presne ako Menu v hlavičke (svetlosivé #f5f5f7, jemný tieň) */
.cf-again {
  margin-top: 28px; height: 44px; padding: 0 22px; border-radius: 25px; border: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 800;
  background: #f5f5f7; color: var(--apple-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px -2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.cf-again:hover { background: #e8e8ed; transform: scale(1.03); }
.cf-again:active { transform: scale(0.97); }
.cf-again:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 3px; }

.cf-mail-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--apple-secondary); text-decoration: none;
  padding: 6px 10px; border-radius: 10px; transition: color 0.2s ease;
}
.cf-mail-link b { font-weight: 600; color: var(--apple-blue); }
.cf-mail-link svg { color: var(--apple-gray); flex-shrink: 0; }
.cf-mail-link:hover b { text-decoration: underline; }

/* FOOTER */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text); width: 100%; margin-top: auto;
  padding: 60px 40px 28px 40px; display: flex; flex-direction: column; align-items: center;
  box-sizing: border-box; font-size: 13.5px; border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-top {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; width: 100%; max-width: 1080px; margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: var(--footer-title); font-size: 14px; font-weight: 700; margin: 0 0 8px 0; letter-spacing: 0.2px; text-transform: uppercase;
}
.footer-col a, .footer-col span, .footer-col .legal-link {
  color: var(--footer-text); text-decoration: none; font-weight: 400; transition: color 0.2s ease; cursor: pointer;
}
.footer-col a:hover, .footer-col .legal-link:hover { color: #ffffff; }

.footer-bottom {
  width: 100%; max-width: 1080px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
}
.footer-copy { font-size: 12.5px; color: #64748b; max-width: 100%; }
.footer-pay-logos { display: inline-flex; line-height: 0; }
.footer-pay-logos img { height: 19px; width: auto; max-width: 100%; filter: grayscale(1) invert(1) brightness(1.55); opacity: 0.8; transition: opacity 0.2s ease; }
.footer-pay-logos:hover img { opacity: 1; }


@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .doc-compact-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .footer-top { grid-template-columns: repeat(2, 1fr) !important; gap: 32px !important; }
}

@media (max-width: 768px) {
  /* =================================================== */
  /* MOBILNÁ OPTIMALIZÁCIA ÚVODNEJ STRÁNKY (LANDING PAGE) */
  /* =================================================== */
  #landing-page {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Navigácia a hlavička */
  .navbar {
    padding: 0 18px !important;
    height: 54px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nav-left { gap: 8px !important; }
  .logo-img { width: 32px !important; height: 32px !important; }
  .brand-name { font-size: 18px !important; }

  .hamburger-btn {
    right: 18px !important;
    top: 7px !important;
  }

  /* Bočné navigačné menu (Side Drawer) */
  .side-drawer {
    width: 320px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 72px 24px max(20px, env(safe-area-inset-bottom)) 24px !important;
    box-sizing: border-box !important;
  }
  .side-drawer a {
    font-size: 18px !important;
    padding: 12px 40px 12px 14px !important;
  }
  .side-drawer .btn-nav-login { height: 50px; }
  .drawer-hl { left: 10px; right: 10px; }

  /* 1. Hero sekcia */
  .hero-section {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 74px 18px 48px 18px !important;
    box-sizing: border-box !important;
  }
  .gradient-sphere {
    filter: blur(70px) !important;
    -webkit-filter: blur(70px) !important;
  }
  .sphere-1 {
    width: 85vw !important;
    height: 85vw !important;
    top: -15% !important;
    left: -20% !important;
  }
  .sphere-2 {
    width: 85vw !important;
    height: 85vw !important;
    bottom: -15% !important;
    right: -20% !important;
  }
  .sphere-3 {
    width: 70vw !important;
    height: 70vw !important;
    top: 35% !important;
    left: -10% !important;
  }
  .glow {
    width: 90vw !important;
    height: 45vh !important;
  }
  .grid-overlay {
    background-size: 36px 36px !important;
    opacity: 1 !important;
  }
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-title {
    font-size: clamp(30px, 8vw, 40px) !important;
    letter-spacing: -0.03em !important;
    line-height: 1.14 !important;
    margin-bottom: 14px !important;
    word-break: break-word !important;
  }
  .hero-subtitle {
    font-size: 15px !important;
    line-height: 1.55 !important;
    margin: 0 auto 24px auto !important;
    padding: 0 4px !important;
    max-width: 100% !important;
  }
  .hero-buttons {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 32px auto !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .hero-buttons .btn-hero-primary, 
  .hero-buttons .btn-hero-secondary {
    width: 100% !important;
    min-height: 48px !important;
    padding: 13px 20px !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    border-radius: 980px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Sekcie a nadpisy */
  .lp-section {
    padding: 56px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scroll-margin-top: 54px !important;
  }
  .section-title {
    font-size: 28px !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
  }
  .section-subtitle {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin: 0 auto 28px auto !important;
    padding: 0 4px !important;
  }

  /* Karty (Prečo my & Dokumentácia) */
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .modern-card {
    padding: 26px 20px !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
  }
  .card-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }
  .modern-card h3 {
    font-size: 19px !important;
    letter-spacing: -0.4px !important;
    margin-bottom: 8px !important;
  }
  .modern-card p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .card-link {
    margin-top: 16px !important;
    padding: 4px 0 !important;
    font-size: 14px !important;
  }

  /* Kontakt sekcia */
  .contact-card { padding: 24px 20px 22px !important; border-radius: 24px !important; }
  .cf-row { grid-template-columns: 1fr !important; gap: 18px !important; }
  .cf-foot { flex-direction: column-reverse !important; align-items: stretch !important; gap: 14px !important; }
  .cf-submit { width: 100% !important; }
  .cf-note { max-width: none !important; text-align: center !important; }
  .cf-mail-link { font-size: 14px !important; }

  /* Pätička (Footer) */
  .site-footer {
    padding: 45px 18px 25px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    margin-bottom: 35px !important;
    width: 100% !important;
    text-align: center !important;
  }
  .footer-col {
    gap: 10px !important;
    align-items: center !important;
    text-align: center !important;
  }
  .footer-col h4 {
    font-size: 13.5px !important;
    margin-bottom: 6px !important;
    text-align: center !important;
  }
  .footer-col a, .footer-col span, .footer-col .legal-link {
    font-size: 13.5px !important;
    padding: 3px 0 !important;
    display: block !important;
    text-align: center !important;
  }
  .footer-bottom {
    padding-top: 25px !important;
    gap: 15px !important;
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .footer-copy {
    font-size: 12px !important;
    line-height: 1.6 !important;
    text-align: center !important;
  }

  /* Prihlasovacie okno (Login Overlay) */
  .close-login-btn {
    top: 18px !important;
    right: 18px !important;
    width: 40px !important;
    height: 40px !important;
  }
  .login-box {
    width: 90% !important;
    max-width: 330px !important;
    padding: 34px 22px !important;
    border-radius: 24px !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px -6px rgba(0, 0, 0, 0.05), 0 20px 40px -14px rgba(0, 0, 0, 0.08) !important;
  }
  .login-box h2 {
    font-size: 22px !important;
    margin-bottom: 25px !important;
  }
  .login-box input {
    padding: 14px 16px !important;
    font-size: 15px !important;
  }
  .login-box .btn {
    height: 50px !important;
    font-size: 14px !important;
  }

  /* =================================================== */
  /* PLNE ZACHOVANÝ DESKTOP FORMÁT PRE CELÚ APLIKÁCIU    */
  /* (ORDERING FORM AJ ORDER HISTORY 1:1 K PC VERZII)    */
  /* =================================================== */
  /* Na telefóne sú tlačidlá v rade hore (nezakrývajú zmenšený formulár) */
  .btn-home {
    position: fixed !important;
    top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    left: 12px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 10000 !important;
  }
  .btn-home .icon-wrapper {
    width: 40px !important;
    height: 40px !important;
  }
  .btn-sandbox {
    position: fixed !important;
    top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    left: 64px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 10000 !important;
  }
  .btn-sandbox .icon-wrapper {
    width: 40px !important;
    height: 40px !important;
  }
  .btn-theme-toggle {
    position: fixed !important;
    top: calc(18px + env(safe-area-inset-top, 0px)) !important;
    left: 116px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 10000 !important;
  }
  .btn-theme-toggle .icon-wrapper {
    width: 40px !important;
    height: 40px !important;
  }
  .btn-status {
    bottom: calc(26px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    width: 44px !important;
  }
  .btn-activity {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
    left: 12px !important;
    width: 44px !important;
  }

  /* Kontajner aplikácie: desktopové rozloženie 1100 px, celé zmenšené na šírku telefónu (--app-zoom počíta JS) */
  .app-content-wrapper {
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    align-self: stretch !important;
    gap: 18px !important;
  }

  .main-container {
    width: 1100px !important;
    min-width: 1100px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    zoom: var(--app-zoom, 1);
  }

  /* Bez vodorovného posúvania - všetko sa zmestí na šírku (priblížiť sa dá prstami) */
  html.is-app-active, html.is-app-active body {
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
  }

  /* Modálne okná potvrdenia a pridania klienta */
  #addClientModal .modal-content {
    max-width: 480px !important;
    width: 90% !important;
  }
  .modal-content {
    max-width: 400px !important;
    width: 90% !important;
  }

  /* Platobné okno (Zhrnutie objednávky) na mobile - Kompaktný škálovaný dizajn 1:1 k PC */
  .cp-overlay {
    padding: 60px 0 0 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: manipulation !important;
    background-color: var(--apple-bg) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .cp-invisible-box {
    width: 100% !important;
    max-width: 480px !important;
    min-width: 0 !important;
    padding: 0 16px !important;
    margin: 0 auto 40px auto !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .cp-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 34px 16px 28px 16px !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.03) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  .cp-header {
    text-align: center;
    margin-bottom: 22px !important;
    padding-top: 2px !important;
  }
  .cp-logo {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    margin-bottom: 10px !important;
  }
  .cp-title {
    font-size: 21px !important;
    margin: 0 0 4px 0 !important;
  }
  .cp-order-id {
    font-size: 13px !important;
  }
  .cp-section-title {
    font-size: 11px !important;
    margin: 0 0 10px 6px !important;
    letter-spacing: 0.6px !important;
  }
  .cp-close-btn {
    position: fixed !important;
    top: 24px !important;
    right: 20px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 36000 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  .cp-info-card {
    border-radius: 14px !important;
    margin-bottom: 22px !important;
  }
  .cp-info-row {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
  }
  .cp-info-label {
    font-size: 13px !important;
  }
  .cp-info-val {
    font-size: 13px !important;
  }
  .cp-recipe-item {
    padding: 11px 14px !important;
    font-size: 13.5px !important;
  }
  .cp-herb-amt {
    font-size: 12px !important;
    padding: 3px 8px !important;
  }
  .cp-method-card {
    padding: 12px 14px !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .cp-method-card.last {
    margin-bottom: 22px !important;
  }
  .cp-pm-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }
  .cp-pm-icon svg {
    width: 19px !important;
    height: 19px !important;
  }
  .cp-pm-details {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .cp-pm-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 2px !important;
  }
  .cp-pm-title {
    font-size: 12.5px !important;
    font-weight: 800 !important;
    color: #1d1d1f !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .cp-pm-badge {
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .cp-pm-subtitle {
    font-size: 11.5px !important;
    line-height: 1.3 !important;
  }
  .cp-summary-box {
    margin-bottom: 18px !important;
  }
  .cp-sum-row {
    font-size: 13.5px !important;
    margin-bottom: 8px !important;
  }
  .cp-total-wrap {
    padding-top: 15px !important;
    margin-bottom: 20px !important;
  }
  .cp-total-label {
    font-size: 16px !important;
  }
  .cp-total-val {
    font-size: 24px !important;
  }
  .cp-legal-box {
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  .cp-legal-item {
    gap: 10px !important;
    margin-bottom: 8px !important;
    align-items: center !important;
  }
  .cp-custom-checkbox {
    width: 19px !important;
    height: 19px !important;
    border-radius: 6px !important;
  }
  .cp-custom-checkbox svg {
    width: 12px !important;
    height: 12px !important;
  }
  .cp-checkbox-text {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }
  .cp-pay-btn {
    padding: 15px !important;
    font-size: 15px !important;
    border-radius: 14px !important;
  }
  .cp-secure-note {
    font-size: 11px !important;
    margin-top: 10px !important;
  }
  .cp-payment-methods-wrapper {
    margin-top: 18px !important;
    margin-bottom: 6px !important;
    padding: 6px 0 !important;
  }
  .cp-payment-methods-img {
    height: 17px !important;
  }

  /* Dokumentové modálne okná (VOP, GDPR) na mobile */
  #payment-doc-modal, #doc-modal {
    padding: 40px 14px 30px 14px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    touch-action: manipulation !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .doc-modal-content {
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 34px 18px 28px 18px !important;
    border-radius: 24px !important;
    min-height: auto !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  .close-doc-btn {
    top: 14px !important;
    right: 14px !important;
    width: 36px !important;
    height: 36px !important;
    background: #f5f5f7 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
  #payment-doc-modal-body, #doc-modal-body {
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #1d1d1f !important;
    word-break: break-word !important;
  }
  #payment-doc-modal-body h1, #doc-modal-body h1 {
    font-size: 19px !important;
    line-height: 1.3 !important;
    margin: 16px 0 10px 0 !important;
    color: #1d1d1f !important;
  }
  #payment-doc-modal-body h2, #doc-modal-body h2 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 14px 0 8px 0 !important;
    color: #1d1d1f !important;
  }
  #payment-doc-modal-body h3, #doc-modal-body h3 {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 12px 0 6px 0 !important;
    color: #1d1d1f !important;
  }
  #payment-doc-modal-body p, #doc-modal-body p,
  #payment-doc-modal-body li, #doc-modal-body li {
    font-size: 13px !important;
    line-height: 1.55 !important;
    margin-bottom: 10px !important;
    color: #444444 !important;
  }
}
  
/* =======================================
   MODERN LOGIN OVERLAY
======================================= */
/* =================================================== */
/* LOADING OBRAZOVKA (Apple štýl: logo + tenký bar)    */
/* Zobrazí sa po prihlásení a po obnovení stránky,     */
/* kým sa na pozadí nenačíta formulár aj história.     */
/* =================================================== */
#appBootLoader {
  position: fixed; inset: 0; z-index: 30000;
  background: #ffffff;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.45s ease;
}
html.boot-pending #appBootLoader, #appBootLoader.active { display: flex; }
#appBootLoader.fade-out { opacity: 0; pointer-events: none; }
#appBootLoader .boot-logo { width: 96px; height: 96px; border-radius: 22px; object-fit: contain; margin-bottom: 44px; }
#appBootLoader .boot-bar { width: 200px; height: 5px; border-radius: 2.5px; background: #e5e5ea; overflow: hidden; }
#appBootLoader .boot-bar-fill { width: 0%; height: 100%; border-radius: 2.5px; background: #1d1d1f; transition: width 0.35s ease; }

#login-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #f4f7fb; z-index: 25000;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; 
}
#login-overlay.active { opacity: 1; visibility: visible; display: flex !important; }
#login-overlay.fade-out { opacity: 0; visibility: hidden; }
/* Zobrazenie okna (v15.85): rovnaká animácia ako pri otvorení Clients a Recipes – obsah sa zjaví a vysunie o 8 px zdola.
   Vlastnosť translate (nie transform), aby sa nebila s otrasením pri zlom hesle. @starting-style = animácia aj pri prvom
   vykreslení po obnovení stránky (trieda login-pending); staršie prehliadače okno ukážu hneď bez animácie. */
#login-overlay .login-box, #login-overlay #version-tag {
  opacity: 0; translate: 0 8px;
  transition: opacity .26s ease, translate .34s cubic-bezier(.16, 1, .3, 1);
}
#login-overlay.active .login-box, #login-overlay.active #version-tag,
html.login-pending #login-overlay .login-box, html.login-pending #login-overlay #version-tag { opacity: 1; translate: none; }
@starting-style {
  html.login-pending #login-overlay .login-box, html.login-pending #login-overlay #version-tag { opacity: 0; translate: 0 8px; }
}
  
.close-login-btn {
  position: absolute; top: 35px; right: 40px;
  width: 46px; height: 46px; border-radius: 50%;
  background: #f5f5f7; border: none; display: flex; align-items: center; justify-content: center;
  color: #86868b; cursor: pointer; transition: all 0.3s ease;
}
.close-login-btn:hover { background: #e8e8ed; color: var(--apple-text); transform: scale(1.05); }
  
.login-box { background: #ffffff; padding: 50px 40px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -6px rgba(0, 0, 0, 0.06), 0 28px 56px -16px rgba(0, 0, 0, 0.10); width: 340px; display: flex; flex-direction: column; align-items: center; border: none; }
.login-box h2 { color: var(--apple-text); margin-top: 0; margin-bottom: 35px; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; text-align: center; }
.login-input-group { width: 100%; margin-bottom: 15px; }
.login-box input { width: 100%; padding: 16px 20px; border-radius: 12px; border: 1px solid #d2d2d7; background: #ffffff; font-family: inherit; font-size: 16px; font-weight: 600; box-sizing: border-box; outline: none; color: var(--apple-text); transition: all 0.2s ease; text-align: center; }
.login-box input:focus { border-color: #000000; box-shadow: 0 0 0 1px #000000; outline: none; }
/* Nesprávne heslo: pole hesla sa jemne rozsvieti na červeno (zmizne pri písaní) */
.login-box input.input-error,
.login-box input.input-error:focus { border-color: #ff7a72; background: #fff6f5; box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12); }
.login-box input[readonly] { opacity: 0.6; }
/* Chybová hláška priamo v prihlasovacom okne (namiesto vzdialeného toastu) */
.login-error {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff2f1;
  color: #d70015;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, margin 0.25s ease;
}
.login-error svg { flex-shrink: 0; }
.login-error.visible { max-height: 80px; opacity: 1; padding: 10px 12px; margin: 0 0 4px 0; }
@keyframes loginShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}
.login-box.shake { animation: loginShake 0.4s ease-in-out; }
.login-box .btn { width: 100%; justify-content: center; padding: 16px; border-radius: 12px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 15px; display: flex; align-items: center; position: relative; height: 54px; box-sizing: border-box; background: var(--apple-text); color: white; border: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.login-box .btn:hover { background: #000000; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
/* prihlásenie: hlavné tlačidlo dizajnového systému (tmavomodré, bez veľkých písmen) */
.login-box .btn { background: #1d1d1f; color: #ffffff; border: 1px solid #1d1d1f; border-radius: var(--ds-btn-radius); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; box-shadow: none; transition: background-color 0.15s ease; }
.login-box .btn:hover { background: #000000; border-color: #000000; transform: none; box-shadow: none; }
.login-box .btn .btn-spinner { border-color: rgba(255,255,255,0.3); border-top-color: #ffffff; }
.btn-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #fff; border-radius: 50%; animation: spin 1s linear infinite; display: none; margin: 0 auto; }
.signin-spinner { box-sizing: border-box; border: 4px solid #e5e5ea; border-top: 4px solid var(--apple-gray); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 20px; }

/* DYNAMIC ACTION LOADING SCREEN */
#overlay-loading { position: fixed; inset: 0; z-index: 30000; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; background: rgba(0, 0, 0, 0.75); color: #ffffff; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
#overlay-loading.active { opacity: 1; visibility: visible; }
#overlay-loading .spinner { box-sizing: border-box; border: 5px solid rgba(255, 255, 255, 0.2); border-top: 5px solid #ffffff; border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 20px; position: relative; transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
#overlay-loading .spinner.success { animation: none; border-color: #27ae60; background-color: #27ae60; transform: scale(1.15); }
#overlay-loading .spinner.success::after { content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: cover; transform: translate(-50%, -50%) scale(0); animation: scaleCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.15s forwards; }
@keyframes scaleCheck { to { transform: translate(-50%, -50%) scale(1); } }
#loading-text { transition: opacity 0.2s ease; }
  
.btn-home { position: fixed; top: 25px; left: 30px; z-index: 10000; background: #ffffff; border: 2px solid #e0e6ed; color: var(--primary); border-radius: 25px; height: 44px; width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); outline: none; overflow: hidden; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.btn-home .icon-wrapper svg,
.btn-sandbox .icon-wrapper svg,
.btn-theme-toggle .icon-wrapper svg {
  transition: color 0.25s ease;
}
.btn-home .icon-wrapper { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-home:hover { width: 105px; background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 6px 15px rgba(26,59,92,0.2); }
.btn-home:hover svg { color: #ffffff; }
.btn-home span.home-text { font-size: 15px; font-weight: 800; color: #ffffff !important; opacity: 0; white-space: nowrap; margin-left: 2px; transition: opacity 0.2s ease; display: none; }
.btn-home:hover span.home-text { opacity: 1; display: inline-block; color: #ffffff !important; }

.btn-sandbox { position: fixed; top: 76px; left: 30px; z-index: 10000; background: #ffffff; border: 2px solid #e0e6ed; color: var(--primary); border-radius: 25px; height: 44px; width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); outline: none; overflow: hidden; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.btn-sandbox .icon-wrapper { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-sandbox:hover { width: 150px; background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 6px 15px rgba(26,59,92,0.2); }
.btn-sandbox:hover svg { color: #ffffff; }
.btn-sandbox span.sandbox-text { font-size: 13.5px; font-weight: 800; color: #ffffff !important; opacity: 0; white-space: nowrap; margin-left: 2px; transition: opacity 0.2s ease; display: none; }
.btn-sandbox:hover span.sandbox-text { opacity: 1; display: inline-block; color: #ffffff !important; }
.btn-sandbox.active { background: #ff9500 !important; border-color: #ff9500 !important; color: #ffffff !important; box-shadow: 0 4px 14px rgba(255, 149, 0, 0.4) !important; }
.btn-sandbox.active:hover { background: #ff9500 !important; border-color: #ff9500 !important; }

.btn-theme-toggle { position: fixed; top: 127px; left: 30px; z-index: 10000; background: #ffffff; border: 2px solid #e0e6ed; color: var(--primary); border-radius: 25px; height: 44px; width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); outline: none; overflow: hidden; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.btn-theme-toggle .icon-wrapper { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.btn-theme-toggle .icon-wrapper svg {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  transform-origin: center;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
  pointer-events: none;
}
#themeIconSun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
#themeIconMoon {
  opacity: 0;
  transform: rotate(-35deg) scale(0.65);
}
body.dark-theme #themeIconSun {
  opacity: 0;
  transform: rotate(35deg) scale(0.65);
}
body.dark-theme #themeIconMoon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.btn-theme-toggle:hover { width: 150px; background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 6px 15px rgba(26,59,92,0.2); }
.btn-theme-toggle:hover svg { color: #ffffff; }
.btn-theme-toggle span.theme-text { font-size: 13.5px; font-weight: 800; color: #ffffff !important; opacity: 0; white-space: nowrap; margin-left: 2px; transition: opacity 0.2s ease; display: none; letter-spacing: 0.5px; }
.btn-theme-toggle:hover span.theme-text { opacity: 1; display: inline-block; color: #ffffff !important; }

/* =================================================== */
/* ACTIVITY LOG: tlačidlo (dizajn ako Home) + okno      */
/* =================================================== */
.btn-activity { position: fixed; bottom: 77px; left: 30px; z-index: 10000; background: #ffffff; border: 2px solid #e0e6ed; color: var(--primary); border-radius: 25px; height: 44px; width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); outline: none; overflow: hidden; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.btn-activity .icon-wrapper { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-activity .icon-wrapper svg { transition: color 0.25s ease; }
.btn-activity span.activity-text { font-size: 14px; font-weight: 800; color: #ffffff !important; opacity: 0; white-space: nowrap; margin-left: 2px; transition: opacity 0.2s ease; display: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-activity:hover { width: 140px; background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 6px 15px rgba(26,59,92,0.2); }
  .btn-activity:hover svg { color: #ffffff; }
  .btn-activity:hover span.activity-text { opacity: 1; display: inline-block; }
}

.al-view {
  position: fixed; inset: 0; z-index: 20000;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  color: #ffffff;
  /* Pokojné pozadie: jemná modrá žiara zhora cez celú šírku, plynulý prechod do tmavej (bez "šmúh" v rohoch) */
  background-color: #0b1b31;
  background-image:
    radial-gradient(140% 60% at 50% -12%, rgba(0,113,227,0.20) 0%, rgba(0,113,227,0.09) 38%, rgba(0,113,227,0.025) 62%, rgba(0,113,227,0) 80%),
    linear-gradient(180deg, #102847 0%, #0e2340 30%, #0c1d36 62%, #09172b 100%);
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(0.99);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}
.al-view.active { opacity: 1; visibility: visible; transform: none; }
.al-close {
  position: fixed; top: 20px; right: 20px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08); color: #ffffff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.al-close:hover { background: rgba(255,255,255,0.16); transform: scale(1.05); }
.al-wrap { max-width: 980px; margin: 0 auto; padding: 56px 28px 64px 28px; box-sizing: border-box; }
.al-header { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
@media (max-width: 1100px) { .al-header { padding-right: 56px; } }
.al-title-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #ffffff; background: linear-gradient(135deg, #0071e3 0%, #00c6ff 100%); box-shadow: 0 8px 22px rgba(0,113,227,0.4); }
.al-title-text { flex: 1; min-width: 0; }
.al-title-text h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.6px; color: #ffffff; line-height: 1.15; }
.al-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); margin-top: 4px; }
.al-sync { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.72); font-variant-numeric: tabular-nums; }
.al-sync:empty { display: none; }
.al-sync .dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 8px rgba(52,199,89,0.8); }
.al-sub .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.3); }
.al-search { position: relative; width: 270px; flex-shrink: 0; }
.al-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.45); pointer-events: none; }
.al-search input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 14px 0 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: #ffffff; font-family: inherit; font-size: 13.5px; font-weight: 600; outline: none; transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.al-search input::placeholder { color: rgba(255,255,255,0.38); }
.al-search input:focus { border-color: rgba(0,198,255,0.55); background: rgba(255,255,255,0.09); box-shadow: 0 0 0 3px rgba(0,198,255,0.12); }

/* Farby kategórií (ikonky, bodky vo filtri) */
.cat-orders   { --c: #5aa9ff; --bg: rgba(90,169,255,0.15); }
.cat-payments { --c: #34d399; --bg: rgba(52,211,153,0.15); }
.cat-emails   { --c: #b794f6; --bg: rgba(183,148,246,0.16); }
.cat-clients  { --c: #f472b6; --bg: rgba(244,114,182,0.15); }
.cat-security { --c: #fbbf24; --bg: rgba(251,191,36,0.14); }
.cat-system   { --c: #9fb3c8; --bg: rgba(159,179,200,0.14); }
.cat-all      { --c: #5cd6ff; --bg: rgba(0,198,255,0.14); }
.cat-issues   { --c: #ff6b61; --bg: rgba(255,69,58,0.16); }

.al-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.al-stat { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.al-stat-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--c); }
.al-stat.issues:not(.has) .al-stat-ico { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }
.al-stat-text { min-width: 0; }
.al-stat-label { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.2; color: #ffffff; font-variant-numeric: tabular-nums; }
.al-stat.issues.has .al-stat-value { color: #ff8a80; }

.al-toolbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0 -28px; padding: 10px 28px; transition: background 0.2s ease, box-shadow 0.2s ease; }
.al-toolbar.stuck { background: rgba(14,35,63,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 10px 24px rgba(0,0,0,0.18); }
.al-seg { flex: 1; min-width: 0; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); overflow-x: auto; scrollbar-width: none; }
.al-seg::-webkit-scrollbar { display: none; }
.al-seg-btn { flex: 1 0 auto; height: 32px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: rgba(255,255,255,0.62); font-family: inherit; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, color 0.2s ease; }
.al-seg-btn:hover { color: #ffffff; background: rgba(255,255,255,0.06); }
.al-seg-btn.active { color: #ffffff; background: rgba(255,255,255,0.14); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 12px rgba(0,0,0,0.18); }
.al-seg-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.al-seg-btn .cnt { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.38); font-variant-numeric: tabular-nums; }
.al-seg-btn.active .cnt { color: rgba(255,255,255,0.75); }
.al-issues-btn { flex-shrink: 0; height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.07); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.72); font-family: inherit; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.al-issues-btn:hover { background: rgba(255,255,255,0.09); color: #ffffff; }
.al-issues-btn svg { color: rgba(255,255,255,0.45); transition: color 0.2s ease; }
.al-issues-btn.has svg { color: #ff8a80; }
.al-issues-btn .cnt { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); font-variant-numeric: tabular-nums; }
.al-issues-btn.has .cnt { background: #ff453a; color: #ffffff; }
.al-issues-btn.active { background: rgba(255,69,58,0.16); border-color: rgba(255,107,97,0.5); color: #ffc9c4; }
.al-issues-btn.active svg { color: #ff8a80; }

.al-list { padding-top: 6px; }
.al-day { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 6px 9px 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.al-day:first-child { margin-top: 10px; }
.al-day .n { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.35); }
.al-group { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; overflow: hidden; }
.al-item { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 12px 18px 12px 16px; transition: background 0.15s ease; }
.al-item + .al-item { border-top: 1px solid rgba(255,255,255,0.06); }
.al-item:hover { background: rgba(255,255,255,0.035); }
.al-item.lvl-warn::before, .al-item.lvl-error::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #ff9f0a; }
.al-item.lvl-error::before { background: #ff453a; }
.al-icon { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--c); }
.al-body { min-width: 0; }
.al-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.al-item-title { font-size: 14px; font-weight: 700; color: #ffffff; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-badge { flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.2px; line-height: 1; padding: 4px 7px; border-radius: 6px; }
.al-badge.warn { background: rgba(255,159,10,0.16); color: #ffb340; }
.al-badge.error { background: rgba(255,69,58,0.18); color: #ff8a80; }
.al-badge.sandbox { background: rgba(255,214,10,0.13); color: #ffd60a; }
.al-item-detail { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.55); line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.al-meta { display: flex; align-items: center; gap: 14px; }
.al-actor { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 4px; border-radius: 11px; font-size: 11px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.65); }
.al-actor .av { width: 15px; height: 15px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; text-transform: uppercase; color: #ffffff; background: rgba(255,255,255,0.2); }
.al-actor.user { background: rgba(0,113,227,0.2); color: #9fd4ff; }
.al-actor.user .av { background: linear-gradient(135deg, #0071e3, #00c6ff); }
.al-actor.demo { background: rgba(255,69,58,0.15); color: #ff9d96; }
.al-actor.demo .av { background: #ff453a; }
.al-time { min-width: 38px; text-align: right; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.al-empty { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 600; }
.al-empty svg { display: block; margin: 0 auto 12px auto; color: rgba(255,255,255,0.3); }
html.al-open, html.al-open body { overflow: hidden !important; }
@media (max-width: 700px) {
  .al-wrap { padding: 62px 14px 40px 14px; }
  .al-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 14px; }
  .al-header { padding-right: 0; flex-wrap: wrap; }
  .al-title-text h2 { font-size: 23px; }
  .al-search { width: 100%; }
  .al-summary { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .al-stat { padding: 11px 12px; gap: 10px; }
  .al-stat-ico { width: 32px; height: 32px; border-radius: 10px; }
  .al-toolbar { margin: 0 -14px; padding: 8px 14px; gap: 8px; }
  .al-issues-btn { padding: 0 11px; }
  .al-issues-btn .lbl { display: none; }
  .al-item { grid-template-columns: 34px minmax(0, 1fr) auto; column-gap: 11px; padding: 11px 12px; align-items: start; }
  .al-icon { width: 34px; height: 34px; }
  .al-item-title { white-space: normal; }
  .al-title-row { flex-wrap: wrap; gap: 4px 6px; }
  .al-meta { flex-direction: column-reverse; align-items: flex-end; gap: 5px; }
}

/* =================================================== */
/* SYSTEM STATUS: tlačidlo (dizajn ako Home) + okno     */
/* =================================================== */
.btn-status { position: fixed; bottom: 25px; left: 30px; z-index: 10000; background: #ffffff; border: 2px solid #e0e6ed; color: var(--primary); border-radius: 25px; height: 44px; width: 44px; cursor: pointer; display: flex; align-items: center; justify-content: flex-start; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); outline: none; overflow: visible; padding: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-family: inherit; }
.btn-status .icon-wrapper { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-status .icon-wrapper svg { transition: color 0.25s ease; }
.btn-status span.status-text { font-size: 14px; font-weight: 800; color: #ffffff !important; opacity: 0; white-space: nowrap; margin-left: 2px; transition: opacity 0.2s ease; display: none; overflow: hidden; }
.btn-status .btn-status-dot { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #ffffff; box-sizing: border-box; display: none; }
.btn-status .btn-status-dot.warn { display: block; background: #ff9500; }
.btn-status .btn-status-dot.danger { display: block; background: #ff3b30; }
@media (hover: hover) and (pointer: fine) {
  .btn-status:hover { width: 160px; background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 6px 15px rgba(26,59,92,0.2); }
  .btn-status:hover svg { color: #ffffff; }
  .btn-status:hover span.status-text { opacity: 1; display: inline-block; }
}

.ss-head-btn { flex-shrink: 0; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.85); font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.ss-head-btn:hover { background: rgba(255,255,255,0.11); color: #ffffff; }
.ss-head-btn.spinning svg { animation: ssSpin 0.8s linear infinite; }
@keyframes ssSpin { to { transform: rotate(360deg); } }

/* Celkový stav */
.ss-health { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; margin-bottom: 6px; border: 1px solid rgba(52,199,89,0.38); background: linear-gradient(100deg, rgba(52,199,89,0.13) 0%, rgba(52,199,89,0.035) 65%, rgba(255,255,255,0.03) 100%); box-shadow: 0 0 0 1px rgba(52,199,89,0.06), 0 10px 30px rgba(0,0,0,0.12); }
.ss-health.warn { border-color: rgba(255,159,10,0.45); background: linear-gradient(100deg, rgba(255,159,10,0.14) 0%, rgba(255,159,10,0.035) 65%, rgba(255,255,255,0.03) 100%); box-shadow: 0 0 0 1px rgba(255,159,10,0.06), 0 10px 30px rgba(0,0,0,0.12); }
.ss-health.danger { border-color: rgba(255,69,58,0.5); background: linear-gradient(100deg, rgba(255,69,58,0.16) 0%, rgba(255,69,58,0.04) 65%, rgba(255,255,255,0.03) 100%); box-shadow: 0 0 0 1px rgba(255,69,58,0.07), 0 10px 30px rgba(0,0,0,0.12); }
.ss-health-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(52,199,89,0.18); color: #5fe08a; box-shadow: 0 0 0 6px rgba(52,199,89,0.07); }
.ss-health.warn .ss-health-ico { background: rgba(255,159,10,0.18); color: #ffb340; box-shadow: 0 0 0 6px rgba(255,159,10,0.07); }
.ss-health.danger .ss-health-ico { background: rgba(255,69,58,0.2); color: #ff8a80; box-shadow: 0 0 0 6px rgba(255,69,58,0.07); }
.ss-health-main { flex: 1; min-width: 0; }
.ss-health-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: #ffffff; }
.ss-health-sub { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.6); margin-top: 2px; }
.ss-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.ss-chips:empty { display: none; }
.ss-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.8); white-space: nowrap; }
.ss-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ss-chip.warn { background: rgba(255,159,10,0.16); color: #ffb340; }
.ss-chip.danger { background: rgba(255,69,58,0.18); color: #ff8a80; }
.ss-chip.note { background: rgba(255,214,10,0.12); color: #ffd60a; }
.ss-chip.muted { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.6); }
.ss-health-week { flex-shrink: 0; width: 150px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,0.1); }
.ss-health-week .lbl { font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 6px; display: flex; justify-content: space-between; }
.ss-health-week .lbl b { color: rgba(255,255,255,0.75); letter-spacing: 0; }

/* Mriežka kariet */
.ss-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.ss-group-title { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 16px 6px -4px 6px; }
.ss-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ss-stack > .ss-card:last-child { flex: 1; }
.ss-card { background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.07); border-radius: 18px; padding: 16px 18px; min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; }
.ss-card > [id] { min-width: 0; }
.ss-fill { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ss-mini.ss-grow { flex: 1; min-height: 96px; position: relative; }
.ss-mini.ss-grow svg { position: absolute; left: 0; top: 0; }
.ss-list { height: 224px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; margin-right: -6px; padding-right: 6px; }
.ss-list::-webkit-scrollbar { width: 6px; }
.ss-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }
.ss-list .ss-row { height: 56px; padding: 0; box-sizing: border-box; }
.ss-list-empty { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 0 20px; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px dashed rgba(255,255,255,0.08); font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); }
.ss-list-empty .ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(52,199,89,0.14); color: #5fe08a; }
.ss-list-empty.muted .ico { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.45); }
.ss-wide { grid-column: 1 / -1; }
.ss-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ss-card-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(0,198,255,0.1); color: #7fd3ff; }
.ss-meta-warn { color: #ffb340; }
.ss-foot-note { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.42); margin-top: 12px; }
.ss-inline { display: flex; align-items: center; gap: 10px; }
.ss-num { min-width: 44px; display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.ss-ver-wrap { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.ss-actor { margin-right: 2px; flex-shrink: 0; }
.ss-kpi-bar { margin-top: 8px; }
.ss-kpis + .ss-section-label { margin-top: 2px; }
.al-sync .dot.warn { background: #ff9f0a; box-shadow: 0 0 8px rgba(255,159,10,0.8); }
.al-sync .dot.danger { background: #ff453a; box-shadow: 0 0 8px rgba(255,69,58,0.8); }
.ss-card-title { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 800; color: #ffffff; letter-spacing: -0.1px; }
.ss-card-meta { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.55); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat-brand    { --c: #5cd6ff; --bg: rgba(0,198,255,0.14); }
.cat-session  { --c: #5aa9ff; --bg: rgba(90,169,255,0.15); }
.cat-stock    { --c: #2dd4bf; --bg: rgba(45,212,191,0.14); }

/* Riadky (služby, verzie, zoznamy) */
.ss-rows { display: flex; flex-direction: column; }
.ss-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.ss-row + .ss-row { border-top: 1px solid rgba(255,255,255,0.06); }
.ss-row:first-child { padding-top: 2px; }
.ss-row:last-child { padding-bottom: 0; }
.ss-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #34c759; box-shadow: 0 0 8px rgba(52,199,89,0.7); }
.ss-dot.warn { background: #ff9f0a; box-shadow: 0 0 8px rgba(255,159,10,0.7); }
.ss-dot.danger { background: #ff453a; box-shadow: 0 0 8px rgba(255,69,58,0.7); }
.ss-dot.note { background: #ffd60a; box-shadow: 0 0 8px rgba(255,214,10,0.6); }
.ss-dot.muted { background: rgba(255,255,255,0.35); box-shadow: none; }
.ss-row-main { flex: 1; min-width: 0; }
.ss-row-title { font-size: 13.5px; font-weight: 700; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-row-sub { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.5); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-row-end { flex-shrink: 0; text-align: right; }
.ss-row-val { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-row-val.warn { color: #ffb340; } .ss-row-val.danger { color: #ff8a80; } .ss-row-val.ok { color: #5fe08a; } .ss-row-val.note { color: #ffd60a; } .ss-row-val.muted { color: rgba(255,255,255,0.55); }
.ss-row-val-sub { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.45); margin-top: 1px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 800; white-space: nowrap; background: rgba(52,199,89,0.16); color: #5fe08a; }
.ss-tag.warn { background: rgba(255,159,10,0.16); color: #ffb340; }
.ss-tag.danger { background: rgba(255,69,58,0.18); color: #ff8a80; }
.ss-tag.muted { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.ss-ver { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.2px; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.07); padding: 3px 8px; border-radius: 7px; white-space: nowrap; }

/* Session */
.ss-session { display: flex; align-items: center; gap: 12px; }
.ss-avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; text-transform: uppercase; color: #ffffff; background: linear-gradient(135deg, #0071e3, #00c6ff); box-shadow: 0 6px 16px rgba(0,113,227,0.35); }
.ss-session-main { flex: 1; min-width: 0; }
.ss-user { font-size: 15px; font-weight: 800; color: #ffffff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ss-access { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; background: rgba(52,199,89,0.18); color: #5fe08a; border: 1px solid rgba(52,199,89,0.35); }
.ss-access.demo { background: rgba(255,59,48,0.18); color: #ff8a80; border-color: rgba(255,59,48,0.45); }
.ss-device { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.5); margin-top: 3px; }
.ss-session-exp { margin-top: 14px; }

/* KPI a pásiky */
.ss-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ss-kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ss-kpi { background: rgba(255,255,255,0.04); border-radius: 12px; padding: 10px 12px; min-width: 0; min-height: 78px; box-sizing: border-box; }
.ss-kpi-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-kpi-value { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: #ffffff; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ss-kpi-value small { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0; }
.ss-kpi-value.warn { color: #ffb340; } .ss-kpi-value.danger { color: #ff8a80; } .ss-kpi-value.ok { color: #5fe08a; }
.ss-meter + .ss-meter { margin-top: 14px; }
.ss-meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.ss-meter-label { font-size: 12.5px; font-weight: 700; color: #ffffff; }
.ss-meter-label span { font-weight: 600; color: rgba(255,255,255,0.45); margin-left: 4px; }
.ss-meter-val { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.75); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ss-bar { height: 7px; border-radius: 4px; background: rgba(255,255,255,0.09); overflow: hidden; }
.ss-bar.thin { height: 5px; }
.ss-bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0071e3, #00c6ff); box-shadow: 0 0 10px rgba(0,198,255,0.45); transition: width 0.5s cubic-bezier(0.32, 0.72, 0, 1); }
.ss-bar-fill.warn { background: linear-gradient(90deg, #ff9500, #ffb340); box-shadow: 0 0 10px rgba(255,149,0,0.45); }
.ss-bar-fill.danger { background: linear-gradient(90deg, #ff3b30, #ff6b61); box-shadow: 0 0 10px rgba(255,59,48,0.45); }
.ss-bar-fill.ok { background: linear-gradient(90deg, #14b8a6, #2dd4bf); box-shadow: 0 0 10px rgba(45,212,191,0.4); }

/* Grafy */
.ss-section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.7px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin: 16px 0 8px 0; }
.ss-section-label b { font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 700; color: rgba(255,255,255,0.65); }
.ss-chart { height: 180px; }
.ss-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ss-chart .ax, .ss-mini .ax, .ss-spark .ax { font-size: 9.5px; font-weight: 700; fill: rgba(255,255,255,0.42); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif; }
.ss-mini { height: 74px; }
.ss-mini svg, .ss-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.ss-spark { height: 84px; }
.ss-week { height: 40px; }
.ss-week svg { display: block; width: 100%; height: 100%; }
.ss-split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,0.08); margin: 4px 0 8px 0; }
.ss-split span { display: block; height: 100%; }
.ss-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.6); }
.ss-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.ss-legend b { color: rgba(255,255,255,0.9); font-weight: 700; margin-left: 3px; font-variant-numeric: tabular-nums; }

.ss-empty { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.035); font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.6); }
.ss-empty svg { color: #5fe08a; flex-shrink: 0; }
.ss-empty.muted svg { color: rgba(255,255,255,0.4); }
.ss-more { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.45); padding-top: 9px; }
.ss-days { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; font-size: 10.5px; font-weight: 800; white-space: nowrap; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.ss-days.warn { background: rgba(255,159,10,0.16); color: #ffb340; }
.ss-days.danger { background: rgba(255,69,58,0.18); color: #ff8a80; }
.ss-mini-bar { width: 70px; flex-shrink: 0; }

@media (max-width: 860px) {
  .ss-grid { grid-template-columns: minmax(0, 1fr); }
  .ss-health-week { display: none; }
}
@media (max-width: 700px) {
  .ss-head-btn .lbl { display: none; }
  .ss-head-btn { padding: 0 12px; }
  .ss-view .al-header { flex-wrap: nowrap; }
  .ss-health { padding: 14px; gap: 12px; align-items: flex-start; }
  .ss-health-ico { width: 38px; height: 38px; box-shadow: none; }
  .ss-health-title { font-size: 16px; }
  .ss-card { padding: 14px; }
  .ss-kpis { gap: 8px; }
  .ss-kpi { padding: 9px 10px; }
  .ss-kpi-value { font-size: 17px; }
  .ss-kpi-value small { display: block; font-size: 11px; margin-top: 1px; }
  .ss-chart { height: 150px; }
  .ss-view .al-sub > span:first-child, .ss-view .al-sub > .sep { display: none; }
}


/* DEMO MODE: Plne interaktívny režim s identickým vizuálom ako Admin */
body.demo-mode .btn-sandbox.active {
  background: #ff9500 !important;
  border-color: #ff9500 !important;
  color: #ffffff !important;
}
#demoInfoModal .modal-content {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
body.dark-theme #demoInfoModal .modal-content {
  background: #282b34 !important;
  color: #e1e3e6 !important;
}
body.dark-theme #demoInfoModal h3 {
  color: #ffffff !important;
}
body.dark-theme #demoInfoModal p {
  color: #cbd0d8 !important;
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
  
/* MAIN APP WRAPPER */
.app-content-wrapper { padding: 40px 20px; width: 100%; flex-direction: column; align-items: center; gap: 40px; box-sizing: border-box; display: none; }
/* Pozadie aplikácie Ordering System (New order): #f2f2f7 (úvodná stránka ostáva #fbfbfd, tmavý režim #1e2024) */
html.is-app-active { background-color: #f2f2f7; }
html.is-app-active:has(body.dark-theme) { background-color: #1e2024; }
html.is-app-active body:not(.dark-theme),
html.is-app-active body:not(.dark-theme) .app-content-wrapper { background-color: #f2f2f7; }
/* Telefón (na výšku aj naležato): celé desktopové rozloženie 1100 px zmenšené na šírku obrazovky */
html.app-phone-zoom .app-content-wrapper { padding-left: 10px !important; padding-right: 10px !important; width: 100% !important; min-width: 0 !important; margin: 0 auto !important; align-self: stretch !important; gap: 18px !important; }
html.app-phone-zoom .main-container { width: 1100px !important; min-width: 1100px !important; max-width: 1100px !important; margin: 0 auto !important; zoom: var(--app-zoom, 1); }
html.app-phone-zoom.is-app-active, html.app-phone-zoom.is-app-active body { overflow-x: hidden !important; -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; }
html.app-phone-zoom .btn-home { top: calc(18px + env(safe-area-inset-top, 0px)) !important; left: 12px !important; width: 44px !important; }
html.app-phone-zoom .btn-sandbox { top: calc(18px + env(safe-area-inset-top, 0px)) !important; left: 64px !important; width: 44px !important; }
html.app-phone-zoom .btn-theme-toggle { top: calc(18px + env(safe-area-inset-top, 0px)) !important; left: 116px !important; width: 44px !important; }
html.app-phone-zoom .btn-status { bottom: calc(26px + env(safe-area-inset-bottom, 0px)) !important; left: 12px !important; width: 44px !important; }
html.app-phone-zoom .btn-activity { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; left: 12px !important; width: 44px !important; }

/* =================================================== */
/* HORNÁ NAVIGAČNÁ LIŠTA APLIKÁCIE (nahrádza plávajúce tlačidlá) */
/* =================================================== */
.app-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif; }
.app-nav-bar { position: relative; z-index: 2; height: 64px; padding: 0 28px 0 0; padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.82); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-bottom: 0.5px solid transparent; box-shadow: none; transition: border-color .25s ease; }
/* lišta bez tieňa; tenká neutrálna čiara sa ukáže až keď obsah prechádza pod lištu (02_vzhlad.js pridá is-scrolled) */
.app-nav.is-scrolled .app-nav-bar { border-bottom-color: rgba(0,0,0,0.12); }
@media (prefers-reduced-transparency: reduce) {
  .app-nav-bar { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.dark-theme .app-nav-bar { background: #25282f; }
}
.app-nav-brand { display: flex; align-items: center; align-self: stretch; min-width: 0; margin-right: auto; }
/* rovnaké rozloženie ako lišta Internal Systemu: logo a názov firmy, deliaca čiara cez celú výšku lišty, názov systému */
.app-nav-cell { display: flex; align-items: center; gap: 10px; width: 224px; height: 100%; padding-left: 25px; box-sizing: border-box; border-right: 1px solid rgba(26,59,92,0.08); flex-shrink: 0; }
.app-nav-brand img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.app-nav-brand .brand { font-size: 19px; letter-spacing: -0.4px; color: #1d1d1f; white-space: nowrap; }
.app-nav-brand .brand strong { font-weight: 800; }
.app-nav-brand .brand span { font-weight: 400; color: #6e6e73; }
.app-nav-brand .product { padding-left: 18px; font-size: 13.5px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.app-nav-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.nav-sep { width: 1px; height: 24px; background: rgba(26,59,92,0.12); margin: 0 8px; flex-shrink: 0; }

.nav-btn { position: relative; height: 38px; min-width: 38px; padding: 0 12px; box-sizing: border-box; border-radius: 10px; border: 0; background: transparent; color: var(--primary); font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; -webkit-tap-highlight-color: transparent; }
.nav-btn:hover { background: rgba(26,59,92,0.06); }
.nav-btn:active { background: rgba(26,59,92,0.1); }
.nav-btn svg { flex-shrink: 0; }
.nav-btn.icon-only { width: 38px; padding: 0; }
.nav-btn:focus { outline: none; }
.nav-btn:focus-visible { outline: 2px solid rgba(0,113,227,0.55); outline-offset: 2px; }

/* Stav systému */
.nav-status { font-weight: 600; color: #4a5568; }
.nav-status .nav-status-ico { display: none; color: var(--primary); }
.nav-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,0.18); flex-shrink: 0; }
.nav-status.warn .dot { background: #ff9500; box-shadow: 0 0 0 3px rgba(255,149,0,0.2); }
.nav-status.danger .dot { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,0.2); }
.nav-status.warn { color: #b45f06; }
.nav-status.danger { color: #c5221f; }

/* Počet problémov pri Activity log */
.nav-badge { position: static; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; border: 0; background: #ff3b30; color: #ffffff; font-size: 10px; font-weight: 800; display: none; align-items: center; justify-content: center; line-height: 1; }
.nav-badge.show { display: inline-flex; }

/* Sandbox prepínač */
.nav-sandbox .switch { width: 30px; height: 18px; border-radius: 9px; background: rgba(26,59,92,0.18); position: relative; transition: background 0.2s ease; flex-shrink: 0; }
.nav-sandbox .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.nav-sandbox .switch { margin-left: 2px; }
.nav-sandbox.active svg { color: #ff9500; }
.nav-sandbox.active .switch { background: #ff9500; }
.nav-sandbox.active .switch::after { transform: translateX(12px); }
.nav-sandbox .state { display: none; }
/* Sandbox: voľby sa ukážu pod prepínačom po prejdení myšou */
.nav-sandbox-wrap { position: relative; display: flex; align-items: center; }
.sb-panel { position: absolute; top: calc(100% + 10px); right: -8px; width: 290px; padding: 10px; border-radius: 16px; background: #ffffff; border: 1px solid rgba(26,59,92,0.1); box-shadow: 0 18px 44px rgba(13,32,54,0.18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s; z-index: 30000; text-align: left; }
.sb-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-sandbox-wrap:hover .sb-panel, .nav-sandbox-wrap:focus-within .sb-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.sb-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #6e7f91; }
.sb-panel-head span { font-size: 11px; letter-spacing: 0; text-transform: none; padding: 2px 8px; border-radius: 10px; background: rgba(26,59,92,0.08); color: #5b6b79; }
.sb-panel.on .sb-panel-head span { background: rgba(255,149,0,0.16); color: #b45f06; }
.sb-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; text-align: left; font: inherit; color: var(--text-dark, #1d2733); }
.sb-opt:hover { background: rgba(26,59,92,0.06); }
.sb-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sb-opt-text b { font-size: 14px; font-weight: 700; }
.sb-opt-text small { font-size: 12px; color: #6e7f91; }
.sb-opt .switch { width: 30px; height: 18px; border-radius: 9px; background: rgba(26,59,92,0.18); position: relative; transition: background 0.2s ease; flex-shrink: 0; }
.sb-opt .switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s ease; }
.sb-opt.active .switch { background: #ff9500; }
.sb-opt.active .switch::after { transform: translateX(12px); }
.sb-panel:not(.on) .sb-opt { opacity: 0.45; cursor: not-allowed; }
.sb-panel:not(.on) .sb-opt:hover { background: transparent; }
.sb-panel-foot { margin: 6px 6px 2px; padding-top: 8px; border-top: 1px solid rgba(26,59,92,0.08); font-size: 11.5px; line-height: 1.45; color: #6e7f91; }
body.dark-theme .sb-panel { background: #25282f; border-color: rgba(255,255,255,0.08); box-shadow: 0 18px 44px rgba(0,0,0,0.45); }
body.dark-theme .sb-opt { color: #e1e3e6; }
body.dark-theme .sb-opt:hover { background: rgba(255,255,255,0.06); }
body.dark-theme .sb-opt .switch { background: rgba(255,255,255,0.18); }
body.dark-theme .sb-opt.active .switch { background: #ff9500; }
body.dark-theme .sb-panel-foot { border-top-color: rgba(255,255,255,0.08); }
body.dark-theme .sb-panel-head span { background: rgba(255,255,255,0.08); color: #b7bdc6; }

/* Prepínač témy (slnko / mesiac sa prelínajú - rovnaké ikony ako doteraz) */
.nav-menu-item .theme-ico { position: relative; width: 18px; height: 18px; flex-shrink: 0; color: var(--primary); }
body.dark-theme .nav-menu-item .theme-ico { color: #8fd0ff; }
.nav-menu-item .theme-ico svg { width: 18px; height: 18px; }
.nav-theme .icon-wrapper { position: relative; width: 20px; height: 20px; }
.nav-menu-item .theme-ico svg, .nav-theme .icon-wrapper svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: center; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }

/* Profil */
.nav-profile { padding: 0 8px 0 4px; gap: 8px; }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; text-transform: uppercase; color: #ffffff; background: linear-gradient(135deg, #0071e3, #00c6ff); flex-shrink: 0; }
.nav-profile.demo .nav-avatar { background: linear-gradient(135deg, #ff3b30, #ff7a6e); }
.nav-profile .chev { opacity: 0.55; transition: transform 0.2s ease; }
.nav-profile[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-menu-wrap { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 10px); right: 0; width: 290px; padding: 8px; box-sizing: border-box; border-radius: 18px; background: #ffffff; border: 1px solid rgba(26,59,92,0.1); box-shadow: 0 24px 60px rgba(13,32,54,0.22), 0 2px 8px rgba(13,32,54,0.08); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right; transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.18s; }
.nav-menu.open { opacity: 1; visibility: visible; transform: none; }
.nav-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px 10px; }
.nav-menu-head .nav-avatar { width: 42px; height: 42px; font-size: 17px; }
.nav-menu-name { font-size: 15px; font-weight: 800; color: #1d1d1f; }
.nav-menu-access { display: inline-block; margin-top: 3px; padding: 2px 8px; border-radius: 8px; font-size: 10px; font-weight: 800; letter-spacing: 0.6px; background: rgba(52,199,89,0.14); color: #1e8e3e; }
.nav-menu-access.demo { background: rgba(255,59,48,0.12); color: #c5221f; }
.nav-menu-session { margin: 0 10px 8px 10px; padding: 10px 12px; border-radius: 12px; background: #f3f6fa; }
.nav-menu-session .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; color: #4a5568; }
.nav-menu-session .row b { color: #1d1d1f; font-variant-numeric: tabular-nums; }
.nav-menu-session .bar { height: 5px; border-radius: 3px; background: rgba(26,59,92,0.1); margin-top: 8px; overflow: hidden; }
.nav-menu-session .bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0071e3, #00c6ff); }
.nav-menu-session .bar span.warn { background: linear-gradient(90deg, #ff9500, #ffb340); }
.nav-menu-session .bar span.danger { background: linear-gradient(90deg, #ff3b30, #ff6b61); }
.nav-menu-sep { height: 1px; background: rgba(26,59,92,0.08); margin: 6px 4px; }
.nav-menu-item { width: 100%; height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #1d1d1f; font-family: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; }
.nav-menu-item:hover { background: #f2f6fb; }
.nav-menu-item svg { color: var(--primary); flex-shrink: 0; }
.nav-menu-item .meta { margin-left: auto; font-size: 12px; font-weight: 700; color: #8a94a3; }
.nav-menu-item.danger, .nav-menu-item.danger svg { color: #d93025; }
.nav-menu-item.theme-item { display: flex; }
body.demo-mode .nav-menu-item.admin-only { display: none; }

/* Pás pri zapnutom Sandboxe */
.app-nav-banner { position: relative; z-index: 1; display: none; height: 30px; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; background: rgba(255,247,235,0.92); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-bottom: 1px solid rgba(255,149,0,0.22); color: #9a5b00; font-size: 12px; font-weight: 600; letter-spacing: 0.1px; white-space: nowrap; overflow: hidden; }
.app-nav-banner svg { color: #ff9500; }
.app-nav-banner-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; border-radius: 12px; background: transparent; color: #b87100; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background 0.2s ease; -webkit-tap-highlight-color: transparent; }
.app-nav-banner-close svg { color: currentColor; }
.app-nav-banner-close:hover { background: rgba(255,149,0,0.16); }
body.dark-theme .app-nav-banner-close { color: #ffc46b; }
html.app-phone-zoom .app-nav-banner-close { right: 8px; width: 28px; height: 28px; }
.app-nav-banner b { font-weight: 800; }
body.dark-theme .app-nav-banner { background: rgba(58,48,34,0.9); border-bottom-color: rgba(255,149,0,0.25); color: #ffc46b; }
html.nav-sandbox-on .app-nav-banner { display: flex; }
.app-nav-banner .short { display: none; }

/* Obsah začína pod lištou (36 px rovnako ako Recipes a Clients) */
.app-content-wrapper { padding-top: calc(64px + 36px + env(safe-area-inset-top, 0px)) !important; }
html.nav-sandbox-on .app-content-wrapper { padding-top: calc(64px + 30px + 36px + env(safe-area-inset-top, 0px)) !important; }

/* Tmavý režim */
body.dark-theme .app-nav-bar { background: rgba(37,40,47,0.86); border-bottom-color: transparent; box-shadow: none; }
body.dark-theme .app-nav.is-scrolled .app-nav-bar { border-bottom-color: rgba(255,255,255,0.12); }
body.dark-theme .app-nav-brand .brand { color: #ffffff; }
body.dark-theme .app-nav-brand .brand span { color: #a1a7b3; }
body.dark-theme .app-nav-cell { border-right-color: rgba(255,255,255,0.07); }
body.dark-theme .app-nav-brand .product { color: #8fd0ff; }
body.dark-theme .nav-btn { background: transparent; color: #e1e3e6; }
body.dark-theme .nav-btn:hover { background: rgba(255,255,255,0.07); }
body.dark-theme .nav-btn:active { background: rgba(255,255,255,0.11); }
body.dark-theme .nav-sep { background: rgba(255,255,255,0.12); }
body.dark-theme .nav-status { color: #b5bac4; }
body.dark-theme .nav-status.warn { color: #ffc46b; }
body.dark-theme .nav-status.danger { color: #ff9d96; }
body.dark-theme .nav-sandbox .switch { background: rgba(255,255,255,0.18); }
body.dark-theme .nav-sandbox.active .switch { background: #ff9500; }
body.dark-theme .nav-badge { border-color: #25282f; }
body.dark-theme .nav-menu { background: #2b2e36; border-color: #444854; box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
body.dark-theme .nav-menu-name, body.dark-theme .nav-menu-item { color: #f0f1f3; }
body.dark-theme .nav-menu-item:hover { background: #363a44; }
body.dark-theme .nav-menu-item svg { color: #8fd0ff; }
body.dark-theme .nav-menu-item.danger, body.dark-theme .nav-menu-item.danger svg { color: #ff8a80; }
body.dark-theme .nav-menu-session { background: #353943; }
body.dark-theme .nav-menu-session .row { color: #b5bac4; }
body.dark-theme .nav-menu-session .row b { color: #ffffff; }
body.dark-theme .nav-menu-sep { background: rgba(255,255,255,0.08); }

/* Priblíženie na telefóne: obsah sa posúva do strany vo vlastnom priestore, prehliadač nepribližuje stránku */
html.app-phone-zoom.is-app-active, html.app-phone-zoom.is-app-active body { touch-action: pan-x pan-y; }
html.app-user-zoomed .app-content-wrapper { overflow-x: auto !important; align-items: flex-start !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
html.app-user-zoomed .app-content-wrapper::-webkit-scrollbar { display: none; }
html.app-user-zoomed .main-container { margin: 0 !important; flex-shrink: 0; }
.zoom-reset { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(12px); z-index: 8999; height: 40px; padding: 0 16px 0 12px; border: 0; border-radius: 20px; background: rgba(29,29,31,0.92); color: #ffffff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(13,32,54,0.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.2s; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.app-user-zoomed .zoom-reset { opacity: 1; visibility: visible; transform: translateX(-50%); }
.zoom-reset .zl { opacity: 0.65; font-weight: 600; }

/* SYSTEM INFO (zabezpečenie + verzie) */
.si-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; margin-bottom: 14px; border: 1px solid rgba(0,198,255,0.28); background: linear-gradient(100deg, rgba(0,113,227,0.2) 0%, rgba(0,198,255,0.06) 65%, rgba(255,255,255,0.03) 100%); }
.si-hero-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,198,255,0.16); color: #7fd3ff; box-shadow: 0 0 0 6px rgba(0,198,255,0.07); }
.si-hero-main { flex: 1; min-width: 0; }
.si-hero-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: #ffffff; }
.si-hero-sub { font-size: 13px; font-weight: 500; line-height: 1.5; color: rgba(255,255,255,0.65); margin-top: 3px; }
.si-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 4px; }
.si-facts .ss-kpi-value { font-size: 19px; }
.si-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.si-list li { position: relative; padding-left: 26px; font-size: 13px; font-weight: 500; line-height: 1.55; color: rgba(255,255,255,0.68); }
.si-list li::before { content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: rgba(52,199,89,0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fe08a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px 10px no-repeat; }
.si-list li b { color: #ffffff; font-weight: 700; }
.si-list sup { font-size: 9px; }
.si-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.si-foot { text-align: center; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.35); margin-top: 28px; }
.si-made { text-align: center; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.25); margin-top: 6px; }
.app-version-foot { text-align: center; font-size: 12px; font-weight: 600; color: #8a97a8; letter-spacing: 0.02em; margin: 6px auto 30px; }
body.dark-theme .app-version-foot { color: #6f7685; }
@media (max-width: 860px) {
  .si-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .si-list-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .si-hero { padding: 14px; gap: 12px; align-items: flex-start; }
  .si-hero-ico { width: 38px; height: 38px; box-shadow: none; }
  .si-hero-title { font-size: 16px; }
  .si-view .al-sub > span:first-child { display: inline; }
}

/* Užšie okno počítača: najprv zmizne "Ordering System", potom texty tlačidiel */
.app-nav-brand { overflow: hidden; }
@media (max-width: 1080px) { .app-nav-bar { padding-left: 28px; } .app-nav-cell { width: auto; padding-left: 0; border-right: 0; } .app-nav-brand .product { display: none; } }
@media (max-width: 900px) { .nav-status .nav-status-ico { display: block; } .nav-status .dot { position: absolute; top: 7px; right: 6px; width: 9px; height: 9px; box-shadow: 0 0 0 2px #ffffff; } body.dark-theme .nav-status .dot { box-shadow: 0 0 0 2px #25282f; } body.dark-theme .nav-status .nav-status-ico { color: #e1e3e6; } #btnActivityLog .nav-badge { position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px; font-size: 9.5px; border: 2px solid #ffffff; } body.dark-theme #btnActivityLog .nav-badge { border-color: #25282f; } .app-nav-bar { padding-left: 18px; padding-right: 18px; } .nav-status .lbl, #btnActivityLog .lbl, .nav-profile .lbl { display: none; } .nav-status, #btnActivityLog { width: 38px; padding: 0; } }

/* Telefón: iba ikonky, téma a Home v menu profilu */
html.app-phone-zoom .app-nav-bar { height: 56px; padding-left: calc(18px + env(safe-area-inset-left, 0px)); padding-right: calc(16px + env(safe-area-inset-right, 0px)); gap: 8px; }
html.app-phone-zoom .nav-status .nav-status-ico { display: block; }
html.app-phone-zoom .nav-status .dot { position: absolute; top: 8px; right: 7px; width: 9px; height: 9px; box-shadow: 0 0 0 2px #ffffff; }
html.app-phone-zoom body.dark-theme .nav-status .dot { box-shadow: 0 0 0 2px #25282f; }
html.app-phone-zoom body.dark-theme .nav-status .nav-status-ico { color: #e1e3e6; }
html.app-phone-zoom .app-nav-brand img { width: 32px; height: 32px; }
html.app-phone-zoom .app-nav-cell { width: auto; padding-left: 0; border-right: 0; }
html.app-phone-zoom .app-nav-brand .brand, html.app-phone-zoom .app-nav-brand .product { display: none; }
html.app-phone-zoom .app-nav-actions { gap: 6px; }
html.app-phone-zoom .nav-btn .lbl, html.app-phone-zoom .nav-profile .chev, html.app-phone-zoom .nav-sandbox .switch { display: none; }
html.app-phone-zoom .nav-btn { width: 42px; height: 42px; min-width: 42px; padding: 0; border-radius: 12px; }
html.app-phone-zoom .nav-sep { display: none; }
html.app-phone-zoom #btnActivityLog .nav-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 9.5px; border: 2px solid #ffffff; }
body.dark-theme #btnActivityLog .nav-badge { border-color: #25282f; }
html.app-phone-zoom .nav-sandbox.active { background: rgba(255,149,0,0.14); }
html.app-phone-zoom .nav-profile { padding: 0; }
html.app-phone-zoom .nav-profile .nav-avatar { width: 34px; height: 34px; }
html.app-phone-zoom .nav-menu { position: fixed; top: calc(56px + 8px + env(safe-area-inset-top, 0px)); right: 10px; left: 10px; width: auto; }
html.nav-sandbox-on.app-phone-zoom .nav-menu { top: calc(56px + 30px + 8px + env(safe-area-inset-top, 0px)); }
html.app-phone-zoom .app-nav-banner { font-size: 12px; }
html.app-phone-zoom .app-nav-banner .long { display: none; }
html.app-phone-zoom .app-nav-banner .short { display: inline; }
html.app-phone-zoom .app-content-wrapper { padding-top: calc(56px + 18px + env(safe-area-inset-top, 0px)) !important; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important; }
html.app-phone-zoom.nav-sandbox-on .app-content-wrapper { padding-top: calc(56px + 30px + 18px + env(safe-area-inset-top, 0px)) !important; }

.main-container { width: 100%; max-width: 1280px; box-sizing: border-box; background: #ffffff; border-radius: var(--border-radius); box-shadow: 0 8px 30px rgba(26, 59, 92, 0.15); overflow: hidden; }
.header-top { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--text-light); text-align: center; font-size: 26px; font-weight: 800; padding: 20px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.info-section { background-color: var(--panel-bg); padding: 25px 40px; display: flex; gap: 40px; justify-content: space-between; }
.left-panel { width: 45%; } .right-panel { width: 55%; }
.info-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; }
.info-table td { padding: 4px 10px; font-size: 15px; }
.info-table td:first-child { font-weight: 700; color: var(--primary); width: 45%; text-align: right; white-space: nowrap; }
.info-table input, .info-table select { width: 100%; padding: 8px 12px; border: 1px solid #c9d6df; border-radius: 6px; font-family: inherit; font-size: 15px; font-weight: 600; background-color: var(--input-bg); color: var(--primary); box-sizing: border-box; outline: none; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.info-table select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a3b5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; cursor: pointer; }
.info-table input:not([readonly]):focus, .info-table select:focus { border-color: var(--secondary); }
.info-table input[readonly] { background-color: #f4f7fa; color: #636e72; border-color: transparent; }
.info-table input[readonly]:focus { border-color: transparent !important; outline: none !important; }
  
.btn-icon-client { background-color: #e4edf7; color: var(--primary-light); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; outline: none; border-radius: 10px; }
.btn-icon-client:hover { background-color: var(--primary); color: #ffffff; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(26, 59, 92, 0.2); }
.client-actions { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.client-actions .btn-icon-client { width: 38px; height: 38px; }
/* ceruzka (upraviť klienta) vpravo v poli Client name, objaví sa až po výbere klienta */
.client-field { position: relative; display: block; }
#clientName { padding-right: 46px; }
.client-edit-in { position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--primary-light);
  display: flex; align-items: center; justify-content: center; cursor: pointer; outline: none;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-50%) scale(0.85);
  transition: opacity .18s ease, transform .18s cubic-bezier(.2,.8,.2,1), visibility 0s linear .18s, background-color .15s ease, color .15s ease; }
.client-edit-in.show { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%) scale(1); transition: opacity .18s ease, transform .18s cubic-bezier(.2,.8,.2,1), visibility 0s, background-color .15s ease, color .15s ease; }
/* šípka prehliadača pri zozname klientov stála uprostred poľa; namiesto nej vlastná šípka vpravo (po výbere klienta ju nahradí ceruzka) */
#clientName::-webkit-calendar-picker-indicator, #clientName::-webkit-list-button,
#recipeSavedInput::-webkit-calendar-picker-indicator, #recipeSavedInput::-webkit-list-button,
.h-name::-webkit-calendar-picker-indicator, .h-name::-webkit-list-button,
.rx-name::-webkit-calendar-picker-indicator, .rx-name::-webkit-list-button,
.rx-name::-webkit-calendar-picker-indicator,
.rx-name::-webkit-list-button { display: none !important; opacity: 0; }
.client-chev-in { position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--primary-light);
  display: flex; align-items: center; justify-content: center; cursor: pointer; outline: none; opacity: .75; transform: translateY(-50%);
  transition: opacity .15s ease, background-color .15s ease, color .15s ease, visibility 0s; }
.client-chev-in.hide { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, visibility 0s linear .12s; }
.client-chev-in:hover { opacity: 1; background-color: var(--hover-strong); color: var(--primary); }
body.dark-theme .client-chev-in { color: #cbd0d8; }
body.dark-theme .client-chev-in:hover { color: #ffffff; }
html.app-phone-zoom .client-chev-in { width: 36px; height: 36px; right: 5px; }
/* pole uloženého receptu: šípka so sivým štvorcom ako pri Client name (namiesto obrázka v pozadí) */
#recipeSaved, #recipeSavedInput { background-image: none !important; padding-right: 46px; }
html.app-phone-zoom #recipeSaved, html.app-phone-zoom #recipeSavedInput { padding-right: 48px !important; }
html.app-phone-zoom .recipe-field { flex: 1; min-width: 0; }
html.app-phone-zoom #recipeSaved, html.app-phone-zoom #recipeSavedInput { width: 100% !important; }
.client-edit-in:hover { background-color: var(--hover-strong); color: var(--primary); }
.client-edit-in:focus-visible { box-shadow: 0 0 0 2px #0071e3; }
.client-edit-in:active { transform: translateY(-50%) scale(0.92); }
body.dark-theme .client-edit-in { color: #cbd0d8; }
body.dark-theme .client-edit-in:hover { color: #ffffff; }
html.app-phone-zoom .client-field { flex: 1; min-width: 0; }
html.app-phone-zoom #clientName { width: 100% !important; padding-right: 48px !important; }
html.app-phone-zoom .client-edit-in { width: 36px; height: 36px; right: 5px; }
html.app-phone-zoom body.dark-theme .client-edit-in { color: #8fc1ff; }
@media (prefers-reduced-motion: reduce) { .client-edit-in, .client-edit-in.show { transition: opacity .12s ease, visibility 0s; transform: translateY(-50%); } }
.edit-client-note { margin-top: 14px; padding: 11px 13px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid #f0d49b; border-radius: 11px; background: #fff8ea; color: #8a5d0c; font-size: 12.5px; line-height: 1.45; }
.edit-client-note svg { flex-shrink: 0; margin-top: 1px; color: #d48a10; }
.edit-client-note b { color: #6e4a08; }
body.dark-theme .edit-client-note { background: #3a3020; border-color: #6b5426; color: #e9c98a; }
body.dark-theme .edit-client-note b { color: #f6dca6; }
.btn-icon-client:disabled, .btn-icon-client:disabled:hover { opacity: 0.4; cursor: not-allowed; background-color: #e4edf7; color: var(--primary-light); transform: none; box-shadow: none; }
  
.table-container { padding: 20px 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; box-sizing: border-box; }
.table-section { width: 100%; border-collapse: separate; border-spacing: 0 6px; min-width: 960px; table-layout: fixed; } /* pevné šírky stĺpcov - formulár sa neposúva pri night mode */
.table-section th { background-color: var(--primary-light); color: var(--text-light); padding: 12px 8px; font-weight: 700; font-size: 14px; white-space: normal; line-height: 1.25; overflow-wrap: break-word; }
.table-section th:first-child { border-radius: 8px 0 0 8px; }
.table-section th:last-child { border-radius: 0 8px 8px 0; }
.table-section td { padding: 4px; }
.table-section input { width: 100%; padding: 10px; border: 1px solid #e0e6ed; border-radius: 6px; outline: none; text-align: center; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-dark); box-sizing: border-box; transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease; }
.h-name,
.rx-name { text-align: left !important; background-color: #ffffff !important; }
  
.duplicate-error, .invalid-error { border: 2px solid var(--danger) !important; background-color: #fadbd8 !important; box-shadow: 0 0 8px rgba(231, 76, 60, 0.4) !important; color: #c0392b !important; }
.table-section td:nth-child(2) input, .table-section td:nth-child(3) input { background-color: #ffffff; }
.table-section td:first-child input, .table-section td:nth-child(4) input, .table-section td:nth-child(5) input, .table-section td:nth-child(6) input, .table-section input[readonly] { background-color: #f4f7fa; color: #636e72; border-color: transparent; }
.table-section input[readonly]:focus, .table-section td:first-child input:focus, .table-section td:nth-child(4) input:focus, .table-section td:nth-child(5) input:focus, .table-section td:nth-child(6) input:focus { border-color: transparent !important; outline: none !important; }
/* polia na vyplnenie: jemne tmavší okraj pod myšou, výraznejší modrý okraj pri písaní (bez žiary) */
.info-table input:not([readonly]), .info-table select, .table-section .h-name, .table-section .h-dose,
.table-section .rx-name,
.table-section .rx-dose { transition: background-color .25s ease, border-color .2s ease, box-shadow .2s ease, color .25s ease; }
.info-table input:not([readonly]):hover, .info-table select:hover, .table-section .h-name:hover, .table-section .h-dose:hover,
.table-section .rx-name:hover,
.table-section .rx-dose:hover { border-color: #a7b6c6; }
.info-table input:not([readonly]):focus, .info-table select:focus, .table-section .h-name:focus, .table-section .h-dose:focus,
.table-section .rx-name:focus,
.table-section .rx-dose:focus { border-color: #0071e3; box-shadow: inset 0 0 0 0.5px #0071e3; }
  
.footer-section { background-color: var(--panel-bg); padding: 25px 34px; display: flex; justify-content: space-between; align-items: center; border-top: 2px solid #e0e6ed; }
.footer-table { border-collapse: separate; border-spacing: 10px 0; text-align: center; }
.footer-table th { color: var(--primary); font-size: 13px; padding-bottom: 8px; font-weight: 700; }
.footer-val { background-color: #ffffff; border: 2px solid var(--secondary); border-radius: 8px; padding: 10px 15px; font-size: 16px; font-weight: 800; color: var(--primary); min-width: 110px; display: flex; justify-content: center; align-items: center; gap: 5px; }
.footer-val input { background: transparent; border: none; text-align: right; font-weight: 800; font-size: 16px; color: var(--primary); width: 60px; outline: none; }
.footer-val.highlight { background-color: var(--primary); color: var(--text-light); border-color: var(--primary); }
  
/* DIZAJNOVÝ SYSTÉM: spoločné hodnoty tlačidiel (rovnaké ako Internal System, Recipes a Clients) */
:root {
  --ds-pri: #1d1d1f; --ds-pri-2: #3a3a3c; --ds-pri-ink: #ffffff; /* v14.12: hlavné tlačidlá čierne (predtým tmavomodré #1a3b5c) */
  --ds-surface: #ffffff; --ds-surface-2: #f6f8fb; --ds-line: #e2e8f0; --ds-ink: #142235;
  --ds-bad: #c5221f; --ds-bad-2: #a51d1a; --ds-bad-ink: #ffffff;
  --ds-btn-h: 38px; --ds-btn-radius: 10px;
}
body.dark-theme {
  --ds-pri: #f2f2f4; --ds-pri-2: #ffffff; --ds-pri-ink: #1d1d1f; /* v14.12: v tmavom režime svetlé s čiernym textom ako Send order */
  --ds-surface: rgba(255, 255, 255, 0.06); --ds-surface-2: rgba(255, 255, 255, 0.11); --ds-line: rgba(255, 255, 255, 0.14); --ds-ink: #eef0f3;
  --ds-bad: #ff8a80; --ds-bad-2: #ffa79f; --ds-bad-ink: #3c1f1d;
}
/* 3 druhy tlačidiel: hlavné (btn-send), vedľajšie (btn-clear, btn-gray), mazanie (btn-danger) */
.btn { height: var(--ds-btn-h); padding: 0 18px; border: 1px solid var(--ds-line); border-radius: var(--ds-btn-radius); background: var(--ds-surface); color: var(--ds-ink); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--ds-pri); outline-offset: 2px; }
.btn-send { background: var(--ds-pri); border-color: var(--ds-pri); color: var(--ds-pri-ink); }
.btn-clear, .btn-gray { background: var(--ds-surface); border-color: var(--ds-line); color: var(--ds-ink); }
.btn-danger { background: var(--ds-bad); border-color: var(--ds-bad); color: var(--ds-bad-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn-send:hover { background: var(--ds-pri-2); border-color: var(--ds-pri-2); }
  .btn-clear:hover, .btn-gray:hover { background: var(--ds-surface-2); }
  .btn-danger:hover { background: var(--ds-bad-2); border-color: var(--ds-bad-2); }
}
/* tlačidlá pod formulárom objednávky: rovnaký druh, iba o niečo širšie */
.footer-section > .btn { min-width: 120px; height: 42px; }
  
.toast-container { position: fixed; top: calc(88px + env(safe-area-inset-top, 0px)); right: 20px; z-index: 40000; }
html.is-app-active .toast-container { top: calc(64px + 14px + env(safe-area-inset-top, 0px)); }
html.is-app-active.nav-sandbox-on .toast-container { top: calc(64px + 30px + 14px + env(safe-area-inset-top, 0px)); }
html.app-phone-zoom.is-app-active .toast-container { top: calc(56px + 12px + env(safe-area-inset-top, 0px)); right: 12px; left: 12px; }
html.app-phone-zoom.is-app-active.nav-sandbox-on .toast-container { top: calc(56px + 30px + 12px + env(safe-area-inset-top, 0px)); }
/* kým je otvorený panel volieb Sandboxu, správy sa ukážu pod ním (inak by ho prekryli) */
html.is-app-active:has(.nav-sandbox-wrap:hover) .toast-container,
html.is-app-active:has(.nav-sandbox-wrap:focus-within) .toast-container { top: calc(64px + 30px + 300px + env(safe-area-inset-top, 0px)); transition: top 0.16s ease; }
.toast { background: white; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); padding: 15px 25px; margin-bottom: 10px; font-weight: 700; border-left: 6px solid; transform: translateX(120%); transition: transform 0.25s ease; }
.toast.show { transform: translateX(0); }
.toast.error { border-color: var(--danger); color: #c0392b; }
.toast.success { border-color: var(--accent); color: #219a52; }
.toast.warning, .toast.yellow { border-color: #ff9500; color: #b45309; }
.toast.info, .toast.primary, .toast.darkblue { border-color: var(--primary); color: var(--primary); }
  
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.15s ease, visibility 0.15s; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: white; padding: 35px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); text-align: center; max-width: 400px; width: 90%; border: 2px solid var(--primary-light); transform: translateY(-15px); transition: transform 0.15s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-content h3 { margin-top: 0; color: var(--primary); font-size: 22px; }
.modal-content p { color: #34495e; font-size: 16px; margin-bottom: 25px; line-height: 1.5; }
.modal-buttons { display: flex; justify-content: center; gap: 15px; }
  
#addClientModal .modal-content { padding: 0; background-color: #eef3f8; max-width: 500px; overflow: hidden; display: flex; flex-direction: column; border: none; border-radius: 20px; box-shadow: 0 30px 70px rgba(13, 32, 54, 0.35); }
#addClientModal .modal-header { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--text-light); padding: 22px 20px; font-size: 21px; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
#addClientModal .modal-header svg { opacity: 0.9; flex-shrink: 0; }
#addClientModal .modal-body { padding: 22px 30px 18px 30px; text-align: left; }
#addClientModal .client-phone { display: flex; gap: 8px; }
#addClientModal .client-phone select { width: 98px; flex-shrink: 0; }
#addClientModal .info-table { margin-bottom: 0; border-spacing: 0 6px; }
#addClientModal .info-table td { color: var(--text-dark); padding: 2px 8px; }
#addClientModal .info-table td:first-child { width: 33%; color: var(--primary); font-weight: 700; font-size: 15px; text-align: right; padding-right: 14px; white-space: nowrap; }
#addClientModal .info-table input { height: 42px; padding: 9px 14px; border: 1px solid #d3dce7; border-radius: 10px; background-color: #ffffff; font-size: 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
#addClientModal .info-table input::placeholder { color: #d3d9e1; font-weight: 500; opacity: 1; }
#addClientModal .info-table input:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12); }
#addClientModal .info-table input.input-error, body.dark-theme #addClientModal .info-table input.input-error { border-color: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12); }
#addClientModal .modal-footer { background-color: #ffffff; padding: 18px 30px; border-top: 1px solid #dde4ec; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
/* Okno klienta v štýle Apple: biela karta, popisy nad poliami, sivé polia bez rámu, modré hlavné tlačidlo */
#addClientModal .modal-content.cm-card { position: relative; max-width: 460px; width: 92%; padding: 0; background: #ffffff; border: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04); overflow: hidden; text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; color: #1d1d1f; }
#addClientModal .cm-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2f2f7; color: #6e6e73; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s ease; }
#addClientModal .cm-close:hover { background: #e5e5ea; color: #1d1d1f; }
#addClientModal .cm-head { padding: 26px 28px 6px; }
#addClientModal .cm-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: #1d1d1f; }
#addClientModal .cm-head p { margin: 4px 0 0; font-size: 14px; color: #86868b; }
#addClientModal .cm-body { padding: 14px 28px 8px; display: flex; flex-direction: column; gap: 12px; }
#addClientModal .cm-row { display: flex; gap: 10px; }
#addClientModal .cm-grow { flex: 1; min-width: 0; }
#addClientModal .cm-zip { width: 116px; flex-shrink: 0; }
#addClientModal .cm-country { width: 140px; flex-shrink: 0; }
#addClientModal .cm-hint { margin: -6px 2px 2px; font-size: 12px; line-height: 1.4; color: #6e6e73; }
body.dark-theme #addClientModal .cm-hint { color: #a1a7b3; }
#addClientModal .cm-field label { display: block; font-size: 12.5px; font-weight: 600; color: #6e6e73; margin: 0 0 5px 2px; }
#addClientModal .cm-field input, #addClientModal .cm-field select { width: 100%; height: 42px; box-sizing: border-box; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; background-color: #f2f2f7; color: #1d1d1f; font: inherit; font-size: 15px; font-weight: 500; outline: none; transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease; }
#addClientModal .cm-field select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
#addClientModal .cm-field input::placeholder { color: #aeaeb2; font-weight: 400; }
#addClientModal .cm-field input:focus, #addClientModal .cm-field select:focus { border-color: #0071e3; box-shadow: inset 0 0 0 0.5px #0071e3; }
#addClientModal .cm-field input.input-error { background-color: #fff2f1; border-color: #ff3b30; box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.10); }
#addClientModal .cm-phone { display: flex; gap: 8px; }
/* plávajúci názov poľa (ako Apple ID): prázdne pole = názov v poli, vyplnené / aktívne = malý názov hore + hodnota */
#addClientModal .cm-body { gap: 10px; }
#addClientModal .cm-float { position: relative; }
#addClientModal .cm-float input, #addClientModal .cm-float select { height: 54px; padding: 21px 14px 5px; }
#addClientModal .cm-float select { padding-right: 32px; }
#addClientModal .cm-float label { position: absolute; left: 15px; top: 17px; margin: 0; font-size: 15px; font-weight: 500; color: #8e8e93; pointer-events: none; white-space: nowrap; transition: top .15s ease, font-size .15s ease, color .15s ease; }
#addClientModal.cm-noanim .cm-float label { transition: none; }
#addClientModal .cm-float input::placeholder { color: transparent; }
#addClientModal .cm-float input:focus::placeholder { color: #c7c7cc; }
#addClientModal .cm-float input:focus + label, #addClientModal .cm-float input:not(:placeholder-shown) + label, #addClientModal .cm-select label { top: 8px; font-size: 11.5px; font-weight: 600; }
#addClientModal .cm-float input:focus + label, #addClientModal .cm-select select:focus + label { color: #0071e3; }
#addClientModal .cm-float input.input-error + label { color: #ff3b30; }
#addClientModal .cm-prefix { width: 96px; flex-shrink: 0; }
#addClientModal .cm-country { width: 132px; }
body.dark-theme #addClientModal .cm-field.cm-float input:focus::placeholder { color: #636366 !important; }
body.dark-theme #addClientModal .cm-field.cm-float input::placeholder { color: transparent !important; }
body.dark-theme #addClientModal .cm-field.cm-float label { color: #8e8e93; }
body.dark-theme #addClientModal .cm-field.cm-float input:focus + label, body.dark-theme #addClientModal .cm-field.cm-select select:focus + label { color: #0a84ff; }
body.dark-theme #addClientModal .cm-field.cm-float input.input-error + label { color: #ff453a; }
#addClientModal .cm-phone select { width: 92px; flex-shrink: 0; }
#addClientModal .add-client-consent { margin-top: 6px; padding-top: 14px; border-top: 1px solid #ececf0; }
#addClientModal .add-client-consent label { color: #515154; font-size: 12px; }
#addClientModal .edit-client-note { margin-top: 6px; padding: 14px 0 0; border: 0; border-top: 1px solid #ececf0; border-radius: 0; background: transparent; color: #6e6e73; font-size: 12px; line-height: 1.45; }
#addClientModal .cm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px 24px; }
#addClientModal .cm-btn { height: 42px; padding: 0 22px; border: 0; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
#addClientModal .cm-btn:active { transform: scale(0.97); }
#addClientModal .cm-btn-secondary { background: #f2f2f7; color: #1d1d1f; }
#addClientModal .cm-btn-secondary:hover { background: #e5e5ea; }
#addClientModal .cm-btn-primary { background: #0071e3; color: #ffffff; min-width: 130px; }
#addClientModal .cm-btn-primary:hover { background: #0077ed; }
body.dark-theme #addClientModal .modal-content.cm-card { background: #1c1c1e; color: #f5f5f7; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
body.dark-theme #addClientModal .cm-head h3 { color: #f5f5f7; }
body.dark-theme #addClientModal .cm-close, body.dark-theme #addClientModal .cm-btn-secondary { background: #2c2c2e; color: #f5f5f7; }
body.dark-theme #addClientModal .cm-close:hover, body.dark-theme #addClientModal .cm-btn-secondary:hover { background: #3a3a3c; }
body.dark-theme #addClientModal .cm-field label { color: #98989d; }
body.dark-theme #addClientModal .cm-field input, body.dark-theme #addClientModal .cm-field select { background-color: #2c2c2e; color: #f5f5f7; }
body.dark-theme #addClientModal .cm-field input:focus, body.dark-theme #addClientModal .cm-field select:focus { border-color: #0a84ff; box-shadow: inset 0 0 0 0.5px #0a84ff; }
body.dark-theme #addClientModal .cm-field input::placeholder { color: #636366 !important; font-weight: 400; }
body.dark-theme #addClientModal .add-client-consent { border-top-color: #38383a; }
body.dark-theme #addClientModal .add-client-consent label { color: #c7c7cc; }
body.dark-theme #addClientModal .edit-client-note { background: transparent; border-top-color: #393c45; color: #c7c7cc; }
@media (max-width: 520px) { #addClientModal .cm-row { flex-wrap: wrap; } #addClientModal .cm-zip, #addClientModal .cm-country { width: 100%; } #addClientModal .cm-zip { flex: 1; } }
  
.add-client-consent {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d1d9e2;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transition: all 0.3s ease;
}
/* Moderný checkbox (zaoblený štvorec, po zaškrtnutí modrý s bielou fajkou) */
.add-client-consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid #b9c3cf;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  display: grid;
  place-content: center;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.add-client-consent input[type="checkbox"]::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0, 1);
}
.add-client-consent input[type="checkbox"]:hover { border-color: #0071e3; }
.add-client-consent input[type="checkbox"]:active { transform: scale(0.92); }
.add-client-consent input[type="checkbox"]:checked { background: #0071e3; border-color: #0071e3; box-shadow: 0 2px 6px rgba(0, 113, 227, 0.3); }
.add-client-consent input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.add-client-consent input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); outline: none; }
.add-client-consent label {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
}
.add-client-consent .consent-link {
  color: #0071e3;
  text-decoration: underline;
  font-weight: 600;
}
.add-client-consent .consent-link:hover {
  color: #0077ed;
}
.add-client-consent .required-star {
  color: #ff3b30;
  font-weight: 700;
  margin-left: 2px;
}
.add-client-consent .consent-en {
  display: block;
  font-size: 11px;
  color: #86868b;
  margin-top: 4px;
  line-height: 1.35;
  font-style: italic;
}
.add-client-consent.has-error {
  outline: 2px solid #ff3b30;
  border-radius: 8px;
  padding: 8px 10px;
  background-color: #fff2f2;
  animation: cpShake 0.4s ease-in-out;
}
  
#viewOrderModal .modal-content { padding: 0; background-color: #ffffff; max-width: 800px; overflow: hidden; display: flex; flex-direction: column; }
#viewOrderModal .modal-body { padding: 25px 30px; text-align: left; background-color: #ffffff; }
#viewOrderModal .detail-row { display: flex; margin-bottom: 8px; font-size: 14.5px; align-items: baseline; }
#viewOrderModal .detail-label { font-weight: 800; color: var(--primary); width: 45%; text-align: right; padding-right: 12px; box-sizing: border-box; }
#viewOrderModal .detail-value { font-weight: 400; color: #666666; width: 55%; }
#viewOrderModal .modal-footer { background-color: #eef3f8; padding: 20px 30px; border-top: 1px solid #c9d6df; display: flex; justify-content: center; }
.recipe-table th { padding: 6px 0; color: var(--primary); font-size: 13px; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid #e0e6ed; }

/* ------------------------------------- */
/* RECIPES A CLIENTS – pozadie #f2f2f7 ako Ordering System (karty s tieňom, tabuľky, tlačidlá) */
/* ------------------------------------- */
.dx-overlay, .modal-content.dx-dlg, .cd-panel {
  --dx-bg: #f2f2f7; --dx-surface: #ffffff; --dx-surface-2: #f6f8fb; --dx-ink: #142235; --dx-ink-2: #3b4a5e; --dx-muted: #6b7a8f;
  --dx-line: #e2e8f0; --dx-line-2: #edf1f6; --dx-pri: #1a3b5c; --dx-pri-2: #2c5282; --dx-pri-ink: #ffffff; --dx-acc: #0071e3;
  --dx-bad: #c5221f; --dx-bad-soft: #fce8e6; --dx-warn: #b45f06; --dx-warn-soft: #fdf1df; --dx-acc-soft: #e8f1fd;
  --dx-shadow: 0 1px 2px rgba(20, 34, 53, 0.04), 0 8px 24px rgba(20, 34, 53, 0.06);
}
body.dark-theme .dx-overlay, body.dark-theme .modal-content.dx-dlg, body.dark-theme .cd-panel {
  --dx-bg: #15171c; --dx-surface: #1f2228; --dx-surface-2: #262a31; --dx-ink: #eef0f3; --dx-ink-2: #c9ced6; --dx-muted: #98a1ae;
  --dx-line: #333843; --dx-line-2: #2a2e36; --dx-pri: #8fc1ff; --dx-pri-2: #b3d4ff; --dx-pri-ink: #10233a; --dx-acc: #5aa9ff;
  --dx-bad: #ff8a80; --dx-bad-soft: #3c1f1d; --dx-warn: #ffc46b; --dx-warn-soft: #3a2c17; --dx-acc-soft: #1d2b40;
  --dx-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
}
.dx-overlay { position: fixed; inset: 0; z-index: 9500; background: var(--dx-bg); color: var(--dx-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.dx-overlay *, .modal-content.dx-dlg * { box-sizing: border-box; }
.dx-overlay.active { opacity: 1; visibility: visible; }
.dx-overlay.dx-top { z-index: 9600; }
.nav-btn.is-busy { opacity: .55; cursor: progress; }
.dx-close { position: fixed; top: 22px; right: 24px; z-index: 2; width: 36px; height: 36px; border: 1px solid var(--dx-line); border-radius: 50%; background: var(--dx-surface); color: var(--dx-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--dx-shadow); transition: color .15s ease, transform .15s ease; }
.dx-close:hover { color: var(--dx-ink); transform: scale(1.05); }
.dx-page { max-width: 1320px; margin: 0 auto; padding: 72px 20px 60px; transform: translateY(12px); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }   /* rovnaká šírka ako formulár objednávky: 1280 px + 20 px po stranách */
.dx-overlay.active .dx-page { transform: none; }
.dx-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 20px; }
.dx-head h2 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.2; color: var(--dx-ink); }
.dx-head .dx-sub { margin-top: 3px; font-size: 13.5px; color: var(--dx-muted); }
.dx-spacer { flex: 1; }
.dx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dx-btn { height: 38px; padding: 0 16px; border: 1px solid var(--dx-line); border-radius: 10px; background: var(--dx-surface); color: var(--dx-ink); font-family: inherit; font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.dx-btn:hover { background: var(--dx-surface-2); }
.dx-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.dx-btn.primary { background: var(--dx-pri); border-color: var(--dx-pri); color: var(--dx-pri-ink); }
.dx-btn.primary:hover { background: var(--dx-pri-2); border-color: var(--dx-pri-2); }
.dx-btn.danger { color: var(--dx-bad); border-color: color-mix(in srgb, var(--dx-bad) 35%, transparent); }
.dx-btn.danger:hover { background: var(--dx-bad-soft); }
.dx-btn.danger-solid { background: var(--dx-bad); border-color: var(--dx-bad); color: #ffffff; }
.dx-btn.danger-solid:hover { filter: brightness(1.06); }
.dx-btn:disabled { opacity: .45; cursor: not-allowed; }
.dx-card { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; box-shadow: var(--dx-shadow); }
.dx-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.dx-input { height: 38px; width: 100%; padding: 0 12px; border: 1px solid var(--dx-line); border-radius: 9px; background: var(--dx-surface); color: var(--dx-ink); font-family: inherit; font-size: 14px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.dx-input:hover { border-color: color-mix(in srgb, var(--dx-acc) 30%, var(--dx-line)); }
.dx-input:focus { border-color: var(--dx-acc); box-shadow: inset 0 0 0 0.5px var(--dx-acc); outline: none; }
.dx-input.sm { height: 34px; padding: 0 10px; font-size: 13.5px; border-radius: 8px; }
.dx-input.input-error { border-color: var(--dx-bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dx-bad) 15%, transparent); }
.dx-search { position: relative; }
.dx-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dx-muted); pointer-events: none; }
.dx-search .dx-input { padding-left: 33px; min-width: 300px; }
.dx-sort { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px 0 11px; border: 1px solid var(--dx-line); border-radius: 9px; background: var(--dx-surface); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.dx-sort:hover { border-color: color-mix(in srgb, var(--dx-acc) 45%, var(--dx-line)); }
.dx-sort:focus-within { border-color: var(--dx-acc); box-shadow: inset 0 0 0 0.5px var(--dx-acc); outline: none; }
.dx-sort svg { color: var(--dx-muted); flex-shrink: 0; }
.dx-sort-lbl { font-size: 13px; font-weight: 600; color: var(--dx-muted); white-space: nowrap; }
.dx-sort-val { font-size: 13.5px; font-weight: 600; color: var(--dx-ink); white-space: nowrap; }
.dx-sort select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.dx-seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; border-radius: 12px; background: var(--dx-surface); border: 1px solid var(--dx-line); }
.dx-seg button { border: 0; background: transparent; color: var(--dx-muted); font-family: inherit; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .15s ease, color .15s ease; }
.dx-seg button:hover { color: var(--dx-ink); }
.dx-seg button.on { background: var(--dx-acc-soft); color: var(--dx-acc); }
.dx-seg .dx-count { font-size: 12px; font-weight: 700; opacity: .75; }
.dx-table-wrap { overflow-x: auto; }
.dx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dx-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dx-muted); padding: 10px 14px; border-bottom: 1px solid var(--dx-line); white-space: nowrap; }
.dx-table td { padding: 11px 14px; border-bottom: 1px solid var(--dx-line-2); vertical-align: middle; color: var(--dx-ink); }
.dx-table tbody tr:last-child td { border-bottom: 0; }
.dx-table tbody tr.click { cursor: pointer; }
.dx-table tbody tr.click:hover td { background: var(--dx-surface-2); }
.dx-table th .dx-unit { text-transform: none; }
.dx-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-table .muted { color: var(--dx-muted); }
.dx-table .small { font-size: 12px; }
.dx-table .nowrap { white-space: nowrap; }
.dx-table .bold { font-weight: 600; }
.dx-table .dx-rsub { display: block; margin-top: 1px; font-size: 12px; color: var(--dx-muted); font-weight: 500; }
.dx-row-act { width: 36px; text-align: right; color: var(--dx-muted); opacity: .45; transition: opacity .15s ease, color .15s ease; }
.dx-table tr.click:hover .dx-row-act { opacity: 1; color: var(--dx-pri); }
.dx-table td.dx-cell-act { white-space: nowrap; text-align: right; width: 1%; }
#rcBody td.dx-cell-act { padding-left: 48px; }   /* odstup tlačidiel od ceny */
#clBody td.dx-cell-act { padding-left: 36px; }   /* odstup tlačidla Edit od počtu objednávok */
.dx-acts { display: inline-flex; gap: 6px; }
.dx-ib { width: 32px; height: 32px; padding: 0; border: 1px solid var(--dx-line); border-radius: 9px; background: var(--dx-surface); color: var(--dx-ink-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.dx-ib:hover { background: var(--dx-surface-2); color: var(--dx-pri); border-color: color-mix(in srgb, var(--dx-acc) 35%, var(--dx-line)); }
.dx-ib.del:hover { background: var(--dx-bad-soft); color: var(--dx-bad); border-color: transparent; }
.dx-empty { padding: 48px 20px; text-align: center; color: var(--dx-muted); }
.dx-note { margin: 12px 4px 0; font-size: 12.5px; color: var(--dx-muted); }
.dx-banner { margin-bottom: 14px; padding: 11px 14px; border-radius: 12px; background: var(--dx-warn-soft); color: var(--dx-warn); font-size: 13.5px; }
/* editor receptu */
.rx-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; margin-bottom: 14px; }   /* Recipe name, Number of days, Total price (v14.70) */
.rx-days-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rx-days-line { display: flex; align-items: center; gap: 10px; }
.rx-days-line .days-seg { flex: 1; min-width: 0; }
.rx-name-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rx-name-card label, .rx-kpi span, .rx-card-l { font-size: 12px; font-weight: 600; color: var(--dx-muted); }
.rx-name-card .dx-input { height: 40px; font-size: 15px; font-weight: 600; }
.rx-kpi { padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.rx-kpi b { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; color: var(--dx-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .rx-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rx-name-card { grid-column: 1 / -1; } .rx-days-card { grid-column: span 2; } }
@media (max-width: 700px) {
  .dx-page { padding: 68px 16px 48px; }
  .dx-close { top: 14px; right: 14px; }
  .dx-search { flex: 1 1 100%; }
  .dx-search .dx-input { min-width: 0; }
  .rx-kpi b { font-size: 20px; }
}
/* názov receptu vo formulári: prepínač New / Saved vedľa poľa (ako ikony pri Client name) */
.recipe-mode { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); display: flex; gap: 2px; height: 38px; padding: 3px; box-sizing: border-box; border-radius: 10px; background: #e4edf7; }
.recipe-mode button { border: 0; background: transparent; padding: 0 10px; border-radius: 7px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--primary-light); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.recipe-mode button:hover { color: var(--primary); }
.recipe-mode button.on { background: #ffffff; color: var(--primary); box-shadow: 0 1px 3px rgba(26, 59, 92, 0.18); }
#recipeName, #recipeSaved, #recipeSavedInput { width: 100%; box-sizing: border-box; }
body.dark-theme .recipe-mode { background: #2e3138; }
body.dark-theme .recipe-mode button { color: #9aa4b2; }
body.dark-theme .recipe-mode button:hover { color: #e1e3e6; }
body.dark-theme .recipe-mode button.on { background: #454a55; color: #ffffff; box-shadow: none; }
/* počet dní: prepínač 3 · 7 · 10 · 14 · vlastné číslo, rovnaký vzhľad ako New / Saved, šírka ako pole */
.days-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; height: 36px; padding: 3px; box-sizing: border-box; border-radius: var(--r-ctl); background: #e4edf7; }
.days-seg button, .days-custom { display: flex; align-items: center; justify-content: center; min-width: 0; border: 0; background: transparent; padding: 0; border-radius: var(--r-sm); font-family: inherit; font-size: 14px; font-weight: 700; color: var(--primary-light); cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.days-seg button:hover, .days-custom:hover { color: var(--primary); }
.days-seg button.on, .days-custom.on { background: #ffffff; color: var(--primary); box-shadow: 0 1px 3px rgba(26, 59, 92, 0.18); cursor: text; }
.days-seg button.on { cursor: default; }
#numDaysCustom, #numDaysCustom:hover, #numDaysCustom:focus,
#rxDaysCustom,
#rxDaysCustom:hover,
#rxDaysCustom:focus { display: none; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; box-shadow: none; font: inherit; color: inherit; text-align: center; outline: none; }
#numDaysCustom:focus,
#rxDaysCustom:focus { box-shadow: none !important; }   /* bez modrej obruby poľa, zvýraznený je biely dielik */
.days-own { font-size: 12.5px; }   /* rovnaká veľkosť ako New / Saved */
.days-custom.on .days-own { display: none; }
.days-custom.on #numDaysCustom,
.days-custom.on #rxDaysCustom { display: block; }
body.dark-theme .days-seg { background: #2e3138; }
body.dark-theme .days-seg button, body.dark-theme .days-custom { color: #9aa4b2; }
body.dark-theme .days-seg button:hover, body.dark-theme .days-custom:hover { color: #e1e3e6; }
body.dark-theme .days-seg button.on, body.dark-theme .days-custom.on { background: #454a55; color: #ffffff; box-shadow: none; }
body.dark-theme #numDaysCustom, body.dark-theme #numDaysCustom:focus,
body.dark-theme #rxDaysCustom,
body.dark-theme #rxDaysCustom:focus { background-color: transparent !important; border-color: transparent !important; color: #ffffff !important; }
/* malé okná (potvrdenie, import klientov) – vzhľad Internal Systemu */
.modal-content.dx-dlg { position: relative; max-width: 440px; width: 92%; padding: 22px 24px 20px; background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(20, 34, 53, 0.18); text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; font-size: 14px; color: var(--dx-ink); }
.modal-content.dx-dlg.wide { max-width: 560px; }
.modal-content.dx-dlg h3 { margin: 0 0 6px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: var(--dx-ink); }
.modal-content.dx-dlg p { margin: 0 0 4px; font-size: 13.5px; line-height: 1.5; color: var(--dx-ink-2); }
.dx-dlg-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dx-file { display: block; width: 100%; margin-top: 14px; padding: 12px; border: 1px dashed var(--dx-line); border-radius: 12px; background: var(--dx-surface-2); color: var(--dx-ink); font: inherit; font-size: 13.5px; }
.dx-imp-box { margin-top: 12px; font-size: 13.5px; color: var(--dx-ink-2); }
.dx-imp-box .dx-banner { margin-bottom: 0; }
.dx-imp-box .dx-banner.ok { background: var(--dx-acc-soft); color: var(--dx-acc); }
.dx-imp-box details { margin-top: 8px; }
.dx-imp-box .list { margin-top: 6px; max-height: 160px; overflow: auto; color: var(--dx-muted); font-size: 12.5px; }
#addClientModal .cm-btn-danger { margin-right: auto; background: transparent; color: #ff3b30; padding: 0 6px; }
#addClientModal .cm-btn-danger:hover { background: #fff2f1; }
body.dark-theme #addClientModal .cm-btn-danger:hover { background: rgba(255, 69, 58, 0.12); }

/* ------------------------------------- */
/* KLIENSKY NÁHĽAD (PAYMENT PREVIEW APPLE STYLE) */
/* ------------------------------------- */
.cp-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #fbfbfd; z-index: 35000;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
  overflow-y: auto; overflow-x: hidden; padding: 60px 0 0 0; box-sizing: border-box;
  touch-action: pan-x pan-y;
}
.cp-overlay.active { opacity: 1; visibility: visible; }

/* Obal pre platobnú kartu */
.cp-invisible-box {
  width: 100%; max-width: 500px;
  margin: 0 auto 60px auto; flex-shrink: 0;
  background: transparent;
  display: flex; justify-content: center;
}

.cp-card {
  background: #ffffff; border-radius: 32px;
  width: 100%; max-width: 500px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0,0,0,0.02);
  padding: 50px 45px; box-sizing: border-box; border: 1px solid rgba(0,0,0,0.03);
  transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; margin: 0 auto;
}
.cp-overlay.active .cp-card { transform: translateY(0); }

.cp-close-btn {
  position: fixed; top: 25px; right: 25px; z-index: 35002;
  background: #f5f5f7; border: none; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #86868b; cursor: pointer; transition: all 0.2s ease;
}
.cp-close-btn:hover { background: #e8e8ed; color: #1d1d1f; transform: scale(1.05); }
/* Payment preview: skutočná platobná stránka v rámiku cez celé okno */
.cp-frame-overlay { position: fixed; inset: 0; z-index: 35000; background: #fbfbfd; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.cp-frame-overlay.active { opacity: 1; visibility: visible; }
.cp-frame { display: block; width: 100%; height: 100%; border: 0; background: #fbfbfd; }
.cp-frame-overlay .cp-close-btn { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
@media (prefers-reduced-motion: reduce) { .cp-frame-overlay { transition: none; } }

.cp-header { text-align: center; margin-bottom: 35px; }
.cp-logo { width: 50px; height: 50px; object-fit: contain; margin-bottom: 15px; }
.cp-title { font-size: 24px; font-weight: 800; color: #1d1d1f; margin: 0 0 5px 0; letter-spacing: -0.5px; }
.cp-order-id { font-size: 14px; font-weight: 600; color: #86868b; margin: 0; }

.cp-section-title { font-size: 12px; font-weight: 800; color: #86868b; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 12px 10px; border: none; padding: 0; }

/* Nové info bloky s jemným stieňovaním */
.cp-info-card { background: #fbfbfd; border-radius: 16px; padding: 0; margin-bottom: 30px; border: 1px solid rgba(0,0,0,0.03); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); overflow: hidden; width: 100%; box-sizing: border-box; }
.cp-info-card.cp-info-card-gray { background-color: #f5f5f7 !important; }
.cp-info-row { display: flex; justify-content: space-between; align-items: flex-start; font-size: 14.5px; padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,0.03); width: 100%; box-sizing: border-box; }
.cp-info-row:last-child { border-bottom: none; margin-bottom: 0; }
.cp-info-label { color: #86868b; font-weight: 600; width: 40%; flex-shrink: 0; white-space: nowrap; }
.cp-info-val { color: #1d1d1f; font-weight: 700; text-align: right; width: 60%; word-break: break-word; }

/* Zoznam bylín (Zebra style v iOS bloku) so sivými a čiernymi odznakmi */
.cp-recipe-list { list-style: none; padding: 0; margin: 0; }
.cp-herb-g { font-weight: 500; color: #86868b; font-size: 13.5px; margin-left: 6px; white-space: nowrap; }
.cp-recipe-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 15px; border-bottom: 1px solid rgba(0,0,0,0.03); width: 100%; box-sizing: border-box; }
.cp-recipe-item:nth-child(even) { background-color: #f5f5f7; }
.cp-recipe-item:last-child { border-bottom: none; }
.cp-herb-name { color: #1d1d1f; font-weight: 700; }
.cp-herb-amt { color: #1d1d1f; font-weight: 800; background: #e8e8ed; padding: 4px 10px; border-radius: 12px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }

/* Doprava a Platba - Rozdelené pevné bloky vo farbe F5F5F7 */
.cp-method-card { background-color: #f5f5f7; border-radius: 16px; padding: 18px 20px; margin-bottom: 15px; display: flex; align-items: center; gap: 16px; border: 1px solid rgba(0,0,0,0.02); width: 100%; box-sizing: border-box; }
.cp-method-card.last { margin-bottom: 30px; }
.cp-pm-icon { width: 44px; height: 44px; background: #ffffff; border-radius: 12px; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,0.04); color: #0071e3; flex-shrink: 0; }
.cp-pm-details { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cp-pm-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; width: 100%; box-sizing: border-box; }
.cp-pm-title { font-size: 15px; font-weight: 800; color: #1d1d1f; white-space: nowrap; flex-shrink: 0; }
.cp-pm-badge { font-size: 11px; background: #e6f4ea; color: #137333; padding: 3px 8px; border-radius: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; flex-shrink: 0; }
.cp-pm-badge.price { background: #e8e8ed; color: #1d1d1f; }
.cp-pm-subtitle { font-size: 13px; font-weight: 600; color: #86868b; line-height: 1.4; }

.cp-pay-options { margin-bottom: 15px; }
.cp-pay-options .cp-method-card { margin-bottom: 10px !important; cursor: pointer; border: 1.5px solid #d2d2d7; transition: border-color 0.15s ease, box-shadow 0.15s ease; -webkit-tap-highlight-color: transparent; user-select: none; }
.cp-pay-options .cp-method-card:last-child { margin-bottom: 0 !important; }
.cp-pay-options .cp-method-card:hover { border-color: #aeaeb2; }
.cp-pay-options .cp-method-card.selected, .cp-method-card.cp-ship-fixed { border-color: #0071e3; box-shadow: 0 0 0 1px #0071e3, 0 4px 16px rgba(0, 113, 227, 0.09); }
.cp-method-card.cp-ship-fixed { border: 1.5px solid #0071e3; cursor: default; }
.cp-pay-options .cp-method-card:focus-visible { outline: none; box-shadow: 0 0 0 1px #0071e3, 0 0 0 4px rgba(0, 113, 227, 0.22); }
/* zaplatená objednávka: spôsob úhrady je uzamknutý (iba zvolená možnosť, ostatné stlmené) */
.cp-pay-options.is-locked .cp-method-card { cursor: default; }
.cp-pay-options.is-locked .cp-method-card:not(.selected) { opacity: 0.45; }
.cp-pay-options.is-locked .cp-method-card:not(.selected):hover { border-color: #d2d2d7; }
.cp-pay-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #aeaeb2; box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #ffffff; transition: border-color 0.15s ease; }
.cp-pay-opt.selected .cp-pay-radio, .cp-ship-fixed .cp-pay-radio { border-color: #0071e3; }
.cp-pay-opt.selected .cp-pay-radio::after, .cp-ship-fixed .cp-pay-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #0071e3; }

/* Vlastný štýl pre obrázok s platobnými metódami pod platobným blokom */
.cp-payment-methods-wrapper { display: flex; justify-content: center; margin-top: 25px; margin-bottom: 10px; padding: 10px 0; }
.cp-payment-methods-img { height: 20px; width: auto; object-fit: contain; opacity: 0.65; }

/* Spotrebiteľské upozornenie v zhrnutí objednávky */
.cp-consumer-notice {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 13px 18px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 11.5px;
  font-weight: 450;
  color: #86868b;
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 22px;
}
.cp-consumer-notice strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* Súhrn ceny */
.cp-summary-box { background: transparent; border: none; padding: 0; margin-bottom: 25px; width: 100%; box-sizing: border-box; }
.cp-sum-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; color: #86868b; font-weight: 600; width: 100%; box-sizing: border-box; white-space: nowrap; }
.cp-sum-row:last-child { margin-bottom: 0; }

.cp-total-wrap { border-top: 1px solid #e8e8ed; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; width: 100%; box-sizing: border-box; white-space: nowrap; }
.cp-total-label { font-size: 18px; font-weight: 800; color: #1d1d1f; white-space: nowrap; }
.cp-total-val { font-size: 28px; font-weight: 900; color: #0071e3; letter-spacing: -0.5px; white-space: nowrap; flex-shrink: 0; }

/* Právne Checkboxy a Odkazy - OPRAVENÁ ŠTRUKTÚRA */
.cp-legal-box { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cp-legal-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.cp-checkbox-wrapper { cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 0; padding-top: 2px; }
.cp-checkbox-wrapper input { display: none; }
.cp-custom-checkbox { width: 24px; height: 24px; border-radius: 8px; border: 2px solid #d2d2d7; display: flex; justify-content: center; align-items: center; transition: all 0.2s; flex-shrink: 0; background: #fff; }
.cp-checkbox-wrapper input:checked + .cp-custom-checkbox { background: #0071e3; border-color: #0071e3; }
.cp-custom-checkbox svg { opacity: 0; transform: scale(0.5); transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); stroke: #fff; }
.cp-checkbox-wrapper input:checked + .cp-custom-checkbox svg { opacity: 1; transform: scale(1); }
.cp-checkbox-text { font-size: 13.5px; font-weight: 600; color: #86868b; line-height: 1.4; transition: color 0.2s; }
.legal-link { color: #0071e3; text-decoration: none; font-weight: 700; cursor: pointer; transition: color 0.2s ease, opacity 0.2s ease; }
.legal-link:hover { color: #2997ff; opacity: 1; text-decoration: underline; }
.cp-checkbox-text .legal-link:hover { color: #2997ff !important; opacity: 1 !important; text-decoration: underline !important; }

/* Chyba nezaškrtnutých checkboxov */
.cp-legal-item.has-error .cp-custom-checkbox {
  border-color: #ff3b30 !important;
  background-color: #fff2f2 !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.25) !important;
  animation: cpShake 0.4s ease-in-out;
}
.cp-legal-item.has-error .cp-checkbox-text {
  color: #ff3b30 !important;
  font-weight: 700 !important;
}
.cp-legal-item.has-error .legal-link {
  color: #e02d23 !important;
}

@keyframes cpShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Tlačidlo a bezpečnosť */
.cp-pay-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #007aff, #0056b3); color: #ffffff; width: 100%; border: none; border-radius: 16px;
  padding: 20px; font-size: 18px; font-weight: 800; cursor: pointer;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 8px 25px rgba(0, 113, 227, 0.25);
}
.cp-pay-btn:hover:not(:disabled):not(.disabled) { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 113, 227, 0.35); }
/* lesk iba na ikone a nápise (od v16.06, ako „slide to unlock“): raz za 4 s prejde zľava cez ikonu a potom po texte, plocha tlačidla ostáva pokojná */
.cp-pay-btn:not(:disabled):not(.disabled) #cpPayText {
  color: transparent;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.82) 0 42%, #ffffff 48%, #ffffff 52%, rgba(255, 255, 255, 0.82) 58% 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: cpTextShine 4s cubic-bezier(0.45, 0.05, 0.35, 1) 1s infinite;
}
.cp-pay-btn:not(:disabled):not(.disabled) > svg { opacity: 0.82; animation: cpIconShine 4s cubic-bezier(0.45, 0.05, 0.35, 1) 1s infinite; }
.cp-pay-btn:not(:disabled):not(.disabled):active { transform: scale(0.97); transition-duration: 0.12s; }
@keyframes cpTextShine {
  0% { background-position: 100% 0; }
  52%, 100% { background-position: 0% 0; }
}
/* ikona sa rozsvieti v chvíli, keď cez ňu prejde svetlo (tesne pred nápisom) */
@keyframes cpIconShine {
  0%, 10% { opacity: 0.82; }
  13.5% { opacity: 1; }
  19%, 100% { opacity: 0.82; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-pay-btn:not(:disabled):not(.disabled) #cpPayText { animation: none; color: #ffffff; background: none; }
  .cp-pay-btn:not(:disabled):not(.disabled) > svg { animation: none; opacity: 1; }
}
.cp-pay-btn:disabled, .cp-pay-btn.disabled { background: #d2d2d7 !important; box-shadow: none !important; transform: none !important; color: #ffffff !important; cursor: pointer !important; opacity: 0.8 !important; }
.cp-pay-btn.disabled:hover { background: #c7c7cc !important; box-shadow: none !important; transform: none !important; }
.cp-secure-note { text-align: center; font-size: 12px; color: #86868b; font-weight: 600; margin-top: 15px; display: flex; align-items: center; justify-content: center; gap: 5px; }

/* ============================================== */
/* STAV: OBJEDNÁVKA JE UŽ ZAPLATENÁ (APPLE STYLE)  */
/* ============================================== */
.cp-paid-banner {
  display: none;
  background: #ffffff;
  border: 1.5px solid rgba(52, 199, 89, 0.35);
  border-radius: 20px;
  padding: 28px 20px 24px 20px;
  margin-top: 24px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(52, 199, 89, 0.08);
  box-sizing: border-box;
  animation: cpFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cp-paid-banner.visible {
  display: flex;
}

.cp-paid-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #38d660;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(56, 214, 96, 0.25);
}

.cp-paid-title {
  font-size: 19px;
  font-weight: 800;
  color: #1d1d1f;
  margin: 0 0 6px 0;
  letter-spacing: -0.4px;
}

.cp-paid-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #86868b;
  margin: 0 0 16px 0;
  max-width: 380px;
  font-weight: 600;
}

.cp-paid-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e8f8ed;
  color: #248a3d;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 980px;
  letter-spacing: 0.2px;
}

.cp-paid-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34c759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.2);
}

.cp-header-status-badge {
  display: none;
  align-items: center;
  gap: 6px;
  background: #e8f8ed;
  color: #248a3d;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 980px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.cp-header-status-badge.visible {
  display: inline-flex;
}

/* ------------------------------------- */
/* IMPROVED ORDER HISTORY STYLING */
/* ------------------------------------- */
/* biela hlavička priamo v karte (ako Recipes): nadpis + Refresh vľavo, filter a vyhľadávanie vpravo */
.header-with-search {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 34px 16px !important;
  background: #ffffff; color: #0f172a; text-align: left; text-transform: none; letter-spacing: 0; border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.header-with-search .title-group { display: flex; align-items: center; gap: 8px; }
.header-with-search .hist-title { font-size: 24px; font-weight: 600; color: #0f172a; letter-spacing: -0.02em; line-height: 1.2; }

.btn-refresh {
  background: transparent; border: 0; color: #64748b; border-radius: 999px; height: 32px; width: 32px;
  cursor: pointer; display: flex; align-items: center; justify-content: flex-start; transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, color 0.15s ease; outline: none; overflow: hidden; padding: 0;
}
.btn-refresh .icon-wrapper { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-refresh svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; transition: transform 0.5s ease; }
.btn-refresh:hover:not(.refreshing) { background: #f1f5f9; color: #0f172a; }
.btn-refresh:hover:not(.refreshing) svg { transform: rotate(180deg); }
.btn-refresh:focus-visible { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16); }
.btn-refresh span.refresh-text { font-size: 13px; font-weight: 500; opacity: 0; white-space: nowrap; transition: opacity 0.2s ease; display: none; }
.btn-refresh.refreshing { width: 118px; padding-right: 12px; background: #f1f5f9; }
.btn-refresh.refreshing svg { animation: spin 1s linear infinite; }
.btn-refresh.refreshing span.refresh-text { opacity: 1; display: inline-block; }

.hist-tools { display: flex; align-items: center; gap: 8px; }
.history-search-box { position: relative; display: flex; align-items: center; width: 260px; }
.history-search-box input {
  width: 100%; height: 36px; padding: 0 14px 0 36px; border-radius: 999px; border: 1px solid transparent; background: #fafafa;
  color: #0f172a; font-family: inherit; font-size: 14px; font-weight: 500; outline: none; transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.history-search-box input::placeholder { color: #94a3b8; }
.history-search-box input:focus { background: #f2f2f2; color: #0f172a; } /* bez rámčeka: po kliknutí iba o odtieň tmavšia sivá */
.search-icon { position: absolute; left: 13px; width: 15px; height: 15px; stroke: #64748b; pointer-events: none; transition: stroke 0.15s ease; }
.history-search-box input:focus ~ .search-icon { stroke: #0f172a; }

/* filter a triedenie: kruhové tlačidlo (3 čiary), pri aktívnom filtri sa roztiahne doľava na ovál so stavom / Oldest a krížikom */
.hist-filter { display: inline-flex; align-items: center; flex-shrink: 0; box-sizing: border-box; height: 36px; min-width: 36px; border: 1px solid transparent; border-radius: 999px; background: #fafafa; color: #475569; overflow: hidden; white-space: nowrap;
  transition-property: width, background-color, border-color, color, box-shadow; transition-duration: 0.2s; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } /* okraj sa nemení plynulo, inak by JS zmeral zlú cieľovú šírku */
.hist-filter:hover { background: #f2f2f2; }
.hist-filter.active { padding: 0 10px 0 0; color: #0f172a; } /* ľavý okraj 12 px je v tlačidle, aby sa dalo kliknúť na celý ovál */
.hist-filter.open { background: #f2f2f2; }
.hist-filter:has(button:focus-visible) { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16); }
.hist-filter-main { flex: 1; display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-width: 34px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; outline: none; }
.hist-filter.active .hist-filter-main { justify-content: flex-start; min-width: 0; padding-left: 12px; }
.hist-filter.active .hist-filter-ico { display: none; }
.hist-filter-chip { display: none; align-items: center; font-size: 13px; font-weight: 500; }
.hist-filter.active .hist-filter-chip { display: inline-flex; animation: hfChipIn 0.2s ease; }
@keyframes hfChipIn { from { opacity: 0; } to { opacity: 1; } }
.hf-item { display: inline-flex; align-items: center; gap: 6px; }
.hf-item svg { color: #475569; flex-shrink: 0; }
.hf-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--dot); }
.hf-div { width: 1px; height: 14px; margin: 0 8px; background: #cbd5e1; flex-shrink: 0; }
.hist-filter-x { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 20px; height: 20px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #64748b; cursor: pointer; outline: none; transition: background-color 0.15s ease, color 0.15s ease; }
.hist-filter.active .hist-filter-x { display: inline-flex; }
.hist-filter-x:hover { background: #e8e8e8; color: #0f172a; }
/* ponuka filtra: rovnaká ako ponuka akcií (…) */
.hist-fmenu { min-width: 190px; }
.hist-fitem { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #0f172a; font: inherit; font-size: 13.5px; font-weight: 400; text-align: left; white-space: nowrap; cursor: pointer; }
.hist-fitem:hover { background: #f8fafc; }
.hist-fitem.on { background: #f1f5f9; font-weight: 500; }
.hist-fitem-l { display: flex; align-items: center; gap: 8px; }
.hist-fitem-ico { display: inline-flex; align-items: center; justify-content: center; width: 14px; flex-shrink: 0; color: #64748b; }
.hist-fitem-chk { display: inline-flex; color: var(--primary); visibility: hidden; }
.hist-fitem.on .hist-fitem-chk { visibility: visible; }
.hist-fitem-st .hist-fitem-l { color: var(--dot); } /* stavy vo filtri farebné ako stavy v tabuľke */
.hist-fsep { height: 1px; margin: 4px 0; background: #e2e8f0; }

/* riadky bez rámikov a medzier: celá šírka karty, iba tenká čiara medzi riadkami (ako tabuľka v Recipes) */
.history-table { width: 100%; border-collapse: collapse; border-spacing: 0; margin-top: 0; min-width: 1000px; table-layout: fixed; } /* pevné šírky stĺpcov - neposúvajú sa pri vyhľadávaní */
.history-table th { background-color: transparent; color: #7f8c8d; padding: 10px 10px; border-bottom: 1px solid #e2e8f0; font-weight: 800; font-size: 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: 0.3px; } /* vždy jeden riadok; pri veľmi úzkom okne sa skráti (…) namiesto prekrytia */
.history-row { box-shadow: none; }
.history-row.row-white td { background-color: transparent; }
.history-row td { padding: 12px 10px; box-sizing: border-box; font-size: 13px; font-weight: 600; color: var(--text-dark); vertical-align: middle; border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; transition: background-color 0.15s ease; }
.history-table tbody tr:last-child td { border-bottom: 0; }
.history-row.filled-row:hover td { background-color: #f8fafc; }
.history-row.email-failed td { background-color: #fef2f2; }
#historyContainer .history-table-container { padding: 0; }
/* viac vzduchu medzi formulárom a históriou (spolu 56 px); na telefóne ostáva pôvodná medzera */
#historyContainer { margin-top: 16px; }
html.app-phone-zoom #historyContainer { margin-top: 0; }
.history-row .hist-recipe { font-size: 11.5px; font-weight: 600; color: #8e96a3; margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }
  
.history-row.filled-row { cursor: pointer; }
.history-row td.hist-num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-row .hist-nowrap { white-space: nowrap; }
.history-row .hist-date { font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.history-row .hist-time { font-size: 11.5px; font-weight: 500; color: #8e96a3; margin-top: 1px; font-variant-numeric: tabular-nums; }
.history-row .hist-none { color: #a8aeb3; }
.history-table th, .history-row td { padding-left: 8px; padding-right: 8px; }
.history-table th:first-child, .history-row td:first-child { padding-left: 34px; } /* rovnaký okraj 34 px ako polia bylín vo formulári nad históriou */
.history-table th:nth-child(2), .history-row td:nth-child(2) { padding-left: 3px; }
.history-table th:nth-child(3), .history-row td:nth-child(3),
.history-table th:nth-child(4), .history-row td:nth-child(4),
.history-table th:nth-child(5), .history-row td:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.history-table th:nth-child(5), .history-row td:nth-child(5) { padding-left: 6px; padding-right: 26px; }
html:not(.app-phone-zoom) .hist-price-shift { position: relative; left: -11px; } /* šírky stĺpcov sa nemenia, posúva sa iba text */
@media (min-width: 1340px) { /* iba pri plnej šírke tabuľky (1280 px); v užšom okne by sa čísla dotýkali */
  /* Days, Weight, Price od seba ~30 px ako dátumy; celá skupina o 8 px doľava, pred Created o kúsok väčšia medzera (~53 px) */
  html:not(.app-phone-zoom) .hist-price-shift { left: -19px; }
  html:not(.app-phone-zoom) .hist-weight-shift { position: relative; left: 4.5px; }
  html:not(.app-phone-zoom) .hist-days-shift { position: relative; left: 17px; }
  .history-table th:nth-child(3), .history-table th:nth-child(4), .history-table th:nth-child(5) { overflow: visible; } /* posunutý nadpis sa neoreže */
}
.history-row td.hist-more-cell { padding: 6px 24.5px 6px 6px; text-align: right; } /* bodky (…) končia 34 px od okraja karty, zarovno s vyhľadávaním a poľami bylín */
.hist-more { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.15s ease; }
.hist-more:hover, .hist-more.open { background: rgba(26, 59, 92, 0.08); }
.hist-menu { position: fixed; z-index: 9400; padding: 6px; border-radius: 14px; background: #ffffff; border: 1px solid rgba(26, 59, 92, 0.1); box-shadow: 0 14px 40px rgba(26, 59, 92, 0.18); animation: histPop 0.14s ease-out; }
@keyframes histPop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hist-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; white-space: nowrap; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #1d1d1f; font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.hist-menu-item svg { flex-shrink: 0; color: var(--primary); }
.hist-menu-item:hover:not(:disabled) { background: rgba(26, 59, 92, 0.06); }
.hist-menu-item:disabled { color: #a8aeb3; cursor: not-allowed; }
.hist-menu-item:disabled svg { color: #c4c9d1; }
.hist-menu-item.danger:not(:disabled), .hist-menu-item.danger:not(:disabled) svg { color: #d92d20; }
.hist-menu-item.danger:hover:not(:disabled) { background: rgba(217, 45, 32, 0.08); }
.hist-menu-sep { height: 1px; margin: 6px 4px; background: rgba(26, 59, 92, 0.1); }
.history-row.email-failed.filled-row:hover td { background: #fde8e8; }
body.dark-theme .history-row.email-failed.filled-row:hover td { background-color: rgba(255, 80, 60, 0.11) !important; }
.status-email-failed { background: #d92d20; color: #ffffff; white-space: nowrap; }
.hist-tip { position: fixed; z-index: 9400; width: 320px; padding: 12px 14px; border-radius: 14px; background: #ffffff; border: 1px solid #f8d5d0; box-shadow: 0 14px 40px rgba(26, 59, 92, 0.18); color: #1d1d1f; font-size: 13px; line-height: 1.45; pointer-events: none; animation: histPop 0.14s ease-out; }
.hist-tip > b:first-child { color: #d92d20; }
.hist-tip p { margin: 6px 0 0; }
.hist-tip-how { color: #3a3a3c; }
body.dark-theme .hist-more { color: #8fd0ff; }
body.dark-theme .hist-more:hover, body.dark-theme .hist-more.open { background: rgba(255, 255, 255, 0.1); }
body.dark-theme .hist-menu { background: #2c3038; border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
body.dark-theme .hist-menu-item { color: #f2f2f7; }
body.dark-theme .hist-menu-item svg { color: #8fd0ff; }
body.dark-theme .hist-menu-item:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
body.dark-theme .hist-menu-item:disabled { color: #6e7480; }
body.dark-theme .hist-menu-item:disabled svg { color: #5a606b; }
body.dark-theme .hist-menu-item.danger:not(:disabled), body.dark-theme .hist-menu-item.danger:not(:disabled) svg { color: #ff6b5e; }
body.dark-theme .hist-menu-sep { background: rgba(255, 255, 255, 0.1); }
body.dark-theme .hist-tip { background: #2c3038; border-color: #5c3a3a; color: #f2f2f7; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
body.dark-theme .hist-tip > b:first-child { color: #ff6b5e; }
body.dark-theme .hist-tip-how { color: #c7c7cc; }
.order-num-badge { background-color: #e4edf7; color: var(--primary); padding: 5px 10px; border-radius: 8px; font-family: monospace, sans-serif; font-weight: 800; letter-spacing: 0.5px; }
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 20px; font-weight: 800; font-size: 12px; text-align: center; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 2px 4px rgba(0,0,0,0.04); }
/* Užšie okno (napr. notebook 1000 px): o kúsok menší štítok, aby sa PREPARATION zmestil do stĺpca */
.history-row .status-pill { font-size: 11px; padding: 6px 12px; }
@media (max-width: 1180px) { .history-row .status-pill { font-size: 10.5px; padding: 5px 10px; letter-spacing: 0.3px; } }
.action-buttons-group { display: flex; align-items: center; justify-content: center; gap: 7px; }
.btn-edit-square { width: 34px; height: 34px; border-radius: 10px; background-color: #e4edf7; color: var(--primary-light); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.btn-edit-square:hover:not(:disabled):not(.disabled) { background-color: var(--primary); color: #ffffff; }
.btn-edit-square.btn-cancel-icon:hover:not(:disabled):not(.disabled) { background-color: var(--danger); color: #ffffff; }
.btn-edit-square:disabled, .btn-edit-square.disabled { background-color: #f2f3f5; color: #a8aeb3; cursor: not-allowed; opacity: 1; }
.btn-edit-square svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  
.history-pagination-footer { background-color: #ffffff; padding: 20px 34px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf2f7; border-radius: 0 0 var(--border-radius) var(--border-radius); }
.pagination-info { font-size: 14px; font-weight: 700; color: #7f8c8d; }
.pagination-controls { display: flex; align-items: center; gap: 15px; }
.btn-page { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #edf2f7; background: #ffffff; color: var(--primary); font-size: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.btn-page:hover:not(:disabled) { background: var(--primary); color: #ffffff; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(26, 59, 92, 0.15); }
.btn-page:disabled { opacity: 0.5; cursor: not-allowed; color: #cbd5e1; border-color: #edf2f7; background: #f8fafc; }
.page-num-display { font-weight: 800; font-size: 14.5px; color: var(--primary); min-width: 60px; text-align: center; }
.no-history-msg { text-align: center; padding: 40px; color: #95a5a6; font-weight: 700; font-size: 16px; }

.history-table-container { background-color: #ffffff; }

/* =========================================================================
   DARK MODE / APPEARANCE OVERHAUL (NEUTRAL GREY PALETTE - 100% GEOMETRY MATCH)
   ========================================================================= */

/* Custom Dark Scrollbars */
body.dark-theme ::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
body.dark-theme ::-webkit-scrollbar-track {
  background: #1e2024;
}
body.dark-theme ::-webkit-scrollbar-thumb {
  background: #3d4049;
  border-radius: 6px;
}
body.dark-theme ::-webkit-scrollbar-thumb:hover {
  background: #4f545f;
}

/* Synchronized Theme Transition across all application surfaces & inputs */
body,
.app-content-wrapper,
.main-container,
.header-top,
.info-section,
.info-table td,
.info-table input,
.info-table select,
.table-container,
.table-section th,
.table-section input,
.footer-section,
.footer-table th,
.footer-val,
.footer-val input,
.header-with-search,
.history-table th,
.history-row td {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Background & Main App Container (Exact same dimensions, zero border expansion) */
body.dark-theme {
  background-color: #1e2024 !important;
}
body.dark-theme .app-content-wrapper {
  background-color: #1e2024 !important;
}
body.dark-theme .main-container {
  background-color: #32353e !important;
  box-shadow: var(--sh-card) !important;
  border: 0 !important;
}

/* Headers */
body.dark-theme .header-top {
  background: linear-gradient(135deg, #3d414c, #31353f) !important;
  color: #ffffff !important;
  border: none !important;
}
body.dark-theme .header-top span {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Form Info Section (Client Details & Settings) */
body.dark-theme .info-section {
  background-color: #292c34 !important;
  border: none !important;
}
body.dark-theme .info-table td {
  color: #cbd0d8 !important;
}
body.dark-theme .info-table td:first-child,
body.dark-theme .info-section .info-table td:first-child,
body.dark-theme .left-panel .info-table td:first-child,
body.dark-theme .right-panel .info-table td:first-child {
  color: #e4e6eb !important;
}

/* Editable Form Inputs & Selects (Exact same 1px border & 6px radius) */
body.dark-theme .info-table input:not([readonly]),
body.dark-theme .info-table select {
  background-color: #383c46 !important;
  border-color: #505563 !important;
  color: #ffffff !important;
}
body.dark-theme .info-table input:not([readonly]):focus,
body.dark-theme .info-table select:focus {
  border-color: #60a5fa !important;
  background-color: #3e424d !important;
}
body.dark-theme .info-table select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23cbd0d8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}
body.dark-theme .info-table select option {
  background-color: #32353e !important;
  color: #ffffff !important;
}

/* Readonly Inputs in Info Section (Street, City, Phone, Email, Date) */
body.dark-theme .info-table input[readonly] {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd0d8 !important;
}
body.dark-theme.demo-mode .info-table input[readonly]:not(.ro-fixed) {
  background-color: #383c46 !important;
  border-color: #505563 !important;
  color: #ffffff !important;
}

/* Add Client Button */
body.dark-theme .btn-icon-client {
  background-color: #383c46 !important;
  color: #cbd0d8 !important;
  border: none !important;
  box-shadow: 0 0 0 1px #505563 !important;
}
body.dark-theme .btn-icon-client:hover {
  background-color: #464a57 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px #606676, 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
body.dark-theme .btn-icon-client:disabled, body.dark-theme .btn-icon-client:disabled:hover {
  background-color: #383c46 !important;
  color: #cbd0d8 !important;
  box-shadow: 0 0 0 1px #505563 !important;
}

/* Recipe Table Section (Preserving exact layout, font casing, padding and zero borders on th) */
body.dark-theme .table-container {
  background-color: transparent !important;
}
body.dark-theme .table-section th {
  background-color: transparent !important;
  background: linear-gradient(180deg, #444956, #383d47) !important;
  color: #ffffff !important;
  border: none !important;
  text-transform: none !important;
}

/* Recipe Table Inputs (Exact same 1px border and 6px radius) */
body.dark-theme .table-section td:nth-child(2) input,
body.dark-theme .table-section td:nth-child(3) input {
  background-color: #383c46 !important;
  border-color: #505563 !important;
  color: #ffffff !important;
}
body.dark-theme .table-section td:nth-child(2) input:focus,
body.dark-theme .table-section td:nth-child(3) input:focus {
  border-color: #60a5fa !important;
  background-color: #3e424d !important;
}
body.dark-theme .table-section td:nth-child(2) input.h-name,
body.dark-theme .table-section td:nth-child(2) input.rx-name {
  background-color: #383c46 !important;
  color: #ffffff !important;
}
/* polia na vyplnenie v tmavom režime: okraj pod myšou a pri písaní */
body.dark-theme .info-table input:not([readonly]):hover, body.dark-theme .info-table select:hover,
body.dark-theme .table-section td:nth-child(2) input:hover, body.dark-theme .table-section td:nth-child(3) input:hover { border-color: #6c7383 !important; }
body.dark-theme .info-table input:not([readonly]):focus, body.dark-theme .info-table select:focus,
body.dark-theme .table-section td:nth-child(2) input:focus, body.dark-theme .table-section td:nth-child(3) input:focus { border-color: #60a5fa !important; box-shadow: inset 0 0 0 0.5px #60a5fa !important; }

/* Recipe Table Readonly Inputs */
body.dark-theme .table-section td:first-child input,
body.dark-theme .table-section td:nth-child(4) input,
body.dark-theme .table-section td:nth-child(5) input,
body.dark-theme .table-section td:nth-child(6) input,
body.dark-theme .table-section input[readonly] {
  background-color: #282b34 !important;
  border-color: transparent !important;
  color: #cbd0d8 !important;
}

/* Error State in Dark Mode */
body.dark-theme .duplicate-error,
body.dark-theme .invalid-error {
  border-color: #ef4444 !important;
  background-color: #3b2224 !important;
  color: #fca5a5 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.35) !important;
}

/* Footer Section (Totals and Buttons - Exact 2px borders) */
body.dark-theme .footer-section {
  background-color: #292c34 !important;
  border-top: 2px solid #3c404b !important;
}
body.dark-theme .footer-table th {
  color: #cbd0d8 !important;
}
body.dark-theme .footer-val {
  background-color: #383c46 !important;
  border-color: #505563 !important;
  color: #ffffff !important;
}
body.dark-theme .footer-val input {
  color: #ffffff !important;
}
body.dark-theme .footer-val.highlight {
  background: linear-gradient(135deg, #444956, #383d47) !important;
  border-color: #646a7a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
}
body.dark-theme .footer-val.highlight input {
  color: #ffffff !important;
}

/* =========================================================================
   ORDER HISTORY (EXACT GEOMETRY MATCH & SOLID ROWS)
   ========================================================================= */
body.dark-theme .header-with-search {
  background: #282a30 !important;
  border: none !important;
}
body.dark-theme .header-with-search .hist-title {
  color: #ffffff !important;
}
body.dark-theme .history-search-box input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
body.dark-theme .history-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}
body.dark-theme .history-search-box input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
body.dark-theme .search-icon {
  stroke: #98a1ae !important;
}
body.dark-theme .history-search-box input:focus ~ .search-icon {
  stroke: #ffffff !important;
}
body.dark-theme .btn-refresh {
  background: transparent !important;
  color: #98a1ae !important;
}
body.dark-theme .btn-refresh:hover:not(.refreshing), body.dark-theme .btn-refresh.refreshing {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
/* filter a jeho ponuka */
body.dark-theme .hist-filter { background: rgba(255, 255, 255, 0.08); border-color: transparent; color: #c9ced6; }
body.dark-theme .hist-filter:hover { background: rgba(255, 255, 255, 0.12); }
body.dark-theme .hist-filter.active, body.dark-theme .hist-filter.open { color: #ffffff; }
body.dark-theme .hist-filter.open { background: rgba(255, 255, 255, 0.12); }
body.dark-theme .hf-item svg { color: #c9ced6; }
body.dark-theme .hf-dot { background: color-mix(in srgb, var(--dot) 60%, #ffffff); }
body.dark-theme .hf-div { background: rgba(255, 255, 255, 0.2); }
body.dark-theme .hist-filter-x { color: #98a1ae; }
body.dark-theme .hist-filter-x:hover { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
body.dark-theme .hist-fitem { color: #f2f2f7; }
body.dark-theme .hist-fitem:hover { background: rgba(255, 255, 255, 0.06); }
body.dark-theme .hist-fitem.on { background: rgba(255, 255, 255, 0.1); }
body.dark-theme .hist-fitem-ico { color: #98a1ae; }
body.dark-theme .hist-fitem-chk { color: #8fd0ff; }
body.dark-theme .hist-fitem-st .hist-fitem-l { color: color-mix(in srgb, var(--dot) 45%, #ffffff); }
body.dark-theme .hist-fsep { background: rgba(255, 255, 255, 0.1); }

/* History Table Container */
body.dark-theme #historyContainer .table-container,
body.dark-theme .history-table-container {
  background-color: #282a30 !important;
}

/* History Column Headers */
body.dark-theme .history-table th {
  color: #cbd0d8 !important;
  border-bottom-color: #3b3f49 !important;
}

/* History Rows: iba čiara medzi riadkami */
body.dark-theme .history-row.row-white td {
  background-color: transparent !important;
  border-bottom-color: #33363e !important;
  color: #ffffff !important;
}
body.dark-theme .history-row.filled-row:hover td {
  background-color: var(--hover) !important;
}
body.dark-theme .history-row.email-failed td {
  background-color: rgba(255, 80, 60, 0.07) !important;
}
body.dark-theme .history-row td:nth-child(3),
body.dark-theme .history-row td:nth-child(5) {
  color: #e4e6eb !important;
}

/* Order Number Badge */
body.dark-theme .order-num-badge {
  background-color: #363942 !important;
  color: #e4e6eb !important;
  border: none !important;
}

/* History Row Action Buttons (No border growth, exact 34x34px) */
body.dark-theme .action-buttons-group .btn-edit-square {
  background-color: #363942 !important;
  color: #cbd0d8 !important;
  border: none !important;
  box-shadow: 0 0 0 1px #464a55 !important;
}
body.dark-theme .action-buttons-group .btn-edit-square:hover:not(:disabled):not(.disabled) {
  background-color: #434752 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px #565a67 !important;
}
body.dark-theme .action-buttons-group .btn-edit-square.btn-cancel-icon:hover:not(:disabled):not(.disabled) {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px #dc2626 !important;
}
body.dark-theme .action-buttons-group .btn-edit-square:disabled,
body.dark-theme .action-buttons-group .btn-edit-square.disabled {
  background-color: #202227 !important;
  color: #636773 !important;
  box-shadow: 0 0 0 1px #2a2d34 !important;
  opacity: 0.6 !important;
}

/* History Pagination Footer */
body.dark-theme .history-pagination-footer {
  background-color: #282a30 !important;
  border-top-color: #393c45 !important;
}
body.dark-theme .pagination-info {
  color: #9ca3af !important;
}
body.dark-theme .btn-page {
  background-color: #2e3138 !important;
  border-color: #464a55 !important;
  color: #e4e6eb !important;
}
body.dark-theme .btn-page:hover:not(:disabled) {
  background-color: #3e424c !important;
  border-color: #565a67 !important;
  color: #ffffff !important;
}
body.dark-theme .btn-page:disabled {
  background-color: #202227 !important;
  border-color: #2a2d34 !important;
  color: #636773 !important;
}
body.dark-theme .page-num-display {
  color: #ffffff !important;
}
body.dark-theme .no-history-msg {
  color: #717582 !important;
}

/* =========================================================================
   MODALS IN DARK THEME (NEUTRAL GREY - 100% PRESERVED GEOMETRY)
   ========================================================================= */
body.dark-theme .modal-content {
  background-color: #282a30 !important;
  color: #ffffff !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}
body.dark-theme .modal-content h3 {
  color: #ffffff !important;
}
body.dark-theme .modal-content p {
  color: #cbd0d8 !important;
}

/* Add Client Modal */
body.dark-theme #addClientModal .modal-content {
  background-color: #282a30 !important;
}
body.dark-theme #addClientModal .modal-header {
  background: linear-gradient(135deg, #343740, #2b2d35) !important;
  color: #ffffff !important;
}
body.dark-theme #addClientModal .modal-body {
  background-color: #222429 !important;
}
body.dark-theme #addClientModal .info-table td {
  color: #ffffff !important;
}
body.dark-theme #addClientModal .info-table td:first-child {
  color: #cbd0d8 !important;
}
body.dark-theme #addClientModal .info-table input {
  background-color: #2e3138 !important;
  border-color: #464a55 !important;
  color: #ffffff !important;
}
body.dark-theme #addClientModal .info-table input:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15) !important;
}
body.dark-theme #addClientModal .info-table input::placeholder {
  color: #4a4f5a !important;
}
body.dark-theme #addClientModal .add-client-consent { border-top-color: #393c45 !important; }
body.dark-theme #addClientModal .add-client-consent label { color: #e1e3e6 !important; }
body.dark-theme #addClientModal .add-client-consent input[type="checkbox"]:not(:checked) { background: #2e3138; border-color: #555a66; }
body.dark-theme #addClientModal .modal-footer {
  background-color: #282a30 !important;
  border-top-color: #393c45 !important;
}
body.dark-theme .add-client-consent {
  border-top-color: #393c45 !important;
}
body.dark-theme .add-client-consent label {
  color: #e4e6eb !important;
}
body.dark-theme .add-client-consent .consent-link {
  color: #60a5fa !important;
}
body.dark-theme .add-client-consent .consent-en {
  color: #9ca3af !important;
}
body.dark-theme .add-client-consent.has-error {
  background-color: rgba(255, 59, 48, 0.15) !important;
}

/* View Order Modal */
body.dark-theme #viewOrderModal .modal-content {
  background-color: #282a30 !important;
}
body.dark-theme #viewOrderModal .modal-header {
  background: linear-gradient(135deg, #343740, #2b2d35) !important;
  color: #ffffff !important;
}
body.dark-theme #viewOrderModal .modal-body {
  background-color: #222429 !important;
}
body.dark-theme #viewOrderModal .detail-label {
  color: #cbd0d8 !important;
}
body.dark-theme #viewOrderModal .detail-value {
  color: #ffffff !important;
}
body.dark-theme #viewOrderModal .recipe-table th {
  color: #e4e6eb !important;
  border-bottom-color: #464a55 !important;
}
body.dark-theme #viewOrderModal .recipe-table td {
  color: #ffffff !important;
  border-bottom-color: #33363e !important;
}
body.dark-theme #viewOrderModal .modal-footer {
  background-color: #282a30 !important;
  border-top-color: #393c45 !important;
}

/* Toast Notifications in Dark Mode */
body.dark-theme .toast {
  background: #2e3138 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  border-color: #464a55 !important;
}
body.dark-theme .toast.error {
  border-left-color: #ef4444 !important;
  color: #fca5a5 !important;
}
body.dark-theme .toast.success {
  border-left-color: #22c55e !important;
  color: #86efac !important;
}
body.dark-theme .toast.warning,
body.dark-theme .toast.yellow {
  border-left-color: #f59e0b !important;
  color: #fde68a !important;
}
body.dark-theme .toast.info,
body.dark-theme .toast.primary,
body.dark-theme .toast.darkblue {
  border-left-color: #9ca3af !important;
  color: #e4e6eb !important;
}

/* =======================================
   HLAVNÉ MODÁLNE OKNO PRE DOKUMENTY (DOMOVSKÁ STRÁNKA)
======================================= */
#doc-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.72); z-index: 24000; 
  display: flex; justify-content: center; align-items: flex-start;
  padding: 60px 16px; opacity: 0; visibility: hidden;
  /* zatvorenie rýchlejšie ako otvorenie */
  transition: opacity 0.2s ease, visibility 0s linear 0.2s; overflow-y: auto; box-sizing: border-box;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
}
#doc-modal.active { opacity: 1; visibility: visible; transition: opacity 0.28s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }

.doc-modal-content {
  background-color: #ffffff; border-radius: 26px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 40px -10px rgba(0, 0, 0, 0.16), 0 48px 96px -28px rgba(0, 0, 0, 0.26);
  width: 100%; max-width: 780px; padding: 45px 36px; position: relative;
  box-sizing: border-box; margin: auto;
  /* okno príde zdola a jemne sa zväčší od hornej hrany (dlhý cenník sa nehýbe v strede); odchod je kratší */
  transform: translateY(18px) scale(0.985); transform-origin: 50% 0; opacity: 0;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.16s ease;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
}
#doc-modal.active .doc-modal-content,
#payment-doc-modal.active .doc-modal-content {
  transform: none; opacity: 1;
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease-out;
}
/* zamknuté posúvanie (setPageScrollLock): pevné lišty si nechajú miesto po posuvníku, aby neposkočili */
html.scroll-locked .navbar, html.scroll-locked .app-nav { border-right: var(--sbw, 0px) solid transparent; }
html.scroll-locked .hamburger-btn { margin-right: var(--sbw, 0px); }

.close-doc-btn {
  position: absolute; top: 22px; right: 22px; background: #f5f5f7; border: none; width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #86868b;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); outline: none; z-index: 10;
}
.close-doc-btn:hover { background: #e8e8ed; color: #1d1d1f; transform: scale(1.06); }

#doc-modal-body, #payment-doc-modal-body {
  font-size: 14px;
  line-height: 1.65;
  color: #1d1d1f;
  word-break: break-word;
  text-align: left;
}
#doc-modal-body h1, #payment-doc-modal-body h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 10px 0 14px 0;
  color: #1d1d1f;
  font-weight: 800;
  letter-spacing: -0.5px;
}
#doc-modal-body h2, #payment-doc-modal-body h2 {
  font-size: 17px;
  line-height: 1.35;
  margin: 22px 0 10px 0;
  color: #1d1d1f;
  font-weight: 800;
  letter-spacing: -0.3px;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 6px;
}
#doc-modal-body h3, #payment-doc-modal-body h3 {
  font-size: 15px;
  line-height: 1.35;
  margin: 15px 0 6px 0;
  color: #1d1d1f;
  font-weight: 700;
}
#doc-modal-body p, #doc-modal-body li, #payment-doc-modal-body p, #payment-doc-modal-body li {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 10px;
  color: #3a3a3c;
}
#doc-modal-body ul, #payment-doc-modal-body ul,
#doc-modal-body ol, #payment-doc-modal-body ol {
  margin: 8px 0 14px 20px;
  padding: 0;
  color: #3a3a3c;
}
#doc-modal-body table, #payment-doc-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px 0;
  font-size: 13px;
}
#doc-modal-body th, #payment-doc-modal-body th {
  padding: 10px 12px;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  font-weight: 700;
  text-align: left;
  color: #1d1d1f;
}
#doc-modal-body td, #payment-doc-modal-body td {
  padding: 10px 12px;
  border: 1px solid #e5e5ea;
  vertical-align: top;
  color: #3a3a3c;
  line-height: 1.5;
}

/* =======================================
   NOVÉ MODÁLNE OKNO PRE DOKUMENTY (PLATOBNÝ NÁHĽAD)
======================================= */
#payment-doc-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.72); z-index: 40000; /* Prekrýva platobný overlay */
  display: flex; justify-content: center; align-items: flex-start;
  padding: 60px 16px; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease; overflow-y: auto; box-sizing: border-box;
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
}
#payment-doc-modal.active { opacity: 1; visibility: visible; }

/* =======================================
   SEKCIA POPIS TOVARU A CENNÍK (APPLE TIER STYLE)
======================================= */
.programs-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
}
.program-price-card {
  background: var(--apple-surface);
  border-radius: 24px;
  padding: 32px 24px;
  border: 1px solid var(--apple-border);
  box-shadow: var(--apple-card-shadow);
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.program-price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--apple-card-hover);
  border-color: rgba(0, 113, 227, 0.2);
}
.program-card-duration {
  font-size: 19px;
  font-weight: 750;
  color: var(--apple-text);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.program-card-portions {
  font-size: 12px;
  font-weight: 700;
  color: var(--apple-blue);
  background: var(--apple-blue-soft);
  padding: 4px 10px;
  border-radius: 980px;
  display: inline-block;
  margin-bottom: 16px;
  width: fit-content;
}
.program-card-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.program-card-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--apple-text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.program-card-vat {
  font-size: 13px;
  font-weight: 500;
  color: var(--apple-gray);
}
.program-card-detail {
  font-size: 14px;
  color: var(--apple-secondary);
  line-height: 1.5;
  margin: 0;
  font-weight: 450;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 14px;
  flex-grow: 1;
}

.pricing-note-text {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 12px;
  font-weight: 450;
  color: var(--apple-secondary);
  line-height: 1.6;
  margin: 20px 0 0 0;
}
.pl-head { font-size: 14px; color: #86868b; margin: -6px 0 18px; }
.pl-head b { color: #1d1d1f; }
.pl-search { width: 100%; box-sizing: border-box; border: 1px solid #d2d2d7; border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 14.5px; margin: 0 0 14px; outline: none; }
.pl-search:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #86868b; font-weight: 700; padding: 0 10px 8px; border-bottom: 1px solid #e5e5ea; }
.pl-table th:last-child, .pl-table td:last-child { text-align: right; white-space: nowrap; }
#doc-modal-body .pl-table th:last-child { text-align: right; }   /* všeobecné pravidlo tabuliek v dokumentoch zarovnáva doľava */
.pl-table td { padding: 10px; border-bottom: 1px solid #f0f0f3; vertical-align: top; }
.pl-table td b { font-weight: 600; color: #1d1d1f; }
.pl-table td small { display: block; color: #86868b; font-size: 12px; margin-top: 2px; }
.pl-table td.pl-price { font-weight: 650; color: #1d1d1f; font-variant-numeric: tabular-nums; }
.pl-note { font-size: 12.5px; color: #6e6e73; line-height: 1.6; background: #f5f5f7; border-radius: 14px; padding: 14px 16px; margin: 18px 0 0; }
.pricing-note-text strong {
  color: var(--apple-text);
  font-weight: 600;
}

.flow-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  margin-bottom: 50px;
}
.flow-step-item {
  background: var(--apple-surface);
  border-radius: 22px;
  padding: 28px 22px;
  text-align: left;
  border: 1px solid var(--apple-border);
  box-shadow: var(--apple-card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.flow-step-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-card-hover);
  border-color: rgba(0, 113, 227, 0.16);
}
.flow-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--apple-blue-soft);
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 750;
  margin-bottom: 16px;
}
.flow-step-item h4 {
  font-size: 17px;
  font-weight: 750;
  color: var(--apple-text);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.flow-step-item p {
  font-size: 14px;
  color: var(--apple-secondary);
  line-height: 1.55;
  margin: 0;
  font-weight: 450;
}

.consumer-alert-card {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  font-size: 12px;
  font-weight: 450;
  color: var(--apple-secondary);
  line-height: 1.6;
  margin-top: 18px;
}
.consumer-alert-card strong {
  color: var(--apple-text);
  font-weight: 600;
}

@media (max-width: 992px) {
  .programs-price-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .programs-price-grid > .program-price-card:last-child:nth-child(3) { grid-column: 1 / -1; }
  .flow-steps-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  .programs-price-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .pricing-note-text { margin: 16px 0 0 0 !important; }
  .flow-steps-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}

/* Recipes a Clients ako časti pod hornou lištou: lišta ostáva viditeľná, aktívna záložka je zvýraznená */
#recipesView, #clientsView, #recipeEditor { top: var(--app-nav-h, 64px); }
#recipesView > .dx-close, #clientsView > .dx-close { display: none; }
#recipeEditor > .dx-close { top: calc(var(--app-nav-h, 64px) + 22px); }
.nav-btn.on { background: rgba(26,59,92,0.08); color: var(--primary); }
.nav-btn.on:hover { background: rgba(26,59,92,0.11); }
body.dark-theme .nav-btn.on { background: rgba(255,255,255,0.1); color: #ffffff; }

/* DETAIL KLIENTA: bočný panel sprava (rovnaký ako detail objednávky v Internal Systeme) */
.cd-overlay { position: fixed; left: 0; right: 0; bottom: 0; top: var(--app-nav-h, 64px); z-index: 9550; background: rgba(15, 25, 40, 0.32); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
.cd-overlay.show { opacity: 1; visibility: visible; }
.cd-panel { position: fixed; right: 0; bottom: 0; top: var(--app-nav-h, 64px); z-index: 9560; width: min(560px, 100%); display: flex; flex-direction: column; background: var(--dx-bg); color: var(--dx-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; font-size: 14px; box-shadow: -20px 0 60px rgba(10, 20, 35, 0.22); transform: translateX(100%); visibility: hidden; transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), visibility 0.28s; }
.cd-panel.show { transform: none; visibility: visible; }
.cd-panel * { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { .cd-panel { transition: opacity 0.15s ease, visibility 0.15s; transform: none; opacity: 0; } .cd-panel.show { opacity: 1; } }
.cd-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--dx-surface); border-bottom: 1px solid var(--dx-line); }
.cd-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-title h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--dx-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-x { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--dx-line); border-radius: 50%; background: var(--dx-surface); color: var(--dx-muted); display: grid; place-items: center; cursor: pointer; }
.cd-x:hover { color: var(--dx-ink); background: var(--dx-surface-2); }
.cd-body { flex: 1; overflow-y: auto; padding: 18px 20px 40px; display: flex; flex-direction: column; gap: 14px; }
.cd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-card { background: var(--dx-surface); border: 1px solid var(--dx-line); border-radius: 14px; box-shadow: var(--dx-shadow); padding: 14px 16px; }
.cd-card h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--dx-ink-2); display: flex; align-items: center; gap: 8px; }
.cd-row { display: flex; gap: 12px; padding: 6px 0; font-size: 13.5px; }
.cd-lbl { width: 90px; flex-shrink: 0; color: var(--dx-muted); }
.cd-val { flex: 1; min-width: 0; color: var(--dx-ink); overflow-wrap: anywhere; }
.cd-list { display: flex; flex-direction: column; margin: 0 -8px; }
.cd-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cd-item + .cd-item { border-top: 1px solid var(--dx-line-2); border-radius: 0; }
.cd-item:hover:not(.static) { background: var(--dx-surface-2); border-radius: 10px; }
.cd-item.static { cursor: default; }
.cd-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cd-item-main b { font-weight: 600; color: var(--dx-ink); }
.cd-item-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cd-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cd-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11.5px; font-weight: 700; background: var(--dx-surface-2); color: var(--dx-ink-2); white-space: nowrap; }
.cd-empty { padding: 10px 8px; color: var(--dx-muted); font-size: 13.5px; }
.cd-panel .muted { color: var(--dx-muted); } .cd-panel .small { font-size: 12.5px; }
.cd-card .dx-count { min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--dx-surface-2); color: var(--dx-muted); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* =====================================================================
   DIZAJNOVÝ SYSTÉM: jedna farba prejdenia myšou v celom Ordering Systeme
   (horná lišta, profilové menu, história, ikony, Recipes, Clients)
   ===================================================================== */
:root { --hover: rgba(26, 59, 92, 0.06); --hover-strong: rgba(26, 59, 92, 0.1); }
body.dark-theme { --hover: rgba(255, 255, 255, 0.07); --hover-strong: rgba(255, 255, 255, 0.11); }
.nav-btn:hover, .nav-menu-item:hover, body.dark-theme .nav-btn:hover, body.dark-theme .nav-menu-item:hover,
.dx-btn:not(.primary):not(.danger):not(.danger-solid):hover, .dx-table tbody tr.click:hover td, .dx-ib:hover,
.cd-item:hover:not(.static), .cd-x:hover { background: var(--hover); }
.nav-btn.on, body.dark-theme .nav-btn.on { background: var(--hover-strong); }
.nav-btn.on:hover { background: var(--hover-strong); }
/* ikony v riadkoch a pri klientovi: jemné podfarbenie namiesto plnej tmavomodrej, bez nadskakovania */
.btn-icon-client:hover, .btn-edit-square:hover:not(:disabled):not(.disabled) { background-color: var(--hover-strong); color: var(--primary); transform: none; box-shadow: none; }
body.dark-theme .btn-icon-client:hover, body.dark-theme .btn-edit-square:hover:not(:disabled):not(.disabled) { background-color: var(--hover-strong); color: #ffffff; }
.btn-edit-square.btn-cancel-icon:hover:not(:disabled):not(.disabled) { background-color: rgba(197, 34, 31, 0.1); color: #c5221f; }
.btn-page:hover:not(:disabled) { background: var(--hover-strong); color: var(--primary); border-color: transparent; transform: none; box-shadow: none; }
body.dark-theme .btn-page:hover:not(:disabled) { background: var(--hover-strong); color: #ffffff; }
.dx-close:hover, .close-doc-btn:hover { transform: none; }
/* okno New Client: tlačidlá rovnaké ako v celom systéme */
#addClientModal .cm-btn { height: 38px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
#addClientModal .cm-btn:active { transform: scale(0.98); }
#addClientModal .cm-btn-primary { background: var(--ds-pri); border-color: var(--ds-pri); color: var(--ds-pri-ink); min-width: 120px; }
#addClientModal .cm-btn-primary:hover { background: var(--ds-pri-2); border-color: var(--ds-pri-2); }
#addClientModal .cm-btn-secondary { background: var(--ds-surface); border-color: var(--ds-line); color: var(--ds-ink); }
#addClientModal .cm-btn-secondary:hover, body.dark-theme #addClientModal .cm-btn-secondary:hover { background: var(--hover); }
body.dark-theme #addClientModal .cm-btn-secondary { background: var(--ds-surface); color: var(--ds-ink); }
#addClientModal .cm-btn-danger { background: transparent; border-color: transparent; color: #c5221f; }
body.dark-theme .history-row.filled-row:hover td { background-color: var(--hover) !important; }

/* DIZAJNOVÝ SYSTÉM: jedno písmo (systémové písmo Apple, Inter ako náhrada) aj v tlačidlách a poliach */
button, input, select, textarea { font-family: inherit; }

/* DIZAJNOVÝ SYSTÉM: kto má v systéme zapnuté „Obmedziť pohyb“, vidí iba krátke prelínanie bez pohybu a bez nekonečných animácií */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.12s !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   DIZAJNOVÝ SYSTÉM: zaoblenia, tiene, výber (rovnaké hodnoty ako Internal System)
   ===================================================================== */
:root { --r-sm: 8px; --r-ctl: 10px; --r-tile: 12px; --r-card: 14px; --r-pop: 14px;
  --sel-bg: #e8f1fd; --sel-fg: #0071e3;
  /* jednotné pravidlo pre všetky karty (New order, Order history, Recipes, Clients) vo vrstvách ako Apple:
     vlasový okraj (1 px), tesný kontaktný tieň, prechodový tieň a široký mäkký tieň smerom nadol (negatívny spread) */
  --sh-card: 0 0 0 1px rgba(15, 23, 42, 0.045), 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -4px rgba(15, 23, 42, 0.06), 0 24px 56px -16px rgba(15, 23, 42, 0.14);
  /* menšia verzia toho istého 3D tieňa a rovnaký 1 px vlasový okraj ako hlavná karta */
  --ctl-bd: rgba(15, 23, 42, 0.045);
  --ctl-bd-h: rgba(15, 23, 42, 0.14);
  --sh-ctl: 0 1px 2px rgba(15, 23, 42, 0.015), 0 4px 12px -4px rgba(15, 23, 42, 0.04), 0 12px 28px -10px rgba(15, 23, 42, 0.08);
  --sh-pop: 0 1px 2px rgba(20, 34, 53, 0.06), 0 12px 32px rgba(20, 34, 53, 0.14);
  --sh-menu: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.06), 0 8px 20px -4px rgba(15, 23, 42, 0.12), 0 20px 44px -12px rgba(15, 23, 42, 0.20); }
body.dark-theme { --sel-bg: #1d2b40; --sel-fg: #5aa9ff; --sh-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  --sh-card: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.35), 0 24px 56px -16px rgba(0, 0, 0, 0.6);
  --ctl-bd: rgba(255, 255, 255, 0.07);
  --ctl-bd-h: rgba(255, 255, 255, 0.16);
  --sh-ctl: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 12px -4px rgba(0, 0, 0, 0.2), 0 12px 28px -10px rgba(0, 0, 0, 0.35);
  --sh-menu: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 2px 4px rgba(0, 0, 0, 0.35), 0 8px 20px -4px rgba(0, 0, 0, 0.45), 0 20px 48px -12px rgba(0, 0, 0, 0.72); }
/* horná lišta aj jej profilové menu sú vždy nad Recipes, Clients a detailom klienta */
.app-nav { z-index: 9700; }
/* aktívna záložka: rovnaká modrá ako aktívna sekcia v Internal Systeme */
.nav-btn.on, .nav-btn.on:hover, body.dark-theme .nav-btn.on, body.dark-theme .nav-btn.on:hover { background: var(--sel-bg); color: var(--sel-fg); }
.nav-menu { border-radius: var(--r-pop); box-shadow: var(--sh-pop); }
.main-container, .dx-card, .cd-card { border-radius: var(--r-card); border: 0; box-shadow: var(--sh-card); }
/* Clients a Recipes: biele ovládacie prvky nad tabuľkou (Search, Sort, Import clients, vonkajší rámik Saved/Sent) */
html:not(.app-phone-zoom) #clientsView .dx-search .dx-input,
html:not(.app-phone-zoom) #clientsView .dx-sort,
html:not(.app-phone-zoom) #clientsView .dx-toolbar .dx-btn:not(.primary),
html:not(.app-phone-zoom) #recipeEditor .dx-toolbar .dx-btn:not(.primary):not(.danger),
html:not(.app-phone-zoom) #recipesView .dx-seg,
html:not(.app-phone-zoom) #recipesView .dx-search .dx-input { border: 1px solid var(--ctl-bd); background-clip: padding-box; box-shadow: var(--sh-ctl); }
html:not(.app-phone-zoom) #clientsView .dx-search .dx-input:hover,
html:not(.app-phone-zoom) #clientsView .dx-sort:hover,
html:not(.app-phone-zoom) #clientsView .dx-toolbar .dx-btn:not(.primary):hover,
html:not(.app-phone-zoom) #recipeEditor .dx-toolbar .dx-btn:not(.primary):not(.danger):hover,
html:not(.app-phone-zoom) #recipesView .dx-search .dx-input:hover { border-color: var(--ctl-bd-h); }
html:not(.app-phone-zoom) .dx-overlay :is(.dx-btn, .dx-ib, .dx-seg button, .dx-close):focus { outline: none; }
html:not(.app-phone-zoom) .dx-overlay .dx-input:focus,
html:not(.app-phone-zoom) .dx-overlay :is(input, select)[aria-expanded="true"],
html:not(.app-phone-zoom) .dx-overlay .dx-btn:not(.primary):focus-visible,
html:not(.app-phone-zoom) .dx-overlay .dx-ib:focus-visible,
html:not(.app-phone-zoom) .dx-overlay .dx-close:focus-visible { border-color: var(--accent, #0071e3) !important; box-shadow: inset 0 0 0 0.5px var(--accent, #0071e3) !important; outline: none; }
html:not(.app-phone-zoom) .dx-overlay .dx-btn.primary:focus-visible { outline: 1.5px solid var(--accent, #0071e3); outline-offset: 2px; box-shadow: none !important; }
html:not(.app-phone-zoom) .dx-overlay .dx-seg button:focus-visible { box-shadow: inset 0 0 0 1.5px var(--accent, #0071e3) !important; outline: none; }
html:not(.app-phone-zoom) #clientsView .dx-search .dx-input:focus,
html:not(.app-phone-zoom) #recipesView .dx-search .dx-input:focus,
html:not(.app-phone-zoom) #clientsView .dx-sort:focus-within,
html:not(.app-phone-zoom) #clientsView .dx-sort:has(select[aria-expanded="true"]),
html:not(.app-phone-zoom) #clientsView .dx-toolbar .dx-btn:not(.primary):focus-visible,
html:not(.app-phone-zoom) #recipeEditor .dx-toolbar .dx-btn:not(.primary):not(.danger):focus-visible { border-color: var(--accent, #0071e3) !important; box-shadow: var(--sh-ctl), inset 0 0 0 0.5px var(--accent, #0071e3) !important; outline: none; }
html:not(.app-phone-zoom) #recipesView .dx-seg button.on { box-shadow: none; }
.info-table input, .info-table select, .table-section input, .recipe-mode button { border-radius: var(--r-sm); }
.dx-input, .dx-sort, .recipe-mode { border-radius: var(--r-ctl); }
.dx-seg { border-radius: var(--r-tile); }
.dx-seg button { border-radius: var(--r-sm); }
.dx-card > :first-child, .cd-card > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.dx-card > :last-child, .cd-card > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
/* pole Recipe name je posledné v karte: nededí spodné zaoblenie karty, všetky rohy rovnaké (v15.82) */
.rx-name-card > .dx-input { border-radius: var(--r-ctl); }

/* DIZAJNOVÝ SYSTÉM: oválne sú iba tlačidlá s textom; záložky, ikonové tlačidlá a prepínače ostávajú zaoblený obdĺžnik (Tomáš) */
.btn, .dx-btn, #addClientModal .cm-btn { border-radius: 999px; }
/* tlačidlo Sign in má rovnaký hranatý tvar ako polia na prihlásenie (Tomáš) */
.login-box .btn { border-radius: 12px; }
.footer-val { border-radius: 12px; }
/* Recipes a Clients: lišta je teraz viditeľná, preto stačí menší horný okraj (editor receptu má krížik, ten ostáva) */
#recipesView .dx-page, #clientsView .dx-page, #recipeEditor .dx-page { padding-top: 36px; }   /* okno receptu: nadpis, tlačidlá a obsah na rovnakom mieste ako Recipes (v14.71) */
/* prechody medzi Order form, Recipes a Clients: pri prepnutí medzi Recipes a Clients sa nové okno ukáže hneď nad starým
   (pozadie sa nestmieva, formulár pod ním nepresvitne), plynulo sa objaví iba obsah */
#recipesView, #clientsView { transition: opacity .22s cubic-bezier(.2, 0, 0, 1), visibility .22s; }
#recipesView .dx-page, #clientsView .dx-page { opacity: 0; transform: translateY(8px); transition: opacity .26s ease, transform .34s cubic-bezier(.16, 1, .3, 1); }
#recipesView.active .dx-page, #clientsView.active .dx-page { opacity: 1; transform: none; }
#recipesView.dx-swap-in, #clientsView.dx-swap-in, #recipeEditor.dx-swap-in { z-index: 9650; transition: none; }
#recipesView.dx-swap-out, #clientsView.dx-swap-out, #recipeEditor.dx-swap-out, .dx-swap-out .dx-page { transition: none; }

/* DIZAJNOVÝ SYSTÉM: zvýraznenie poľa po kliknutí rovnaké ako v Internal Systeme (modrý okraj a jemná modrá obruba) */
.info-table input:not([readonly]):focus, .info-table select:focus, .table-section .h-name:focus, .table-section .h-dose:focus,
#addClientModal .info-table input:focus,
.table-section .rx-name:focus,
.table-section .rx-dose:focus {
  border-color: #0071e3 !important; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16) !important; outline: none; }
body.dark-theme .info-table input:not([readonly]):focus, body.dark-theme .info-table select:focus, body.dark-theme .table-section .h-name:focus, body.dark-theme .table-section .h-dose:focus,
body.dark-theme .table-section .rx-name:focus,
body.dark-theme .table-section .rx-dose:focus { border-color: #5aa9ff !important; box-shadow: 0 0 0 3px rgba(90, 169, 255, 0.22) !important; }
/* šípka vo výbere počtu dní: rovnaká ako v ostatných zoznamoch */
.info-table select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px 14px !important; padding-right: 36px; }

/* DIZAJNOVÝ SYSTÉM: vlastná ponuka rozbaľovacích zoznamov a našepkávač (js/ordering/15_ovladacie_prvky.js), kompaktný macOS NSMenu štýl */
.oc-pop { position: fixed; z-index: 30000; box-sizing: border-box; background: #ffffff; border: 0; border-radius: 10px; box-shadow: var(--sh-menu); animation: ocPopIn 0.15s cubic-bezier(0.2, 0.9, 0.3, 1); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; }
@keyframes ocPopIn { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.oc-menu { max-height: 308px; max-width: calc(100vw - 16px); overflow-y: auto; padding: 4px; }
.oc-sep { height: 1px; margin: 5px 8px 3px; background: rgba(0, 0, 0, 0.08); }
.oc-group { padding: 5px 8px 3px 8px; font-size: 11.5px; font-weight: 600; color: #86868b; letter-spacing: -0.005em; line-height: 1.3; }
.oc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 8px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 18px; color: #142235; cursor: pointer; user-select: none; }
.oc-item.act { background: rgba(26, 59, 92, 0.06); }
.oc-item.sel { font-weight: 600; }
.oc-item.dis { color: #6b7a8f; opacity: 0.55; cursor: default; }
.oc-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-sub { color: #86868b; font-weight: 400; }
.oc-chk { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #142235; }
.oc-item.added .oc-lbl, .oc-item.added .oc-chk { opacity: 0.45; }
body.dark-theme .oc-pop { background: #1f2228; box-shadow: var(--sh-menu); }
html:not(.app-phone-zoom) .oc-pop.oc-herbs { border-radius: 12px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .11), 0 12px 32px -8px rgba(0, 0, 0, .24); } /* zoznam bylín: vlasová linka a krátky tieň pod zoznamom (variant C) */
html:not(.app-phone-zoom) body.dark-theme .oc-pop.oc-herbs { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .13), 0 12px 32px -8px rgba(0, 0, 0, .7); }
body.dark-theme .oc-sep { background: rgba(255, 255, 255, 0.10); }
body.dark-theme .oc-item { color: #eef0f3; } body.dark-theme .oc-item.act { background: rgba(255, 255, 255, 0.07); }
body.dark-theme .oc-group, body.dark-theme .oc-sub { color: #98a1ae; }
body.dark-theme .oc-chk { color: #eef0f3; }
@media (prefers-reduced-motion: reduce) { .oc-pop { animation: none; } }
select[aria-expanded="true"], input[aria-expanded="true"] { border-color: #0071e3 !important; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16) !important; }
/* okno Resend Payment Email: adresa, na ktorú e-mail odíde */
.resend-to { display: block; margin-top: 10px; font-size: 14px; color: var(--text-muted, #6b7a8f); overflow-wrap: anywhere; }
.resend-to strong { color: var(--primary); }
body.dark-theme .resend-to strong { color: #ffffff; }
/* obsah objednávky: dlhý názov položky sa zalomí s medzerou od ceny (aj na telefóne) */
.cp-recipe-item { gap: 16px; }
.cp-herb-name { min-width: 0; line-height: 1.4; }
@media (max-width: 600px) { .cp-recipe-item { gap: 12px; } }
/* náhľad zhrnutia: slovenský názov byliny pod čínskym (rovnako ako u zákazníka) */
.cp-herb-sk { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: #86868b; }

/* Zhrnutie objednávky: text sa nedá vyberať ani kopírovať (prst položený na texte nesmie spustiť výber) */
#clientPaymentPage { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#clientPaymentPage input, #clientPaymentPage textarea { -webkit-user-select: text; user-select: text; }

/* =====================================================================
   DIZAJNOVÝ SYSTÉM 2 (redesign 11/2026, rovnaký ako Internal System v11.80):
   písmo 12 popis · 13 vedľajší · 14 text · 15 nadpis karty · 28 nadpis stránky; stav = farebná bodka a text;
   tlačidlá 36 px (hlavné tmavomodré, vedľajšie biele s okrajom); polia s popisom nad poľom.
   Neplatí pre úvodnú stránku, prihlásenie, Zhrnutie objednávky, System status a Activity log.
   Farby formulára objednávky (tmavomodré hlavičky) ostávajú.
   ===================================================================== */
:root { --ds-ok-fill: #34c759; --ds-warn-fill: #ff9500; --ds-bad-fill: #ff3b30; --ds-info-fill: #0071e3; --ds-neutral-fill: #a3adbb;
  --ds-muted: #5d6b80; --ds-ink-2: #3b4a5e; --ds-btn-h: 36px; }
body.dark-theme { --ds-ok-fill: #30d158; --ds-warn-fill: #ff9f0a; --ds-bad-fill: #ff453a; --ds-info-fill: #0a84ff; --ds-neutral-fill: #6b7380;
  --ds-muted: #98a1ae; --ds-ink-2: #c9ced6; }

/* ---- tlačidlá: odozva pri stlačení, rovnaká výška ---- */
.btn, .dx-btn { height: var(--ds-btn-h); font-size: 14px; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease; }
.btn:active:not(:disabled), .dx-btn:active:not(:disabled) { transform: scale(0.97); }
.login-box .btn { height: auto; }
.login-box .btn .btn-spinner { position: absolute; top: 50%; left: 50%; margin: -13px 0 0 -13px; }   /* načítanie cez text, výška tlačidla sa nemení */
.btn-page { width: 32px; height: 32px; border: 1px solid var(--ds-line); border-radius: 10px; font-size: 13px; }
.btn-page:hover:not(:disabled) { transform: none; box-shadow: none; }
.pagination-info { font-size: 13px; font-weight: 500; color: var(--ds-muted); }
.page-num-display { font-size: 13px; font-weight: 600; }

/* ---- Order History: hlavičky normálnym písmom, stav ako bodka a text ---- */
.history-table th { font-size: 12px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--ds-muted) !important; }
.history-row td { font-size: 14px; }
.history-row .hist-recipe { font-size: 12px; font-weight: 400; }
.history-row .hist-time { font-size: 12px; font-weight: 400; }
.status-pill, .history-row .status-pill, body.dark-theme .status-pill {
  display: inline-flex !important; align-items: center; gap: 6px; padding: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: var(--ds-ink-2) !important;
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: var(--dot, var(--ds-neutral-fill)); }
.status-pill.status-email-failed { --dot: var(--ds-bad-fill); }

/* ---- Recipes, Clients a malé okná: rovnaké ako Internal System ---- */
.dx-overlay, .modal-content.dx-dlg, .cd-panel { --dx-line: #e3e8ef; --dx-line-2: #eef1f5; --dx-muted: #5d6b80; --dx-shadow: 0 1px 2px rgba(20, 34, 53, 0.05); }
body.dark-theme .dx-overlay, body.dark-theme .modal-content.dx-dlg, body.dark-theme .cd-panel { --dx-muted: #98a1ae; --dx-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.dx-head { margin-bottom: 24px; }
#recipesView .dx-head, #clientsView .dx-head, #recipeEditor .dx-head { margin-bottom: 16px; }
.dx-head h2 { font-size: 28px; letter-spacing: -0.022em; line-height: 1.15; }
#recipesView .dx-head h2, #clientsView .dx-head h2, #recipeEditor .dx-head h2 { font-size: 42px; font-weight: 650; }   /* okno receptu: rovnaký nadpis ako Recipes a Clients */
.dx-head .dx-sub { font-size: 14px; margin-top: 4px; }
/* nadpis stránky New order: rovnaká pozícia, šírka a formát ako Recipes a Clients (.dx-head h2) */
.order-page-head { width: 100%; max-width: 1280px; box-sizing: border-box; margin: 0 0 -24px; display: flex; align-items: flex-end; }
.order-page-head h2 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif; font-size: 42px; font-weight: 650; letter-spacing: -0.022em; line-height: 1.15; color: #142235; -webkit-font-smoothing: antialiased; }
body.dark-theme .order-page-head h2 { color: #eef0f3; }
html.app-phone-zoom .order-page-head { margin-bottom: 0; padding: 0 4px; }
html.app-phone-zoom .order-page-head h2 { font-size: 34px; }   /* na telefóne ostáva pôvodná veľkosť */
.dx-table { font-size: 14px; }
.dx-table th { font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 10px 14px; }
.dx-table td { padding: 12px 14px; }
.dx-table th:first-child, .dx-table td:first-child { padding-left: 20px; }
.dx-table th:last-child, .dx-table td:last-child { padding-right: 20px; }
.dx-table .small { font-size: 13px; }
.dx-table .dx-rsub { font-size: 12px; font-weight: 400; }
.dx-table th.dx-chev, .dx-table td.dx-chev { width: 34px; padding-left: 0; text-align: right; }
.dx-table td.dx-chev svg { display: block; margin-left: auto; color: var(--ds-neutral-fill); transition: transform .15s ease, color .15s ease; }
.dx-table tbody tr.click:hover td.dx-chev svg { color: var(--dx-ink-2); transform: translateX(2px); }
.dx-table tbody tr.click:focus-visible { outline: 1.5px solid var(--accent, #0071e3); outline-offset: -1.5px; }
.dx-row-act { opacity: .6; }
.dx-ib { border-radius: 8px; }
.dx-note { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--dx-muted); }
.dx-seg button { font-weight: 600; }
.modal-content.dx-dlg h3 { font-size: 18px; }

/* okno New Client / Edit Client ostáva v pôvodnom vzhľade (plávajúci názov poľa, sivé polia) – Tomáš ho chce takto */

/* ---- správy: rovnaké ako v Internal Systeme ---- */
.toast { border-radius: 12px; border-left-width: 4px; padding: 12px 16px; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(20, 34, 53, 0.06), 0 12px 32px rgba(20, 34, 53, 0.14); }

@media (prefers-reduced-motion: reduce) { .btn:active:not(:disabled), .dx-btn:active:not(:disabled) { transform: none; } }
/* načítanie po prihlásení: kratšie prelínanie (rovnako dlho ako zatvorenie v kóde, 0,3 s) */
#appBootLoader { transition: opacity 0.3s ease; }
/* stav: text v rovnakej farbe ako bodka (Tomáš); v tmavom režime svetlejší odtieň, aby bol čitateľný */
.status-pill.status-email-failed { --dot: #d92d20; }
.status-pill, .history-row .status-pill { color: var(--dot, var(--ds-ink-2)) !important; font-weight: 600 !important; }
body.dark-theme .status-pill, body.dark-theme .history-row .status-pill { color: color-mix(in srgb, var(--dot, #c9ced6) 45%, #ffffff) !important; }
body.dark-theme .status-pill::before { background: color-mix(in srgb, var(--dot, #6b7380) 60%, #ffffff); }
/* stav ako pilulka (Tomáš, v12.30): plochý jemný podklad vo farbe stavu, text v tej istej farbe; bez bodky, rámčeka a prechodu; zarovnaná doprava */
.status-pill, .history-row .status-pill, body.dark-theme .status-pill, body.dark-theme .history-row .status-pill {
  height: 24px; padding: 0 10px !important; border-radius: 999px !important; font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: 0 !important;
  background: color-mix(in srgb, var(--dot, #6b7380) 12%, #ffffff) !important; box-shadow: none !important; }
.status-pill::before, body.dark-theme .status-pill::before { display: none; }
body.dark-theme .status-pill, body.dark-theme .history-row .status-pill { background: color-mix(in srgb, var(--dot, #6b7380) 22%, transparent) !important; }
.history-row td.hist-st { text-align: right; }
.history-table th.hist-st-h { padding-right: 18px; } /* nadpis končí tam, kde text v pilulke (8 px bunka + 10 px pilulka) */
/* podklad pilulky: vybrané svetlé odtiene, ktoré k sebe ladia (variant B z porovnania 4. 11. 2026) */
.status-pill.st-unpaid { --pill: #fdf1e4; --pill-d: rgba(255, 159, 10, 0.16); }
.status-pill.st-preparation { --pill: #f1eefc; --pill-d: rgba(150, 120, 255, 0.18); }
/* od v15.72: u nás (Preparation, Mixed, Unsent) fialová, na ceste (In delivery) modrá, doručená (Finished) zelená */
.status-pill.st-mixed, .status-pill.st-unsent { --pill: #f1eefc; --pill-d: rgba(150, 120, 255, 0.18); }
.status-pill.st-indelivery { --pill: #e9f2fc; --pill-d: rgba(10, 132, 255, 0.18); }
.status-pill.st-finished { --pill: #e8f6ec; --pill-d: rgba(48, 209, 88, 0.16); }
.status-pill.st-expired { --pill: #f1f2f4; --pill-d: rgba(255, 255, 255, 0.08); }
.status-pill.status-email-failed { --pill: #fdeceb; --pill-d: rgba(255, 69, 58, 0.18); }
.status-pill[class*="st-"], .history-row .status-pill[class*="st-"], .status-pill.status-email-failed, .history-row .status-pill.status-email-failed { background: var(--pill, color-mix(in srgb, var(--dot, #6b7380) 9%, #ffffff)) !important; }
body.dark-theme .status-pill[class*="st-"], body.dark-theme .history-row .status-pill[class*="st-"], body.dark-theme .status-pill.status-email-failed, body.dark-theme .history-row .status-pill.status-email-failed { background: var(--pill-d, color-mix(in srgb, var(--dot, #6b7380) 22%, transparent)) !important; }

/* =====================================================================
   TELEFÓN (html.app-phone-zoom = šírka do 768 px alebo telefón naležato): vlastné rozloženie namiesto zmenšenej
   desktopovej stránky. Formulár a Order History pod sebou, byliny a objednávky ako karty, polia 16 px
   (iOS sa pri písaní nepriblíži), priblíženie prstami robí prehliadač. Počítač a tablet ostávajú bez zmeny.
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; }
html.app-phone-zoom .main-container { width: 100% !important; min-width: 0 !important; max-width: none !important; zoom: 1 !important; border-radius: 16px; }
html.app-phone-zoom .app-content-wrapper { padding-left: calc(12px + env(safe-area-inset-left, 0px)) !important; padding-right: calc(12px + env(safe-area-inset-right, 0px)) !important; gap: 16px !important; }
html.app-phone-zoom button, html.app-phone-zoom .btn { touch-action: manipulation; }
html.app-phone-zoom input, html.app-phone-zoom select, html.app-phone-zoom textarea { font-size: 16px !important; }

/* ---- FORMULÁR NA TELEFÓNE (v12.20): jasné rozlíšenie, čo sa dá robiť.
   Pole na písanie = biele pole s viditeľným okrajom a popisom nad ním; vypočítaná hodnota = iba text (bez poľa);
   tlačidlo = biele s okrajom alebo tmavomodré; voľba = prepínač (sivá dráha, biely posuvník). Žiadne sivé plochy. ---- */
html.app-phone-zoom { --ph-field: #ffffff; --ph-field-line: #c5cad3; --ph-card-line: #e3e6eb; --ph-sep: #ebebf0; --ph-ink: #1d1d1f;
  --ph-label: #3a3a3c; --ph-muted: #6e6e73; --ph-fill: rgba(118, 118, 128, 0.12); --ph-press: #f2f2f5; --ph-focus: #0071e3; }
html.app-phone-zoom body.dark-theme { --ph-field: #262930; --ph-field-line: #5b616d; --ph-card-line: rgba(255, 255, 255, 0.16); --ph-sep: rgba(255, 255, 255, 0.09); --ph-ink: #f5f5f7;
  --ph-label: #d1d1d6; --ph-muted: #9ea4ae; --ph-fill: rgba(0, 0, 0, 0.22); --ph-press: rgba(255, 255, 255, 0.06); --ph-focus: #0a84ff; }
html.app-phone-zoom #orderingFormSection, html.app-phone-zoom #historyContainer { background: #ffffff; } /* tmavý režim: farba karty ako na počítači */
html.app-phone-zoom #orderingFormSection .header-top { font-size: 13px; letter-spacing: 0.05em; line-height: 1.35; padding: 12px 16px; white-space: normal; text-wrap: balance; }
html.app-phone-zoom .info-section, html.app-phone-zoom #orderingFormSection .table-container, html.app-phone-zoom .footer-section,
html.app-phone-zoom #recipeEditor .table-container { background: transparent !important; border: 0 !important; }
/* nadpisy častí: Client / Herbs / Summary */
html.app-phone-zoom .info-section::before, html.app-phone-zoom #orderingFormSection .table-container::before, html.app-phone-zoom .footer-section::before, html.app-phone-zoom .right-panel::before,
html.app-phone-zoom #recipeEditor .table-container::before {
  display: block; margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ph-ink); }
html.app-phone-zoom .info-section::before { content: "Client"; }
html.app-phone-zoom #orderingFormSection .table-container::before,
html.app-phone-zoom #recipeEditor .table-container::before { content: "Herbs"; }
html.app-phone-zoom .footer-section::before { content: "Summary"; order: -1; margin-bottom: -2px; }
html.app-phone-zoom .right-panel::before { content: "Client details"; margin: 4px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ph-muted); }
html.app-phone-zoom .info-section { display: flex; flex-direction: column; gap: 0; padding: 20px 16px 8px; }
/* poradie na telefóne (Tomáš, v12.23): Client name → údaje klienta → počet dní → Recipe name
   (riadky ľavej tabuľky sa cez display: contents stanú priamo položkami .info-section, údaje klienta sa vložia medzi ne) */
html.app-phone-zoom .left-panel, html.app-phone-zoom .left-panel .info-table, html.app-phone-zoom .left-panel .info-table tbody { display: contents; }
html.app-phone-zoom .left-panel .info-table tr:nth-child(1) { order: 1; }
html.app-phone-zoom .info-section .right-panel { order: 2; }
html.app-phone-zoom .left-panel .info-table tr:nth-child(n+2) { order: 3; }
html.app-phone-zoom .left-panel, html.app-phone-zoom .right-panel { width: 100%; }
html.app-phone-zoom .info-table, html.app-phone-zoom .info-table tbody { display: block; border-spacing: 0; }
/* jedno pole: popis nad poľom, pod ním biele pole s okrajom */
html.app-phone-zoom .left-panel .info-table tr { display: block; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.app-phone-zoom .left-panel .info-table td { display: block; padding: 0; border: 0; background: none; }
html.app-phone-zoom .left-panel .info-table td:first-child { width: auto; margin: 0 0 7px; text-align: left; white-space: normal; font-size: 14px; font-weight: 600; color: var(--ph-label) !important; }
html.app-phone-zoom .left-panel .info-table td:last-child { display: flex; align-items: center; gap: 8px; }
html.app-phone-zoom .left-panel .info-table input, html.app-phone-zoom .left-panel .info-table select,
html.app-phone-zoom body.dark-theme .left-panel .info-table input, html.app-phone-zoom body.dark-theme .left-panel .info-table select {
  flex: 1; min-width: 0; width: auto !important; height: 46px !important; padding: 0 14px !important; border: 1px solid var(--ph-field-line) !important; border-radius: 10px !important;
  background: var(--ph-field) !important; box-shadow: none !important; font-size: 16px !important; font-weight: 500; color: var(--ph-ink) !important;
  transition: border-color .15s ease, box-shadow .15s ease; }
html.app-phone-zoom .left-panel .info-table input:focus, html.app-phone-zoom .left-panel .info-table select:focus,
html.app-phone-zoom body.dark-theme .left-panel .info-table input:focus, html.app-phone-zoom body.dark-theme .left-panel .info-table select:focus {
  outline: none; border-color: var(--ph-focus) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-focus) 20%, transparent) !important; }
html.app-phone-zoom .left-panel .info-table input::placeholder { color: #a1a1a6; font-weight: 400; }
html.app-phone-zoom .client-actions, html.app-phone-zoom .recipe-mode { position: static; transform: none; flex-shrink: 0; }
html.app-phone-zoom .client-actions { gap: 8px; }
/* tlačidlá pri klientovi (upraviť, pridať): biele s okrajom ako vedľajšie tlačidlá */
html.app-phone-zoom .client-actions .btn-icon-client, html.app-phone-zoom body.dark-theme .client-actions .btn-icon-client {
  width: 46px; height: 46px; border: 1px solid var(--ph-field-line); border-radius: 10px; background: var(--ph-field); color: var(--primary); box-shadow: none; transform: none;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: background-color .12s ease, transform .12s ease; }
html.app-phone-zoom body.dark-theme .client-actions .btn-icon-client { color: #8fc1ff; }
html.app-phone-zoom .client-actions .btn-icon-client:active:not(:disabled) { background: var(--ph-press); transform: scale(0.96); }
html.app-phone-zoom .client-actions .btn-icon-client:disabled { opacity: 1; border-color: var(--ph-sep); color: #c7c7cc; background: transparent; }
html.app-phone-zoom body.dark-theme .client-actions .btn-icon-client:disabled { color: #545458; }
/* prepínače: počet dní a New / Saved */
html.app-phone-zoom .days-seg, html.app-phone-zoom body.dark-theme .days-seg { flex: 1; height: auto; gap: 2px; margin: 0; padding: 3px; border-radius: 11px; background: var(--ph-fill); }
html.app-phone-zoom .days-seg button, html.app-phone-zoom .days-custom { height: 40px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--ph-label);
  cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease; }
html.app-phone-zoom .days-seg button.on, html.app-phone-zoom .days-custom.on { background: #ffffff; color: var(--ph-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }
html.app-phone-zoom .days-seg button:active, html.app-phone-zoom .days-custom:not(.on):active { transform: scale(0.96); }
html.app-phone-zoom #numDaysCustom, html.app-phone-zoom body.dark-theme #numDaysCustom, html.app-phone-zoom #numDaysCustom:focus, html.app-phone-zoom body.dark-theme #numDaysCustom:focus,
html.app-phone-zoom #rxDaysCustom,
html.app-phone-zoom body.dark-theme #rxDaysCustom,
html.app-phone-zoom #rxDaysCustom:focus,
html.app-phone-zoom body.dark-theme #rxDaysCustom:focus {
  flex: none; width: 100% !important; height: 100% !important; padding: 0 !important; border: 0 !important; border-radius: inherit !important; background: transparent !important; box-shadow: none !important;
  font-size: 16px !important; font-weight: 600; color: inherit !important; }
html.app-phone-zoom .recipe-mode, html.app-phone-zoom body.dark-theme .recipe-mode { height: 46px; padding: 3px; border-radius: 11px; background: var(--ph-fill); box-sizing: border-box; }
html.app-phone-zoom .recipe-mode button { height: 100%; padding: 0 12px; border-radius: 8px; font-size: 15px; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
html.app-phone-zoom .days-own { font-size: 15px; }
html.app-phone-zoom body.dark-theme .days-seg button.on, html.app-phone-zoom body.dark-theme .days-custom.on, html.app-phone-zoom body.dark-theme .recipe-mode button.on { background: #5b616d; color: #ffffff; box-shadow: none; }
/* údaje klienta: až po výbere klienta, iba text (nedá sa do nich písať), riadky oddelené čiarou */
html.app-phone-zoom .info-section:not(.has-client) .right-panel { display: none; }
html.app-phone-zoom .right-panel { margin: -4px 0 14px; }
html.app-phone-zoom .right-panel .info-table, html.app-phone-zoom body.dark-theme .right-panel .info-table { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
html.app-phone-zoom .right-panel .info-table tr { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin: 0; background: none; }
html.app-phone-zoom .right-panel .info-table tr + tr { border-top: 1px solid var(--ph-sep); }
html.app-phone-zoom .right-panel .info-table td { display: block; padding: 0; border: 0; background: none; }
html.app-phone-zoom .right-panel .info-table td:first-child { flex-shrink: 0; width: auto; text-align: left; font-size: 14px; font-weight: 500; color: var(--ph-muted) !important; }
html.app-phone-zoom .right-panel .info-table td:last-child { flex: 1; min-width: 0; }
html.app-phone-zoom .right-panel .info-table input[readonly], html.app-phone-zoom body.dark-theme .right-panel .info-table input[readonly] {
  width: 100%; height: 30px; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; pointer-events: none;
  text-align: right; text-overflow: ellipsis; font-size: 15px !important; font-weight: 500; color: var(--ph-ink) !important; }

/* ---- byliny: každá bylina je biela karta s okrajom; bylina a dávka sú polia, ostatné údaje iba text ---- */
html.app-phone-zoom #orderingFormSection .table-container,
html.app-phone-zoom #recipeEditor .table-container { padding: 14px 16px 6px; overflow: visible; border-top: 1px solid var(--ph-sep) !important; }
html.app-phone-zoom .table-section { min-width: 0; display: block; border-spacing: 0; }
html.app-phone-zoom .table-section thead { display: none; }
html.app-phone-zoom .table-section tbody { display: flex; flex-direction: column; gap: 12px; }
html.app-phone-zoom .table-section tr, html.app-phone-zoom body.dark-theme .table-section tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 104px; grid-template-areas: "name name name dose" "trans trans trans line" "code stock ppg total"; gap: 10px 10px; padding: 12px; border: 1px solid var(--ph-card-line); border-radius: 14px; background: transparent; }
html.app-phone-zoom .table-section td { display: flex; flex-direction: column; gap: 5px; padding: 0; min-width: 0; border: 0; background: none !important; }
html.app-phone-zoom .table-section td:nth-child(1) { grid-area: trans; justify-content: center; }
html.app-phone-zoom .table-section td:nth-child(2) { grid-area: name; }
html.app-phone-zoom .table-section td:nth-child(3) { grid-area: dose; }
html.app-phone-zoom .table-section td:nth-child(4) { grid-area: total; }
html.app-phone-zoom .table-section td:nth-child(5) { grid-area: stock; }
html.app-phone-zoom .table-section td:nth-child(6) { grid-area: ppg; }
html.app-phone-zoom .table-section td:nth-child(7) { grid-area: line; align-items: flex-end; justify-content: center; }
html.app-phone-zoom .table-section td:nth-child(8) { grid-area: code; }
html.app-phone-zoom .table-section td::before { font-size: 12px; font-weight: 600; color: var(--ph-muted); line-height: 1.2; }
html.app-phone-zoom .table-section td:nth-child(2)::before { content: "Herb"; font-size: 14px; color: var(--ph-label); }
html.app-phone-zoom .table-section td:nth-child(3)::before { content: "Daily dose (g)"; font-size: 14px; color: var(--ph-label); }
html.app-phone-zoom .table-section td:nth-child(4)::before { content: "Total (g)"; }
html.app-phone-zoom .table-section td:nth-child(5)::before { content: "Stock (g)"; }
html.app-phone-zoom .table-section td:nth-child(6)::before { content: "€ / g"; }
html.app-phone-zoom .table-section td:nth-child(8)::before { content: "Code"; }
html.app-phone-zoom .table-section .h-name, html.app-phone-zoom .table-section .h-dose,
html.app-phone-zoom body.dark-theme .table-section td:nth-child(2) input.h-name, html.app-phone-zoom body.dark-theme .table-section td:nth-child(3) input.h-dose,
html.app-phone-zoom .table-section .rx-name,
html.app-phone-zoom .table-section .rx-dose,
html.app-phone-zoom body.dark-theme .table-section td:nth-child(2) input.rx-name,
html.app-phone-zoom body.dark-theme .table-section td:nth-child(3) input.rx-dose {
  height: 46px; padding: 0 12px !important; border: 1px solid var(--ph-field-line) !important; border-radius: 10px; background: var(--ph-field) !important; box-shadow: none !important;
  font-size: 16px !important; font-weight: 500; color: var(--ph-ink) !important; transition: border-color .15s ease, box-shadow .15s ease; }
html.app-phone-zoom .table-section .h-name,
html.app-phone-zoom .table-section .rx-name { text-align: left !important; }
html.app-phone-zoom .table-section .h-dose,
html.app-phone-zoom .table-section .rx-dose { text-align: right; }
html.app-phone-zoom .table-section .h-name:focus, html.app-phone-zoom .table-section .h-dose:focus,
html.app-phone-zoom body.dark-theme .table-section td input.h-name:focus, html.app-phone-zoom body.dark-theme .table-section td input.h-dose:focus,
html.app-phone-zoom .table-section .rx-name:focus,
html.app-phone-zoom .table-section .rx-dose:focus,
html.app-phone-zoom body.dark-theme .table-section td input.rx-name:focus,
html.app-phone-zoom body.dark-theme .table-section td input.rx-dose:focus {
  outline: none; border-color: var(--ph-focus) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-focus) 20%, transparent) !important; }
html.app-phone-zoom .table-section input[readonly], html.app-phone-zoom body.dark-theme .table-section input[readonly] {
  height: auto; padding: 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; pointer-events: none;
  text-align: left; text-overflow: ellipsis; font-size: 15px !important; font-weight: 600; color: var(--ph-ink) !important; }
html.app-phone-zoom .table-section .h-trans, html.app-phone-zoom body.dark-theme .table-section .h-trans,
html.app-phone-zoom .table-section .rx-trans,
html.app-phone-zoom body.dark-theme .table-section .rx-trans { font-size: 15px !important; font-weight: 500; color: var(--ph-label) !important; }
html.app-phone-zoom .table-section td:nth-child(7) input.h-line[readonly], html.app-phone-zoom body.dark-theme .table-section td:nth-child(7) input.h-line[readonly],
html.app-phone-zoom .table-section td:nth-child(7) input.rx-line[readonly],
html.app-phone-zoom body.dark-theme .table-section td:nth-child(7) input.rx-line[readonly] { text-align: right; font-size: 18px !important; font-weight: 700; }
/* prázdny riadok: iba bylina a dávka; z prázdnych riadkov je vidieť iba prvý (prerušovaný okraj = sem pribudne ďalšia bylina) */
html.app-phone-zoom .table-section tr:not(.filled), html.app-phone-zoom body.dark-theme .table-section tr:not(.filled) { grid-template-areas: "name name name dose"; border-style: dashed; border-color: var(--ph-field-line); }
html.app-phone-zoom .table-section tr:not(.filled) td:not(:nth-child(2)):not(:nth-child(3)) { display: none; }
html.app-phone-zoom .table-section tr:not(.filled) ~ tr:not(.filled) { display: none; }

/* ---- súčty: iba text (popis vľavo, suma vpravo, riadky oddelené čiarou), celková cena výrazne, Send cez celú šírku, Clear ako vedľajšie tlačidlo ---- */
html.app-phone-zoom .footer-section { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 16px 20px; border-top: 1px solid var(--ph-sep) !important; }
html.app-phone-zoom .footer-table, html.app-phone-zoom .footer-table tbody { display: block; border-spacing: 0; }
html.app-phone-zoom .footer-table tr:first-child { display: none; }
html.app-phone-zoom .footer-table tr:last-child, html.app-phone-zoom body.dark-theme .footer-table tr:last-child { display: block; padding: 0; border-radius: 0; background: none; }
html.app-phone-zoom .footer-table td { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0; text-align: left; border: 0; background: none; }
html.app-phone-zoom .footer-table td + td { border-top: 1px solid var(--ph-sep); }
html.app-phone-zoom .footer-table td::before { font-size: 15px; font-weight: 500; color: var(--ph-muted); }
html.app-phone-zoom .footer-table td:nth-child(1)::before { content: "Total weight"; }
html.app-phone-zoom .footer-table td:nth-child(2)::before { content: "Shipping fee"; }
html.app-phone-zoom .footer-table td:nth-child(3)::before { content: "Preparation fee"; }
html.app-phone-zoom .footer-table td:nth-child(4)::before { content: "Subtotal"; }
html.app-phone-zoom .footer-table td:nth-child(5)::before { content: "Total order price"; font-size: 17px; font-weight: 700; color: var(--ph-ink); }
html.app-phone-zoom .footer-table td:nth-child(5) { min-height: 56px; border-top: 1px solid var(--ph-field-line); }
html.app-phone-zoom .footer-val, html.app-phone-zoom .footer-val.highlight, html.app-phone-zoom body.dark-theme .footer-val, html.app-phone-zoom body.dark-theme .footer-val.highlight {
  min-width: 0; height: auto; padding: 0 !important; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important;
  font-size: 15px; font-weight: 600; color: var(--ph-ink) !important; font-variant-numeric: tabular-nums; }
html.app-phone-zoom .footer-val input, html.app-phone-zoom body.dark-theme .footer-val input { color: inherit !important; }
html.app-phone-zoom .footer-val.highlight, html.app-phone-zoom body.dark-theme .footer-val.highlight { font-size: 22px; font-weight: 800; color: var(--primary) !important; }
html.app-phone-zoom body.dark-theme .footer-val.highlight { color: #8fc1ff !important; }
html.app-phone-zoom .footer-section > .btn { width: 100%; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
html.app-phone-zoom .footer-section > .footer-table { order: 1; }
html.app-phone-zoom .footer-section > .btn-send { order: 3; height: 52px; margin-top: 6px; font-size: 17px; border-radius: 14px; }
html.app-phone-zoom .footer-section > .btn-clear, html.app-phone-zoom body.dark-theme .footer-section > .btn-clear { order: 4; height: 46px; border: 1px solid var(--ph-field-line); border-radius: 14px; background: var(--ph-field); color: var(--ph-ink); font-size: 16px; font-weight: 600; box-shadow: none; }
html.app-phone-zoom .footer-section > .btn-clear:active { background: var(--ph-press); }

/* ---- ORDER HISTORY NA TELEFÓNE (v12.20): biely zoznam bez sivého podkladu, riadky oddelené čiarou.
   Riadok: klient + cena, recept + stav, malým číslo · dni · hmotnosť · posledný krok s dátumom.
   Ťuknutie na riadok otvorí objednávku, okrúhle tlačidlo „…“ ponuku. ---- */
.history-row .hist-m { display: none; }
html.app-phone-zoom .header-with-search { flex-wrap: wrap; gap: 12px; padding: 16px !important; }
html.app-phone-zoom .header-with-search .hist-title { font-size: 20px; }
html.app-phone-zoom .header-with-search .btn-refresh { width: 36px; height: 36px; }
html.app-phone-zoom .hist-tools { width: 100%; flex-wrap: wrap; gap: 8px; }
html.app-phone-zoom .history-search-box { flex: 1; width: auto; min-width: 170px; } /* pri širokom ovále filtra sa vyhľadávanie presunie pod neho */
html.app-phone-zoom .hist-filter, html.app-phone-zoom body.dark-theme .hist-filter { height: 44px; min-width: 44px; border-color: var(--ph-field-line); background: var(--ph-field); }
html.app-phone-zoom .history-search-box input, html.app-phone-zoom body.dark-theme .history-search-box input {
  height: 44px; padding-top: 0; padding-bottom: 0; border: 1px solid var(--ph-field-line) !important; background: var(--ph-field) !important; color: var(--ph-ink) !important; }
html.app-phone-zoom .history-search-box input:focus, html.app-phone-zoom body.dark-theme .history-search-box input:focus { border-color: var(--ph-focus) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-focus) 20%, transparent) !important; }
html.app-phone-zoom .history-table-container, html.app-phone-zoom #historyContainer .table-container { padding: 0 !important; overflow: visible; background: transparent !important; }
html.app-phone-zoom .history-table { min-width: 0; display: block; border-spacing: 0; margin: 0; }
html.app-phone-zoom .history-table thead { display: none; }
html.app-phone-zoom .history-table tbody, html.app-phone-zoom body.dark-theme .history-table tbody { display: block; padding: 0; border-top: 1px solid var(--ph-sep); border-radius: 0; background: none; }
html.app-phone-zoom .history-row.filled-row, html.app-phone-zoom body.dark-theme .history-row.filled-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 36px; grid-template-areas: "cl pr more" "cl st more" "m m m"; column-gap: 10px; row-gap: 2px; align-items: center;
  padding: 12px 10px 12px 16px; border: 0; border-bottom: 1px solid var(--ph-sep); border-radius: 0; background: transparent; box-shadow: none; cursor: pointer;
  -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: background-color .12s ease; }
html.app-phone-zoom .history-row.filled-row:active { background: var(--ph-press); }
html.app-phone-zoom .history-row.filled-row td, html.app-phone-zoom body.dark-theme .history-row.row-white td { padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; min-width: 0; }
html.app-phone-zoom .history-row td:nth-child(3), html.app-phone-zoom .history-row td:nth-child(4),
html.app-phone-zoom .history-row td:nth-child(6), html.app-phone-zoom .history-row td:nth-child(7), html.app-phone-zoom .history-row td:nth-child(8), html.app-phone-zoom .history-row td:nth-child(9) { display: none; }
html.app-phone-zoom .history-row td:nth-child(1) { grid-area: m; display: block; margin-top: 4px; }
html.app-phone-zoom .history-row td:nth-child(1) .hist-n { display: none; }
html.app-phone-zoom .history-row td:nth-child(1) .hist-m { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 500; color: var(--ph-muted); font-variant-numeric: tabular-nums; }
html.app-phone-zoom .history-row td:nth-child(2) { grid-area: cl; display: block; align-self: start; overflow: hidden; font-size: 16px !important; font-weight: 700 !important; white-space: nowrap; text-overflow: ellipsis; color: var(--ph-ink) !important; }
html.app-phone-zoom .history-row td:nth-child(2) .hist-recipe { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 400; color: var(--ph-muted); }
html.app-phone-zoom .history-row td:nth-child(5) { grid-area: pr; display: block; text-align: right; font-size: 16px !important; font-weight: 700 !important; color: var(--ph-ink) !important; }
html.app-phone-zoom .history-row td.hist-st { grid-area: st; display: flex; justify-content: flex-end; }
html.app-phone-zoom .history-row td.hist-st .status-pill { font-size: 13px !important; }
html.app-phone-zoom .history-row td.hist-more-cell { grid-area: more; display: flex; align-items: center; justify-content: center; position: static; }
html.app-phone-zoom .history-row .hist-more, html.app-phone-zoom body.dark-theme .history-row .hist-more { width: 34px; height: 34px; border-radius: 50%; background: var(--ph-fill); color: var(--ph-label); opacity: 1; visibility: visible; }
html.app-phone-zoom .history-pagination-footer { padding: 12px 16px 16px; border-top: 0; background: transparent !important; }
@media (hover: none) { html.app-phone-zoom .history-row.filled-row:hover td { background: transparent !important; } }

/* ---- TELEFÓN: editor receptu, každý riadok byliny ako karta (rovnako ako vo formulári objednávky) ---- */
html.app-phone-zoom #rxWrap { overflow: visible; }
/* prázdny riadok: iba bylina a dávka */
/* ---- TELEFÓN: okná Recipes, Clients a editor receptu (v12.21) – rovnaké pravidlá ako formulár:
   pole na písanie = biele s výrazným okrajom, súčty iba text, zoznamy ako riadky pod sebou (bez posúvania do strany),
   ťuknutie na riadok otvorí recept / klienta, tlačidlá s okrajom a popisom ---- */
.dx-ib-lbl { display: none; }
html.app-phone-zoom .dx-page { padding: calc(64px + env(safe-area-inset-top, 0px)) 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
html.app-phone-zoom .dx-head { align-items: stretch; flex-direction: column; gap: 14px; margin-bottom: 16px; }
html.app-phone-zoom .dx-head .dx-spacer, html.app-phone-zoom .dx-toolbar .dx-spacer { display: none; }
html.app-phone-zoom .dx-head h2 { font-size: 28px; }
html.app-phone-zoom .dx-actions { display: flex; gap: 8px; width: 100%; }
html.app-phone-zoom .dx-actions .dx-btn { flex: 1 1 0; min-width: 0; height: 46px; padding: 0 10px; border-radius: 12px; font-size: 15px; }
html.app-phone-zoom .dx-btn, html.app-phone-zoom .dx-ib, html.app-phone-zoom .dx-seg button, html.app-phone-zoom .dx-close {
  touch-action: manipulation; -webkit-user-select: none; user-select: none; }
html.app-phone-zoom .dx-btn:not(.primary):not(.danger), html.app-phone-zoom .dx-ib { border-color: var(--ph-field-line); }
html.app-phone-zoom .dx-btn:active:not(:disabled), html.app-phone-zoom .dx-ib:active { transform: scale(0.97); }
html.app-phone-zoom .dx-close { width: 40px; height: 40px; top: calc(14px + env(safe-area-inset-top, 0px)); }
/* polia a vyhľadávanie: biele s výrazným okrajom, 46 px, písmo 16 px */
html.app-phone-zoom .dx-input, html.app-phone-zoom .dx-input.sm { height: 46px; padding: 0 12px; border: 1px solid var(--ph-field-line); border-radius: 10px; background: var(--ph-field); color: var(--ph-ink); font-size: 16px; }
html.app-phone-zoom .dx-search .dx-input { padding-left: 38px; }
html.app-phone-zoom .dx-input:focus { border-color: var(--ph-focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-focus) 20%, transparent); }
html.app-phone-zoom .dx-toolbar { gap: 10px; }
html.app-phone-zoom .dx-seg { display: grid; grid-auto-columns: minmax(0, 1fr); width: 100%; box-sizing: border-box; padding: 3px; border: 0; border-radius: 11px; background: var(--ph-fill); }
html.app-phone-zoom .dx-seg button { justify-content: center; height: 40px; padding: 0 8px; border-radius: 8px; font-size: 15px; color: var(--ph-label); }
html.app-phone-zoom .dx-seg button.on { background: #ffffff; color: var(--ph-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
html.app-phone-zoom body.dark-theme .dx-seg { background: rgba(255, 255, 255, 0.08); }
html.app-phone-zoom body.dark-theme .dx-seg button.on { background: #5b616d; color: #ffffff; box-shadow: none; }
html.app-phone-zoom .dx-sort { height: 46px; width: 100%; box-sizing: border-box; border-color: var(--ph-field-line); border-radius: 10px; background: var(--ph-field); }
html.app-phone-zoom .dx-sort-val { flex: 1; }
html.app-phone-zoom .dx-sort select { font-size: 16px; }
/* zoznamy: bez tabuľky, každý riadok pod sebou, oddelené čiarou */
html.app-phone-zoom #recipesView .dx-table-wrap, html.app-phone-zoom #clientsView .dx-table-wrap { overflow: visible; }
html.app-phone-zoom #recipesView .dx-table, html.app-phone-zoom #clientsView .dx-table,
html.app-phone-zoom #rcBody, html.app-phone-zoom #clBody { display: block; }
html.app-phone-zoom #recipesView .dx-table thead, html.app-phone-zoom #clientsView .dx-table thead { display: none; }
html.app-phone-zoom #rcBody tr, html.app-phone-zoom #clBody tr { display: block; border-bottom: 1px solid var(--ph-sep); }
html.app-phone-zoom #rcBody tr:last-child, html.app-phone-zoom #clBody tr:last-child { border-bottom: 0; }
html.app-phone-zoom #rcBody td, html.app-phone-zoom #clBody td { display: block; padding: 0; border: 0; background: none !important; text-align: left; white-space: normal; }
html.app-phone-zoom #rcBody td.dx-empty, html.app-phone-zoom #clBody td.dx-empty { padding: 22px 16px; text-align: center; }
html.app-phone-zoom #rcBody tr.click, html.app-phone-zoom #clBody tr.click { -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: background-color .12s ease; }
html.app-phone-zoom #rcBody tr.click:active, html.app-phone-zoom #clBody tr.click:active { background: var(--ph-press); }
@media (hover: none) { html.app-phone-zoom .dx-table tbody tr.click:hover td { background: none !important; } }
/* recept: názov + cena za deň, pod tým byliny · odoslané · hmotnosť, dole tlačidlá s popisom */
html.app-phone-zoom #rcBody tr.click { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "name name name price" "herbs sent weight weight" "acts acts acts acts"; gap: 6px 14px; align-items: baseline; padding: 14px 16px; }
html.app-phone-zoom #rcBody td:nth-child(1) { grid-area: name; min-width: 0; }
html.app-phone-zoom #rcBody td:nth-child(1) .bold { font-size: 16px; font-weight: 700; }
html.app-phone-zoom #rcBody td:nth-child(1) .dx-rsub { margin-top: 3px; font-size: 13px; }
html.app-phone-zoom #rcBody td:nth-child(2) { grid-area: herbs; }
html.app-phone-zoom #rcBody td:nth-child(3) { grid-area: sent; }
html.app-phone-zoom #rcBody td:nth-child(4) { grid-area: weight; }
html.app-phone-zoom #rcBody td:nth-child(2), html.app-phone-zoom #rcBody td:nth-child(3), html.app-phone-zoom #rcBody td:nth-child(4) { font-size: 13.5px; font-weight: 600; color: var(--ph-ink); }
html.app-phone-zoom #rcBody td:nth-child(2)::before { content: "Herbs "; }
html.app-phone-zoom #rcBody td:nth-child(3)::before { content: "Sent "; }
html.app-phone-zoom #rcBody td:nth-child(4)::before { content: "Weight "; }
html.app-phone-zoom #rcBody td:nth-child(2)::before, html.app-phone-zoom #rcBody td:nth-child(3)::before, html.app-phone-zoom #rcBody td:nth-child(4)::before { font-weight: 500; color: var(--ph-muted); }
html.app-phone-zoom #rcBody td:nth-child(5) { grid-area: price; text-align: right; font-size: 16px; font-weight: 700; }
html.app-phone-zoom #rcBody td:nth-child(5)::after { content: " / day"; font-size: 12px; font-weight: 500; color: var(--ph-muted); }
html.app-phone-zoom #rcBody td.dx-cell-act { grid-area: acts; width: auto; margin-top: 6px; }
html.app-phone-zoom #rcBody .dx-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html.app-phone-zoom #rcBody .dx-ib { width: auto; height: 40px; gap: 6px; padding: 0 6px; border-radius: 10px; background: var(--ph-field); color: var(--ph-label); }
html.app-phone-zoom #rcBody .dx-ib.del { color: var(--dx-bad); }
html.app-phone-zoom .dx-ib-lbl { display: inline; font-size: 13px; font-weight: 600; }
/* klient: meno, ulica, PSČ mesto krajina, telefón · e-mail, číslo · objednávky; ceruzka vpravo */
html.app-phone-zoom #clBody tr.click { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; row-gap: 3px; padding: 13px 84px 13px 16px; }
html.app-phone-zoom #clBody tr.click::before, html.app-phone-zoom #clBody tr.click::after { content: ""; flex-basis: 100%; height: 0; }
html.app-phone-zoom #clBody td { font-size: 14px; color: var(--ph-label); min-width: 0; }
html.app-phone-zoom #clBody td:nth-child(2) { order: 1; flex-basis: 100%; font-size: 16px; font-weight: 700 !important; color: var(--ph-ink); }
html.app-phone-zoom #clBody td:nth-child(3) { order: 2; flex-basis: 100%; }
html.app-phone-zoom #clBody td:nth-child(5) { order: 3; }
html.app-phone-zoom #clBody td:nth-child(4) { order: 4; }
html.app-phone-zoom #clBody td:nth-child(4)::after { content: ","; }
html.app-phone-zoom #clBody td:nth-child(6) { order: 5; }
html.app-phone-zoom #clBody tr.click::before { order: 6; }
html.app-phone-zoom #clBody td:nth-child(7) { order: 7; }
html.app-phone-zoom #clBody td:nth-child(8) { order: 8; overflow: hidden; text-overflow: ellipsis; }
html.app-phone-zoom #clBody td:nth-child(7):not(:has(> .muted:only-child)) + td:nth-child(8)::before { content: "· "; color: var(--ph-muted); }
html.app-phone-zoom #clBody tr.click::after { order: 9; }
html.app-phone-zoom #clBody td:nth-child(1) { order: 10; font-size: 12.5px; color: var(--ph-muted); }
html.app-phone-zoom #clBody td:nth-child(1)::before { content: "No. "; }
html.app-phone-zoom #clBody td:nth-child(9) { order: 11; font-size: 12.5px; color: var(--ph-muted); }
html.app-phone-zoom #clBody td:nth-child(9)::before { content: "· Orders "; }
/* chýbajúci údaj (pomlčka) sa na telefóne nezobrazí */
html.app-phone-zoom #clBody td:has(> .muted:only-child) { display: none; }
html.app-phone-zoom #clBody td.dx-cell-act { position: absolute; top: 50%; right: 34px; margin-top: -20px; width: auto; padding: 0; }
html.app-phone-zoom #clBody .dx-acts { display: flex; }
html.app-phone-zoom #clBody .dx-ib { width: 40px; height: 40px; border: 1px solid var(--ph-field-line); border-radius: 10px; background: var(--ph-field); color: var(--primary); }
html.app-phone-zoom body.dark-theme #clBody .dx-ib { color: #8fc1ff; }
/* šípka = riadok sa dá otvoriť (detail klienta); pri receptoch sú tlačidlá s popisom, šípka netreba */
html.app-phone-zoom #clBody td.dx-chev { position: absolute; top: 50%; right: 10px; width: auto; margin-top: -8px; }
html.app-phone-zoom #rcBody td.dx-chev { display: none; }
html.app-phone-zoom #clBody .dx-ib:active { background: var(--ph-press) !important; }
/* editor receptu: súčty (Herbs, hmotnosť, cena) iba ako text v jednom riadku, nie ako polia */
html.app-phone-zoom .rx-top { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
html.app-phone-zoom .rx-name-card { grid-column: 1 / -1; padding: 0; border: 0; background: none; box-shadow: none; }
html.app-phone-zoom .rx-name-card label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--ph-label); }
html.app-phone-zoom #rxDaysSeg .nf-thumb, html.app-phone-zoom #rxDaysBtn { display: none; }   /* telefón: prepínač dní ako vo formulári (3, 7, 10, 14, Own) */
html.app-phone-zoom .rx-days-card { grid-column: 1 / -1; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.app-phone-zoom .rx-kpi { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; justify-content: flex-start; gap: 2px; }
html.app-phone-zoom .rx-kpi span { font-size: 12px; color: var(--ph-muted); }
html.app-phone-zoom .rx-kpi b { font-size: 19px; }
html.app-phone-zoom #recipeEditor .dx-card:has(#rxWrap) { border: 0; background: none; box-shadow: none; }
/* telefón: ponuka našepkávača (klient, bylina) s väčšími riadkami na ťuknutie prstom (v12.22) */
html.app-phone-zoom .oc-menu { max-width: calc(100vw - 24px); padding: 4px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html.app-phone-zoom .oc-item { display: flex; align-items: center; min-height: 44px; padding: 0 14px; box-sizing: border-box; font-size: 16px; -webkit-user-select: none; -webkit-touch-callout: none; }
html.app-phone-zoom .oc-item + .oc-item { border-top: 1px solid var(--ph-sep); border-radius: 0; }
html.app-phone-zoom .oc-item:active { background: var(--ph-press); }
/* telefón: chybné pole (duplicitná bylina, dávka nad zásobu, chýbajúci údaj) ostáva červené aj v novom vzhľade */
html.app-phone-zoom .table-section input.duplicate-error, html.app-phone-zoom .table-section input.invalid-error,
html.app-phone-zoom body.dark-theme .table-section td input.duplicate-error, html.app-phone-zoom body.dark-theme .table-section td input.invalid-error {
  background: #fff6f5 !important; border-color: #ff3b30 !important; box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15) !important; color: #c0392b !important; }
html.app-phone-zoom body.dark-theme .table-section td input.duplicate-error, html.app-phone-zoom body.dark-theme .table-section td input.invalid-error { background: rgba(255, 69, 58, 0.18) !important; color: #ff8a80 !important; }
html.app-phone-zoom .left-panel .info-table input.input-error, html.app-phone-zoom .left-panel .info-table input.invalid-error,
html.app-phone-zoom body.dark-theme .left-panel .info-table input.input-error, html.app-phone-zoom body.dark-theme .left-panel .info-table input.invalid-error { border-color: #ff3b30 !important; box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15) !important; background: #fff6f5 !important; }
html.app-phone-zoom body.dark-theme .left-panel .info-table input.input-error, html.app-phone-zoom body.dark-theme .left-panel .info-table input.invalid-error { background: rgba(255, 69, 58, 0.14) !important; }
/* profil: otvorené menu = tlačidlo ostane sivo podfarbené (ako v Internal Systeme); položky menu bez modrého rámika po kliknutí */
.nav-profile[aria-expanded="true"], body.dark-theme .nav-profile[aria-expanded="true"] { background: var(--hover); }
.nav-menu-item:focus, .nav-menu-item:focus-visible { outline: none; }
.nav-menu-item:focus-visible { background: var(--hover); }

/* =====================================================================
   FORMULÁR: riadok súčtov a automatické polia klienta (v12.00, Tomáš)
   Súčty sa vypĺňajú samé, preto vyzerajú ako sivé automatické polia bylín (bez okraja), nie ako biele polia na písanie:
   rovnaká výška a zaoblenie ako polia bylín, sivé písmo ako napr. Available stock. Všetkých päť buniek má rovnakú farbu
   (symetria); celkovú cenu odlišuje iba tmavomodré tučné písmo a tučnejší nadpis (tmavá výplň pôsobila ako tlačidlo).
   Polia klienta (Street, Postal and City …) majú na svetlomodrom pozadí rovnaký kontrast ako sivé polia bylín na bielom
   (#f4f7fa na #ffffff = 1,075; #e4ebf3 na #eef3f8 = 1,07); sú o odtieň svetlejšie (#e7edf4) ako bunky súčtov, lebo veľká plocha
   piatich širokých polí pôsobí opticky tmavšie (Tomáš). Svetlomodré pozadie ostáva. Iba počítač a tablet; telefón má vlastný vzhľad.
   ===================================================================== */
html:not(.app-phone-zoom) .info-table input[readonly] { background-color: #e7edf4; border-color: transparent; }
html:not(.app-phone-zoom) .footer-table th { font-size: 12px; font-weight: 600; color: var(--ds-muted); }
html:not(.app-phone-zoom) .footer-table th:last-child { font-weight: 700; color: var(--primary); }
html:not(.app-phone-zoom) .footer-val, html:not(.app-phone-zoom) .footer-val.highlight { box-sizing: border-box; height: 38px; min-width: 120px; padding: 0 16px;
  background-color: #e4ebf3; border: 0; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; color: #636e72; font-variant-numeric: tabular-nums; }
html:not(.app-phone-zoom) .footer-val.highlight { font-weight: 800; color: var(--primary); }
/* tmavý režim */
html:not(.app-phone-zoom) body.dark-theme .info-table input[readonly] { background-color: rgba(255, 255, 255, 0.06) !important; border-color: transparent !important; }
html:not(.app-phone-zoom) body.dark-theme .footer-table th { color: var(--ds-muted) !important; }
html:not(.app-phone-zoom) body.dark-theme .footer-table th:last-child { color: #ffffff !important; }
html:not(.app-phone-zoom) body.dark-theme .footer-val, html:not(.app-phone-zoom) body.dark-theme .footer-val.highlight { background: rgba(255, 255, 255, 0.06) !important; border: 0 !important; box-shadow: none !important; color: #cbd0d8 !important; }
html:not(.app-phone-zoom) body.dark-theme .footer-val.highlight { color: #ffffff !important; }

/* PRÍSTUPNOSŤ ÚVODNEJ STRÁNKY (WCAG 2.1 AA): bez zmeny bežného vzhľadu */
/* odkaz „Preskočiť na obsah“ je skrytý, ukáže sa iba pri ovládaní klávesnicou (Tab) */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 30000; padding: 10px 18px; border-radius: 980px;
  background: var(--apple-text); color: #ffffff; font-size: 14px; font-weight: 700; text-decoration: none;
  transform: translateY(-200%); pointer-events: auto;
}
.skip-link:focus { transform: none; }
/* zameranie klávesnicou: modrý obrys iba pri Tab, myšou sa nič nemení */
#landing-page :is(a, button, [role="button"], [role="link"]):focus-visible,
#doc-modal :is(a, button):focus-visible,
#login-overlay button:focus-visible { outline: 2px solid var(--apple-blue); outline-offset: 3px; }
.site-footer :is(a, button):focus-visible { outline-color: #ffffff !important; }
#obsah:focus, #landing-page [tabindex="-1"]:focus, .doc-modal-content:focus, .login-box:focus { outline: none; }
/* menej pohybu, keď si to človek nastaví v systéme */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #landing-page *, #landing-page *::before, #landing-page *::after, #doc-modal *, #login-overlay, #login-overlay * {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  #landing-page .gradient-sphere { animation: none !important; }
  #landing-page :is(.modern-card, .flow-step-item, .doc-compact-card, .btn-hero-primary, .btn-hero-secondary, .hamburger-btn, .btn-nav-login):hover { transform: none; }
}

/* ---- Order history: červený výkričník (v13.02) v medzere medzi stavom a tromi bodkami; šírky stĺpcov sa nemenia ---- */
.history-row td.hist-st { position: relative; }
.hist-issue { position: absolute; top: 50%; right: -11.5px; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%; color: #d92d20; display: flex; align-items: center; justify-content: center; cursor: help; outline: none; z-index: 1; }
.hist-issue:focus-visible { box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.25); }
body.dark-theme .hist-issue { color: #ff6b5e; }
.hist-tip > b + p + b, .hist-tip p + b { display: block; margin-top: 10px; color: #d92d20; }
body.dark-theme .hist-tip p + b { color: #ff6b5e; }
html.app-phone-zoom .history-row td.hist-st { align-items: center; gap: 6px; }
html.app-phone-zoom .hist-issue { position: static; margin: 0; order: -1; }

/* =========================================================================
   DETAIL OBJEDNÁVKY V ORDER HISTORY (od v13.09): čistý vzhľad podľa aplikácie Master, pre počítač
   sivé pozadie okna, biele zaoblené skupiny bez rámčeka. Písmo: riadky 15 px, nadpisy skupín 17 px / 600, meno a suma 24 px / 700,
   hlavička tabuľky 13 px. Byliny = tabuľka cez celú šírku (dlhý recept nerozbije rozloženie), pod ňou mriežka 2 × 2.
   ========================================================================= */
#orderDetail {
  --o-bg: #f2f2f7; --o-card: #ffffff; --o-ink: #1d1d1f; --o-muted: #6e6e73; --o-line: rgba(60, 60, 67, 0.12);
  --o-ico: #e9e9ee; --o-blue: #0071e3; --o-red: #d70015; --o-bar: rgba(242, 242, 247, 0.8);
  --o-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
body.dark-theme #orderDetail {
  --o-bg: #121316; --o-card: #1f2125; --o-ink: #f1f2f4; --o-muted: #98a1ae; --o-line: rgba(255, 255, 255, 0.08);
  --o-ico: #2a2d33; --o-blue: #5aa9ff; --o-red: #ff6961; --o-bar: rgba(18, 19, 22, 0.8);
}
html.ohd-lock, html.ohd-lock body { overflow: hidden; }
.ohd-wrap { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.ohd-wrap[hidden] { display: none; }
.ohd-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 0.2s ease; }
.ohd-panel { position: relative; display: flex; flex-direction: column; width: 1080px; max-width: 100%; max-height: min(900px, 100%); border-radius: 22px; background: var(--o-bg); color: var(--o-ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04); overflow: hidden;
  opacity: 0; transform: scale(0.97) translateY(6px); transition: opacity 0.2s var(--o-ease), transform 0.26s var(--o-ease); }
.ohd-wrap.on .ohd-dim { opacity: 1; }
.ohd-wrap.on .ohd-panel { opacity: 1; transform: none; }
body.dark-theme .ohd-dim { background: rgba(0, 0, 0, 0.55); }
body.dark-theme .ohd-panel { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* horná lišta: priesvitná, obsah pod ňou prechádza */
.ohd-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px 14px 28px;
  background: var(--o-bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.ohd-bar h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--o-ink); font-variant-numeric: tabular-nums; }
.ohd-close { flex-shrink: 0; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--o-ico); color: var(--o-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color 0.15s ease, transform 0.1s ease; }
.ohd-close:hover { color: var(--o-ink); }
.ohd-close:active { transform: scale(0.94); }
.ohd-close:focus-visible, .ohd-act:focus-visible { outline: 2px solid var(--o-blue); outline-offset: 2px; }
.ohd-body { flex: 1; min-height: 0; overflow-y: auto; padding: 64px 28px 28px; overscroll-behavior: contain; scrollbar-width: thin; }

/* hlavička: meno a stav vľavo, suma vpravo, jedna veľkosť */
.ohd-hero { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-radius: 18px; background: var(--o-card); }
.ohd-name { min-width: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--o-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ohd-big { margin-left: auto; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--o-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ohd-pill { flex-shrink: 0; display: inline-flex; padding: 4px 11px; border-radius: 999px; background: var(--o-ico); font-size: 13px; font-weight: 600; color: var(--o-muted); }
.ohd-pill.st-unpaid { background: #fdf1e4; color: #b85c00; } .ohd-pill.st-preparation { background: #f1eefc; color: #4b2bb3; } .ohd-pill.st-mixed { background: #f1eefc; color: #4b2bb3; }
.ohd-pill.st-unsent { background: #f1eefc; color: #4b2bb3; } .ohd-pill.st-indelivery { background: #e9f2fc; color: #0a63b8; } .ohd-pill.st-finished { background: #e8f6ec; color: #138a3e; } .ohd-pill.st-expired, .ohd-pill.st-cancelled { background: #f1f2f4; color: #5f6b7a; }
body.dark-theme .ohd-pill.st-unpaid { background: rgba(255, 159, 10, 0.16); color: #ffb35c; } body.dark-theme .ohd-pill.st-preparation { background: rgba(150, 120, 255, 0.18); color: #b39bff; }
body.dark-theme .ohd-pill.st-mixed, body.dark-theme .ohd-pill.st-unsent { background: rgba(150, 120, 255, 0.18); color: #b39bff; }
body.dark-theme .ohd-pill.st-indelivery { background: rgba(10, 132, 255, 0.18); color: #6cb4ff; }
body.dark-theme .ohd-pill.st-finished { background: rgba(48, 209, 88, 0.16); color: #6fd3a0; }
body.dark-theme .ohd-pill.st-expired, body.dark-theme .ohd-pill.st-cancelled { background: rgba(255, 255, 255, 0.08); color: #8f959e; }

/* chybné údaje: jeden riadok */
.ohd-issue { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 18px; border-radius: 14px; background: #fff2f1; color: #b3261e; font-size: 15px; }
.ohd-issue svg { flex-shrink: 0; color: var(--o-red); }
body.dark-theme .ohd-issue { background: #3c1f1d; color: #ff9d96; }

/* akcie: biele tlačidlá s modrým textom (Zrušiť červené), nedostupné bledé */
.ohd-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ohd-act { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--o-card); color: var(--o-blue);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color 0.15s ease, transform 0.1s ease; }
.ohd-act svg { flex-shrink: 0; }
.ohd-act:hover:not(:disabled) { background: color-mix(in srgb, var(--o-card) 92%, var(--o-blue)); }
.ohd-act:active:not(:disabled) { transform: scale(0.97); }
.ohd-act.danger { color: var(--o-red); }
.ohd-act.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--o-card) 92%, var(--o-red)); }
.ohd-act:disabled { opacity: 0.4; cursor: not-allowed; }

/* skupiny */
.ohd-sec h3 { margin: 24px 4px 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.2px; color: var(--o-ink); }
.ohd-group { border-radius: 18px; background: var(--o-card); overflow: hidden; }
.ohd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.ohd-kv { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 18px; font-size: 15px; }
.ohd-kv + .ohd-kv::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; border-top: 1px solid var(--o-line); }
.ohd-kv > span:first-child { flex-shrink: 0; color: var(--o-muted); }
.ohd-kv > span:last-child { min-width: 0; text-align: right; color: var(--o-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ohd-kv.total > span { font-weight: 600; color: var(--o-ink); }
.ohd-kv.bad > span { color: var(--o-red); }
.ohd-kv a { color: var(--o-blue); text-decoration: none; }
.ohd-kv a:hover { text-decoration: underline; }

/* tabuľka bylín */
.ohd-tablewrap { overflow-x: auto; }
.ohd-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.ohd-table th { padding: 12px 16px 10px; font-size: 13px; font-weight: 600; color: var(--o-muted); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--o-line); }
.ohd-table td { padding: 11px 16px; color: var(--o-ink); border-top: 1px solid var(--o-line); white-space: nowrap; }
.ohd-table tbody tr:first-child td { border-top: 0; }
.ohd-table .r { text-align: right; white-space: nowrap; }
.ohd-table td.b { font-weight: 600; }
.ohd-table tfoot td { font-weight: 600; border-top: 1px solid var(--o-line); }
.ohd-table tbody tr:hover td { background: color-mix(in srgb, var(--o-card) 97%, var(--o-ink)); }

.ohd-note { padding: 18px 20px; border-radius: 18px; background: var(--o-card); color: var(--o-muted); font-size: 15px; }
.ohd-spin { display: flex; justify-content: center; padding: 120px 0; animation: ohdSpinIn 0.2s ease 0.25s both; }
@keyframes ohdSpinIn { from { opacity: 0; } }
.ohd-spin span { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--o-line); border-top-color: var(--o-muted); animation: ohdSpin 0.8s linear infinite; }
@keyframes ohdSpin { to { transform: rotate(360deg); } }

/* úzke okno (tablet, telefón): skupiny pod sebou */
@media (max-width: 820px) {
  .ohd-wrap { padding: 12px; }
  .ohd-grid { grid-template-columns: minmax(0, 1fr); }
  .ohd-body { padding: 60px 16px 20px; }
  .ohd-bar { padding-left: 20px; }
  .ohd-hero { flex-wrap: wrap; padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ohd-panel { transform: none !important; transition: opacity 0.15s ease; }
}
@media (prefers-reduced-transparency: reduce) {
  .ohd-bar { background: var(--o-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* okno klienta: začiarknutie „Delivery address differs from billing address“ a polia doručovacej adresy */
#addClientModal .cm-dlv-toggle { display: flex; align-items: center; gap: 10px; margin: 2px 2px 0; font-size: 13.5px; font-weight: 500; color: #3a3a3c; cursor: pointer; user-select: none; -webkit-user-select: none; }
#addClientModal .cm-dlv-toggle input { -webkit-appearance: none; appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; border: 1.5px solid #b9c3cf; border-radius: 6px; background: #ffffff; cursor: pointer;
  display: grid; place-content: center; transition: background-color .2s ease, border-color .2s ease, transform .1s ease; }
#addClientModal .cm-dlv-toggle input::after { content: ""; width: 5px; height: 10px; border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform .18s cubic-bezier(0.32, 0.72, 0, 1); }
#addClientModal .cm-dlv-toggle input:hover { border-color: #0071e3; }
#addClientModal .cm-dlv-toggle input:active { transform: scale(0.92); }
#addClientModal .cm-dlv-toggle input:checked { background: #0071e3; border-color: #0071e3; }
#addClientModal .cm-dlv-toggle input:checked::after { transform: rotate(45deg) scale(1); }
#addClientModal .cm-dlv-toggle input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18); }
/* polia doručovacej adresy sa plynulo rozbalia (výška 0 → obsah); zbalené nezaberajú ani medzeru */
#addClientModal .cm-dlv { display: grid; grid-template-rows: 0fr; margin-top: -10px; opacity: 0; transition: grid-template-rows .3s cubic-bezier(0.32, 0.72, 0, 1), margin-top .3s cubic-bezier(0.32, 0.72, 0, 1), opacity .2s ease; }
#addClientModal .cm-dlv.is-open { grid-template-rows: 1fr; margin-top: 0; opacity: 1; }
#addClientModal .cm-dlv-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 4px; margin: -4px; }
#addClientModal.cm-noanim .cm-dlv { transition: none; }
@media (prefers-reduced-motion: reduce) { #addClientModal .cm-dlv { transition: opacity .15s ease; } }
/* okno klienta nikdy nepresiahne obrazovku: nadpis a tlačidlá ostávajú, posúvajú sa iba polia v okne */
#addClientModal.modal-overlay { padding: 16px; box-sizing: border-box; overscroll-behavior: contain; }
#addClientModal .modal-content.cm-card { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
#addClientModal .cm-head, #addClientModal .cm-foot { flex-shrink: 0; }
#addClientModal .cm-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: box-shadow .2s ease; }
#addClientModal .cm-card.cm-scroll-top .cm-body { box-shadow: inset 0 1px 0 #ececf0; }
#addClientModal .cm-card.cm-scroll-more .cm-foot { box-shadow: 0 -1px 0 #ececf0; }
body.dark-theme #addClientModal .cm-card.cm-scroll-top .cm-body { box-shadow: inset 0 1px 0 #38383a; }
body.dark-theme #addClientModal .cm-card.cm-scroll-more .cm-foot { box-shadow: 0 -1px 0 #38383a; }
html.cm-open, html.cm-open body { overflow: hidden !important; }
#addClientModal .cm-pickup-info { margin: 0 2px; }
body.dark-theme #addClientModal .cm-dlv-toggle { color: #e1e3e6; }
body.dark-theme #addClientModal .cm-dlv-toggle input:not(:checked) { background: #2e3138; border-color: #555a66; }

/* ===== Okno Review order pred odoslaním objednávky (v14.06, variant C4) =====
   Malé biele okno: hore názov receptu, veľká celková suma a sivé štítky (počet bylín, hmotnosť, dni),
   pod tým sivá karta Delivery (údaje pre kuriéra: popis vľavo sivý, hodnota vpravo tučná, čiary pri okraji textu), dole tlačidlá. */
#confirmModal { --ro-surface: #ffffff; --ro-card: #f5f5f7; --ro-line: #d2d2d7; --ro-ink: #1d1d1f; --ro-ink-2: #86868b; --ro-blue: #0071e3; --ro-blue-soft: rgba(0, 113, 227, 0.09);
  padding: 24px 16px; box-sizing: border-box; }
body.dark-theme #confirmModal { --ro-surface: #1f2229; --ro-card: #2a2d35; --ro-line: rgba(255, 255, 255, 0.12); --ro-ink: #f2f2f7; --ro-ink-2: #98989f; --ro-blue: #4ea1ff; --ro-blue-soft: rgba(78, 161, 255, 0.15); }
#confirmModal .modal-content.ro-card { width: 100%; max-width: 480px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; padding: 0; border: 0; border-radius: 18px;
  background: var(--ro-surface) !important; color: var(--ro-ink) !important; box-shadow: 0 30px 70px rgba(13, 32, 54, 0.22), 0 2px 8px rgba(13, 32, 54, 0.06) !important;
  text-align: left; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif; box-sizing: border-box;
  transform: scale(0.97) translateY(8px); transition: transform 0.18s ease; }
body.dark-theme #confirmModal .modal-content.ro-card { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55) !important; }
#confirmModal.active .modal-content.ro-card { transform: none; transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1); }
#confirmModal .ro-card * { box-sizing: border-box; }

/* hore: recept, suma, štítky */
#confirmModal .ro-top { padding: 28px 24px 22px; text-align: center; }
#confirmModal .ro-recipe { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.35; color: var(--ro-ink) !important; overflow-wrap: anywhere; }
#confirmModal .ro-tag { display: inline-flex; align-items: center; flex-shrink: 0; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--ro-blue-soft); color: var(--ro-blue); font-size: 12px; font-weight: 600; }
#confirmModal .ro-sum { margin-top: 4px; font-size: 44px; font-weight: 700; letter-spacing: -1px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
#confirmModal .ro-chips { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
#confirmModal .ro-chips span { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--ro-card); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* karta Delivery */
#confirmModal .ro-body { padding: 0 24px 4px; }
#confirmModal .ro-lbl { margin: 0 0 8px 18px; font-size: 14px; font-weight: 700; color: var(--ro-ink-2); }
#confirmModal .ro-gcard { background: var(--ro-card); border-radius: 16px; padding: 0 18px; }
#confirmModal .ro-r { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; font-size: 14px; line-height: 1.4; border-bottom: 1px solid var(--ro-line); font-variant-numeric: tabular-nums; }
#confirmModal .ro-r:last-child { border-bottom: 0; }
#confirmModal .ro-r span:first-child { flex-shrink: 0; font-weight: 600; color: var(--ro-ink-2); white-space: nowrap; }
#confirmModal .ro-r span:last-child { min-width: 0; font-weight: 700; color: var(--ro-ink); text-align: right; overflow-wrap: anywhere; }
@media (min-resolution: 2dppx) { #confirmModal .ro-r { border-bottom-width: 0.5px; } }

/* tlačidlá */
#confirmModal .ro-foot { display: flex; gap: 10px; padding: 20px 24px 24px; }
#confirmModal .ro-foot .btn { flex: 1; min-width: 0; height: 44px; }

@media (max-width: 768px) {
  #confirmModal { padding: 12px; }
  #confirmModal .modal-content.ro-card { max-width: 480px !important; width: 100% !important; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  #confirmModal .ro-top { padding: 24px 16px 20px; }
  #confirmModal .ro-body { padding: 0 16px 4px; }
  #confirmModal .ro-lbl { margin-left: 14px; }
  #confirmModal .ro-gcard { padding: 0 14px; }
  #confirmModal .ro-foot { padding: 18px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #confirmModal .modal-content.ro-card, #confirmModal.active .modal-content.ro-card { transform: none; transition: none; }
}

/* Recipes a Clients: tlačidlá s ikonou v riadkoch majú rovnaký hover ako tlačidlá v New order
   (iba tmavší sivý rámik, bez podfarbenia a farby ikony; pri kliknutí jemne stlačené); kôš ostáva červený, ale s rámikom */
html:not(.app-phone-zoom) .dx-ib { transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease; }
html:not(.app-phone-zoom) .dx-ib:hover { background: var(--dx-surface); color: var(--dx-ink-2); border-color: #a1a1a6; }
html:not(.app-phone-zoom) body.dark-theme .dx-ib:hover { border-color: #6c7383; }
html:not(.app-phone-zoom) .dx-ib:active { transform: scale(.95); transition-duration: .08s; }
html:not(.app-phone-zoom) .dx-ib.del:hover, html:not(.app-phone-zoom) body.dark-theme .dx-ib.del:hover { background: var(--dx-bad-soft); color: var(--dx-bad); border-color: color-mix(in srgb, var(--dx-bad) 45%, var(--dx-line)); }

/* Recipes a Clients: rovnaká výška riadkov a bočný okraj ako Order history (riadok 59 px, nadpisy 34,5 px, okraj 32 px) */
html:not(.app-phone-zoom) :is(table:has(> #rcBody), table:has(> #clBody)) th { line-height: normal; }
html:not(.app-phone-zoom) :is(#rcBody, #clBody) td { height: 59px; padding-top: 0; padding-bottom: 0; }
html:not(.app-phone-zoom) :is(table:has(> #rcBody), table:has(> #clBody)) tr > :first-child { padding-left: 32px; }
html:not(.app-phone-zoom) :is(table:has(> #rcBody), table:has(> #clBody)) tr > :last-child { padding-right: 32px; }
/* Recipes: rovnaká voľná medzera 96 px medzi hodnotami (nie medzi pravými okrajmi) aj pred tlačidlami;
   šírka stĺpca = bežná šírka hodnoty + 96 px (merané na hodnotách 7, 0, 7,9 g, 4,15 €) */
html:not(.app-phone-zoom) table:has(> #rcBody) .num { padding-left: 0; padding-right: 0; }
html:not(.app-phone-zoom) #rcBody td.dx-cell-act { padding-left: 96px; }

/* Ordering System: jednotná farba hoveru riadkov tabuliek a tlačidiel v navigačnom paneli (iba svetlý režim) */
body:not(.dark-theme) .nav-btn:not(.on):hover,
body:not(.dark-theme) .history-row.filled-row:not(.email-failed):hover td,
body:not(.dark-theme) .dx-table tbody tr.click:hover td,
body:not(.dark-theme) .ohd-table tbody tr:hover td { background: #F5F5F7; }
/* záložky (Saved recipes / Sent recipes a podobné): hover neaktívnej záložky ako riadky a navigácia */
body:not(.dark-theme) .dx-seg button:not(.on):hover { background: #F5F5F7; }
body.dark-theme .dx-seg button:not(.on):hover { background: rgba(255, 255, 255, 0.07); }

/* Recipes, Clients, New recipe: tiene kariet na rovnakej úrovni vždy POD všetkými kartami (nikdy cez susednú kartu).
   Tieň je v ::before so z-index -1 vnútri .dx-page (izolovaná vrstva), takže sa kreslí pred pozadiami všetkých kariet.
   Rozbaľovacie zoznamy majú vlastný z-index, ostávajú nad kartami. */
html:not(.app-phone-zoom) .dx-overlay .dx-page { isolation: isolate; }
html:not(.app-phone-zoom) .dx-overlay .dx-page .dx-card { position: relative; box-shadow: none; }
html:not(.app-phone-zoom) .dx-overlay .dx-page .dx-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--sh-card); z-index: -1; pointer-events: none; }

/* Okno receptu (v14.71): riadok s tlačidlami má výšku ako panel v Recipes (38 px), Total price vpravo,
   pod tabuľkou bylín trochu viac miesta, Save recipe sivé, kým nie je čo uložiť (ako Send order vo formulári) */
html:not(.app-phone-zoom) #recipeEditor .rx-toolbar { min-height: 38px; }
html:not(.app-phone-zoom) #recipeEditor .rx-kpi { align-items: flex-end; text-align: right; }
html:not(.app-phone-zoom) #recipeEditor #rxWrap { padding-bottom: 22px !important; }
#recipeEditor #rxSave:disabled, #recipeEditor #rxSave:disabled:hover { background: #e8e8ed !important; border-color: #e8e8ed !important; color: #8e8e93 !important; box-shadow: none !important; cursor: default; opacity: 1; }
body.dark-theme #recipeEditor #rxSave:disabled, body.dark-theme #recipeEditor #rxSave:disabled:hover { background: #3a3a3c !important; border-color: #3a3a3c !important; color: #8e8e93 !important; }
/* otvorené Recipes / Clients / okno receptu: lišta plne nepriehľadná – inak cez ňu presvitá rozmazaný formulár objednávky
   (šmuhy pri spodnom okraji lišty); okná začínajú pod lištou, takže pod ňou nič neroluje (v14.71) */
html:has(.dx-overlay.active) .app-nav-bar { background: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none; }
html:has(.dx-overlay.active) body.dark-theme .app-nav-bar { background: #25282f; }
/* okno receptu: nadpisy kariet ako nadpisy polí vo formulári New order a nadpisy stĺpcov (12,5 px, 800, sivé),
   odsadené o 13 px – zarovnané s textom v poli pod nimi; Total price vpravo nad sumou (v14.75) */
html:not(.app-phone-zoom) #recipeEditor .rx-name-card label,
html:not(.app-phone-zoom) #recipeEditor .rx-card-l,
html:not(.app-phone-zoom) #recipeEditor .rx-kpi span { font-size: 12.5px; font-weight: 600; color: var(--lab); letter-spacing: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, sans-serif; }
html:not(.app-phone-zoom) #recipeEditor .rx-name-card label,
html:not(.app-phone-zoom) #recipeEditor .rx-card-l { padding-left: 13px; }

/* v14.80: hlavičky zoznamov (Order history, Clients, Recipes, detail objednávky) – 12,5 px, 600, rovnaká sivá ako popisy polí #86868b (tmavý režim #98989d) */
.history-table th, .dx-table th, .ohd-table th { font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: #86868b !important; }
body.dark-theme .history-table th, body.dark-theme .dx-table th, body.dark-theme .ohd-table th { color: #98989d !important; }
/* v14.93: potvrdzovacie okná (Duplicate Recipe, Delete) väčšie – širšie, väčší nadpis a text, viac vzduchu */
.modal-content.dx-dlg[role="alertdialog"] { max-width: 500px; padding: 30px 30px 26px; border-radius: 20px; }
.modal-content.dx-dlg[role="alertdialog"] h3 { font-size: 22px; margin-bottom: 10px; }
.modal-content.dx-dlg[role="alertdialog"] p { font-size: 15.5px; line-height: 1.5; }
.modal-content.dx-dlg[role="alertdialog"] .dx-dlg-foot { margin-top: 26px; }

/* =======================================
   UPOZORNENIA a IMPORTANT CHANGES (v15.89): rovnaké okno ako VOP a GDPR (tmavé pozadie, biela karta, krížik vpravo hore),
   užšie a usporiadané ako „What's New“ v aplikáciách Apple (nadpis Important changes): logo, nadpis, body s ikonou, Continue
======================================= */
#nt-modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.72); z-index: 24000;
  display: flex; justify-content: center; align-items: flex-start; padding: 60px 16px; box-sizing: border-box;
  opacity: 0; visibility: hidden; overflow-y: auto; overscroll-behavior: contain;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
#nt-modal.active { opacity: 1; visibility: visible; transition: opacity 0.28s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
#nt-modal.active .doc-modal-content { transform: none; opacity: 1; transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease-out; }
#nt-modal .nt-card { max-width: 560px; padding: 52px 48px 30px; outline: none; color: #1d1d1f; }
#nt-modal .nt-head { text-align: center; margin: 0 0 30px; }
#nt-modal .nt-hero { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: #ececf0; color: #1d1d1f; }
#nt-modal h1 { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: #1d1d1f; }
#nt-modal .nt-kicker { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: #6e6e73; }
#nt-modal .nt-lead { max-width: 420px; margin: 14px auto 0; font-size: 15.5px; line-height: 1.5; color: #3a3a3c; }
#nt-modal .nt-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.45; font-weight: 500; color: #86868b; }
#nt-modal .nt-compare { margin: 0 0 32px; border-radius: 16px; background: #f5f5f7; overflow: hidden; }
#nt-modal .nt-row { display: flex; gap: 16px; padding: 16px 18px; align-items: baseline; }
#nt-modal .nt-row + .nt-row { border-top: 1px solid #e3e3e8; }
#nt-modal .nt-row p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #6e6e73; }
#nt-modal .nt-now p { color: #1d1d1f; font-weight: 600; }
#nt-modal .nt-tag { flex: 0 0 56px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #86868b; }
#nt-modal .nt-now .nt-tag { color: #1d1d1f; }
#nt-modal .nt-list { display: flex; flex-direction: column; gap: 26px; padding: 0 4px; }
#nt-modal .nt-feat { display: flex; gap: 18px; align-items: flex-start; }
#nt-modal .nt-ico { flex: 0 0 30px; display: flex; justify-content: center; padding-top: 1px; color: #1d1d1f; }
#nt-modal .nt-feat h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -0.012em; color: #1d1d1f; }
#nt-modal .nt-feat p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #6e6e73; }
#nt-modal .nt-go { display: block; width: 100%; margin-top: 34px; height: 50px; font-size: 16px; border-radius: 14px; }
#nt-modal .nt-ver { margin: 14px 0 0; text-align: center; font-size: 12px; color: #aeaeb2; }
#nt-modal .nt-back { display: inline-flex; align-items: center; gap: 2px; margin: -18px 0 8px -6px; padding: 6px 8px; border: 0; border-radius: 10px; background: none; color: #1d1d1f; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
#nt-modal .nt-back:hover { background: #f5f5f7; }
#nt-modal .nt-head-list { text-align: left; margin-bottom: 22px; }
#nt-modal .nt-items { display: flex; flex-direction: column; gap: 10px; }
#nt-modal .nt-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 16px 16px 18px; border: 0; border-radius: 16px; background: #f5f5f7; color: #1d1d1f; text-align: left; font: inherit; cursor: pointer; transition: background-color 0.15s ease; }
#nt-modal .nt-item:hover { background: #ececf0; }
#nt-modal .nt-item:active { transform: scale(0.99); }
#nt-modal .nt-item svg { flex-shrink: 0; color: #aeaeb2; }
#nt-modal .nt-item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#nt-modal .nt-item b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
#nt-modal .nt-date { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: #86868b; }
#nt-modal .nt-sum { font-size: 13.5px; line-height: 1.45; color: #6e6e73; }
#nt-modal .nt-new { padding: 1px 7px; border-radius: 6px; background: #1d1d1f; color: #fff; font-size: 11px; font-weight: 600; }
.nav-menu-item .nt-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: #1d1d1f; }
.nav-menu-item .nt-dot[hidden] { display: none; }
body.dark-theme #nt-modal .nt-card { background: #2c2f37; color: #f2f2f4; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 60px -12px rgba(0, 0, 0, 0.6); }
body.dark-theme #nt-modal .close-doc-btn { background: #3a3e48; color: #b0b3bb; }
body.dark-theme #nt-modal .close-doc-btn:hover { background: #454a55; color: #f2f2f4; }
body.dark-theme #nt-modal h1, body.dark-theme #nt-modal .nt-feat h3, body.dark-theme #nt-modal .nt-item { color: #f2f2f4; }
body.dark-theme #nt-modal .nt-feat p, body.dark-theme #nt-modal .nt-sum { color: #a1a1a6; }
body.dark-theme #nt-modal .nt-hero { background: #3a3e48; color: #f2f2f4; }
body.dark-theme #nt-modal .nt-ico, body.dark-theme #nt-modal .nt-now p, body.dark-theme #nt-modal .nt-now .nt-tag { color: #f2f2f4; }
body.dark-theme #nt-modal .nt-lead { color: #d1d1d6; }
body.dark-theme #nt-modal .nt-kicker, body.dark-theme #nt-modal .nt-row p, body.dark-theme #nt-modal .nt-tag { color: #a1a1a6; }
body.dark-theme #nt-modal .nt-compare, body.dark-theme #nt-modal .nt-item { background: #383c46; }
body.dark-theme #nt-modal .nt-row + .nt-row { border-top-color: #454955; }
body.dark-theme #nt-modal .nt-ver { color: #8e8e93; }
body.dark-theme #nt-modal .nt-item:hover { background: #41454f; }
body.dark-theme #nt-modal .nt-back { color: #f2f2f4; }
body.dark-theme #nt-modal .nt-back:hover { background: #383c46; }
body.dark-theme #nt-modal .nt-new { background: #f2f2f4; color: #1d1d1f; }
body.dark-theme .nav-menu-item .nt-dot { background: #f2f2f4; }
@media (max-width: 600px) {
  #nt-modal { padding: 40px 14px 30px; }
  #nt-modal .nt-card { padding: 40px 22px 24px !important; }
  #nt-modal h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  #nt-modal .doc-modal-content { transform: none !important; }
}
