[x-cloak] {
  display: none !important;
}

@view-transition {
  navigation: auto;
}

[id] {
  scroll-margin-top: 6.5rem;
}

@layer base {
  :root {
    --bg-base: #FAF8F5;
    --bg-surface: #FFFFFF;
    --bg-card: #F5EFEB;
    --bg-dark: #101419;
    --bg-dark-accent: #171E26;
    --text-primary: #191C21;
    --text-secondary: #5E6573;
    --text-muted: #8E95A5;
    --gold-primary: #C5A880;
    --gold-hover: #B09166;
    --gold-light: #E8D8C3;
    --gold-subtle: #F6EFE6;
    --gold-border: #E5D5C0;
    --gold-dark: #8C6D45;
    --border-subtle: #EAE5DE;
    --border-dark: #222936;
    --forest-accent: #1A3328;
  }

  html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
  }

  body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
    position: relative;
  }

  button, a, input, select, textarea {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  h1, h2, h3, h4, .font-serif {
    font-family: "Playfair Display", Georgia, Cambria, "Times New Roman", serif;
    letter-spacing: -0.015em;
  }
}

.focus-ring:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #11141A;
}
::-webkit-scrollbar-thumb {
  background: #2D3748;
  border-radius: 4px;
  border: 2px solid #11141A;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Ken Burns Animation */
@keyframes kenburns {
  0% { transform: scale(1.0); }
  50% { transform: scale(1.06) translate(-0.5%, -0.5%); }
  100% { transform: scale(1.0); }
}
.animate-kenburns {
  animation: kenburns 24s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Subtelny Złoty Shimmer Pulse */
@keyframes gold-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(197, 168, 128, 0.45)); }
}
.animate-gold-pulse {
  animation: gold-pulse 4s ease-in-out infinite;
}

/* Metaliczny Złoty Gradient Tekstu */
.gold-text-gradient {
  background: linear-gradient(135deg, #FFF4E5 0%, #E8CDA6 28%, #C5A880 65%, #A38053 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-dark {
  background: linear-gradient(135deg, #C5A880 0%, #9F7E53 100%);
}

/* Złoty Separator z Rombem */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 3.5rem 0;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--gold-border);
  opacity: 0.7;
}
.gold-divider-diamond {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  transform: rotate(45deg);
  margin: 0 1.5rem;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.6);
}

/* Editorial Drop Cap */
.editorial-drop-cap::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  float: left;
  font-size: 3.75rem;
  line-height: 0.8;
  padding-top: 6px;
  padding-right: 14px;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Luksusowy efekt Sheen Card */
.sheen-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}
.sheen-card::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 42%,
    rgba(255, 255, 255, 0.24) 50%,
    transparent 58%,
    transparent 100%
  );
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sheen-card:hover::after {
  transform: rotate(25deg) translateY(100%);
}
.sheen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(17, 20, 26, 0.12);
  border-color: var(--gold-border);
}

