
: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);
  --apple-card-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.12), 0 0 20px rgba(0, 0, 0, 0.02);
  --apple-card-hover: 0 38px 75px -10px rgba(0, 0, 0, 0.16), 0 0 25px rgba(0, 0, 0, 0.04);

  /* 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 4px 30px rgba(0, 0, 0, 0.03), 0 1px 0 rgba(0, 0, 0, 0.03);
  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: flex; flex-direction: row; align-items: center;
  padding: 0; border-radius: 25px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 44px; height: 44px; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  position: fixed; top: 14px; right: 60px; outline: none; z-index: 23000;
}
.hamburger-btn:hover { background: #e8e8ed; transform: scale(1.05); }
.hamburger-icon { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; width: 18px; height: 18px; position: relative; flex-shrink: 0; }
.hamburger-btn .bar { width: 18px; height: 2px; background-color: var(--apple-text); border-radius: 2px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); position: absolute; }
.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; padding: 0 18px; justify-content: space-between; }
.hamburger-btn.active:hover { transform: scale(1.02); background: #dcdce1; }
.hamburger-btn.active .bar { background-color: var(--apple-text); }
.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); }

.menu-text { font-size: 15px; font-weight: 800; color: #ffffff; opacity: 0; display: none; margin-bottom: -1px; }
.hamburger-btn.active .menu-text { color: var(--apple-text); display: block; opacity: 1; animation: fadeInText 0.4s ease forwards 0.1s; }
@keyframes fadeInText { from { opacity: 0; transform: translateX(5px); } to { opacity: 1; transform: translateX(0); } }

.drawer-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.75); z-index: 21500;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }

.side-drawer {
  position: fixed; top: 0; right: 0; width: 340px; max-width: 85vw; height: 100vh; 
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
  z-index: 22000; box-shadow: -10px 0 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; 
  padding: 100px 30px 40px; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box; border-left: 1px solid rgba(0,0,0,0.05);
}
.side-drawer.active { transform: translateX(0); }
.side-drawer a {
  font-size: 20px; font-weight: 800; color: var(--apple-text); padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  text-decoration: none; cursor: pointer; transition: all 0.2s ease; letter-spacing: -0.5px;
}
.side-drawer a:hover { color: var(--apple-blue); padding-left: 8px; }

.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 6px 20px rgba(0, 0, 0, 0.25);
}

.side-drawer .btn-nav-login {
  width: 100%;
  padding: 16px 20px !important;
  font-size: 15px !important;
  border-radius: 980px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.side-drawer .btn-nav-login:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.side-drawer .btn-nav-login.secondary { margin-top: 10px; background-color: transparent; color: var(--apple-text); border: 1.5px solid rgba(0, 0, 0, 0.16); }
.side-drawer .btn-nav-login.secondary:hover { background-color: #6e6e73; color: #ffffff; border-color: #6e6e73; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); }

/* 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 6px 20px rgba(0, 113, 227, 0.35); display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover {
  background: var(--apple-blue-hover); transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.45);
}
.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 2px 8px rgba(0,0,0,0.03); 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 6px 18px rgba(0,0,0,0.06);
}

/* 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 SEKCOVÝ BOX */
.contact-wrapper {
  display: flex; width: 100%; text-align: left; justify-content: center;
}
.contact-info-box {
  background: var(--apple-surface); padding: 36px 36px; border-radius: 24px; max-width: 520px; width: 100%;
  box-shadow: var(--apple-card-shadow); border: 1px solid var(--apple-border); text-align: center; box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-info-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--apple-card-hover);
}
.contact-pills-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 0;
}
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 980px;
  background: rgba(0, 113, 227, 0.08); color: var(--apple-blue); font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all 0.25s ease;
}
.contact-pill:hover {
  background: var(--apple-blue); color: #ffffff; transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

/* 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: 300px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 75px 20px max(24px, env(safe-area-inset-bottom)) 20px !important;
    box-sizing: border-box !important;
  }
  .side-drawer a {
    font-size: 17px !important;
    padding: 14px 0 !important;
  }
  .side-drawer .btn-nav-login {
    padding: 15px !important;
    font-size: 14.5px !important;
  }

  /* 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-wrapper {
    padding-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-info-box {
    padding: 30px 20px !important;
    border-radius: 22px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .contact-info-box h3 {
    font-size: 21px !important;
    margin-bottom: 8px !important;
  }
  .contact-pills-row {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
  }
  .contact-pill {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    padding: 12px 16px !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;
  }
  .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; }
  
.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 20px 50px rgba(0, 0, 0, 0.08); width: 340px; display: flex; flex-direction: column; align-items: center; border: 1px solid rgba(0,0,0,0.04); }
.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; }
/* 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; 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: 1px solid rgba(26,59,92,0.08); box-shadow: 0 4px 24px rgba(26,59,92,0.05); }
.app-nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; }
.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 .divider { width: 1px; height: 22px; background: rgba(26,59,92,0.15); margin: 0 4px; }
.app-nav-brand .product { 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 */
.app-content-wrapper { padding-top: calc(64px + 40px + env(safe-area-inset-top, 0px)) !important; }
html.nav-sandbox-on .app-content-wrapper { padding-top: calc(64px + 30px + 40px + 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: rgba(255,255,255,0.07); box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
body.dark-theme .app-nav-brand .brand { color: #ffffff; }
body.dark-theme .app-nav-brand .brand span { color: #a1a7b3; }
body.dark-theme .app-nav-brand .divider { background: rgba(255,255,255,0.14); }
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(26,59,92,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-brand .divider, .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-brand .brand, html.app-phone-zoom .app-nav-brand .divider, 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; 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; }
.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 { 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 { 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 { border-color: #a7b6c6; }
.info-table input:not([readonly]):focus, .info-table select:focus, .table-section .h-name:focus, .table-section .h-dose:focus { border-color: #0071e3; box-shadow: inset 0 0 0 0.5px #0071e3; }
  
.footer-section { background-color: var(--panel-bg); padding: 25px 30px; 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: #1a3b5c; --ds-pri-2: #2c5282; --ds-pri-ink: #ffffff;
  --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: #8fc1ff; --ds-pri-2: #b3d4ff; --ds-pri-ink: #10233a;
  --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-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 – rovnaký vzhľad ako Internal System (pozadie, karty s tieňom, tabuľky, tlačidlá) */
/* ------------------------------------- */
.dx-overlay, .modal-content.dx-dlg, .cd-panel {
  --dx-bg: #f4f7fb; --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: 0 0 0 3px color-mix(in srgb, var(--dx-acc) 18%, transparent); }
.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: 0 0 0 3px color-mix(in srgb, var(--dx-acc) 18%, transparent); }
.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 */
.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) repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rx-name-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.rx-name-card label, .rx-kpi span { 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; }
.rx-table td { padding: 7px 10px; }
.rx-table th { padding: 10px; }
.rx-table th:first-child, .rx-table td:first-child { padding-left: 16px; }
.rx-table .rx-name { min-width: 170px; }
.rx-table .rx-dose { width: 96px; text-align: right; font-variant-numeric: tabular-nums; }
.rx-table td.rx-trans { color: var(--dx-ink-2); font-size: 12.5px; min-width: 150px; }
.rx-table td.rx-line { font-weight: 600; }
.rx-table .rx-del { visibility: hidden; width: 30px; height: 30px; }
.rx-table tr.filled .rx-del { visibility: visible; }
.rx-table .dx-input.invalid-error, .rx-table .dx-input.duplicate-error { border: 1px solid var(--dx-bad) !important; background: var(--dx-bad-soft) !important; color: var(--dx-bad) !important; box-shadow: none !important; }
@media (max-width: 900px) { .rx-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rx-name-card { grid-column: 1 / -1; } }
@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 { 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; }
/* 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-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); }

.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); }
.cp-pay-btn:not(:disabled):not(.disabled)::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  animation: cpShine 3.4s ease-in-out infinite;
}
@keyframes cpShine {
  0% { left: -120%; }
  55%, 100% { left: 150%; }
}
.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 */
/* ------------------------------------- */
.header-with-search {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 30px !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.header-with-search .title-group { display: flex; align-items: center; gap: 15px; }
.header-with-search span { font-size: 26px; font-weight: 800; color: var(--text-light); letter-spacing: 0.5px; }
  
.btn-refresh {
  background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.4); color: #ffffff; border-radius: 20px; height: 34px; width: 34px;
  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;
}
.btn-refresh .icon-wrapper { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.btn-refresh svg { stroke: currentColor; transition: transform 0.5s ease; }
.btn-refresh:hover:not(.refreshing) { background: #ffffff; color: var(--primary); }
.btn-refresh:hover:not(.refreshing) svg { transform: rotate(180deg); }
.btn-refresh span.refresh-text { font-size: 13px; font-weight: 700; opacity: 0; white-space: nowrap; margin-left: 2px; transition: opacity 0.2s ease; display: none; }
.btn-refresh.refreshing { width: 130px; padding-right: 12px; background: rgba(255, 255, 255, 0.25); }
.btn-refresh.refreshing svg { animation: spin 1s linear infinite; }
.btn-refresh.refreshing span.refresh-text { opacity: 1; display: inline-block; }
  
.history-search-box { position: relative; display: flex; align-items: center; width: 280px; }
.history-search-box input {
  width: 100%; padding: 10px 16px 10px 42px; border-radius: 25px; border: 2px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.15);
  color: #ffffff; font-family: inherit; font-size: 14px; font-weight: 600; outline: none; transition: all 0.3s ease;
}
.history-search-box input::placeholder { color: rgba(255, 255, 255, 0.75); }
.history-search-box input:focus { background: #ffffff; color: var(--text-dark); border-color: #ffffff; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); }
.search-icon { position: absolute; left: 14px; stroke: rgba(255, 255, 255, 0.85); pointer-events: none; transition: stroke 0.3s ease; }
.history-search-box input:focus ~ .search-icon { stroke: var(--primary); }
.history-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; margin-top: 5px; min-width: 800px; 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; font-weight: 800; font-size: 13px; 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 { transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.015); }
.history-row.filled-row:hover { box-shadow: 0 6px 15px rgba(26, 59, 92, 0.08); }
.history-row.row-white td { background-color: #ffffff; }
.history-row.row-alt td { background-color: #f8fafc; }
.history-row td { padding: 10px 10px; box-sizing: border-box; font-size: 14.5px; font-weight: 600; color: var(--text-dark); vertical-align: middle; border-top: 1px solid #edf2f7; border-bottom: 1px solid #edf2f7; transition: background-color 0.2s ease; }
.history-row td:first-child { border-left: 1px solid #edf2f7; border-radius: 12px 0 0 12px; }
.history-row td:last-child { border-right: 1px solid #edf2f7; border-radius: 0 12px 12px 0; }
.history-row.filled-row:hover td { background-color: #f1f5f9; }
.history-row.empty-row { box-shadow: none; pointer-events: none; }
.history-row .hist-recipe { font-size: 12.5px; font-weight: 600; color: var(--text-muted, #64748b); margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }
  
.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 */
@media (max-width: 1180px) { .history-row .status-pill { font-size: 11px; 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 30px; 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: 0 0 0 1px #444854, 0 16px 40px rgba(0, 0, 0, 0.3) !important;
  border: none !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 {
  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: linear-gradient(135deg, #343740, #2b2d35) !important;
  border: none !important;
}
body.dark-theme .header-with-search span {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}
body.dark-theme .history-search-box input {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
body.dark-theme .history-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}
body.dark-theme .history-search-box input:focus {
  background: #2e3138 !important;
  border-color: #60a5fa !important;
  color: #ffffff !important;
}
body.dark-theme .search-icon {
  stroke: rgba(255, 255, 255, 0.75) !important;
}
body.dark-theme .history-search-box input:focus ~ .search-icon {
  stroke: #60a5fa !important;
}
body.dark-theme .btn-refresh {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
body.dark-theme .btn-refresh:hover {
  background: #3e424c !important;
  border-color: #565a67 !important;
}

/* 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;
}

/* Filled History Rows */
body.dark-theme .history-row.row-white td {
  background-color: #2e3137 !important;
  border-top-color: #3b3f49 !important;
  border-bottom-color: #3b3f49 !important;
  color: #ffffff !important;
}
body.dark-theme .history-row.row-alt td {
  background-color: #292c32 !important;
  border-top-color: #3b3f49 !important;
  border-bottom-color: #3b3f49 !important;
  color: #ffffff !important;
}
body.dark-theme .history-row td:first-child {
  border-left-color: #3b3f49 !important;
}
body.dark-theme .history-row td:last-child {
  border-right-color: #3b3f49 !important;
}
body.dark-theme .history-row.filled-row:hover td {
  background-color: #373a42 !important;
  border-top-color: #4f5462 !important;
  border-bottom-color: #4f5462 !important;
}
body.dark-theme .history-row.filled-row:hover td:first-child {
  border-left-color: #4f5462 !important;
}
body.dark-theme .history-row.filled-row:hover td:last-child {
  border-right-color: #4f5462 !important;
}
body.dark-theme .history-row td:nth-child(4),
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;
}

/* Empty Placeholder Rows (Exact solid 1px border matching filled rows, NO dashed/podkované lines) */
body.dark-theme .history-row.empty-row.row-white td {
  background-color: #282a30 !important;
  border-top-color: #33363e !important;
  border-bottom-color: #33363e !important;
}
body.dark-theme .history-row.empty-row.row-alt td {
  background-color: #25272c !important;
  border-top-color: #33363e !important;
  border-bottom-color: #33363e !important;
}
body.dark-theme .history-row.empty-row td:first-child {
  border-left-color: #33363e !important;
}
body.dark-theme .history-row.empty-row td:last-child {
  border-right-color: #33363e !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;
  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;
}
#doc-modal.active { opacity: 1; visibility: visible; }

.doc-modal-content {
  background-color: #ffffff; border-radius: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 10px 24px rgba(0, 0, 0, 0.08);
  width: 100%; max-width: 780px; padding: 45px 36px; position: relative;
  box-sizing: border-box; margin: auto;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overscroll-behavior: contain !important;
  overscroll-behavior-y: contain !important;
}
#doc-modal.active .doc-modal-content,
#payment-doc-modal.active .doc-modal-content {
  transform: translateY(0);
}

.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; }
}
.d1-test-pill { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2147483000; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #5b3fb5; color: #fff !important; font: 700 12.5px/1 'Inter', -apple-system, sans-serif; text-decoration: none !important; box-shadow: 0 6px 20px rgba(60, 30, 140, 0.35); }
.d1-test-pill .d1-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ef0b8; box-shadow: 0 0 0 3px rgba(158, 240, 184, 0.25); }
.d1-test-pill .d1-x { opacity: 0.7; font-size: 15px; margin-left: 2px; }

/* 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,
.history-row.filled-row:hover td,
.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;
  --sh-card: 0 1px 2px rgba(20, 34, 53, 0.04), 0 8px 24px rgba(20, 34, 53, 0.06);
  --sh-pop: 0 1px 2px rgba(20, 34, 53, 0.06), 0 12px 32px rgba(20, 34, 53, 0.14); }
body.dark-theme { --sel-bg: #1d2b40; --sel-fg: #5aa9ff; --sh-pop: 0 12px 32px rgba(0, 0, 0, 0.5); }
/* 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 { border-radius: var(--r-card); box-shadow: var(--sh-card); }
.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, .cd-card { border-radius: var(--r-card); }
.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; }

/* 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, .login-box .btn, #addClientModal .cm-btn { border-radius: 999px; }
.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 { padding-top: 32px; }

/* 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,
.history-search-box input:focus, .dx-input:focus, #addClientModal .info-table input: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 .dx-input: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), vzhľad ako v Internal Systeme */
.oc-pop { position: fixed; z-index: 30000; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 2px rgba(20, 34, 53, 0.06), 0 12px 32px rgba(20, 34, 53, 0.14); 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: 320px; max-width: 460px; overflow-y: auto; padding: 6px; }
.oc-group { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 700; color: #6b7a8f; text-transform: uppercase; letter-spacing: 0.4px; }
.oc-item { position: relative; padding: 8px 12px 8px 30px; border-radius: 10px; font-size: 14px; line-height: 1.35; 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.sel::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: #1a3b5c; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='black' stroke-width='1.8' 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 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.oc-item.dis { color: #6b7a8f; opacity: 0.55; cursor: default; }
body.dark-theme .oc-pop { background: #1f2228; border-color: #333843; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
body.dark-theme .oc-item { color: #eef0f3; } body.dark-theme .oc-item.act { background: rgba(255, 255, 255, 0.07); }
body.dark-theme .oc-item.sel::before { background: #8fc1ff; } body.dark-theme .oc-group { color: #98a1ae; }
@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; }