/* Glassmorphism luksusowy */
.glass-luxury {
  background: rgba(17, 20, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(197, 168, 128, 0.25);
}

.card-luxury {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -5px rgba(17, 20, 26, 0.05);
}

/* Złoty przycisk z luksusowym glow v3 */
.btn-gold, .btn-gold-v3 {
  background: linear-gradient(135deg, #E5C378 0%, #C5A880 50%, #A88755 100%);
  color: #0A0D12;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px -2px rgba(197, 168, 128, 0.4);
}
.btn-gold:hover, .btn-gold-v3:hover {
  background: linear-gradient(135deg, #F3D998 0%, #D4AF37 50%, #B8945E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px 0 rgba(212, 175, 55, 0.55);
}

.btn-primary, .btn-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #1E3A2F;
  color: #FFFFFF;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}
.btn-primary:hover, .btn-forest:hover {
  background-color: #12241D;
}

.btn-outline-gold {
  border: 1px solid rgba(197, 168, 128, 0.4);
  color: #FAF8F5;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.btn-outline-gold:hover {
  border-color: #E5C378;
  background-color: rgba(197, 168, 128, 0.1);
  color: #E5C378;
  box-shadow: 0 0 20px rgba(197, 168, 128, 0.25);
}

.border-gold-hairline {
  border: 1px solid rgba(197, 168, 128, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.border-gold-hairline:hover {
  border-color: rgba(229, 195, 120, 0.6);
  box-shadow: 0 0 25px rgba(197, 168, 128, 0.15);
}

/* Wskaźnik ładowania HTMX */
.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Respektowanie preferencji użytkownika odnośnie ruchu */
@media (prefers-reduced-motion: reduce) {
  .animate-kenburns,
  .animate-gold-pulse,
  .sheen-card::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Styl drukowania (np. menu weselne) */
@media print {
  header, footer, .md\:hidden, .btn-gold, form, .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
}

/* ==========================================================================
   NA STAWACH // ELEGANCKI PANEL PERSONELU ERP & CRM (METODA 60/30/10)
   60%: Manor Obsidian Night #0A0D12 z wielowarstwową głębią ambientową
   30%: Manor Sapphire Card #12171F + mikrofaza krawędzi (bevel light)
   10%: Szampańskie Złoto #DFBE76 / #C5A880 + Leśny Szmaragd #10B981
   ========================================================================== */

.nexus-admin,
body.nexus-admin {
  --nx-void: #0A0D12;
  --nx-surface: #12171F;
  --nx-surface-elevated: #18202A;
  --nx-surface-recessed: #0A0E14;
  --nx-gold: #DFBE76;
  --nx-gold-hover: #E8CF96;
  --nx-gold-border: rgba(197, 168, 128, 0.22);
  --nx-text-main: #FAF8F5;
  --nx-text-sec: #DFCAAC;
  --nx-text-muted: #9CA3AF;
  background-color: #0A0D12 !important;
  background-image: 
    radial-gradient(ellipse 90% 500px at 50% 0px, rgba(223, 190, 118, 0.08), transparent 75%),
    radial-gradient(circle 700px at 100% 250px, rgba(20, 32, 48, 0.45), transparent 70%),
    radial-gradient(circle 800px at 0% 700px, rgba(16, 36, 28, 0.22), transparent 70%),
    linear-gradient(180deg, #0A0D12 0%, #07090E 100%) !important;
  background-attachment: fixed !important;
  color: #E2E6EE !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Szlachetne czcionki w Panelu Personelu - Playfair Display dla nagłówków, JetBrains dla kodów */
.nexus-admin .font-serif,
.nexus-admin [class*="font-serif"] {
  font-family: 'Playfair Display', Georgia, serif !important;
}

.nexus-admin .font-mono,
.nexus-admin .font-mono *,
.nexus-admin [class*="font-mono"] {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Tło canvasu oparte na wielowarstwowej głębi */
.nexus-admin-canvas {
  background: transparent !important;
}

/* Karty z fizyczną głębią i mikrofazą krawędzi (bevel light) */
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .admin-card,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .admin-hero-card,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-white,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-white\/95,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-white\/70 {
  background: linear-gradient(180deg, rgba(22, 29, 39, 0.92) 0%, rgba(16, 21, 29, 0.96) 100%) !important;
  border: 1px solid rgba(197, 168, 128, 0.22) !important;
  border-radius: 1rem !important;
  box-shadow: 
    0 8px 32px -8px rgba(0, 0, 0, 0.7),
    0 1px 2px 0 rgba(0, 0, 0, 0.5),
    inset 0 1px 0 0 rgba(223, 190, 118, 0.12) !important;
  color: #E2E6EE !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nexus-admin .admin-card:hover {
  border-color: rgba(223, 190, 118, 0.48) !important;
  box-shadow: 
    0 14px 40px -10px rgba(0, 0, 0, 0.8),
    0 2px 6px 0 rgba(0, 0, 0, 0.6),
    inset 0 1px 0 0 rgba(223, 190, 118, 0.24),
    0 0 25px -4px rgba(197, 168, 128, 0.14) !important;
  transform: translateY(-1px);
}

/* Status Badges - BEZWZGLĘDNY ZAKAZ ŁAMANIA NA DWIE LINIE */
.nexus-admin .badge-status,
.nexus-admin .nx-badge,
.nexus-admin td span[class*="rounded-"],
.nexus-admin span.badge-status {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  max-width: max-content !important;
}

/* Sub-powierzchnie i zagłębienia */
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-50,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-50\/40,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-50\/50,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-50\/60,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-50\/70,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-50\/80,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-100,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-100\/70,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-slate-50,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-slate-100,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-\[\#FAF7F2\],
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-\[\#FAF8F5\],
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-200,
html:not(.theme-light):not([data-theme="light"]) .nexus-admin .bg-gray-200\/60 {
  background: #18202A !important;
  color: #DFCAAC !important;
  border-color: rgba(197, 168, 128, 0.18) !important;
}

/* Zunifikowany nagłówek modułu (opcjonalny) */
.nx-module-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #12171F !important;
  border: 1px solid rgba(197, 168, 128, 0.22) !important;
  border-radius: 1rem !important;
}
@media (min-width: 1024px) {
  .nx-module-header {
    flex-direction: row;
    align-items: center;
  }
}

.nx-btn-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Zakładki modułów i filtrów */
.nx-tab-active {
  background: linear-gradient(135deg, #E5C378 0%, #C5A880 50%, #A88755 100%) !important;
  color: #0A0D12 !important;
  border: 1px solid #DFBE76 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.25) !important;
}

.nx-tab-inactive {
  background: #12171F !important;
  color: #DFCAAC !important;
  border: 1px solid rgba(197, 168, 128, 0.22) !important;
  transition: all 0.15s ease !important;
}
.nx-tab-inactive:hover {
  background: #18202A !important;
  color: #DFBE76 !important;
  border-color: rgba(223, 190, 118, 0.45) !important;
}

/* Elegancki hero card dla najbliższego wesela w estetyce Na Stawach */
.admin-hero-card {
  background: #12171F !important;
  color: #FAF8F5 !important;
  border: 1px solid rgba(197, 168, 128, 0.28) !important;
  border-radius: 1rem !important;
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.45) !important;
}

.admin-hero-card .hero-title {
  color: #FAF8F5 !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 700 !important;
}

.admin-hero-card .hero-tag {
  background: rgba(223, 190, 118, 0.14) !important;
  color: #DFBE76 !important;
  border: 1px solid rgba(223, 190, 118, 0.35) !important;
}

.admin-hero-card .hero-pill {
  background: #0A0E14 !important;
  border: 1px solid rgba(197, 168, 128, 0.2) !important;
  color: #DFCAAC !important;
}

.admin-hero-card .hero-slot {
  background: #0A0E14 !important;
  border: 1px solid rgba(197, 168, 128, 0.2) !important;
  border-radius: 0.75rem;
  transition: all 0.15s ease;
}
.admin-hero-card .hero-slot:hover {
  border-color: rgba(223, 190, 118, 0.5) !important;
  background: #18202A !important;
}

.admin-hero-card .hero-slot-time {
  color: #DFBE76 !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
}

.admin-hero-card .hero-slot-desc {
  color: #FAF8F5 !important;
}

/* Czyste przyciski (60/30/10) */
.btn-gold-action,
.nexus-admin .btn-primary {
  height: 2.375rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700 !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(135deg, #E5C378 0%, #C5A880 50%, #A88755 100%) !important;
  color: #0A0D12 !important;
  border: 1px solid #DFBE76 !important;
  box-shadow: 0 2px 12px rgba(197, 168, 128, 0.25) !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn-gold-action:hover,
.nexus-admin .btn-primary:hover {
  background: linear-gradient(135deg, #EED79D 0%, #DFBE76 50%, #B89660 100%) !important;
  color: #0A0D12 !important;
  box-shadow: 0 4px 18px rgba(197, 168, 128, 0.35) !important;
  transform: translateY(-1px);
}

.btn-secondary,
.btn-glass-action,
.nexus-admin .btn-forest,
.nexus-admin .btn-secondary {
  height: 2.375rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 600 !important;
  border-radius: 0.75rem !important;
  background: #18202A !important;
  color: #DFCAAC !important;
  border: 1px solid rgba(197, 168, 128, 0.22) !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.btn-secondary:hover,
.btn-glass-action:hover,
.nexus-admin .btn-forest:hover,
.nexus-admin .btn-secondary:hover {
  background: #222C3A !important;
  border-color: rgba(223, 190, 118, 0.45) !important;
  color: #FAF8F5 !important;
}

/* Formularze: wyraziste pola w ciemnym motywie z ciepłym akcentem szampańskim */
html:not(.theme-light) .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not(.theme-light) .nexus-admin select,
html:not(.theme-light) .nexus-admin textarea,
html[data-theme="dark"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] .nexus-admin select,
html[data-theme="dark"] .nexus-admin textarea {
  background-color: #0A0E14 !important;
  color: #FAF8F5 !important;
  border: 1px solid rgba(197, 168, 128, 0.25) !important;
  border-radius: 0.75rem !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

html:not(.theme-light) .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
html:not(.theme-light) .nexus-admin textarea::placeholder,
html[data-theme="dark"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"])::placeholder,
html[data-theme="dark"] .nexus-admin textarea::placeholder {
  color: #9CA3AF !important;
}

html:not(.theme-light) .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html:not(.theme-light) .nexus-admin select:focus,
html:not(.theme-light) .nexus-admin textarea:focus,
html[data-theme="dark"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="dark"] .nexus-admin select:focus,
html[data-theme="dark"] .nexus-admin textarea:focus {
  border-color: #DFBE76 !important;
  box-shadow: 0 0 0 2px rgba(223, 190, 118, 0.25) !important;
  outline: none !important;
}

html:not(.theme-light) .nexus-admin select option,
html[data-theme="dark"] .nexus-admin select option {
  background-color: #12171F;
  color: #FAF8F5;
}

/* Tabele - czytelne, luksusowe linie ze złotawym akcentem */
.nexus-admin .admin-table,
.nexus-admin table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.nexus-admin .admin-table th,
.nexus-admin table thead th {
  background: #0E131A !important;
  color: #DFCAAC !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.22) !important;
}

.nexus-admin .admin-table td,
.nexus-admin table tbody td {
  padding: 0.875rem 1rem !important;
  font-size: 0.8125rem;
  color: #FAF8F5 !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.12) !important;
  vertical-align: middle;
}

.nexus-admin .admin-table tr:hover td,
.nexus-admin table tbody tr:hover td {
  background: rgba(197, 168, 128, 0.05) !important;
}

/* Kolorystyka tekstów i statusów spójna z marką Na Stawach */
.nexus-admin .text-gray-950,
.nexus-admin .text-gray-900,
.nexus-admin .text-gray-800,
.nexus-admin .text-slate-900,
.nexus-admin .text-slate-800 {
  color: #FAF8F5 !important;
}

.nexus-admin .text-gray-700,
.nexus-admin .text-gray-600,
.nexus-admin .text-slate-700 {
  color: #DFCAAC !important;
}

.nexus-admin .text-gray-500,
.nexus-admin .text-gray-400,
.nexus-admin .text-slate-500 {
  color: #9CA3AF !important;
}

/* Blueprint CAD sali w sale.rs */
.nexus-admin #hall-canvas-container {
  background-color: #0A0D12 !important;
  border: 1px solid rgba(197, 168, 128, 0.25) !important;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

/* Karty KDS w kuchni */
.nexus-admin .kds-card {
  background: #12171F !important;
  border: 1px solid rgba(197, 168, 128, 0.22) !important;
  border-radius: 1rem !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35) !important;
}
.nexus-admin .kds-card.status-w_przygotowaniu {
  border-color: rgba(245, 158, 11, 0.6) !important;
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.15) !important;
}
.nexus-admin .kds-card.status-gotowe {
  border-color: rgba(16, 185, 129, 0.6) !important;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.15) !important;
}

/* Modale i okna dialogowe (60/30/10) - TRYB CIEMNY */
html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50 {
  background-color: rgba(10, 13, 18, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50 [class*="max-w-"]:not(.print-invoice-a4):not([class*="print:"]),
html:not(.theme-light) .nexus-admin .admin-modal-card,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50 [class*="max-w-"]:not(.print-invoice-a4):not([class*="print:"]),
html[data-theme="dark"] .nexus-admin .admin-modal-card {
  background: #0F141C !important;
  border: 1px solid rgba(197, 168, 128, 0.3) !important;
  border-radius: 1rem !important;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(197, 168, 128, 0.1) !important;
  color: #FAF8F5 !important;
}

/* Reset styli kart dla wewnętrznych kontenerów nagłówków modali (likwidacja niepożądanych ramek wewnętrznych) */
.nexus-admin .admin-modal-header,
.nexus-admin [class*="max-w-"] > .flex.items-center.justify-between.border-b,
.nexus-admin [class*="max-w-"] > form > .flex.items-center.justify-between.border-b {
  background: transparent !important;
  box-shadow: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
}
html:not(.theme-light) .nexus-admin .admin-modal-header,
html[data-theme="dark"] .nexus-admin .admin-modal-header {
  border-bottom: 1px solid rgba(197, 168, 128, 0.2) !important;
}

html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h1,
html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h2,
html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h3,
html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h4,
html:not(.theme-light) .nexus-admin .admin-modal-card h1,
html:not(.theme-light) .nexus-admin .admin-modal-card h2,
html:not(.theme-light) .nexus-admin .admin-modal-card h3,
html:not(.theme-light) .nexus-admin .admin-modal-card h4,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h1,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h2,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h3,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) h4,
html[data-theme="dark"] .nexus-admin .admin-modal-card h1,
html[data-theme="dark"] .nexus-admin .admin-modal-card h2,
html[data-theme="dark"] .nexus-admin .admin-modal-card h3,
html[data-theme="dark"] .nexus-admin .admin-modal-card h4 {
  color: #FAF8F5 !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700 !important;
}

html:not(.theme-light) .nexus-admin .admin-modal-header svg,
html[data-theme="dark"] .nexus-admin .admin-modal-header svg {
  color: #DFBE76 !important;
}

html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) p,
html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) span:not(.badge-status):not([class*="text-[#DFBE76]"]):not([class*="text-emerald"]):not([class*="text-amber"]):not([class*="text-red"]),
html:not(.theme-light) .nexus-admin .admin-modal-card p,
html:not(.theme-light) .nexus-admin .admin-modal-card span:not(.badge-status):not([class*="text-[#DFBE76]"]):not([class*="text-emerald"]):not([class*="text-amber"]):not([class*="text-red"]):not([class*="text-white"]):not([class*="text-[#FAF8F5]"]),
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) p,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) span:not(.badge-status):not([class*="text-[#DFBE76]"]):not([class*="text-emerald"]):not([class*="text-amber"]):not([class*="text-red"]),
html[data-theme="dark"] .nexus-admin .admin-modal-card p,
html[data-theme="dark"] .nexus-admin .admin-modal-card span:not(.badge-status):not([class*="text-[#DFBE76]"]):not([class*="text-emerald"]):not([class*="text-amber"]):not([class*="text-red"]):not([class*="text-white"]):not([class*="text-[#FAF8F5]"]) {
  color: #DFCAAC !important;
}

html:not(.theme-light) .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) label,
html:not(.theme-light) .nexus-admin .admin-modal-card label,
html[data-theme="dark"] .nexus-admin .fixed.inset-0.z-50:not(:has(.text-black)) label,
html[data-theme="dark"] .nexus-admin .admin-modal-card label {
  color: #DFCAAC !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
}

html:not(.theme-light) .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not(.theme-light) .nexus-admin .admin-modal-card select,
html:not(.theme-light) .nexus-admin .admin-modal-card textarea,
html[data-theme="dark"] .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] .nexus-admin .admin-modal-card select,
html[data-theme="dark"] .nexus-admin .admin-modal-card textarea {
  background-color: #0A0E14 !important;
  color: #FAF8F5 !important;
  border: 1px solid rgba(197, 168, 128, 0.25) !important;
  border-radius: 0.75rem !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

html:not(.theme-light) .nexus-admin .admin-modal-card select option,
html[data-theme="dark"] .nexus-admin .admin-modal-card select option {
  background-color: #0F141C !important;
  color: #FAF8F5 !important;
}

html:not(.theme-light) .nexus-admin .admin-modal-card div[class*="dark:bg-[#0A0E14]"],
html:not(.theme-light) .nexus-admin .admin-modal-card div[class*="dark:bg-[#12171F]"],
html[data-theme="dark"] .nexus-admin .admin-modal-card div[class*="dark:bg-[#0A0E14]"],
html[data-theme="dark"] .nexus-admin .admin-modal-card div[class*="dark:bg-[#12171F]"] {
  background-color: #0A0E14 !important;
  border-color: rgba(197, 168, 128, 0.2) !important;
  color: #DFCAAC !important;
}

/* Toast Notifications Container */
#toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
#toast > * {
  pointer-events: auto;
  min-width: 300px;
  max-width: 440px;
  background: #12171F;
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-left: 4px solid #DFBE76;
  border-radius: 0.75rem;
  padding: 0.875rem 1.25rem;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.8);
  color: #FAF8F5;
  animation: nxToastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#toast > *.toast-success {
  border-left-color: #10B981;
}
#toast > *.toast-error {
  border-left-color: #F43F5E;
}

@keyframes nxToastSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   NA STAWACH // PROFESJONALNY SYSTEM DRUKOWANIA DOKUMENTÓW PREMIUM
   Obsługa druku A4: Umowy weselne, Faktury KSeF, Protokoły, KDS, Rzuty Sal CAD
   ========================================================================== */

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }

  html,
  body,
  body.nexus-admin {
    background: #FFFFFF !important;
    color: #0A0D12 !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Bezwzględne ukrycie elementów interfejsu panelu przy druku */
  header,
  nav,
  #admin-nav-scroll,
  #admin-nav-fade,
  #admin-nav-fade-left,
  .nx-sidebar,
  .nx-topbar,
  .nx-btn-toolbar,
  .no-print,
  #toast,
  button:not(.allow-print),
  .print\:hidden {
    display: none !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    width: 100% !important;
  }

  /* Reset nakładki modali przy drukowaniu */
  .fixed.inset-0.z-50 {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    display: block !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  .fixed.inset-0.z-50 > div {
    padding: 0 !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }

  .fixed.inset-0.z-50 > div > div {
    box-shadow: none !important;
    border: none !important;
    max-width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    color: #0A0D12 !important;
  }

  /* Format arkusza A4 dla Faktur i Umów */
  .print-invoice-a4,
  .print-contract-a4,
  .print-document-a4 {
    display: block !important;
    background: #FFFFFF !important;
    color: #0A0D12 !important;
    padding: 8mm 10mm !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    page-break-after: auto;
  }

  .print-invoice-a4 table,
  .print-contract-a4 table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .print-invoice-a4 th,
  .print-invoice-a4 td,
  .print-contract-a4 th,
  .print-contract-a4 td {
    padding: 5px 8px !important;
    color: #0A0D12 !important;
    background: transparent !important;
  }

  .print-invoice-a4 th,
  .print-contract-a4 th {
    background: #F8F6F1 !important;
    font-weight: bold !important;
    border-bottom: 2px solid #0A0D12 !important;
  }

  /* Wydruk termiczny bonowy 80mm ESC/POS */
  .print-thermal-80mm {
    display: block !important;
    width: 72mm !important;
    margin: 0 auto !important;
    padding: 2mm !important;
    font-family: 'JetBrains Mono', Courier, monospace !important;
    font-size: 8.5pt !important;
    color: #000000 !important;
    line-height: 1.25 !important;
  }

  /* Uniwersalny styl druku raportów, zestawień i tabel panelu */
  .nexus-admin main div:not(.print-invoice-a4):not(.print-contract-a4):not(.print-document-a4) {
    background-color: transparent !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
    box-shadow: none !important;
  }

  .nexus-admin main h1,
  .nexus-admin main h2,
  .nexus-admin main h3,
  .nexus-admin main h4,
  .nexus-admin main p,
  .nexus-admin main span:not(.badge-status),
  .nexus-admin main strong {
    color: #0F172A !important;
  }

  .nexus-admin main table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  .nexus-admin main th {
    background-color: #F1F5F9 !important;
    color: #0F172A !important;
    border-bottom: 2px solid #0F172A !important;
  }

  .nexus-admin main td {
    color: #0F172A !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }

  /* Rzut sali CAD na wydruku */
  .cad-sidebar,
  .cad-toolbar {
    display: none !important;
  }

  #hall-canvas-container {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    height: auto !important;
    min-height: 480px !important;
  }
}

/* ==========================================================================
   NA STAWACH // STYL JASNY DWORSKI (WARM ALABASTER & CHAMPAGNE GOLD)
   Spójny z luksusową estetyką strony głównej „Dom Weselny Na Stawach”
   Zapewnia pełną zgodność z WCAG 2.1 AA (kontrast >= 4.5:1) dla wszystkich modułów
   ========================================================================== */

html.theme-light,
html[data-theme="light"],
html.theme-light body.nexus-admin,
html[data-theme="light"] body.nexus-admin,
html.theme-light .nexus-admin,
html[data-theme="light"] .nexus-admin {
  --nx-void: #FAF8F5;
  --nx-surface: #FFFFFF;
  --nx-surface-elevated: #F7F4EE;
  --nx-surface-recessed: #F5EFEB;
  --nx-gold: #B09166;
  --nx-gold-hover: #8C6D45;
  --nx-gold-border: rgba(197, 168, 128, 0.4);
  --nx-text-main: #0F172A;
  --nx-text-sec: #334155;
  --nx-text-muted: #64748B;
  background-color: #FAF8F5 !important;
  background-image: 
    radial-gradient(ellipse 90% 500px at 50% 0px, rgba(197, 168, 128, 0.18), transparent 75%),
    radial-gradient(circle 700px at 100% 250px, rgba(235, 224, 210, 0.55), transparent 70%),
    radial-gradient(circle 800px at 0% 700px, rgba(240, 232, 220, 0.45), transparent 70%),
    linear-gradient(180deg, #FAF8F5 0%, #F5EFEB 100%) !important;
  background-attachment: fixed !important;
  color: #0F172A !important;
}

/* Header & Nawigacja w stylu jasnym */
html.theme-light header,
html[data-theme="light"] header {
  background: rgba(250, 248, 245, 0.96) !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.38) !important;
  box-shadow: 0 4px 20px -4px rgba(25, 28, 33, 0.08) !important;
}

html.theme-light #admin-nav-fade-left,
html[data-theme="light"] #admin-nav-fade-left {
  background: linear-gradient(to right, #FAF8F5, rgba(250, 248, 245, 0.9), transparent) !important;
}
html.theme-light #admin-nav-fade,
html[data-theme="light"] #admin-nav-fade {
  background: linear-gradient(to left, #FAF8F5, rgba(250, 248, 245, 0.9), transparent) !important;
}

/* Monogram w stylu jasnym */
html.theme-light header a[href="/admin/dashboard"],
html[data-theme="light"] header a[href="/admin/dashboard"] {
  border-color: #C5A880 !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #F5EFEB 100%) !important;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.25) !important;
}
html.theme-light header a[href="/admin/dashboard"] span,
html[data-theme="light"] header a[href="/admin/dashboard"] span {
  color: #8C6D45 !important;
}

/* Pigułki nawigacji nieaktywne w stylu jasnym */
html.theme-light header nav a:not(.from-\[\#DFBE76\]),
html[data-theme="light"] header nav a:not(.from-\[\#DFBE76\]),
html.theme-light .nx-theme-btn,
html[data-theme="light"] .nx-theme-btn,
html.theme-light header a[href="/"],
html[data-theme="light"] header a[href="/"] {
  background: #FFFFFF !important;
  color: #334155 !important;
  font-weight: 600 !important;
  border: 1px solid rgba(197, 168, 128, 0.38) !important;
  box-shadow: 0 1px 3px rgba(25, 28, 33, 0.05) !important;
}
html.theme-light header nav a:not(.from-\[\#DFBE76\]):hover,
html[data-theme="light"] header nav a:not(.from-\[\#DFBE76\]):hover,
html.theme-light .nx-theme-btn:hover,
html[data-theme="light"] .nx-theme-btn:hover,
html.theme-light header a[href="/"]:hover,
html[data-theme="light"] header a[href="/"]:hover {
  background: #F5EFEB !important;
  color: #8C6D45 !important;
  border-color: #B09166 !important;
}

/* User login indicator pill w stylu jasnym */
html.theme-light header .font-mono,
html[data-theme="light"] header .font-mono {
  color: #8C6D45 !important;
}

/* Główny kontener main w stylu jasnym */
html.theme-light main,
html[data-theme="light"] main {
  background-color: transparent !important;
}

/* Karty w stylu jasnym (30% struktura) */
html.theme-light .nexus-admin .admin-card,
html.theme-light .nexus-admin .admin-hero-card,
html.theme-light .nexus-admin .bg-\[\#12171F\],
html.theme-light .nexus-admin .bg-\[\#121217\],
html.theme-light .nexus-admin .bg-\[\#0E1420\],
html[data-theme="light"] .nexus-admin .admin-card,
html[data-theme="light"] .nexus-admin .admin-hero-card,
html[data-theme="light"] .nexus-admin .bg-\[\#12171F\],
html[data-theme="light"] .nexus-admin .bg-\[\#121217\],
html[data-theme="light"] .nexus-admin .bg-\[\#0E1420\] {
  background: #FFFFFF !important;
  border: 1px solid rgba(197, 168, 128, 0.36) !important;
  border-radius: 1rem !important;
  box-shadow: 
    0 8px 24px -4px rgba(25, 28, 33, 0.06),
    0 1px 3px 0 rgba(25, 28, 33, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9) !important;
  color: #0F172A !important;
}

html.theme-light .nexus-admin .admin-card:hover,
html[data-theme="light"] .nexus-admin .admin-card:hover {
  border-color: rgba(197, 168, 128, 0.65) !important;
  box-shadow: 
    0 12px 32px -4px rgba(25, 28, 33, 0.1),
    0 0 20px -2px rgba(197, 168, 128, 0.22) !important;
}

/* Hero card najbliższego wesela w stylu jasnym */
html.theme-light .nexus-admin .admin-hero-card,
html[data-theme="light"] .nexus-admin .admin-hero-card {
  background: linear-gradient(145deg, #FFFFFF 0%, #FAF8F5 100%) !important;
  border: 1px solid rgba(197, 168, 128, 0.45) !important;
  box-shadow: 0 12px 32px -8px rgba(25, 28, 33, 0.08) !important;
}

/* Wewnętrzne kafelki godzinowe, boxy formularzy i zagłębienia w stylu jasnym */
html.theme-light .nexus-admin .bg-\[\#0A0E14\],
html.theme-light .nexus-admin .bg-\[\#18202A\],
html.theme-light .nexus-admin .bg-\[\#10151D\],
html.theme-light .nexus-admin .hero-slot,
html.theme-light .nexus-admin .hero-pill,
html[data-theme="light"] .nexus-admin .bg-\[\#0A0E14\],
html[data-theme="light"] .nexus-admin .bg-\[\#18202A\],
html[data-theme="light"] .nexus-admin .bg-\[\#10151D\],
html[data-theme="light"] .nexus-admin .hero-slot,
html[data-theme="light"] .nexus-admin .hero-pill {
  background: #F8F6F1 !important;
  border-color: rgba(197, 168, 128, 0.32) !important;
  color: #0F172A !important;
}

html.theme-light .nexus-admin .hero-slot:hover,
html[data-theme="light"] .nexus-admin .hero-slot:hover {
  background: #EFE9DF !important;
  border-color: #C5A880 !important;
}

/* ZAKŁADKI MODUŁÓW (TABS) W STYLU JASNYM */
html.theme-light .nx-tab-inactive,
html[data-theme="light"] .nx-tab-inactive {
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid rgba(197, 168, 128, 0.45) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(25, 28, 33, 0.04) !important;
  transition: all 0.15s ease !important;
}

html.theme-light .nx-tab-inactive:hover,
html[data-theme="light"] .nx-tab-inactive:hover {
  background: #F5EFEB !important;
  color: #8C6D45 !important;
  border-color: #B09166 !important;
}

html.theme-light .nx-tab-active,
html[data-theme="light"] .nx-tab-active {
  background: linear-gradient(135deg, #E5C378 0%, #C5A880 50%, #A88755 100%) !important;
  color: #0A0D12 !important;
  border: 1px solid #DFBE76 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.3) !important;
}

/* ETYKIETY FORMULARZY (LABELS) - MAKSYMALNY KONTRAST WCAG 2.1 AA */
html.theme-light .nexus-admin label,
html[data-theme="light"] .nexus-admin label,
html.theme-light .nexus-admin legend,
html[data-theme="light"] .nexus-admin legend {
  color: #0F172A !important;
  font-weight: 700 !important;
}

/* Pola formularzy, inputy, selecty w stylu jasnym */
html.theme-light .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-light .nexus-admin select,
html.theme-light .nexus-admin textarea,
html[data-theme="light"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .nexus-admin select,
html[data-theme="light"] .nexus-admin textarea {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: #0F172A !important;
  font-weight: 600 !important;
  border: 1px solid rgba(197, 168, 128, 0.45) !important;
  box-shadow: inset 0 1px 2px rgba(25, 28, 33, 0.04) !important;
  color-scheme: light !important;
}

html.theme-light .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html.theme-light .nexus-admin select:focus,
html.theme-light .nexus-admin textarea:focus,
html[data-theme="light"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="light"] .nexus-admin select:focus,
html[data-theme="light"] .nexus-admin textarea:focus {
  border-color: #B09166 !important;
  box-shadow: 0 0 0 3px rgba(176, 145, 102, 0.22) !important;
  outline: none !important;
}

html.theme-light .nexus-admin select option,
html[data-theme="light"] .nexus-admin select option {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

html.theme-light .nexus-admin input[readonly],
html[data-theme="light"] .nexus-admin input[readonly] {
  background-color: #F8FAFC !important;
  color: #334155 !important;
}

/* Checkboxy i radio */
html.theme-light .nexus-admin input[type="checkbox"],
html[data-theme="light"] .nexus-admin input[type="checkbox"] {
  accent-color: #B09166 !important;
}

/* TYPOGRAFIA I TEKSTY W STYLU JASNYM (WCAG 2.1 AA ZGODNOŚĆ) */
html.theme-light .nexus-admin h1,
html.theme-light .nexus-admin h2,
html.theme-light .nexus-admin h3,
html.theme-light .nexus-admin h4,
html.theme-light .nexus-admin h5,
html.theme-light .nexus-admin h6,
html.theme-light .nexus-admin .text-white,
html.theme-light .nexus-admin .text-\[\#FAF8F5\],
html[data-theme="light"] .nexus-admin h1,
html[data-theme="light"] .nexus-admin h2,
html[data-theme="light"] .nexus-admin h3,
html[data-theme="light"] .nexus-admin h4,
html[data-theme="light"] .nexus-admin h5,
html[data-theme="light"] .nexus-admin h6,
html[data-theme="light"] .nexus-admin .text-white,
html[data-theme="light"] .nexus-admin .text-\[\#FAF8F5\] {
  color: #0F172A !important;
}

/* Etykiety i teksty o wysokim kontraście (slate/zinc/gray 100..300) */
html.theme-light .nexus-admin [class*="text-slate-100"],
html.theme-light .nexus-admin [class*="text-slate-200"],
html.theme-light .nexus-admin [class*="text-slate-300"],
html.theme-light .nexus-admin [class*="text-zinc-100"],
html.theme-light .nexus-admin [class*="text-zinc-200"],
html.theme-light .nexus-admin [class*="text-zinc-300"],
html.theme-light .nexus-admin [class*="text-gray-100"],
html.theme-light .nexus-admin [class*="text-gray-200"],
html.theme-light .nexus-admin [class*="text-gray-300"],
html[data-theme="light"] .nexus-admin [class*="text-slate-100"],
html[data-theme="light"] .nexus-admin [class*="text-slate-200"],
html[data-theme="light"] .nexus-admin [class*="text-slate-300"],
html[data-theme="light"] .nexus-admin [class*="text-zinc-100"],
html[data-theme="light"] .nexus-admin [class*="text-zinc-200"],
html[data-theme="light"] .nexus-admin [class*="text-zinc-300"],
html[data-theme="light"] .nexus-admin [class*="text-gray-100"],
html[data-theme="light"] .nexus-admin [class*="text-gray-200"],
html[data-theme="light"] .nexus-admin [class*="text-gray-300"] {
  color: #1E293B !important;
  font-weight: 600;
}

/* Teksty pomocnicze i podtytuły (slate/zinc/gray 400 oraz #DFCAAC) */
html.theme-light .nexus-admin p,
html.theme-light .nexus-admin [class*="text-slate-400"],
html.theme-light .nexus-admin [class*="text-zinc-400"],
html.theme-light .nexus-admin [class*="text-gray-400"],
html.theme-light .nexus-admin .text-\[\#DFCAAC\],
html[data-theme="light"] .nexus-admin p,
html[data-theme="light"] .nexus-admin [class*="text-slate-400"],
html[data-theme="light"] .nexus-admin [class*="text-zinc-400"],
html[data-theme="light"] .nexus-admin [class*="text-gray-400"],
html[data-theme="light"] .nexus-admin .text-\[\#DFCAAC\] {
  color: #475569 !important;
  font-weight: 500;
}

/* Wyciszone przypisy (slate/zinc/gray 500 oraz #9CA3AF) */
html.theme-light .nexus-admin [class*="text-slate-500"],
html.theme-light .nexus-admin [class*="text-zinc-500"],
html.theme-light .nexus-admin [class*="text-gray-500"],
html.theme-light .nexus-admin .text-\[\#9CA3AF\],
html[data-theme="light"] .nexus-admin [class*="text-slate-500"],
html[data-theme="light"] .nexus-admin [class*="text-zinc-500"],
html[data-theme="light"] .nexus-admin [class*="text-gray-500"],
html[data-theme="light"] .nexus-admin .text-\[\#9CA3AF\] {
  color: #64748B !important;
}

/* Złoty akcent tekstowy w stylu jasnym */
html.theme-light .nexus-admin .text-\[\#DFBE76\],
html[data-theme="light"] .nexus-admin .text-\[\#DFBE76\] {
  color: #8C6D45 !important;
  font-weight: 700 !important;
}

/* Ramki w stylu jasnym */
html.theme-light .nexus-admin .border-\[\#C5A880\]\/20,
html.theme-light .nexus-admin .border-\[\#C5A880\]\/25,
html.theme-light .nexus-admin .border-\[\#C5A880\]\/15,
html[data-theme="light"] .nexus-admin .border-\[\#C5A880\]\/20,
html[data-theme="light"] .nexus-admin .border-\[\#C5A880\]\/25,
html[data-theme="light"] .nexus-admin .border-\[\#C5A880\]\/15 {
  border-color: rgba(197, 168, 128, 0.35) !important;
}

/* Tabele w stylu jasnym */
html.theme-light .nexus-admin .admin-table th,
html.theme-light .nexus-admin table thead th,
html[data-theme="light"] .nexus-admin .admin-table th,
html[data-theme="light"] .nexus-admin table thead th {
  background: #F5EFEB !important;
  color: #0F172A !important;
  font-weight: 700 !important;
  border-bottom: 2px solid rgba(197, 168, 128, 0.38) !important;
}

html.theme-light .nexus-admin .admin-table td,
html.theme-light .nexus-admin table tbody td,
html[data-theme="light"] .nexus-admin .admin-table td,
html[data-theme="light"] .nexus-admin table tbody td {
  color: #0F172A !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.18) !important;
}

html.theme-light .nexus-admin .admin-table tr:hover,
html.theme-light .nexus-admin table tbody tr:hover,
html.theme-light .nexus-admin tr[class*="hover:bg-[#18202A]"]:hover,
html[data-theme="light"] .nexus-admin .admin-table tr:hover,
html[data-theme="light"] .nexus-admin table tbody tr:hover,
html[data-theme="light"] .nexus-admin tr[class*="hover:bg-[#18202A]"]:hover {
  background-color: rgba(197, 168, 128, 0.12) !important;
}

html.theme-light .nexus-admin .admin-table tr:hover td,
html.theme-light .nexus-admin table tbody tr:hover td,
html.theme-light .nexus-admin tr[class*="hover:bg-[#18202A]"]:hover td,
html[data-theme="light"] .nexus-admin .admin-table tr:hover td,
html[data-theme="light"] .nexus-admin table tbody tr:hover td,
html[data-theme="light"] .nexus-admin tr[class*="hover:bg-[#18202A]"]:hover td {
  background-color: rgba(197, 168, 128, 0.12) !important;
  color: #0F172A !important;
}

/* Przyciski secondary w stylu jasnym */
html.theme-light .nexus-admin .btn-secondary,
html[data-theme="light"] .nexus-admin .btn-secondary {
  background: #FFFFFF !important;
  color: #1E293B !important;
  font-weight: 600 !important;
  border: 1px solid rgba(197, 168, 128, 0.45) !important;
  box-shadow: 0 1px 3px rgba(25, 28, 33, 0.04) !important;
}
html.theme-light .nexus-admin .btn-secondary:hover,
html[data-theme="light"] .nexus-admin .btn-secondary:hover {
  background: #F5EFEB !important;
  border-color: #B09166 !important;
  color: #8C6D45 !important;
}

/* Sub-powierzchnie szklane i linie podziału w stylu jasnym */
html.theme-light .nexus-admin .divide-white\/5,
html.theme-light .nexus-admin .divide-white\/10,
html[data-theme="light"] .nexus-admin .divide-white\/5,
html[data-theme="light"] .nexus-admin .divide-white\/10 {
  border-color: rgba(197, 168, 128, 0.22) !important;
}

html.theme-light .nexus-admin .bg-white\/\[0\.02\],
html.theme-light .nexus-admin .bg-white\/\[0\.03\],
html.theme-light .nexus-admin .bg-white\/\[0\.04\],
html.theme-light .nexus-admin .bg-white\/5,
html[data-theme="light"] .nexus-admin .bg-white\/\[0\.02\],
html[data-theme="light"] .nexus-admin .bg-white\/\[0\.03\],
html[data-theme="light"] .nexus-admin .bg-white\/\[0\.04\],
html[data-theme="light"] .nexus-admin .bg-white\/5 {
  background-color: #F8F6F1 !important;
  border-color: rgba(197, 168, 128, 0.32) !important;
}

html.theme-light .nexus-admin input::placeholder,
html.theme-light .nexus-admin textarea::placeholder,
html[data-theme="light"] .nexus-admin input::placeholder,
html[data-theme="light"] .nexus-admin textarea::placeholder {
  color: #94A3B8 !important;
  font-weight: 400 !important;
}

html.theme-light .nexus-admin thead,
html.theme-light .nexus-admin thead tr,
html.theme-light .nexus-admin thead.bg-\[\#0A0E14\],
html[data-theme="light"] .nexus-admin thead,
html[data-theme="light"] .nexus-admin thead tr,
html[data-theme="light"] .nexus-admin thead.bg-\[\#0A0E14\] {
  background: #F5EFEB !important;
}

/* STATUS BADGES W STYLU JASNYM (CZYTELNE, PASTELOWE TŁA Z GŁĘBOKIM TEKSTEM) */
html.theme-light .nexus-admin .badge-status,
html[data-theme="light"] .nexus-admin .badge-status {
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
}

/* Nowe zapytanie (Złoty / Amber) */
html.theme-light .nexus-admin .bg-\[\#DFBE76\]\/15,
html.theme-light .nexus-admin .bg-amber-500\/15,
html.theme-light .nexus-admin .bg-amber-500\/20,
html[data-theme="light"] .nexus-admin .bg-\[\#DFBE76\]\/15,
html[data-theme="light"] .nexus-admin .bg-amber-500\/15,
html[data-theme="light"] .nexus-admin .bg-amber-500\/20 {
  background-color: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FDE68A !important;
}

/* Potwierdzona / Sukces (Emerald) */
html.theme-light .nexus-admin .bg-emerald-950\/60,
html.theme-light .nexus-admin .bg-emerald-500\/15,
html.theme-light .nexus-admin .bg-emerald-500\/20,
html[data-theme="light"] .nexus-admin .bg-emerald-950\/60,
html[data-theme="light"] .nexus-admin .bg-emerald-500\/15,
html[data-theme="light"] .nexus-admin .bg-emerald-500\/20 {
  background-color: #ECFDF5 !important;
  color: #047857 !important;
  border: 1px solid #A7F3D0 !important;
}

/* Wstępna / Baza / Niebieski (Sky) */
html.theme-light .nexus-admin .bg-sky-950\/60,
html.theme-light .nexus-admin .bg-sky-500\/15,
html.theme-light .nexus-admin .bg-sky-500\/20,
html[data-theme="light"] .nexus-admin .bg-sky-950\/60,
html[data-theme="light"] .nexus-admin .bg-sky-500\/15,
html[data-theme="light"] .nexus-admin .bg-sky-500\/20 {
  background-color: #F0F9FF !important;
  color: #0369A1 !important;
  border: 1px solid #BAE6FD !important;
}

/* Czeka na zaliczkę (Purple) */
html.theme-light .nexus-admin .bg-purple-950\/60,
html.theme-light .nexus-admin .bg-purple-500\/15,
html.theme-light .nexus-admin .bg-purple-500\/20,
html[data-theme="light"] .nexus-admin .bg-purple-950\/60,
html[data-theme="light"] .nexus-admin .bg-purple-500\/15,
html[data-theme="light"] .nexus-admin .bg-purple-500\/20 {
  background-color: #FAF5FF !important;
  color: #7E22CE !important;
  border: 1px solid #E9D5FF !important;
}

/* Anulowana / Błąd (Rose / Red) */
html.theme-light .nexus-admin .bg-rose-950\/60,
html.theme-light .nexus-admin .bg-rose-500\/15,
html.theme-light .nexus-admin .bg-rose-500\/20,
html[data-theme="light"] .nexus-admin .bg-rose-950\/60,
html[data-theme="light"] .nexus-admin .bg-rose-500\/15,
html[data-theme="light"] .nexus-admin .bg-rose-500\/20 {
  background-color: #FFF1F2 !important;
  color: #BE123C !important;
  border: 1px solid #FECDD3 !important;
}

/* Neutralne odznaki audytu i kodów */
html.theme-light .nexus-admin .badge-status.bg-white\/10,
html[data-theme="light"] .nexus-admin .badge-status.bg-white\/10,
html.theme-light .nexus-admin span.bg-white\/10,
html[data-theme="light"] .nexus-admin span.bg-white\/10 {
  background-color: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

/* Modale i dialogi w stylu jasnym - MAKSYMALNY KONTRAST WCAG 2.1 AA */
html.theme-light .nexus-admin .fixed.inset-0.z-50,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 {
  background-color: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(10px) !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 [class*="max-w-"]:not(.print-invoice-a4):not([class*="print:"]),
html.theme-light .nexus-admin .admin-modal-card,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 [class*="max-w-"]:not(.print-invoice-a4):not([class*="print:"]),
html[data-theme="light"] .nexus-admin .admin-modal-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(197, 168, 128, 0.45) !important;
  border-radius: 1rem !important;
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(197, 168, 128, 0.25) !important;
  color: #0F172A !important;
}

html.theme-light .nexus-admin .admin-modal-header,
html.theme-light .nexus-admin [class*="max-w-"] > .flex.items-center.justify-between.border-b,
html[data-theme="light"] .nexus-admin .admin-modal-header,
html[data-theme="light"] .nexus-admin [class*="max-w-"] > .flex.items-center.justify-between.border-b {
  background: transparent !important;
  box-shadow: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 h1,
html.theme-light .nexus-admin .fixed.inset-0.z-50 h2,
html.theme-light .nexus-admin .fixed.inset-0.z-50 h3,
html.theme-light .nexus-admin .fixed.inset-0.z-50 h4,
html.theme-light .nexus-admin .fixed.inset-0.z-50 [class*="font-bold"].text-white,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 h1,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 h2,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 h3,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 h4,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 [class*="font-bold"].text-white {
  color: #0F172A !important;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700 !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 label,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 label {
  color: #0F172A !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 p,
html.theme-light .nexus-admin .fixed.inset-0.z-50 span:not(.badge-status):not([class*="text-[#DFBE76]"]):not([class*="text-emerald"]):not([class*="text-amber"]):not([class*="text-red"]):not([class*="text-indigo"]),
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 p,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 span:not(.badge-status):not([class*="text-[#DFBE76]"]):not([class*="text-emerald"]):not([class*="text-amber"]):not([class*="text-red"]):not([class*="text-indigo"]) {
  color: #334155 !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-light .nexus-admin .fixed.inset-0.z-50 select,
html.theme-light .nexus-admin .fixed.inset-0.z-50 textarea,
html.theme-light .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-light .nexus-admin .admin-modal-card select,
html.theme-light .nexus-admin .admin-modal-card textarea,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 select,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 textarea,
html[data-theme="light"] .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .nexus-admin .admin-modal-card select,
html[data-theme="light"] .nexus-admin .admin-modal-card textarea {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  color-scheme: light !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 input:focus,
html.theme-light .nexus-admin .fixed.inset-0.z-50 select:focus,
html.theme-light .nexus-admin .fixed.inset-0.z-50 textarea:focus,
html.theme-light .nexus-admin .admin-modal-card input:focus,
html.theme-light .nexus-admin .admin-modal-card select:focus,
html.theme-light .nexus-admin .admin-modal-card textarea:focus,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 input:focus,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 select:focus,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 textarea:focus,
html[data-theme="light"] .nexus-admin .admin-modal-card input:focus,
html[data-theme="light"] .nexus-admin .admin-modal-card select:focus,
html[data-theme="light"] .nexus-admin .admin-modal-card textarea:focus {
  border-color: #B09166 !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(176, 145, 102, 0.22) !important;
}

html.theme-light .nexus-admin .admin-modal-card .admin-modal-header svg,
html[data-theme="light"] .nexus-admin .admin-modal-card .admin-modal-header svg {
  color: #92400E !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 select option,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 select option,
html.theme-light .nexus-admin .admin-modal-card select option,
html[data-theme="light"] .nexus-admin .admin-modal-card select option {
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 [class*="text-[#DFBE76]"],
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 [class*="text-[#DFBE76]"],
html.theme-light .nexus-admin .admin-modal-card [class*="text-[#DFBE76]"],
html[data-theme="light"] .nexus-admin .admin-modal-card [class*="text-[#DFBE76]"] {
  color: #92400E !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 [class*="text-[#FAF8F5]"],
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 [class*="text-[#FAF8F5]"],
html.theme-light .nexus-admin .admin-modal-card [class*="text-[#FAF8F5]"],
html[data-theme="light"] .nexus-admin .admin-modal-card [class*="text-[#FAF8F5]"] {
  color: #0F172A !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 [class*="text-[#DFCAAC]"],
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 [class*="text-[#DFCAAC]"],
html.theme-light .nexus-admin .admin-modal-card [class*="text-[#DFCAAC]"],
html[data-theme="light"] .nexus-admin .admin-modal-card [class*="text-[#DFCAAC]"] {
  color: #334155 !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 [class*="bg-[#0A0E14]"],
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 [class*="bg-[#0A0E14]"],
html.theme-light .nexus-admin .admin-modal-card div[class*="bg-white"],
html.theme-light .nexus-admin .admin-modal-card div[class*="bg-stone-50"],
html.theme-light .nexus-admin .admin-modal-card div[class*="bg-stone-100"],
html.theme-light .nexus-admin .admin-modal-card div[class*="bg-[#0A0E14]"],
html.theme-light .nexus-admin .admin-modal-card div[class*="bg-[#12171F]"],
html[data-theme="light"] .nexus-admin .admin-modal-card div[class*="bg-white"],
html[data-theme="light"] .nexus-admin .admin-modal-card div[class*="bg-stone-50"],
html[data-theme="light"] .nexus-admin .admin-modal-card div[class*="bg-stone-100"],
html[data-theme="light"] .nexus-admin .admin-modal-card div[class*="bg-[#0A0E14]"],
html[data-theme="light"] .nexus-admin .admin-modal-card div[class*="bg-[#12171F]"] {
  background-color: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
}

html.theme-light .nexus-admin .fixed.inset-0.z-50 button[aria-label="Zamknij"],
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 button[aria-label="Zamknij"] {
  color: #64748B !important;
}
html.theme-light .nexus-admin .fixed.inset-0.z-50 button[aria-label="Zamknij"]:hover,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 button[aria-label="Zamknij"]:hover {
  color: #0F172A !important;
  background-color: rgba(197, 168, 128, 0.15) !important;
}

/* ==========================================================================
   PODGLĄD I DRUK UMOWY (A4 DOCUMENT PREVIEW IN MODAL - TRYB CIEMNY I JASNY)
   ========================================================================== */
.contract-modal-sheet {
  border-radius: 0.75rem !important;
  padding: 1.5rem !important;
  line-height: 1.6 !important;
  font-size: 0.8125rem !important;
  transition: all 0.2s ease;
}

html:not(.theme-light) .contract-modal-sheet,
html[data-theme="dark"] .contract-modal-sheet {
  background-color: #131922 !important;
  border: 1px solid rgba(197, 168, 128, 0.25) !important;
  color: #E2E6EE !important;
}

html.theme-light .contract-modal-sheet,
html[data-theme="light"] .contract-modal-sheet {
  background-color: #FAF8F5 !important;
  border: 1px solid rgba(197, 168, 128, 0.35) !important;
  color: #0F172A !important;
}

.contract-modal-box {
  border-radius: 0.75rem !important;
  padding: 1rem !important;
}

html:not(.theme-light) .contract-modal-box,
html[data-theme="dark"] .contract-modal-box {
  background-color: #0A0E14 !important;
  border: 1px solid rgba(197, 168, 128, 0.2) !important;
  color: #DFCAAC !important;
}

html.theme-light .contract-modal-box,
html[data-theme="light"] .contract-modal-box {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #1E293B !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.contract-modal-deposit {
  border-radius: 0.75rem !important;
  padding: 0.75rem 1rem !important;
}

html:not(.theme-light) .contract-modal-deposit,
html[data-theme="dark"] .contract-modal-deposit {
  background-color: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #34D399 !important;
}

html.theme-light .contract-modal-deposit,
html[data-theme="light"] .contract-modal-deposit {
  background-color: #ECFDF5 !important;
  border: 1px solid #A7F3D0 !important;
  color: #065F46 !important;
}

/* Toast w stylu jasnym */
html.theme-light #toast > *,
html[data-theme="light"] #toast > * {
  background: #FFFFFF !important;
  border: 1px solid rgba(197, 168, 128, 0.38) !important;
  border-left: 4px solid #B09166 !important;
  color: #0F172A !important;
  box-shadow: 0 16px 32px -8px rgba(25, 28, 33, 0.18) !important;
}

/* [FIX-LIGHT-THEME-V2-START] */
/* 1. Jasny pasek przewijania (scrollbar) w motywie jasnym */
html.theme-light ::-webkit-scrollbar-track,
html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #F5EFEB;
}
html.theme-light ::-webkit-scrollbar-thumb,
html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #C5A880;
  border-radius: 4px;
  border: 2px solid #F5EFEB;
}
html.theme-light ::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: #8C6D45;
}

/* 2. Pasek dni tygodnia na /admin/plan (.bg-[#0E131A]) oraz podłoża sekcji i zagłębień w stylu jasnym */
html.theme-light .nexus-admin .bg-\[\#0E131A\],
html.theme-light .nexus-admin .bg-\[\#0A0D12\]:not(#hall-canvas-container),
html.theme-light .nexus-admin .bg-\[\#0A0E14\],
html.theme-light .nexus-admin .bg-\[\#101419\],
html.theme-light .nexus-admin .bg-\[\#10151D\],
html.theme-light .nexus-admin .bg-\[\#171E26\],
html.theme-light .nexus-admin .bg-\[\#18202A\],
html[data-theme="light"] .nexus-admin .bg-\[\#0E131A\],
html[data-theme="light"] .nexus-admin .bg-\[\#0A0D12\]:not(#hall-canvas-container),
html[data-theme="light"] .nexus-admin .bg-\[\#0A0E14\],
html[data-theme="light"] .nexus-admin .bg-\[\#101419\],
html[data-theme="light"] .nexus-admin .bg-\[\#10151D\],
html[data-theme="light"] .nexus-admin .bg-\[\#171E26\],
html[data-theme="light"] .nexus-admin .bg-\[\#18202A\] {
  background: #F5EFEB !important;
  background-color: #F5EFEB !important;
  background-image: none !important;
  border-color: rgba(197, 168, 128, 0.35) !important;
  color: #0F172A !important;
}

/* 3. Karty i białe powierzchnie w stylu jasnym */
html.theme-light .nexus-admin .bg-white,
html.theme-light .nexus-admin .bg-white\/95,
html.theme-light .nexus-admin .bg-white\/70,
html.theme-light .nexus-admin .bg-\[\#0F141C\],
html.theme-light .nexus-admin .bg-\[\#131922\],
html[data-theme="light"] .nexus-admin .bg-white,
html[data-theme="light"] .nexus-admin .bg-white\/95,
html[data-theme="light"] .nexus-admin .bg-white\/70,
html[data-theme="light"] .nexus-admin .bg-\[\#0F141C\],
html[data-theme="light"] .nexus-admin .bg-\[\#131922\] {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: #0F172A !important;
}

/* 4. Wszystkie pola formularzy (input, select, textarea) na stronach i we wszystkich modalach w stylu jasnym */
html.theme-light .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-light .nexus-admin select,
html.theme-light .nexus-admin textarea,
html.theme-light .nexus-admin .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-light .nexus-admin .fixed.inset-0.z-50 select,
html.theme-light .nexus-admin .fixed.inset-0.z-50 textarea,
html.theme-light .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.theme-light .nexus-admin .admin-modal-card select,
html.theme-light .nexus-admin .admin-modal-card textarea,
html[data-theme="light"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .nexus-admin select,
html[data-theme="light"] .nexus-admin textarea,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 select,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 textarea,
html[data-theme="light"] .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="light"] .nexus-admin .admin-modal-card select,
html[data-theme="light"] .nexus-admin .admin-modal-card textarea {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #0F172A !important;
  border: 1px solid rgba(197, 168, 128, 0.48) !important;
  border-radius: 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color-scheme: light !important;
}

html.theme-light .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html.theme-light .nexus-admin select:focus,
html.theme-light .nexus-admin textarea:focus,
html.theme-light .nexus-admin .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html.theme-light .nexus-admin .fixed.inset-0.z-50 select:focus,
html.theme-light .nexus-admin .fixed.inset-0.z-50 textarea:focus,
html.theme-light .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html.theme-light .nexus-admin .admin-modal-card select:focus,
html.theme-light .nexus-admin .admin-modal-card textarea:focus,
html[data-theme="light"] .nexus-admin input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="light"] .nexus-admin select:focus,
html[data-theme="light"] .nexus-admin textarea:focus,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 select:focus,
html[data-theme="light"] .nexus-admin .fixed.inset-0.z-50 textarea:focus,
html[data-theme="light"] .nexus-admin .admin-modal-card input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html[data-theme="light"] .nexus-admin .admin-modal-card select:focus,
html[data-theme="light"] .nexus-admin .admin-modal-card textarea:focus {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  border-color: #B09166 !important;
  box-shadow: 0 0 0 3px rgba(176, 145, 102, 0.22) !important;
  outline: none !important;
}

/* 5. Kontrast detali kalendarza /admin/plan w stylu jasnym (numery dni z rezerwacją, pokoje, kwoty szmaragdowe, linie siatki) */
html.theme-light .nexus-admin .text-\[\#F5E1A4\],
html.theme-light .nexus-admin .text-\[\#9E7D52\],
html[data-theme="light"] .nexus-admin .text-\[\#F5E1A4\],
html[data-theme="light"] .nexus-admin .text-\[\#9E7D52\] {
  color: #8C6D45 !important;
  font-weight: 700 !important;
}

html.theme-light .nexus-admin .bg-\[\#DFBE76\]\/20,
html[data-theme="light"] .nexus-admin .bg-\[\#DFBE76\]\/20 {
  background-color: #FEF3C7 !important;
  border-color: #D97706 !important;
  color: #92400E !important;
}

html.theme-light .nexus-admin .text-emerald-400,
html.theme-light .nexus-admin .text-emerald-400\/80,
html.theme-light .nexus-admin p.text-emerald-400,
html.theme-light .nexus-admin p.text-emerald-400\/80,
html[data-theme="light"] .nexus-admin .text-emerald-400,
html[data-theme="light"] .nexus-admin .text-emerald-400\/80,
html[data-theme="light"] .nexus-admin p.text-emerald-400,
html[data-theme="light"] .nexus-admin p.text-emerald-400\/80 {
  color: #047857 !important;
}

html.theme-light .nexus-admin .bg-amber-500\/10,
html[data-theme="light"] .nexus-admin .bg-amber-500\/10 {
  background-color: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #92400E !important;
}

html.theme-light .nexus-admin .text-amber-200,
html[data-theme="light"] .nexus-admin .text-amber-200 {
  color: #92400E !important;
}

html.theme-light .nexus-admin .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
html.theme-light .nexus-admin .divide-\[\#C5A880\]\/20 > :not([hidden]) ~ :not([hidden]),
html[data-theme="light"] .nexus-admin .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
html[data-theme="light"] .nexus-admin .divide-\[\#C5A880\]\/20 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(197, 168, 128, 0.28) !important;
}
/* [FIX-LIGHT-THEME-V2-END] */
