/* Nutriva Orbit 0.14.6.0 — DESIGN SYSTEM (single maintained entry point)
   Replaces former orbit-unified.css, orbit-hybrid.css and orbit-readability.css.
   Transitional compatibility selectors for existing domain views remain IN THIS FILE
   until replaced by components; avoid adding separate late override stylesheets.
   NORMALNY: white + cream + forest + gold. KONTRAST: black + white + yellow.
   Historical data-theme="dark" remains as internal compatibility marker only.
*/
/* NUTRIVA NEXT 0.14.4.0 — ekosystem Żywienie Zbiorowe.
   Jedna paleta wizualna dla wszystkich ekranów; dwa tryby: Normalny + Wysoki kontrast.
   Identyfikatory dark/contrast pozostają wewnętrznie dla kompatybilności z ui.js.
   Plik nie modyfikuje drukowania receptur/jadłospisów. */
:root, html[data-theme="dark"] {
  --nutriva-forest: #0b241c;
  --nutriva-deep: #071a14;
  --nutriva-panel: #102d23;
  --nutriva-panel-light: #18382b;
  --nutriva-gold: #e2c379;
  --nutriva-gold-strong: #f0d68e;
  --nutriva-cream: #f7efdd;
  --nutriva-sage: #b4c7ae;
  --nutriva-line: #42614b;
  --nutriva-focus: #f4d38a;
  /* Wspólne tokeny używane przez wcześniejsze ekrany Orbit. */
  --lime: var(--nutriva-gold);
  --bg: var(--nutriva-deep);
  --text: var(--nutriva-cream);
  --muted: var(--nutriva-sage);
  --line: var(--nutriva-line);
  --panel: var(--nutriva-panel);
}
@media screen {
  html[data-theme="dark"] body,
  html[data-theme="dark"] body.nutriva-photo-enabled { background-color:var(--nutriva-deep); color:var(--nutriva-cream); }
  html[data-theme="dark"] body.nutriva-photo-enabled > .nutriva-orbit-photo {
    opacity:.23;
    filter:brightness(.72) saturate(.75) sepia(.08);
  }
  /* Universal dashboard tokens — preserves positions, form interactions and tables. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* Wspólne tło całej aplikacji, nie tylko /modules. */
  html[data-theme="dark"] .module-shell,
  html[data-theme="dark"] .future-shell,
  html[data-theme="dark"] .module-stage,
  html[data-theme="dark"] .future-stage {color:var(--nutriva-cream);}
  html[data-theme="dark"] .module-nav {background-color:#0d261deF; border-right-color:#425c45;}
  html[data-theme="dark"] .commandbar {border-bottom-color:#456048;}
  html[data-theme="dark"] .module-menu a.active,
  html[data-theme="dark"] .module-menu a:hover {border-color:#d7b86c;color:#f5dc9c;}

  /* Login / pierwsze uruchomienie mają tę samą paletę. */
  html[data-theme="dark"] .future-login,
  html[data-theme="dark"] .login-wow-v2 {color:var(--nutriva-cream);background-color:#0a2119;}
  html[data-theme="dark"] .login-wow-shade {
    background:linear-gradient(105deg,rgba(8,29,21,.94) 0%,rgba(11,32,23,.83) 48%,rgba(9,29,22,.68) 100%);
  }
  html[data-theme="dark"] .login-wow-card {background:linear-gradient(135deg,#153629f2,#0d261deD);border-color:#806d49;}
  html[data-theme="dark"] .login-wow-manifesto h1 em,
  html[data-theme="dark"] .login-wow-kicker,
  html[data-theme="dark"] .future-kicker {color:var(--nutriva-gold);}
  html[data-theme="dark"] .login-wow-card input:focus-visible,
  html[data-theme="dark"] .setup-shell input:focus-visible,
  html[data-theme="dark"] .setup-shell select:focus-visible {outline:2px solid var(--nutriva-focus);outline-offset:2px;}
  html[data-theme="dark"] .setup-shell {
    --setup-ink:#f7efdd;--setup-muted:#c5cfbd;--setup-line:rgba(226,195,121,.31);
    background:#0b241c;color:#f7efdd;
  }
  html[data-theme="dark"] .setup-shell:before {background:linear-gradient(118deg,rgba(9,32,23,.95) 20%,rgba(14,45,33,.57) 100%);}
  html[data-theme="dark"] .setup-card {
    background:linear-gradient(140deg,#173b2df2,#0f2a20f4);
    border-color:#6c6f4c;color:#f7efdd;
  }
  html[data-theme="dark"] .setup-intro h1 em,
  html[data-theme="dark"] .setup-eyebrow,
  html[data-theme="dark"] .setup-badge,
  html[data-theme="dark"] .setup-path>div span {color:#e9cf8c;}
  html[data-theme="dark"] .setup-primary,
  html[data-theme="dark"] .setup-progress span.is-active {background:#e6c679;color:#152a20;}
  html[data-theme="dark"] .setup-field input,
  html[data-theme="dark"] .setup-field select {background:#10291f;color:#fff5e2;border-color:#66775b;}
  html[data-theme="dark"] .setup-field input:focus,
  html[data-theme="dark"] .setup-field select:focus {border-color:#e2c379;box-shadow:0 0 0 3px #e2c37940;}
  html[data-theme="dark"] .setup-choice-list label {background:#17362a;border-color:#607058;}
  html[data-theme="dark"] .setup-choice-list input {accent-color:#e5c67b;}
  html[data-theme="dark"] .setup-glow-one {background:#d7b86c;}
  html[data-theme="dark"] .setup-glow-two {background:#418b65;}

  /* Logo 0.14.4: zwiększony napis przy sygnecie, bez deformowania proporcji. */
  
  
  .module-nav .nutriva-brand-logo {width:210px;max-width:100%;max-height:67px;object-fit:contain;object-position:left center;}
  .login-wow-header .nutriva-brand-logo {width:240px;max-width:100%;max-height:82px;object-fit:contain;object-position:left center;}
  .setup-top .setup-logo {width:240px;max-height:79px;object-fit:contain;object-position:left center;}
  .nutriva-brand-logo {height:auto;}

  /* Wysoki kontrast dostaje osobne reguły poniżej, bez dekoracyjnego zdjęcia. */
  :where(a,button,input,select,textarea):focus-visible {outline:3px solid var(--nutriva-focus,#f4d38a);outline-offset:2px;}

  /* Osobisty pulpit — jeden panel z zakładkami, bez wypychania strony przez kalendarz. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}
@media(max-width:900px) {
  
  
  
}
@media(max-width:670px) {
  
  
  .module-nav .nutriva-brand-logo {max-width:177px;}
  .login-wow-header .nutriva-brand-logo {max-width:195px;}
  .setup-top .setup-logo {max-width:185px;}
  
}
/* Wysoki kontrast — bez obrazu, czyste obramowania i czytelne kontrasty. */
html[data-theme="contrast"] {
  --nutriva-forest:#000;--nutriva-deep:#000;--nutriva-panel:#000;
  --nutriva-panel-light:#101010;--nutriva-gold:#ffe681;
  --nutriva-gold-strong:#ffe681;--nutriva-cream:#fff;
  --nutriva-sage:#fff;--nutriva-line:#fff;--nutriva-focus:#ffe681;
  --lime:#ffe681;--bg:#000;--text:#fff;--muted:#fff;--line:#fff;--panel:#000;
}
html[data-theme="contrast"] body {background:#000;color:#fff;}
html[data-theme="contrast"] body.nutriva-photo-enabled > .nutriva-orbit-photo {display:none!important;}





html[data-theme="contrast"] .module-nav,
html[data-theme="contrast"] .commandbar {background:#000!important;border-color:#fff!important;}
html[data-theme="contrast"] .future-login,
html[data-theme="contrast"] .login-wow-v2,
html[data-theme="contrast"] .setup-shell {background:#000!important;color:#fff!important;}
html[data-theme="contrast"] .login-wow-media,
html[data-theme="contrast"] .setup-photo,
html[data-theme="contrast"] .setup-glow {display:none!important;}
html[data-theme="contrast"] .login-wow-card,
html[data-theme="contrast"] .setup-card {background:#000!important;color:#fff!important;border:2px solid #fff!important;}
html[data-theme="contrast"] .setup-primary,
html[data-theme="contrast"] .setup-progress span.is-active {background:#ffe681!important;color:#000!important;}
html[data-theme="contrast"] .setup-field input,
html[data-theme="contrast"] .setup-field select {background:#000;color:#fff;border:2px solid #fff;}
html[data-theme="contrast"] a:focus-visible,
html[data-theme="contrast"] button:focus-visible,
html[data-theme="contrast"] input:focus-visible {outline:3px solid #ffe681!important;outline-offset:3px;}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {transition-duration:0s!important;animation-duration:0s!important;}}
@media print {html[data-theme="dark"] body,html[data-theme="contrast"] body {background:#fff!important;color:#000!important;}}

/* Nutriva NEXT 0.14.5.0 · JEDEN MOTYW HYBRYDOWY (Normalny).
 * Wyrazista zieleń nawigacji + biel pól pracy + kremowe otoczenie + złote akcenty.
 * Nie zmienia trybu Wysoki kontrast (data-theme="contrast"), JS ani logiki formularzy.
 * Warstwa nakładana na samym końcu CSS wspólnego layoutu.
 */
@media screen {
  html[data-theme="dark"] {
    color-scheme:light;
    --nutriva-forest:#0c3026;
    --nutriva-deep:#11372b;
    --nutriva-panel:#ffffff;
    --nutriva-panel-light:#fffdf8;
    --nutriva-gold:#c69b4a;
    --nutriva-gold-strong:#9b6b22;
    --nutriva-cream:#f8f2e7;
    --nutriva-sage:#536e62;
    --nutriva-line:#dedfd3;
    --nutriva-focus:#a36e19;
    --bg:#f7f5ef;
    --panel:#fff;
    --panel2:#fffdf8;
    --panel3:#f4efe3;
    --text:#18382b;
    --muted:#597568;
    --sub:#4f6b5b;
    --low:#5e7969;
    --line:#dce2d5;
    --line2:#e8e8dc;
    --lime:#9b6b22;
    --bright:#eaf1e8;
    --mint:#176a4d;
    --green:#176a4d;
  }
  html[data-theme="dark"] body,
  html[data-theme="dark"] body.nutriva-photo-enabled {
    background-color:#f7f5ef!important;
    color:#18382b!important;
  }
  html[data-theme="dark"] body.nutriva-photo-enabled > .nutriva-orbit-photo {
    opacity:.10!important;
    filter:saturate(.72) brightness(1.24) sepia(.07)!important;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,transparent 38%,#000 68%,rgba(0,0,0,.2) 96%,transparent 100%)!important;
    mask-image:linear-gradient(to bottom,transparent 0%,transparent 38%,#000 68%,rgba(0,0,0,.2) 96%,transparent 100%)!important;
  }
  html[data-theme="dark"] .module-shell,
  html[data-theme="dark"] .future-shell,
  html[data-theme="dark"] .module-stage,
  html[data-theme="dark"] .future-stage {
    --bg:#f7f5ef;--panel:#fff;--panel2:#fffdf8;--panel3:#f3eee3;
    --text:#17382b;--muted:#627568;--line:#dce2d6;--lime:#9b6b22;
    color:#19372c!important;
  }
  /* Nawigacja jest świadomie ciemna; biel używana jest w treści, nie na logotypie. */
  html[data-theme="dark"] :is(.module-nav,.nav-panel) {
    background:linear-gradient(165deg,#0c3026 0%,#0a241d 100%)!important;
    color:#fff8e9!important;
    border-right:1px solid #365b48!important;
  }
  html[data-theme="dark"] :is(.module-nav,.nav-panel) :is(a,strong,span,small,p) {color:inherit;}
  html[data-theme="dark"] :is(.module-nav,.nav-panel) :is(.module-menu a.active,.future-nav a.active) {
    background:#234a37!important;color:#fff8df!important;border-color:#cbaa69!important;
  }
  html[data-theme="dark"] :is(.module-nav,.nav-panel) :is(.module-identity span,.module-nav-foot small,.nav-context span) {color:#d0cba8!important;}
  html[data-theme="dark"] .commandbar {
    background:rgba(255,255,255,.96)!important;
    color:#1a3d2c!important;
    border-bottom:1px solid #dedfd3!important;
    box-shadow:0 5px 20px rgba(29,50,36,.035)!important;
  }
  html[data-theme="dark"] .commandbar :is(.command-title strong,.module-breadcrumb strong,.user-chip span,.user-chip strong) {color:#153b2b!important;}
  html[data-theme="dark"] .commandbar :is(.command-title>span,.module-breadcrumb,.module-breadcrumb a,.user-chip small) {color:#617569!important;}
  html[data-theme="dark"] .commandbar :is(.modules-return,.mobile-nav,.logout) {
    color:#174534!important;border-color:#d6e1d3!important;background:#f5f7f1!important;
  }
  html[data-theme="dark"] :is(.future-content,.module-content) {color:#19372c;}
  html[data-theme="dark"] :is(.future-content,.module-content) :is(h1,h2,h3,h4,h5,.product-head h1,.orbit-page-heading h1) {color:#153829;}
  html[data-theme="dark"] :is(.future-content,.module-content) :is(.future-kicker,.product-card-eyebrow,.product-section-head>span) {color:#8c651f;}
  html[data-theme="dark"] :is(.future-content,.module-content) :is(p,.product-meta,.product-subtitle,.product-hint,.admin-help,.warehouse-dashboard-empty) {color:#526d5b;}

  /* BIEL: standardowe powierzchnie robocze w każdej funkcji. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .panel-card,.product-panel,.product-info-card,.product-form-card,.product-filter,.product-stat,
    .admin-card,.admin-state-card,.admin-settings-card,.admin-info-box,.admin-summary-card,.admin-choice,
    .warehouse-stat,.warehouse-kpi,.warehouse-document-card,.warehouse-items-card,.warehouse-summary,
    .warehouse-dashboard-empty,.reports-panel,.reports-kpi,.reports-table-panel,
    .reports-chart-panel,.reports-legal-note,.nutrition-today-panel,.nutrition-attention-panel,
    .nutrition-actions-panel,.nutrition-smart-panel,.nutrition-trend-panel,.nutrition-meal-card,
    .smart-list-card,.smart-publish-card,.energy-status-card,.rw-filter-panel,.inventory-summary-card,
    .archive-master-card,.correction-history-card,.integration-status,
    .admin-integration-card,.admin-command-strip
  ) {
    background:#fff!important;
    background-image:none!important;
    color:#18382b!important;
    border-color:#dfE4d9!important;
    box-shadow:0 10px 30px rgba(20,49,33,.055)!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-form-card,.product-panel,.panel-card,.admin-card,.reports-panel,.reports-table-panel,
    .product-info-card,.warehouse-document-card,.nutrition-meal-card,.admin-settings-card
  ) :is(h2,h3,h4,strong,b) {color:#19392d;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-empty,.reports-empty,.orbit-empty-state,.warehouse-dashboard-empty,.rw-allocation-empty,
    .admin-notice,.warehouse-note,.nutrition-dashboard-date
  ) {background:#f5f7f0!important;color:#325745!important;border-color:#dce5d5!important;}
  html[data-theme="dark"] :is(.product-table-wrap,.reports-table-wrap) {
    background:#fff!important;border-color:#dbe2d7!important;
    box-shadow:0 8px 24px rgba(22,50,31,.04);
  }
  html[data-theme="dark"] :is(.product-table,.reports-table) {background:#fff;color:#1c382b;}
  html[data-theme="dark"] :is(.product-table,.reports-table) :is(th,thead td) {
    background:#edf3e9!important;color:#244a35!important;border-color:#d8e1d4!important;
  }
  html[data-theme="dark"] :is(.product-table,.reports-table) :is(td,tbody th) {
    background:#fff;color:#254333;border-color:#e3e8df;
  }
  html[data-theme="dark"] :is(.product-table,.reports-table) tbody tr:nth-child(even) td {background:#fbfcf9;}
  html[data-theme="dark"] :is(.product-table,.reports-table) tbody tr:hover td {background:#f2f8ef;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(label,.product-field,.admin-field,.nutrition-field,.workspace-field) {color:#284a37;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
  html[data-theme="dark"] :is(.orbit-home,.setup-shell,.login-wow-card) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    color:#1c3c2b!important;
    background:#fff!important;
    border-color:#c9d8cb!important;
    caret-color:#2b674a;
  }
  html[data-theme="dark"] :is(.module-content,.future-content,.orbit-home,.setup-shell,.login-wow-card) :is(input,textarea)::placeholder {color:#758a78!important;opacity:1;}
  html[data-theme="dark"] :is(.module-content,.future-content,.orbit-home,.setup-shell,.login-wow-card) :is(input,select,textarea):focus-visible {
    outline:3px solid rgba(184,127,35,.34)!important;
    outline-offset:1px;border-color:#bb8a36!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(input[type="checkbox"],input[type="radio"]) {accent-color:#1e6949;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.product-primary,.admin-primary,.future-cta,.btn-primary) {
    background:#194d36!important;color:#fff!important;border-color:#194d36!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.product-secondary,.admin-secondary,.btn-secondary,.product-clear) {
    background:#fffdf8!important;color:#1b593b!important;border-color:#ccdbc9!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.product-primary,.admin-primary,.product-secondary,.admin-secondary,.btn-secondary,.product-clear):hover {filter:brightness(.96);}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.product-status.is-ok,.reports-status.is-ok,.workspace-state.is-done) {
    background:#e8f3e8!important;color:#215a37!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.product-status.is-warn,.reports-status.is-warn) {
    background:#fff3dc!important;color:#875c18!important;
  }
  /* Dodatkowe ekrany (Produkty, Dania, Intendent i Raporty) — realna biel. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-detail-card,.product-section-card,.product-import-card,.dish-card,.dish-form,.dish-panel,
    .dish-version-card,.dish-ingredient-card,.dish-summary,.dish-filter,.dish-list,
    .intendent-panel,.intendent-card,.intendent-kpi,.intendent-day-card,
    .menu-day-card,.menu-meal-card,.attendance-card,.children-card,.group-card,
    .calculator-card,.calculator-panel,.calculator-summary,.calculator-result,
    .smart-card,.smart-dish-card,.smart-form-card,.smart-proposal-card,
    .warehouse-card,.warehouse-filter,.warehouse-panel,.warehouse-stock-card,
    .reports-card,.report-card,.report-filter,.report-toolbar,
    .admin-form,.admin-toggle-row,.admin-field-group,.admin-choice-grid,
    .workspace-card,.workspace-panel,.orbit-card,.orbit-panel
  ) {
    background-color:#fff!important;
    color:#1b402f!important;
    border-color:#dbe3d7!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-summary-strip,.warehouse-dashboard-kpis,.nutrition-kpis,.reports-kpis,
    .admin-grid,.product-form-grid,.form-grid-2
  ) {color:#1c4230;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-info-card,.dish-form,.dish-card,.admin-form,.warehouse-card,.reports-panel,.panel-card
  ) :is(p,small,li,dt,dd) {color:#536d5d;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .admin-notice.is-success,.product-notice.is-success,.product-status.is-ok
  ) {background:#e9f6ec!important;color:#205a38!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .admin-notice.is-error,.product-notice.is-error,.product-danger
  ) {background:#fff2ed!important;color:#8a3829!important;border-color:#eeb8a8!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    table:not(.calendar),.product-table,.reports-table
  ) {background-color:#fff;color:#1c402f;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    table:not(.calendar),.product-table,.reports-table
  ) thead {background-color:#ecf2e9;color:#214934;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    table:not(.calendar),.product-table,.reports-table
  ) :is(th,td) {border-color:#e0e7df;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    table:not(.calendar),.product-table,.reports-table
  ) tbody tr:nth-child(even) {background:#fafbf8;}

  /* Formularze, popupy, drop-downy i dialogi również muszą być czytelne. */
  html[data-theme="dark"] :is(.orbit-select-menu,.product-modal,.admin-modal,.modal-content,.dialog-panel,.nutriva-modal) {
    background:#fff!important;color:#193b2b!important;border-color:#dce3d7!important;
    box-shadow:0 16px 50px rgba(13,46,30,.16)!important;
  }
  html[data-theme="dark"] :is(.orbit-select-menu,.product-modal,.admin-modal,.modal-content,.dialog-panel,.nutriva-modal) :is(button,a,label) {color:#173c2a;}
  html[data-theme="dark"] .orbit-select-menu [role="option"][aria-selected="true"] {background:#eff5e9!important;color:#16553b!important;}
  html[data-theme="dark"] .commandbar .orbit-select-trigger{background:#fff!important;color:#1d4933!important;border-color:#cadccc!important;}
  html[data-theme="dark"] .commandbar .orbit-select-trigger :is(.orbit-select-label,.orbit-select-value) {color:#214836!important;}

  /* PULPIT /modules: górna belka i hero pozostają ciemnozielone. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  /* White cards sit on the cream canvas; avoid a decorative dark block under the task panel. */
  
  
  
  
  

  /* EKRAN LOGOWANIA: ciemny fotograficzny hero + prawdziwie biała karta logowania. */
  html[data-theme="dark"] .login-wow-v2 {
    background:#f8f4eb!important;color:#193a2d!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-media {background-color:#10382a;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-shade {
    background:linear-gradient(100deg,rgba(5,39,26,.91) 0%,rgba(8,39,27,.80) 42%,rgba(8,34,26,.24) 74%,rgba(255,250,238,.11) 100%)!important;
  }
  html[data-theme="dark"] .login-wow-v2 :is(.login-wow-manifesto,.login-wow-header) {color:#fff8eb;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-manifesto :is(h1,p) {color:#fff9ed!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-manifesto em {color:#f1cb78!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card {
    background:rgba(255,255,255,.975)!important;color:#173d2b!important;
    border:1px solid #e2ddca!important;box-shadow:0 25px 80px rgba(4,36,20,.22)!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-card :is(h2,h3,strong,label,.login-wow-card-copy>h2) {color:#173e2b!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card :is(p,small,.login-wow-card-copy>p) {color:#607967!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card .login-wow-card-head {border-bottom-color:#dfE6db!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card :is(.future-form input,.login-wow-form input) {background:#fff!important;color:#1b402d!important;border-color:#cbdace!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card :is(button[type="submit"],.login-wow-submit,.future-submit) {background:#194c35!important;color:#fff!important;border-color:#194c35!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card .login-wow-card-symbol {background:#ecf4e9!important;color:#1c6747!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card .login-wow-card-copy h2 span {color:#ae8031!important;}

  /* KREATOR: lewa część zielona, prawa kremowa, biały panel wypełniania danych. */
  html[data-theme="dark"] .setup-shell {
    --setup-ink:#193d2d;--setup-muted:#5a7664;--setup-line:#d8ded0;
    background:linear-gradient(90deg,#103a2a 0%,#103a2a 44%,#f8f5ed 44%,#f8f5ed 100%)!important;
    color:#183b2c!important;
  }
  html[data-theme="dark"] .setup-shell:before {
    background:linear-gradient(96deg,rgba(6,36,24,.54) 0%,rgba(10,51,33,.33) 44%,transparent 44%)!important;
  }
  html[data-theme="dark"] .setup-shell .setup-photo {opacity:.18!important;}
  html[data-theme="dark"] .setup-shell .setup-intro,
  html[data-theme="dark"] .setup-shell .setup-top {color:#fff8e9;}
  html[data-theme="dark"] .setup-shell .setup-intro :is(h1,p,.setup-bottom-note,.setup-path strong,.setup-path small) {color:#fff8ee!important;}
  html[data-theme="dark"] .setup-shell .setup-intro :is(.setup-eyebrow,.setup-badge,.setup-path>div span) {color:#f3ce83!important;}
  html[data-theme="dark"] .setup-shell .setup-top .setup-top-right {color:#f1e6c7;}
  html[data-theme="dark"] .setup-shell .setup-card {
    background:#fff!important;color:#193d2d!important;border:1px solid #e5e1d6!important;
    box-shadow:0 28px 65px rgba(21,47,32,.12)!important;
    backdrop-filter:none!important;
  }
  html[data-theme="dark"] .setup-shell .setup-card :is(h2,h3,strong,legend) {color:#19412e!important;}
  html[data-theme="dark"] .setup-shell .setup-lead,
  html[data-theme="dark"] .setup-shell .setup-note {color:#5e7464!important;}
  html[data-theme="dark"] .setup-shell .setup-field {color:#254b37!important;}
  html[data-theme="dark"] .setup-shell .setup-field b {color:#996d25!important;}
  html[data-theme="dark"] .setup-shell .setup-field :is(input,select) {background:#fff!important;color:#1c3e2c!important;border:1px solid #cad7c9!important;}
  html[data-theme="dark"] .setup-shell .setup-choice-list label,
  html[data-theme="dark"] .setup-shell .setup-note {background:#f7f9f4!important;color:#28543c!important;border-color:#dce5d8!important;}
  html[data-theme="dark"] .setup-shell .setup-primary {background:#194d37!important;color:#fff!important;border-color:#194d37!important;}
  html[data-theme="dark"] .setup-shell .setup-back {color:#296247!important;}
  html[data-theme="dark"] .setup-shell .setup-progress span {background:#eff3e9;color:#5c7762;border:1px solid #d2decf;}
  html[data-theme="dark"] .setup-shell .setup-progress span.is-active {background:#e8c580!important;color:#173e2c!important;}
  html[data-theme="dark"] .setup-shell .setup-top-version {border-color:rgba(255,247,220,.4);color:#fff9e9;}

  /* Elementy wydruków nie są modyfikowane. */
  :where(a,button,input,select,textarea):focus-visible {outline-color:#ab7a22;}
}
@media screen and (max-width:1080px) {
  html[data-theme="dark"] .setup-shell {
    background:linear-gradient(180deg,#103a2a 0%,#103a2a 34%,#f8f5ed 34%,#f8f5ed 100%)!important;
  }
  html[data-theme="dark"] .setup-shell:before {background:linear-gradient(180deg,rgba(6,36,24,.35) 0%,transparent 34%)!important;}
  html[data-theme="dark"] .setup-shell .setup-grid {gap:28px;}
  html[data-theme="dark"] .setup-shell .setup-intro {padding:0 0 15px;}
}
@media screen and (max-width:680px) {
  
  
  
  html[data-theme="dark"] .setup-shell {background:linear-gradient(180deg,#103a2a 0%,#103a2a 29%,#f8f5ed 29%,#f8f5ed 100%)!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card {background:#fff!important;}
}
@media print {
  html[data-theme="dark"] body {background:#fff!important;color:#000!important;}
  html[data-theme="dark"] .nutriva-orbit-photo {display:none!important;}
}

/* Nutriva NEXT 0.14.5.1: kontrast i czytelnosc motywu Normalny.
   Warstwa naprawcza po orbit-hybrid.css. Wylacznie interfejs ekranowy:
   nie rusza mechaniki, trybu Wysoki kontrast, wydrukow ani zasobow graficznych. */
@media screen {
  html[data-theme="dark"] {
    --nutriva-ui-ink: #18392b;
    --nutriva-ui-muted: #526d5d;
    --nutriva-ui-soft: #f4f7f0;
    --nutriva-ui-white: #fff;
    --nutriva-ui-border: #d5dfd3;
    --nutriva-ui-gold: #986416;
    --nutriva-ui-green: #174c36;
  }
  /* Eliminate semitransparent grey-green panels with dark text. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .warehouse-kpi,.product-stat,.reports-kpi,
    .calculator-day-summary > *, .calculator-nutrient-card,.calculator-summary-title,
    .nutrition-meal-card,.nutrition-quick,.nutrition-smart-list > a,
    .warehouse-attention-block,.warehouse-attention-list > a,
    .warehouse-expiry-list > a,.warehouse-dashboard-action,
    .nutrition-attention-list > a,.warehouse-quick-action,
    .reports-signal-grid > a,.reports-attention-list > a,
    .reports-bar-track,.reports-spark-list > div,.reports-shortcuts > a,
    .smart-list-metrics > *, .smart-list-card,
    .intendent-day-card,.intendent-day-card.is-closed,
    .reports-menu-day,.reports-meal-block,
    .calculator-meal-card,.calculator-note-card,
    .product-summary-strip > *, .product-summary-strip .product-summary-item,
    .dish-summary-strip > *,.dish-nutrition-box,.nutrition-card,
    .intendent-attendance-person,.intendent-attendance-row,
    .warehouse-stock-card,.warehouse-lot-row,.warehouse-lot-card,
    .admin-control-tile,.admin-dashboard-link,.admin-summary-list > *,
    .reports-period-stats > *, .reports-summary-stats > *
  ) {
    background: var(--nutriva-ui-white) !important;
    background-image: none !important;
    color: var(--nutriva-ui-ink) !important;
    border-color: var(--nutriva-ui-border) !important;
    text-shadow: none !important;
  }
  /* Dashboard KPIs: all digits and state words readable on white. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .warehouse-kpi,.product-stat,.reports-kpi,.calculator-nutrient-card,
    .calculator-summary-title,.nutrition-meal-card,.smart-list-metrics,
    .reports-period-stats,.reports-summary-stats
  ) :is(strong,b,em) {
    color: #163c2b !important;
    -webkit-text-fill-color: currentColor !important;
    opacity: 1 !important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .warehouse-kpi,.product-stat,.reports-kpi,.calculator-nutrient-card,
    .calculator-summary-title,.nutrition-meal-card,.smart-list-metrics,
    .reports-period-stats,.reports-summary-stats
  ) :is(span,small,p) {
    color: #506b5b !important;
    opacity: 1 !important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .warehouse-kpi.is-alert,.product-stat.is-alert,.reports-kpi.is-alert
  ) > strong {color:#9a3524!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .warehouse-kpi.is-warn,.product-stat.is-warn,.reports-kpi.is-warn
  ) > strong {color:#935b12!important;}
  /* All cards with copy, labels and small amounts. Never opacity-hide important text. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .nutrition-quick,.nutrition-smart-list > a,.nutrition-attention-list > a,
    .warehouse-attention-block,.warehouse-attention-list > a,.warehouse-expiry-list > a,
    .warehouse-dashboard-action,.warehouse-quick-action,.reports-signal-grid > a,
    .reports-shortcuts > a,.smart-list-card,.intendent-day-card,
    .reports-menu-day,.reports-meal-block,.calculator-meal-card,
    .warehouse-lot-card,.warehouse-lot-row,.admin-control-tile,
    .admin-dashboard-link,.admin-summary-list > *
  ) :is(strong,b,h2,h3,h4,a) {color:#1b4632!important;opacity:1!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .nutrition-quick,.nutrition-smart-list > a,.nutrition-attention-list > a,
    .warehouse-attention-block,.warehouse-attention-list > a,.warehouse-expiry-list > a,
    .warehouse-dashboard-action,.warehouse-quick-action,.reports-signal-grid > a,
    .reports-shortcuts > a,.smart-list-card,.intendent-day-card,
    .reports-menu-day,.reports-meal-block,.calculator-meal-card,
    .warehouse-lot-card,.warehouse-lot-row,.admin-control-tile,
    .admin-dashboard-link,.admin-summary-list > *
  ) :is(span,small,p,em) {color:#526d5c!important;opacity:1!important;}
  /* Date / meal plan cards - distinct today's day without dark-on-dark. */
  html[data-theme="dark"] .intendent-week-grid .intendent-day-card.is-today {
    background:#fff7e5!important;border:2px solid #aa7a29!important;
  }
  html[data-theme="dark"] .intendent-week-grid .intendent-day-card.is-finalized {
    border-color:#72a17e!important;
  }
  html[data-theme="dark"] .intendent-week-grid .intendent-day-head > span {color:#196949!important;}
  html[data-theme="dark"] .intendent-week-grid .intendent-day-head > strong {color:#214b35!important;}
  html[data-theme="dark"] .intendent-week-grid .intendent-day-card .intendent-day-empty :is(strong,small) {
    color:#315743!important;
  }
  html[data-theme="dark"] .intendent-week-grid .intendent-day-head > b {
    background:#a56e1e!important;color:#fff!important;
  }
  /* Attendance: alternate rows, visible names and notes on white. */
  html[data-theme="dark"] .intendent-attendance-row:nth-child(even) {
    background:#f5f8f2!important;
  }
  html[data-theme="dark"] .intendent-attendance-row :is(.intendent-attendance-person strong,.intendent-attendance-person small) {
    color:#244b35!important;opacity:1!important;
  }
  html[data-theme="dark"] .intendent-attendance-head {
    background:#153c2b!important;color:#fff!important;
  }
  html[data-theme="dark"] .intendent-attendance-head :is(span,strong) {color:#fff!important;}
  /* Product documents, archive and report tables with light links on white. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-table,.reports-table,.warehouse-table,.rw-table,.pz-table,
    .inventory-table,.correction-table,.dish-table,.archive-table,
    table:not(.calendar)
  ) :is(a,td,th,strong,small,span,b) {opacity:1!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-table,.reports-table,.warehouse-table,.rw-table,.pz-table,
    .inventory-table,.correction-table,.dish-table,.archive-table,
    table:not(.calendar)
  ) tbody :is(a,strong,b) {color:#194a33!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-table,.reports-table,.warehouse-table,.rw-table,.pz-table,
    .inventory-table,.correction-table,.dish-table,.archive-table,
    table:not(.calendar)
  ) tbody :is(td,small,span) {color:#405e4c!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-table,.reports-table,.warehouse-table,.rw-table,.pz-table,
    .inventory-table,.correction-table,.dish-table,.archive-table,
    table:not(.calendar)
  ) thead :is(th,span,strong) {color:#224d35!important;}
  /* Nutriva component status badges: keep semantic colors distinguishable. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-status.is-ok,.reports-status.is-ok,.product-status.is-active,.product-status.is-finalized
  ) {background:#e8f5e9!important;color:#17603d!important;border-color:#c9e2cd!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-status.is-warn,.reports-status.is-warn,.product-status.is-draft
  ) {background:#fff1d8!important;color:#855514!important;border-color:#e3ca9b!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-status,.reports-status,.energy-status-pill,.warehouse-badge
  ) :is(span,i,b) {color:inherit!important;}
  /* Calculator light cards intentionally excluded from inverse-text toolbar rules. */
  /* Calm light toolbars for editing and filtering; dark primary actions remain distinct. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .nutrition-attention-list,.nutrition-quick-grid,.warehouse-attention-grid,
    .reports-menu-preview,.warehouse-filterbar,.correction-filterbar,
    .calculator-recipients,.calculator-entry-row,.calculator-entry-list,
    .admin-readiness-list,.admin-summary-list,.smart-list-body
  ) {color:#1f4734!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .reports-toolbar,.reports-filterbar,.reports-toolbar-form,
    .warehouse-dashboard-signal,.reports-hero,.admin-orbit-hero
  ) {
    color:#fffaf0!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .reports-toolbar,.reports-filterbar,.reports-toolbar-form,
    .warehouse-dashboard-signal,.reports-hero,.admin-orbit-hero
  ) :is(h1,h2,h3,strong,small,span,p,label) {color:#fffaf0!important;opacity:1!important;}
  html[data-theme="dark"] .reports-hero :is(h1,h2,strong) {color:#fffaf0!important;}
  html[data-theme="dark"] .reports-hero h1 em {color:#f0cb7e!important;}
  html[data-theme="dark"] .reports-hero :is(p,.future-kicker) {color:#dfebdd!important;}
  html[data-theme="dark"] .reports-hero .reports-orbit-core :is(strong,small) {color:#fffaf0!important;}
  html[data-theme="dark"] .calculator-workbar :is(button,a.btn-secondary) {color:#173f2b!important;}
  html[data-theme="dark"] .calculator-workbar :is(.product-primary,button[type="submit"].is-primary) {color:#fff!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-primary,.admin-primary,.future-cta,.btn-primary
  ) {color:#fff!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .product-primary,.admin-primary,.future-cta,.btn-primary
  ) :is(span,strong,svg) {color:#fff!important;}
  /* Selects and search controls cannot inherit dark-theme white text. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(
    .orbit-select-trigger,.product-search,.product-search input,
    .orbit-select-menu,.product-filter select,.product-filter input,
    .reports-toolbar input,.reports-toolbar select
  ) {color:#183d2d!important;}
  html[data-theme="dark"] :is(.module-content,.future-content) .product-search :is(input,button[type="button"]) {
    background:#fff!important;color:#1b422f!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.product-search button[type="submit"],.product-primary) {
    background:#174d37!important;color:#fff!important;
  }
  /* Preferences dropdown + current label: high contrast in both topbars. */
  html[data-theme="dark"] .preferences,
  html[data-theme="dark"] .orbit-select-menu {
    background:#fff!important;color:#183e2c!important;
    border-color:#cbd9cb!important;
  }
  html[data-theme="dark"] .preferences :is(.orbit-select-trigger,.orbit-select-label,.orbit-select-value),
  html[data-theme="dark"] .orbit-select-menu :is(button,span,strong,small) {
    color:#1e4832!important;opacity:1!important;
  }
  html[data-theme="dark"] .orbit-select-menu button[aria-selected="true"] {
    background:#e9f2e7!important;color:#134c32!important;
  }
  html[data-theme="dark"] .orbit-select-menu button:focus-visible,
  html[data-theme="dark"] :is(.module-content,.future-content) :is(a,button,select,input,textarea):focus-visible {
    outline:3px solid #af7b2c!important;outline-offset:2px;
  }
  /* Background remains atmospheric but is subordinate to content. */
  html[data-theme="dark"] body.nutriva-photo-enabled > .nutriva-orbit-photo {
    opacity:.055!important;
  }
}
@media print {
  /* The normal UI correction must never affect document print layouts. */
}


/* ================================================================
   ORBIT DESIGN SYSTEM v1.1 — CANONICAL TOKENS & COMPONENT CONTRACTS
   ================================================================ */
@media screen {
  html[data-theme="dark"] {
    --nv-bg:#f7f5ef; --nv-surface:#fff; --nv-surface-muted:#f4f7f1;
    --nv-forest:#0c3026; --nv-ink:#17392b; --nv-muted:#4a6657;
    --nv-gold:#c69b4a; --nv-gold-ink:#835a17; --nv-border:#d7e0d4;
    --nv-focus:#a46e17; --nv-shadow:0 12px 36px rgba(16,48,32,.07);
    --nv-radius-card:18px; --nv-radius-control:12px; --nv-control-h:44px;
    --nv-ok-bg:#eaf5eb;--nv-ok-text:#19502f;
    --nv-warn-bg:#fff2d9;--nv-warn-text:#7d4c10;
    --nv-danger-bg:#fff0ed;--nv-danger-text:#8d3026;
    --surface:var(--nv-surface);--surface-2:var(--nv-surface-muted);
    --surface-glass:var(--nv-surface);--ink:var(--nv-ink);
    --muted:var(--nv-muted);--muted-2:#5f7867;
    --line:var(--nv-border);--line-strong:#b5c9b7;
    --emerald:#196c4b;--emerald-deep:#145137;
    --nav:var(--nv-forest);--nav-ink:#fff;
    --shadow:var(--nv-shadow);--soft-shadow:0 6px 18px rgba(16,48,32,.06);
    color-scheme:light;
  }
  html[data-theme="contrast"] {
    --nv-bg:#000;--nv-surface:#000;--nv-surface-muted:#090909;
    --nv-forest:#000;--nv-ink:#fff;--nv-muted:#fff;
    --nv-gold:#ffeb00;--nv-gold-ink:#ffeb00;--nv-border:#fff;
    --nv-focus:#ffeb00;--nv-shadow:none;
    --nv-radius-card:18px;--nv-radius-control:12px;--nv-control-h:44px;
    --nv-ok-bg:#000;--nv-ok-text:#fff;
    --nv-warn-bg:#000;--nv-warn-text:#ffeb00;
    --nv-danger-bg:#000;--nv-danger-text:#ffeb00;
    color-scheme:dark;
  }
  /* A single visual grammar for all forms. Native input stays authoritative. */
  html[data-theme="dark"] :is(.module-content,.future-content,.login-wow-card,.setup-card)
    :is(input[data-orbit-field]:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
        textarea[data-orbit-field],select[data-orbit-field]),
  html[data-theme="dark"] :is(.module-content,.future-content,.login-wow-card,.setup-card)
    :is(.orbit-select-button,.orbit-field-select) {
      min-height:var(--nv-control-h);border-radius:var(--nv-radius-control);
      background:var(--nv-surface)!important;color:var(--nv-ink)!important;
      border:1px solid #becfbe!important;box-shadow:none;
      font-size:max(.875rem,var(--ui-font-control));
  }
  html[data-theme="dark"] :is(.module-content,.future-content)
     :is(input[data-orbit-field],textarea[data-orbit-field])::placeholder {color:#637968;opacity:1;}
  /* Open dropdown is a first-class component, not an OS-styled grey menu. */
  html[data-theme="dark"] .orbit-select-popover {
    background:#fff;border:1px solid var(--nv-border);color:var(--nv-ink);
    border-radius:var(--nv-radius-control);box-shadow:0 18px 42px rgba(12,48,38,.17);
    backdrop-filter:none;
  }
  html[data-theme="dark"] .orbit-select-option {color:var(--nv-ink);font-weight:570;}
  html[data-theme="dark"] .orbit-select-option:is(:hover,:focus-visible) {
    color:var(--nv-ink);background:#edf4ea;outline:2px solid transparent;
  }
  html[data-theme="dark"] .orbit-select-option[aria-selected="true"] {background:#e7f2e6;color:#145035;font-weight:750;}
  html[data-theme="dark"] .orbit-select-group {color:var(--nv-gold-ink);}
  html[data-theme="dark"] .orbit-select-button[aria-expanded="true"] {
    border-color:var(--nv-focus)!important;box-shadow:0 0 0 2px #c69b4a45;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] {
    width:100%;border-collapse:separate;border-spacing:0;
    background:var(--nv-surface);color:var(--nv-ink);
    font-size:var(--ui-font-table,.875rem);
  }
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] thead :is(th,td){
    min-height:44px;background:#eaf1e8;color:#183f2c;
    font-weight:800;text-align:left;border-bottom:1px solid var(--nv-border);
  }
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] tbody :is(td,th){
    color:var(--nv-ink);background:#fff;border-bottom:1px solid #e3e9e0;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] tbody tr:nth-child(even) :is(td,th){background:#fafcf9;}
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] tbody tr:hover :is(td,th){background:#f0f6ef;}
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] :is(a,button){color:#18553b;}
  html[data-theme="dark"] :is(.module-content,.future-content) [data-orbit-table] :is(a,button):focus-visible {outline:3px solid var(--nv-focus);outline-offset:2px;}
  /* Semantic utilities for all new Blade components. */
  .nv-card {background:var(--nv-surface);border:1px solid var(--nv-border);border-radius:var(--nv-radius-card);box-shadow:var(--nv-shadow);padding:22px;color:var(--nv-ink);}
  .nv-field {display:grid;gap:6px;color:var(--nv-ink);font-size:.9rem;font-weight:650;}
  .nv-field-control {width:100%;min-height:var(--nv-control-h);padding:10px 13px;border:1px solid var(--nv-border);border-radius:var(--nv-radius-control);background:var(--nv-surface);color:var(--nv-ink);font:inherit;}
  .nv-field-hint {font-size:.82rem;color:var(--nv-muted);font-weight:450;}
  .nv-btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--nv-control-h);padding:9px 17px;border:1px solid var(--nv-border);border-radius:var(--nv-radius-control);background:#fff;color:#184a34;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;}
  .nv-btn--primary {background:var(--nv-forest);color:#fff;border-color:var(--nv-forest);}
  .nv-btn--danger {background:#fff0ed;color:#8d3026;border-color:#d59f96;}
  .nv-btn--ghost {background:transparent;border-color:transparent;color:var(--nv-ink);}
  .nv-badge {display:inline-flex;gap:5px;align-items:center;padding:4px 9px;border-radius:999px;background:#edf3e9;color:#22543b;font-size:.78rem;font-weight:800;border:1px solid #d6e1d4;}
  .nv-badge--warning {background:var(--nv-warn-bg);color:var(--nv-warn-text);border-color:#e8cf97;}
  .nv-badge--danger {background:var(--nv-danger-bg);color:var(--nv-danger-text);border-color:#e7bbb4;}
  .nv-badge--success {background:var(--nv-ok-bg);color:var(--nv-ok-text);border-color:#cbe2d0;}
  .nv-toolbar {display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px;background:#fff;border:1px solid var(--nv-border);border-radius:var(--nv-radius-card);}
  .nv-table-wrap {background:#fff;border:1px solid var(--nv-border);border-radius:var(--nv-radius-card);overflow:auto;max-width:100%;}
  .nv-empty {padding:22px;text-align:center;color:var(--nv-muted);background:#f4f7f1;border:1px dashed var(--nv-border);border-radius:14px;}
  .nv-page-heading {display:grid;gap:9px;margin-bottom:24px;padding-bottom:22px;border-bottom:1px solid var(--nv-border);}
  .nv-page-heading h1 {font-size:clamp(2rem,4.2vw,3.2rem);line-height:1.06;letter-spacing:-.045em;margin:0;color:var(--nv-ink);}
  .nv-page-heading p {margin:0;color:var(--nv-muted);}
  .nv-tabs {display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--nv-border);}
  .nv-tabs [role="tab"] {border:0;border-bottom:3px solid transparent;color:var(--nv-muted);padding:12px;background:transparent;font:inherit;font-weight:700;}
  .nv-tabs [role="tab"][aria-selected="true"] {border-color:var(--nv-gold-ink);color:var(--nv-ink);}
  html[data-theme="dark"] :is(.nv-btn,.nv-field-control,.orbit-select-button):focus-visible {outline:3px solid var(--nv-focus);outline-offset:2px;}
  /* KPI text must be readable without borrowing an old dark-theme value. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.warehouse-kpi,.product-stat,.reports-kpi,.nutrition-kpi,.intendent-kpi,.admin-kpi) {
    background:#fff!important;color:var(--nv-ink)!important;
    border:1px solid var(--nv-border)!important;
  }
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.warehouse-kpi,.product-stat,.reports-kpi,.nutrition-kpi,.intendent-kpi,.admin-kpi) :is(strong,b) {
    color:var(--nv-ink)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;
  }
  /* Dark inverse region is intentional, with white texts, never dark inherited labels. */
  html[data-theme="dark"] :is(.reports-hero,.report-hero,.warehouse-toolbar,.warehouse-summary-bar,.calculator-day-summary,.module-hero) {--nv-ink:#fff;--nv-muted:#d8e5dc;}
  html[data-theme="dark"] :is(.reports-hero,.report-hero,.warehouse-toolbar,.warehouse-summary-bar,.module-hero) :is(h1,h2,h3,strong) {color:#fff;}
  /* Active sidebar, shared across five modules. */
  html[data-theme="dark"] .module-nav .module-menu a.active {background:#244c39;color:#fff8e9;border-color:#c69b4a;}
  /* Select menu must always float above cards and clip containers. */
  .orbit-select-popover {z-index:12000;}
  /* Cards should not transmit kitchen image through work data. */
  html[data-theme="dark"] :is(.module-content,.future-content) :is(.nv-card,.product-panel,.reports-panel,.admin-card,.warehouse-card,.calculator-panel,.dish-card) {backdrop-filter:none;}
  /* Unified mobile behavior without full-body horizontal overflow. */
  :is(.module-content,.future-content) {min-width:0;}
  :is(.module-content,.future-content) :is(.nv-table-wrap,.product-table-wrap,.warehouse-table-wrap,.reports-table-wrap){max-width:100%;overflow-x:auto;}
  @media(max-width:680px){
    .nv-toolbar {display:grid;grid-template-columns:minmax(0,1fr);}
    .nv-card {padding:16px;}
    .nv-btn {width:100%;}
  }
}
/* High contrast: logo and selected navigation follow the same strict palette. */
@media screen {
  html[data-theme="contrast"] :is(.module-nav,.nav-panel) {background:#000!important;color:#fff!important;border-color:#fff!important;}
  html[data-theme="contrast"] .module-nav .module-menu a.active,
  html[data-theme="contrast"] .module-nav .module-menu a:hover,
  html[data-theme="contrast"] :is(.future-nav a.active,.orbit-home .module:is(:focus-visible,:hover)) {
    background:#000!important;color:#ffeb00!important;border:2px solid #ffeb00!important;
    box-shadow:none!important;text-shadow:none!important;
  }
  html[data-theme="contrast"] .module-nav .module-menu a.active :is(span,small){color:#ffeb00!important;}
  html[data-theme="contrast"] .module-nav .module-menu-mark {background:#ffeb00!important;box-shadow:none!important;}
  html[data-theme="contrast"] img.nutriva-brand-logo, html[data-theme="contrast"] .setup-logo{content:url("/nutriva/brand/nutriva-logo-contrast.svg");}
  html[data-theme="contrast"] .orbit-select-popover,
  html[data-theme="contrast"] .orbit-select-button,
  html[data-theme="contrast"] .orbit-select-control,
  html[data-theme="contrast"] .orbit-select-option {
    background:#000!important;color:#fff!important;border-color:#fff!important;box-shadow:none!important;
  }
  html[data-theme="contrast"] .orbit-select-popover {border:2px solid #fff!important;}
  html[data-theme="contrast"] .orbit-select-option:is(:hover,:focus-visible),
  html[data-theme="contrast"] .orbit-select-option[aria-selected="true"] {
    background:#ffeb00!important;color:#000!important;outline:2px solid #ffeb00!important;
  }
  html[data-theme="contrast"] :is(.module-content,.future-content) [data-orbit-table] :is(th,td) {background:#000!important;color:#fff!important;border:1px solid #fff!important;}
  html[data-theme="contrast"] :is(.module-content,.future-content) [data-orbit-table] tbody tr:hover :is(td,th) {background:#181818!important;}
  html[data-theme="contrast"] :is(.nv-card,.nv-toolbar,.nv-table-wrap,.nv-empty,.nv-field-control,.nv-btn,.nv-badge) {background:#000!important;color:#fff!important;border:2px solid #fff!important;box-shadow:none!important;}
  html[data-theme="contrast"] .nv-btn--primary,
  html[data-theme="contrast"] .nv-tabs [role="tab"][aria-selected="true"] {background:#ffeb00!important;color:#000!important;border-color:#ffeb00!important;}
  html[data-theme="contrast"] :is(a,button,input,select,textarea):focus-visible {outline:3px solid #ffeb00!important;outline-offset:3px!important;}
  html[data-theme="contrast"] :is(.module-content,.future-content) [data-orbit-field] {background:#000!important;color:#fff!important;border:2px solid #fff!important;}
  html[data-theme="contrast"] .module-nav :is(.module-identity>span,.module-context-chip small,.module-menu a,.module-menu a small) {color:#fff!important;opacity:1!important;}
  html[data-theme="contrast"] .module-nav .module-menu a.active :is(span,small) {color:#ffeb00!important;}
  html[data-theme="contrast"] :is(input,textarea)::placeholder {color:#e8e8e8!important;opacity:1!important;}
  html[data-theme="contrast"] .module-nav :is(::before,::after) {box-shadow:none!important;}
  
}
@media print {
  html[data-theme="dark"] :is(.nv-card,.nv-table-wrap) {background:#fff!important;color:#000!important;box-shadow:none!important;}
  .nutriva-orbit-photo,.orbit-select-popover {display:none!important;}
}

/* Nutriva NEXT 0.14.6.3 — login korzystający z Orbit Design System.
   Zastępuje błędną kompozycję 0.14.6.2, nie dokładając nowego arkusza CSS.
   Login i hasło są tym samym komponentem; przycisk to nv-btn--primary.
*/
@media screen {
  .future-login.login-wow-v2 {
    /* Ważne: stary .future-login był gridem dwukolumnowym.
       Ograniczał .login-wow-stage do pierwszej kolumny, stąd karta na środku zdjęcia. */
    display:block;
    width:100%;
    min-height:100svh;
    overflow-x:clip;
    box-sizing:border-box;
  }
  .login-wow-v2 :where(*, *::before, *::after) {box-sizing:border-box;}
  .login-wow-v2 .login-wow-stage {
    position:relative;
    z-index:8;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(370px,440px);
    align-items:center;
    column-gap:clamp(48px,7vw,135px);
    width:100%;
    max-width:none;
    min-height:100svh;
    margin:0;
    padding:118px clamp(32px,5.1vw,100px) 95px;
  }
  .login-wow-v2 .login-wow-header {
    position:absolute;
    z-index:50;
    top:27px;
    left:clamp(32px,5.1vw,100px);
    right:clamp(32px,5.1vw,100px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:0;
  }
  .login-wow-v2 .login-wow-header .nutriva-brand-logo {
    width:clamp(175px,13.2vw,230px);
    max-height:73px;
    object-fit:contain;
    object-position:left center;
  }
  .login-wow-v2 .login-wow-tools {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin-left:auto;
    gap:14px;
    min-width:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
  }
  .login-wow-v2 .login-wow-tools .preferences {
    display:flex;
    flex-wrap:nowrap;
    gap:8px;
    align-items:center;
    padding:0;
    background:none;
    box-shadow:none;
    border:0;
  }
  .login-wow-v2 .login-wow-tools .orbit-select {min-width:115px;}
  .login-wow-v2 .login-wow-tools .orbit-select-scale {min-width:100px;}
  .login-wow-v2 .login-wow-tools .orbit-select-language {min-width:108px;}
  .login-wow-v2 .login-wow-tools .orbit-select-trigger {
    min-height:42px;
    padding:7px 12px;
    border-radius:12px;
    box-shadow:0 5px 16px rgba(9,35,25,.07);
  }
  .login-wow-v2 .login-wow-tools .orbit-select-label {
    display:block;
    font-size:10px;
    font-weight:750;
    letter-spacing:.08em;
  }
  .login-wow-v2 .login-wow-tools .orbit-select-value {
    display:block;
    margin-top:1px;
    font-size:13px;
    line-height:1.3;
    font-weight:750;
  }
  .login-wow-v2 .login-wow-version {
    display:block;
    min-height:0;
    padding:0;
    margin:0;
    flex:none;
    background:none;
    box-shadow:none;
    border:0;
    border-radius:0;
    color:#f5eee0;
    font-weight:750;
    font-size:12px;
    letter-spacing:.045em;
    text-transform:none;
    white-space:nowrap;
    text-shadow:0 1px 12px rgba(0,0,0,.35);
  }
  .login-wow-v2 .login-wow-manifesto,
  .login-wow-v2 .login-wow-card {
    position:relative;
    top:auto;
    left:auto;
    right:auto;
    width:auto;
    margin:0;
    transform:none!important;
    animation:none!important;
  }
  .login-wow-v2 .login-wow-manifesto {
    max-width:650px;
    align-self:center;
  }
  .login-wow-v2 .login-wow-manifesto h1 {
    font-size:clamp(4rem,5.4vw,6.8rem);
    line-height:.88;
  }
  .login-wow-v2 .login-wow-manifesto > p {
    margin-top:26px;
    max-width:515px;
    font-size:clamp(14px,1vw,16px);
    line-height:1.65;
    color:#ecf4eb;
  }
  .login-wow-v2 .login-wow-flow {margin-top:28px;gap:10px;flex-wrap:wrap;}
  .login-wow-v2 .login-wow-flow-item {min-width:130px;}
  .login-wow-v2 .login-wow-card {
    justify-self:end;
    width:100%;
    max-width:440px;
    min-width:0;
    padding:30px 30px 26px;
    border-radius:24px;
    backdrop-filter:blur(24px) saturate(.9);
    -webkit-backdrop-filter:blur(24px) saturate(.9);
  }
  .login-wow-v2 .login-wow-card-orbit {display:none;}
  .login-wow-v2 .login-wow-card-head {gap:12px;}
  .login-wow-v2 .login-wow-card-head > div {gap:5px;}
  .login-wow-v2 .login-wow-divider {margin:20px 0 23px;}
  .login-wow-v2 .login-wow-card-copy h2 {
    font-size:clamp(29px,2.1vw,34px);
    font-weight:740;
    letter-spacing:-.04em;
  }
  .login-wow-v2 .login-wow-card-copy p {
    margin:9px 0 22px;
    font-size:14px;
    line-height:1.5;
  }
  .login-wow-v2 .login-wow-form {display:grid;gap:17px;}
  .login-wow-v2 .login-wow-form label {display:grid;gap:8px;}
  .login-wow-v2 .login-wow-form .future-password {position:relative;display:block;width:100%;}
  .login-wow-v2 .login-wow-form .future-password input {width:100%;}
  .login-wow-v2 .login-wow-security {margin-top:22px;padding-top:18px;font-size:12px;line-height:1.6;}
  .login-wow-v2 .login-wow-care {left:clamp(32px,5.1vw,100px);bottom:32px;}
  .login-wow-v2 .login-wow-footer {right:clamp(32px,5.1vw,100px);bottom:32px;}
}
@media screen {
  html[data-theme="dark"] .login-wow-v2 .login-wow-card {
    background:rgba(243,246,236,.91)!important;
    border:1px solid rgba(253,255,248,.64)!important;
    box-shadow:0 18px 56px rgba(5,38,26,.20),inset 0 1px rgba(255,255,255,.65)!important;
    color:#173e2d!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-card-head > div > span {
    color:#436653!important;font-size:11px;letter-spacing:.105em;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-card-head strong {
    color:#173e2d!important;font-size:13px;line-height:1.45;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-card-head {color:#173e2d!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-divider {background:#cad9c7!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card-copy h2 {color:#143a2a!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-card-copy p {color:#4e6a59!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-form label > span {
    color:#294a37!important;
    font-size:13px!important;
    font-weight:750!important;
    line-height:1.3;
  }
  /* LOGIN i HASŁO — identyczny komponent, również przy focusie i autofill. */
  html[data-theme="dark"] .login-wow-v2 .login-wow-form :is(input[data-orbit-field="input"],.future-password input[data-orbit-field="input"]) {
    display:block;
    width:100%;
    min-height:50px;
    height:50px;
    padding:0 15px;
    border:1px solid #b8cbbb!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#173e2d!important;
    font:inherit;
    font-size:14px!important;
    font-weight:550;
    box-shadow:none!important;
    appearance:none;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-form .future-password input[data-orbit-field="input"] {
    padding-right:85px;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-form input::placeholder {color:#607667!important;opacity:1!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-form input:focus-visible {
    border-color:#2e7751!important;
    outline:3px solid rgba(40,119,79,.28)!important;
    outline-offset:0;
    box-shadow:0 0 0 1px #2e7751!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-form input:-webkit-autofill {
    -webkit-text-fill-color:#173e2d!important;
    -webkit-box-shadow:0 0 0 1000px #fff inset!important;
    caret-color:#173e2d!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-form .password-toggle {
    position:absolute;
    top:50%;right:7px;
    transform:translateY(-50%);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:35px;
    padding:0 11px;
    background:#edf3e9!important;
    color:#174830!important;
    border:1px solid #d8e4d7!important;
    border-radius:9px!important;
    font-size:12px;
    font-weight:750;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-form .password-toggle:hover {background:#e0eddc!important;}
  /* Standardowa akcja primary z UI Kit, bez gradientów i dodatkowej kapsuły. */
  html[data-theme="dark"] .login-wow-v2 .login-wow-form button.login-wow-submit {
    display:flex!important;
    justify-content:space-between!important;
    align-items:center!important;
    gap:12px;
    width:100%!important;
    min-height:50px!important;
    margin:2px 0 0!important;
    padding:0 18px!important;
    background:#174c36!important;
    border:1px solid #174c36!important;
    border-radius:12px!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:780!important;
    box-shadow:none!important;
    filter:none!important;
    transition:background-color .15s ease,border-color .15s ease;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-form button.login-wow-submit > span {font-size:inherit;font-weight:inherit;color:#fff!important;display:inline;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-form button.login-wow-submit svg {width:18px;height:18px;color:#fff;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-form button.login-wow-submit:hover {
    background:#103b2a!important;
    border-color:#103b2a!important;
    transform:none!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-security {border-color:#cad9c7!important;color:#536e5e!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-security svg {color:#496c56!important;}
  /* Ustawienia nie są osobnym panelem: tylko trzy kontrolki Orbit w headerze. */
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .orbit-select-trigger {
    background:rgba(247,249,243,.93)!important;
    border:1px solid rgba(243,247,239,.68)!important;
    color:#173e2d!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .orbit-select-label {color:#4c6958!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .orbit-select-value {color:#173e2d!important;}
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .orbit-select-menu {
    color:#173e2d!important;
    background:#fff!important;
    border:1px solid #d3dfd2!important;
    box-shadow:0 14px 36px rgba(8,34,22,.17)!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .orbit-select-menu button {color:#173e2d!important;}
}
@media screen and (max-width:1060px) {
  .login-wow-v2 .login-wow-header {
    position:relative;
    top:auto;right:auto;left:auto;
    padding:22px 26px 0;
  }
  .login-wow-v2 .login-wow-stage {
    min-height:auto;
    grid-template-columns:minmax(0,1fr);
    gap:42px;
    padding:56px 26px 105px;
  }
  .login-wow-v2 .login-wow-card {justify-self:center;width:min(100%,480px);}
  .login-wow-v2 .login-wow-manifesto {max-width:800px;}
  .login-wow-v2 .login-wow-manifesto h1 {font-size:clamp(3.3rem,8vw,5rem);}
  .login-wow-v2 .login-wow-care {display:none;}
  .login-wow-v2 .login-wow-footer {bottom:26px;left:26px;right:26px;justify-content:center;}
}
@media screen and (max-width:650px) {
  .login-wow-v2 .login-wow-header {
    flex-wrap:wrap;
    padding:18px 18px 0;
    gap:12px;
  }
  .login-wow-v2 .login-wow-tools {width:100%;flex-wrap:wrap;justify-content:flex-start;gap:10px;}
  .login-wow-v2 .login-wow-tools .preferences {flex-wrap:wrap;width:100%;}
  .login-wow-v2 .login-wow-tools .orbit-select {flex:1 1 29%;min-width:0;}
  .login-wow-v2 .login-wow-version {font-size:11px;}
  .login-wow-v2 .login-wow-stage {padding:46px 18px 115px;gap:32px;}
  .login-wow-v2 .login-wow-card {width:100%;padding:23px 21px;}
  .login-wow-v2 .login-wow-manifesto h1 {font-size:clamp(3rem,12vw,4.6rem);}
  .login-wow-v2 .login-wow-flow-item {flex:1 1 110px;min-width:108px;}
  .login-wow-v2 .login-wow-footer {left:18px;right:18px;}
}
/* Wysoki kontrast: bez fotografii, wszystkie pola i kontrolki ściśle w palecie WCAG. */
html[data-theme="contrast"] .login-wow-v2 .login-wow-card {background:#000!important;color:#fff!important;border:2px solid #fff!important;box-shadow:none!important;backdrop-filter:none!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-card-head :is(span,strong) {color:#fff!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form label > span,
html[data-theme="contrast"] .login-wow-v2 .login-wow-card-copy :is(h2,p),
html[data-theme="contrast"] .login-wow-v2 .login-wow-security {color:#fff!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form input[data-orbit-field="input"] {
  background:#000!important;color:#fff!important;border:2px solid #fff!important;border-radius:12px!important;min-height:50px;height:50px;
}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form .future-password input {padding-right:85px;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form input::placeholder {color:#fff!important;opacity:1;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form .password-toggle {background:#000!important;color:#ffe600!important;border:2px solid #ffe600!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form button.login-wow-submit {background:#ffe600!important;color:#000!important;border:2px solid #ffe600!important;border-radius:12px!important;min-height:50px!important;box-shadow:none!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-form button.login-wow-submit :is(span,svg) {color:#000!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-tools .orbit-select-trigger {background:#000!important;color:#fff!important;border:2px solid #fff!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-tools :is(.orbit-select-label,.orbit-select-value) {color:#fff!important;}

/* Drobne zamknięcie reguł 0.14.6.3: widocznie oddzielone kontrolki i pełne tło mobilne. */
@media screen {
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .orbit-select-trigger {
    border:1px solid rgba(185,207,187,.94)!important;
    border-radius:11px!important;
    background:rgba(245,248,242,.94)!important;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-flow-icon,
  html[data-theme="dark"] .login-wow-v2 .login-wow-flow-number {color:#e6c77e;}
}
@media screen and (max-width:1060px) {
  .login-wow-v2 .login-wow-media {
    position:absolute!important;
    inset:0;
    min-height:100%;
  }
}
html[data-theme="contrast"] .login-wow-v2 .login-wow-header .nutriva-brand-logo {
  filter:grayscale(1) contrast(2.8)!important;
}
html[data-theme="contrast"] .login-wow-v2 .login-wow-flow-item {
  background:#000!important;
  border:2px solid #fff!important;
  box-shadow:none!important;
}
html[data-theme="contrast"] .login-wow-v2 .login-wow-footer,
html[data-theme="contrast"] .login-wow-v2 .login-wow-care {color:#fff!important;}


/* Nutriva 0.14.6.4 — uporządkowane ustawienia w nagłówku logowania.
 * Jeden dyskretny przycisk; trzy istniejące kontrolki Orbit dostępne w panelu.
 * Nie modyfikuje selektorów w pozostałych modułach. */
@media screen {
  .login-wow-v2 .login-wow-tools {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:17px;
    width:auto;
    margin-left:auto;
    flex-wrap:nowrap;
  }
  .login-wow-v2 .login-appearance {position:relative;min-width:0;z-index:50;}
  .login-wow-v2 .login-appearance > summary {list-style:none;}
  .login-wow-v2 .login-appearance > summary::-webkit-details-marker {display:none;}
  .login-wow-v2 .login-appearance-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:42px;
    padding:0 15px;
    border-radius:12px;
    border:1px solid rgba(239,232,207,.34);
    background:rgba(8,35,25,.78);
    color:#fff8e7;
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    font-family:inherit;
    font-size:13px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.01em;
    cursor:pointer;
    transition:background-color .15s ease,border-color .15s ease;
  }
  .login-wow-v2 .login-appearance-toggle:hover,
  .login-wow-v2 .login-appearance[open] .login-appearance-toggle {
    background:rgba(14,56,40,.96);
    border-color:#d7bc79;
  }
  .login-wow-v2 .login-appearance-toggle svg {width:17px;height:17px;flex:none;color:#e6c77e;}
  .login-wow-v2 .login-appearance-chevron {
    display:block;
    width:7px;height:7px;
    margin-left:3px;
    border-right:1.5px solid currentColor;
    border-bottom:1.5px solid currentColor;
    transform:translateY(-2px) rotate(45deg);
    transition:transform .15s ease;
  }
  .login-wow-v2 .login-appearance[open] .login-appearance-chevron {transform:translateY(1px) rotate(225deg);}
  .login-wow-v2 .login-appearance-toggle:focus-visible {outline:3px solid #d9bd78;outline-offset:3px;}
  .login-wow-v2 .login-appearance-popover {
    position:absolute;
    z-index:100;
    top:calc(100% + 12px);
    right:0;
    width:min(320px,calc(100vw - 36px));
    padding:18px;
    border:1px solid #d7dfd1;
    border-radius:18px;
    background:#fcfcf7;
    color:#183c2c;
    box-shadow:0 22px 58px rgba(5,31,19,.25);
  }
  .login-wow-v2 .login-appearance:not([open]) .login-appearance-popover {display:none;}
  .login-wow-v2 .login-appearance-heading {display:grid;gap:3px;margin-bottom:16px;}
  .login-wow-v2 .login-appearance-heading strong {font-size:14px;font-weight:800;color:#173d2b;}
  .login-wow-v2 .login-appearance-heading > span {font-size:12px;color:#5c7364;}
  .login-wow-v2 .login-wow-tools .login-appearance-popover .preferences {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    width:100%;
    margin:0;padding:0;
    background:transparent;
    border:0;
    box-shadow:none;
  }
  .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select,
  .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-scale,
  .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-language {
    min-width:0;
    width:100%;
    flex:none;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-trigger {
    min-height:48px;
    border-radius:11px;
    padding:7px 13px;
    color:#173d2b;
    border:1px solid #cbdacb!important;
    background:#fff!important;
    box-shadow:none;
  }
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-trigger:hover,
  html[data-theme="dark"] .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select.is-open .orbit-select-trigger {
    border-color:#357957!important;
    background:#f4f8f2!important;
  }
  .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-label {font-size:10px;line-height:1.1;}
  .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-value {font-size:13px;line-height:1.15;}
  .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-menu {z-index:300;}
  .login-wow-v2 .login-wow-version {
    display:inline-block;
    padding:0;
    min-height:0;
    margin:0;
    background:transparent;
    border:0;
    box-shadow:none;
    color:#fff5e0;
    font-size:12px;
    font-weight:700;
    letter-spacing:.04em;
    white-space:nowrap;
    text-shadow:0 1px 8px rgba(0,0,0,.38);
  }
}
@media screen and (max-width:650px) {
  .login-wow-v2 .login-wow-header {align-items:center;}
  .login-wow-v2 .login-wow-tools {width:auto;gap:10px;flex-wrap:nowrap;justify-content:flex-end;}
  .login-wow-v2 .login-appearance-toggle {min-height:40px;padding-inline:12px;gap:8px;}
  .login-wow-v2 .login-wow-version {display:none;}
  .login-wow-v2 .login-appearance-popover {right:0;max-width:calc(100vw - 36px);}
}
html[data-theme="contrast"] .login-wow-v2 .login-appearance-toggle,
html[data-theme="contrast"] .login-wow-v2 .login-appearance-popover {
  background:#000!important;
  color:#fff!important;
  border:2px solid #fff!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
html[data-theme="contrast"] .login-wow-v2 .login-appearance-toggle svg,
html[data-theme="contrast"] .login-wow-v2 .login-appearance-heading strong {color:#ffe600!important;}
html[data-theme="contrast"] .login-wow-v2 .login-appearance-heading > span {color:#fff!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-tools .login-appearance-popover .orbit-select-trigger {background:#000!important;color:#fff!important;border:2px solid #fff!important;}
html[data-theme="contrast"] .login-wow-v2 .login-wow-tools .login-appearance-popover :is(.orbit-select-label,.orbit-select-value) {color:#fff!important;}
html[data-theme="contrast"] .login-wow-v2 .login-appearance-toggle:hover,
html[data-theme="contrast"] .login-wow-v2 .login-appearance[open] .login-appearance-toggle {border-color:#ffe600!important;}


/* ========================================================================
   Nutriva NEXT 0.14.6.5 / INTENDENT: one coherent Orbit UI application
   Scope: only four main Intendent views. All backend semantics unchanged.
   White and cream workspaces, forest-green actions, gold as accent only.
   ======================================================================== */
@media screen {
  html[data-theme="dark"] .orbit-intendent-v3 {
    --iv-white:#ffffff;
    --iv-cream:#f7f5ef;
    --iv-soft:#f2f6f0;
    --iv-ink:#153a2b;
    --iv-muted:#536d5d;
    --iv-border:#d6e0d4;
    --iv-green:#15543b;
    --iv-green-hover:#0e402d;
    --iv-gold:#b88a36;
    --iv-gold-light:#f7edda;
    --iv-danger:#a13d32;
    color:var(--iv-ink);
    font-size:1rem;
    width:100%;
    min-width:0;
    display:grid;
    gap:18px;
    align-content:start;
  }
  html[data-theme="dark"] .orbit-intendent-v3 *,
  html[data-theme="dark"] .orbit-intendent-v3 *::before,
  html[data-theme="dark"] .orbit-intendent-v3 *::after {box-sizing:border-box;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-head,.intendent-dashboard-hero) {
    display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:18px;
    padding:0 0 22px;border-bottom:1px solid var(--iv-border);
    margin:0;background:transparent;min-width:0;
  }
  html[data-theme="dark"] .orbit-intendent-v3 .orbit-page-heading {min-width:0;flex:1 1 380px;}
  html[data-theme="dark"] .orbit-intendent-v3 .orbit-page-heading > h1 {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-v3 .orbit-page-heading > p {color:var(--iv-muted)!important;max-width:730px;}
  html[data-theme="dark"] .orbit-intendent-v3 .future-kicker {color:#8b641e!important;}
  html[data-theme="dark"] .orbit-intendent-v3 .product-head-actions {
    display:flex;gap:8px;flex-wrap:wrap;align-items:center;max-width:100%;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-dashboard-kpis,.product-stat-grid) {
    margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat) {
    position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
    gap:8px;min-width:0;min-height:128px;padding:20px 21px;margin:0;
    background:var(--iv-white)!important;color:var(--iv-ink)!important;
    border:1px solid var(--iv-border)!important;border-radius:18px!important;
    box-shadow:0 10px 28px rgba(15,49,31,.045)!important;opacity:1;
    text-decoration:none;overflow:hidden;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat)>span {
    color:var(--iv-muted)!important;font-size:.75rem;font-weight:800;letter-spacing:.08em;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat)>strong {
    color:var(--iv-ink)!important;font-size:clamp(1.6rem,2.1vw,2.25rem)!important;
    line-height:1.18!important;overflow-wrap:anywhere;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat).is-warn>strong {color:#9a5a12!important;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat)>small {color:var(--iv-muted)!important;line-height:1.35;}
  html[data-theme="dark"] .orbit-intendent-v3 a:is(.warehouse-kpi,.product-stat):not([aria-disabled="true"]):hover {
    border-color:#91b9a4!important;box-shadow:0 12px 32px rgba(15,49,31,.11)!important;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat)[aria-disabled="true"] {cursor:default;opacity:1;}
  html[data-theme="dark"] .orbit-intendent-v3 .panel-card,
  html[data-theme="dark"] .orbit-intendent-v3 .product-panel {
    min-width:0;margin:0;padding:22px;
    background:var(--iv-white)!important;color:var(--iv-ink)!important;
    border:1px solid var(--iv-border)!important;border-radius:20px!important;
    box-shadow:0 12px 32px rgba(15,49,31,.05)!important;
  }
  html[data-theme="dark"] .orbit-intendent-v3 .warehouse-dashboard-section-head {
    display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px;
    margin:0 0 17px;padding:0 0 13px;border-bottom:1px solid var(--iv-border);
  }
  html[data-theme="dark"] .orbit-intendent-v3 .warehouse-dashboard-section-head>div>span {
    color:var(--iv-green)!important;font-size:.74rem;font-weight:820;letter-spacing:.07em;
  }
  html[data-theme="dark"] .orbit-intendent-v3 .warehouse-dashboard-section-head :is(h2,h3,strong) {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-v3 .warehouse-dashboard-section-head p {color:var(--iv-muted)!important;line-height:1.55;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-primary,.btn-primary,.product-secondary,.btn-secondary,.product-clear) {
    min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
    padding:10px 16px;border-radius:12px;font-weight:750;font-size:.84rem;
    text-decoration:none;transition:background .15s ease,border-color .15s ease;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-primary,.btn-primary) {
    background:var(--iv-green)!important;border:1px solid var(--iv-green)!important;color:#fff!important;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-primary,.btn-primary):hover {background:var(--iv-green-hover)!important;color:#fff!important;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-secondary,.btn-secondary,.product-clear) {
    background:#fff!important;border:1px solid #c7d9c9!important;color:var(--iv-green)!important;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-secondary,.btn-secondary,.product-clear):hover {
    border-color:var(--iv-green)!important;background:var(--iv-soft)!important;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
    border:1px solid #bfd1c0!important;background:#fff!important;color:var(--iv-ink)!important;
    border-radius:12px!important;min-height:44px;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(input,textarea)::placeholder {color:#6c806f!important;opacity:1;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(input,select,textarea):focus-visible,
  html[data-theme="dark"] .orbit-intendent-v3 :is(a,button):focus-visible {outline:3px solid #bd923d!important;outline-offset:2px;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-filter,.intendent-attendance-filter) {
    background:#fff!important;border:0!important;margin:0;padding:0 0 18px;
  }
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-filter-row,.intendent-child-filters) {gap:12px;align-items:end;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-filter-row,.intendent-child-filters) >label {min-width:0;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-filter-row,.intendent-child-filters) label>span {color:var(--iv-muted)!important;font-weight:750;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-filter-row,.intendent-child-filters) :is(input,select) {width:100%;min-width:0;}
  html[data-theme="dark"] .orbit-intendent-v3 .product-search {background:#fff!important;border:1px solid #bfd1c0!important;border-radius:12px;min-height:44px;}
  html[data-theme="dark"] .orbit-intendent-v3 .product-search input {border:0!important;min-height:42px;box-shadow:none!important;}

  /* Dashboard: balanced sections, readable tasks and clear empty states. */
  html[data-theme="dark"] .orbit-intendent-dashboard :is(.intendent-dashboard-focus-grid,.intendent-dashboard-ops-grid,.nutrition-dashboard-lower) {
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;
  }
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-task {
    background:#f8faf7!important;color:var(--iv-ink)!important;border:1px solid var(--iv-border)!important;
    border-radius:12px;min-height:69px;
  }
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-task strong {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-task small {color:var(--iv-muted)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-empty-action {
    background:var(--iv-soft)!important;color:var(--iv-ink)!important;border:1px dashed #aec8b3!important;
    border-radius:14px;min-width:0;
  }
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-empty-action strong {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-empty-action small {color:var(--iv-muted)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-today-menu>div,
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-calendar-list>div {
    background:#f8faf7!important;color:var(--iv-ink)!important;border:1px solid var(--iv-border)!important;
    border-radius:13px;
  }
  html[data-theme="dark"] .orbit-intendent-dashboard .intendent-today-menu strong {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .nutrition-quick {background:var(--iv-soft)!important;color:var(--iv-green)!important;border:1px solid var(--iv-border)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .nutrition-quick.is-primary {background:var(--iv-green)!important;color:#fff!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .nutrition-quick.is-primary :is(strong,small) {color:#fff!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .nutrition-quick:not(.is-primary) :is(strong,small) {color:var(--iv-green)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard :is(.nutrition-trend,.nutrition-smart-list) {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-dashboard .nutrition-smart-list>a {
    border:1px solid var(--iv-border)!important;background:var(--iv-soft)!important;color:var(--iv-ink)!important;
  }

  /* Children: one regular card/table rhythm, visible columns, chips and status. */
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-list-head,
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich {
    display:grid;grid-template-columns:48px minmax(185px,1.25fr) minmax(165px,.85fr) 90px 130px 20px;
    gap:14px;align-items:center;min-width:0;
  }
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-list-head {
    min-height:42px;padding:10px 16px;color:#3d6150;font-size:.73rem;
    font-weight:800;letter-spacing:.035em;background:#eef4eb;border-block:1px solid var(--iv-border);
  }
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich {
    min-height:80px;padding:13px 16px;background:#fff!important;color:var(--iv-ink)!important;
    border-bottom:1px solid var(--iv-border)!important;
  }
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich:hover {background:#f6faf4!important;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich strong {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich small {color:var(--iv-muted)!important;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-avatar {
    color:var(--iv-green)!important;background:#eaf3e9!important;border-color:#c5d7c5!important;
  }
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-requirement-chips b,
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-requirement-chips b.is-allergy,
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-requirement-chips b.is-diet,
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-requirement-chips b.is-intolerance {
    color:#204632!important;background:#f6f4e9!important;border:1px solid #cfccad!important;
    opacity:1;
  }
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-requirement-chips b.is-allergy {color:#8b2c25!important;background:#fff0ed!important;border-color:#e2b4ae!important;}
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-requirement-chips b.is-diet {color:#14543d!important;background:#ebf5e9!important;border-color:#b6d5bb!important;}

  /* Jadłospis: consistent grid; weekdays on top, weekend below with full row fill. */
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-toolbar {
    display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:12px;align-items:center;
    margin:0;padding:16px 18px;border:1px solid var(--iv-border);border-radius:17px;background:#fff;
  }
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-toolbar>div>strong {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-week-grid {
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0;
  }
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card {
    min-height:252px;height:100%;display:grid;grid-template-rows:auto 1fr auto;
    padding:18px;min-width:0;overflow:hidden;opacity:1;
    color:var(--iv-ink)!important;background:#fff!important;
    border:1px solid var(--iv-border)!important;border-radius:18px!important;
    box-shadow:0 9px 22px rgba(15,49,31,.045)!important;
  }
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card:nth-child(6) {grid-column:span 2;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card:nth-child(7) {grid-column:span 3;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card:is(:hover,:focus-visible) {
    background:#f7faf5!important;border-color:#94bea5!important;
  }
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card.is-today {border:2px solid var(--iv-gold)!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card.is-closed {background:#f5f6f1!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-head {flex-wrap:wrap;align-items:center;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-head :is(span,strong) {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-head>b {
    background:var(--iv-gold-light)!important;color:#754a0d!important;border-radius:100px;
    padding:5px 8px;font-size:.7rem;letter-spacing:.06em;
  }
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-content,
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-empty {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-content>strong,
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-empty>strong {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-content :is(small,span,em),
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-empty small {color:var(--iv-muted)!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-content em:not(.is-ok) {color:#97442b!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-info {background:#fff!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-info-badges span {background:#f2f6ef!important;color:var(--iv-green)!important;border-color:var(--iv-border)!important;}

  /* Obecność: proper operational grid with clear toggle states. */
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-table {
    width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;
    border:1px solid var(--iv-border);border-radius:14px;background:#fff;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-head,
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-row {
    display:grid;
    grid-template-columns:minmax(225px,2fr) 106px repeat(var(--meal-count,3),minmax(78px,.64fr)) minmax(180px,1.45fr);
    align-items:center;gap:8px;min-width:920px;padding:12px 16px;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-head {
    position:sticky;top:0;z-index:2;background:#ecf4e9!important;color:var(--iv-ink)!important;
    border-bottom:1px solid var(--iv-border);min-height:48px;
    font-weight:820;font-size:.74rem;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-head>span:not(:first-child) {text-align:center;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-head>span:last-child {text-align:left;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-row {
    background:#fff!important;border-bottom:1px solid var(--iv-border);min-height:80px;color:var(--iv-ink)!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-row:nth-child(2n+1) {background:#f9fbf7!important;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-row:hover {background:#f0f7f0!important;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-person strong {color:var(--iv-ink)!important;font-size:.87rem;line-height:1.3;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-person small {color:var(--iv-muted)!important;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch {
    display:inline-flex;gap:7px;align-items:center;justify-content:center;cursor:pointer;min-height:44px;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch i {
    display:block;position:relative;flex:0 0 auto;width:44px;height:26px;
    border:1px solid #a9baae!important;border-radius:99px;background:#e3e9e1!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch i::after {
    display:block;width:18px;height:18px;margin:3px;border-radius:99px;background:#52665b!important;
    transform:translateX(0);transition:transform .14s ease,background .14s ease;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch input:checked+i {
    border-color:var(--iv-green)!important;background:var(--iv-green)!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch input:checked+i::after {
    transform:translateX(17px);background:#fff!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch input:focus-visible+i {
    outline:3px solid var(--iv-gold)!important;outline-offset:2px;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch-text::after {content:"Nie";color:var(--iv-muted);font-size:.72rem;font-weight:800;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-switch input:checked~.intendent-switch-text::after {content:"Tak";color:var(--iv-green);}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-meal-toggle {position:relative;display:inline-grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-meal-toggle b {
    width:40px;height:40px;display:grid;place-items:center;
    color:var(--iv-green)!important;background:#edf3eb!important;
    border:1px solid #b8cebd!important;border-radius:11px;
    font-size:.85rem!important;font-weight:900!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-meal-toggle input:checked+b {
    color:#fff!important;background:var(--iv-green)!important;
    border-color:var(--iv-green)!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-meal-toggle input:focus-visible+b {
    outline:3px solid var(--iv-gold)!important;outline-offset:2px;
  }
  html[data-theme="dark"] .orbit-intendent-attendance :is(.intendent-meal-toggle,.intendent-switch):has(input:disabled) {opacity:.75;cursor:not-allowed;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-notes input {
    width:100%;min-width:0;min-height:44px;padding:10px 13px;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-tools {
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
    padding:16px 0;border-color:var(--iv-border);
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-batch {display:flex;flex-wrap:wrap;gap:8px;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-form-dock {
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:14px;margin-top:14px;background:#f0f6ef!important;
    border:1px solid var(--iv-border)!important;border-radius:14px;
    color:var(--iv-ink)!important;
  }
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-form-dock :is(strong,small) {color:var(--iv-ink)!important;}
  html[data-theme="dark"] .orbit-intendent-v3 .product-status.is-ok {color:#1b593e!important;background:#e8f4e9!important;}
  html[data-theme="dark"] .orbit-intendent-v3 .product-status.is-warn {color:#805211!important;background:#fff3dc!important;}
}

@media screen and (max-width:1250px) {
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-dashboard-kpis,.product-stat-grid) {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-week-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card:nth-child(n) {grid-column:auto;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-list-head,
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich {grid-template-columns:44px minmax(165px,1fr) minmax(145px,.7fr) 80px 102px 18px;gap:9px;}
}

@media screen and (max-width:900px) {
  html[data-theme="dark"] .orbit-intendent-dashboard :is(.intendent-dashboard-focus-grid,.intendent-dashboard-ops-grid,.nutrition-dashboard-lower) {grid-template-columns:1fr;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-list-head {display:none;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich {grid-template-columns:44px minmax(0,1fr) auto 18px;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich .intendent-child-requirements {display:none;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich >span:nth-last-of-type(2) {display:none;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich .product-status {display:inline-flex!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-week-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-toolbar {grid-template-columns:1fr 1fr;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-toolbar>div {grid-column:1/-1;grid-row:1;}
}

@media screen and (max-width:620px) {
  html[data-theme="dark"] .orbit-intendent-v3 {gap:12px;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-dashboard-kpis,.product-stat-grid) {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat) {padding:14px;min-height:116px;border-radius:14px!important;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.panel-card,.product-panel) {padding:16px;border-radius:16px!important;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-week-grid {grid-template-columns:1fr;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-day-card {min-height:200px;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-toolbar {padding:12px;gap:8px;}
  html[data-theme="dark"] .orbit-intendent-menu .intendent-menu-toolbar>a {width:100%;}
  html[data-theme="dark"] .orbit-intendent-v3 :is(.product-head,.intendent-dashboard-hero) {gap:12px;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich {grid-template-columns:40px minmax(0,1fr) 18px;padding:12px 8px;gap:8px;}
  html[data-theme="dark"] .orbit-intendent-children .intendent-child-row-rich .product-status {display:none!important;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-tools {align-items:stretch;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-batch {width:100%;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-attendance-batch .product-secondary {flex:1 1 140px;}
  html[data-theme="dark"] .orbit-intendent-attendance .intendent-form-dock {flex-wrap:wrap;}
}

/* High contrast — scope is exact so global Orbit contrast remains untouched. */
@media screen {
  html[data-theme="contrast"] .orbit-intendent-v3 {
    --iv-white:#000;--iv-cream:#000;--iv-soft:#000;--iv-ink:#fff;
    --iv-muted:#fff;--iv-border:#fff;--iv-green:#ffe681;
    --iv-green-hover:#ffed9f;--iv-gold:#ffe681;--iv-gold-light:#000;
    --iv-danger:#ff7d74;
    color:#fff;background:#000;
    display:grid;gap:18px;min-width:0;
  }
  html[data-theme="contrast"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat,.panel-card,.product-panel,.intendent-day-card,.intendent-menu-toolbar,.intendent-attendance-table) {
    background:#000!important;color:#fff!important;border:2px solid #fff!important;box-shadow:none!important;
  }
  html[data-theme="contrast"] .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat,.panel-card,.product-panel,.intendent-day-card) :is(span,strong,small,p,h1,h2,h3,b) {color:#fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .product-primary {background:#ffe681!important;border:2px solid #ffe681!important;color:#000!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .product-secondary,
  html[data-theme="contrast"] .orbit-intendent-v3 .product-clear {background:#000!important;border:2px solid #fff!important;color:#fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-attendance-head,
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-attendance-row,
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-child-row-rich,
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-child-list-head {background:#000!important;color:#fff!important;border-color:#fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-meal-toggle b {background:#000!important;color:#fff!important;border:2px solid #fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-meal-toggle input:checked+b {background:#ffe681!important;color:#000!important;border:2px solid #ffe681!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-switch i {background:#000!important;border:2px solid #fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-switch input:checked+i {background:#ffe681!important;border:2px solid #ffe681!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-switch input:checked+i::after {background:#000!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-switch-text::after {content:"Nie";color:#fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-switch input:checked~.intendent-switch-text::after {content:"Tak";color:#ffe681!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 :is(input:not([type="checkbox"]),select,textarea) {background:#000!important;color:#fff!important;border:2px solid #fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 input::placeholder {color:#fff!important;}
  html[data-theme="contrast"] .orbit-intendent-v3 :is(input,select,button,a):focus-visible {outline:3px solid #ffe681!important;outline-offset:3px;}
}

/* Prevent intrinsic grid width from propagating attendance table width to the page. */
@media screen {
  html[data-theme="dark"] .orbit-intendent-v3,
  html[data-theme="contrast"] .orbit-intendent-v3 {
    grid-template-columns:minmax(0,1fr);
    width:100%;max-width:100%;min-width:0;
  }
  html[data-theme="dark"] .orbit-intendent-v3 > *,
  html[data-theme="contrast"] .orbit-intendent-v3 > * {
    min-width:0;
    max-width:100%;
  }
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-attendance-table {
    overflow-x:auto;max-width:100%;min-width:0;
  }
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-attendance-panel,
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-attendance-panel {min-width:0;}
}
@media screen {
  html[data-theme="contrast"] .orbit-intendent-v3 .intendent-attendance-table,
  html[data-theme="dark"] .orbit-intendent-v3 .intendent-attendance-table {
    contain:inline-size paint;
  }
}

/* Final legibility pass — labels in the pale table header and contrast cards. */
@media screen {
  html[data-theme="dark"] .module-content .orbit-intendent-attendance .intendent-attendance-head > span {
    color:#244c38!important;
    opacity:1!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat,.panel-card,.product-panel,.intendent-day-card,.intendent-menu-toolbar) {
    background:#000!important;color:#fff!important;border:2px solid #fff!important;box-shadow:none!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-v3 :is(.warehouse-kpi,.product-stat) :is(span,strong,small) {
    color:#fff!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-attendance .intendent-attendance-head > span {
    color:#fff!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-v3 :is(.product-primary,.btn-primary) {
    background:#ffe681!important;color:#000!important;border:2px solid #ffe681!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-v3 :is(.product-secondary,.btn-secondary,.product-clear) {
    background:#000!important;color:#fff!important;border:2px solid #fff!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-attendance .intendent-switch input:checked+i {
    background:#ffe681!important;border:2px solid #ffe681!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-attendance .intendent-switch input:checked+i::after {
    background:#000!important;
  }
  html[data-theme="contrast"] body .module-content .orbit-intendent-attendance .intendent-attendance-notes [data-orbit-field] {
    background:#000!important;color:#fff!important;border:2px solid #fff!important;
  }
}

/* Nutriva NEXT 0.14.6.6 — Intendent / Jadłospis + Obecność: korekta końcowa.
 * Kalendarz: dni robocze w równym wierszu, weekend w drugim.
 * Obecność: hover całego wiersza bez niezależnego tła komórki dziecka.
 * Tylko moduł Intendent; bez zmian formularzy i logiki zapisu.
 */
@media screen {
  .orbit-intendent-menu {
    container: intendent-week / inline-size;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2,
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 {
    display:grid!important;
    grid-template-columns:repeat(10,minmax(0,1fr))!important;
    gap:12px!important;
    width:100%;
    min-width:0;
    align-items:stretch;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card,
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card {
    box-sizing:border-box;
    grid-column:span 2!important;
    min-width:0;
    min-height:204px;
    height:auto!important;
    padding:16px!important;
    align-self:stretch;
    grid-template-rows:auto 1fr auto;
    gap:2px;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n+6),
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n+6) {
    grid-column:span 5!important;
    min-height:142px;
  }
  .module-content .orbit-intendent-menu .intendent-day-card .intendent-day-empty {
    padding:15px 0 6px;
    align-content:start;
  }
  .module-content .orbit-intendent-menu .intendent-day-card .intendent-day-empty > strong {
    font-size:.875rem;
    line-height:1.35;
  }
  .module-content .orbit-intendent-menu .intendent-day-card .intendent-day-empty > small {
    font-size:.78rem;
    line-height:1.5;
    overflow-wrap:break-word;
  }
  .module-content .orbit-intendent-menu .intendent-day-card .intendent-day-head {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    min-height:28px;
    padding:0 0 10px;
  }
  .module-content .orbit-intendent-menu .intendent-day-head > b {
    position:static;
    margin-left:auto;
    white-space:nowrap;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-day-card.is-today {
    background:#fffaf0!important;
    border-color:#af812c!important;
    box-shadow:0 0 0 1px rgba(175,129,44,.12)!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-day-card.is-closed {
    background:#f3f5f1!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-day-card:is(:hover,:focus-visible) {
    transform:none;
    border-color:#3f8165!important;
    background:#f8fbf7!important;
    box-shadow:0 9px 24px rgba(8,42,26,.08)!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-day-card.is-today:is(:hover,:focus-visible) {
    background:#fff9ec!important;
    border-color:#af812c!important;
  }
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-day-card.is-today {
    border:3px solid #ffe681!important;
  }
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-day-card:is(:hover,:focus-visible) {
    background:#111!important;
    border-color:#ffe681!important;
    transform:none;
  }

  /* Nie zmieniamy wartości ani działania checkboxów: jedynie hover. */
  html[data-theme="dark"] .module-content .orbit-intendent-attendance .intendent-attendance-row,
  html[data-theme="contrast"] .module-content .orbit-intendent-attendance .intendent-attendance-row {
    transition:background-color .15s ease;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-attendance .intendent-attendance-row:hover,
  html[data-theme="dark"] .module-content .orbit-intendent-attendance .intendent-attendance-row:focus-within {
    background:#f3f8f2!important;
    box-shadow:inset 3px 0 0 #35684c;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-attendance .intendent-attendance-row > .intendent-attendance-person,
  html[data-theme="dark"] .module-content .orbit-intendent-attendance .intendent-attendance-row > .intendent-attendance-person:is(:hover,:focus-within),
  html[data-theme="contrast"] .module-content .orbit-intendent-attendance .intendent-attendance-row > .intendent-attendance-person,
  html[data-theme="contrast"] .module-content .orbit-intendent-attendance .intendent-attendance-row > .intendent-attendance-person:is(:hover,:focus-within) {
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    outline:0!important;
    border:0!important;
    border-radius:0!important;
    opacity:1!important;
    filter:none!important;
    transform:none!important;
  }
  html[data-theme="contrast"] .module-content .orbit-intendent-attendance .intendent-attendance-row:is(:hover,:focus-within) {
    background:#111!important;
    box-shadow:inset 4px 0 0 #ffe681!important;
  }
}
/* Zachowaj logiczne grupowanie dni również przy zwężeniu realnej przestrzeni
 * roboczej (np. boczna nawigacja, powiększony tekst, skalowanie systemowe).
 */
@container intendent-week (max-width:959px) {
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2,
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 {
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(-n+3),
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(-n+3) {
    grid-column:span 2!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n+4),
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n+4) {
    grid-column:span 3!important;
  }
}
@container intendent-week (max-width:720px) {
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2,
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n),
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n) {
    grid-column:span 1!important;
    min-height:170px;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(5),
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(5) {
    grid-column:1 / -1!important;
  }
}
@container intendent-week (max-width:440px) {
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2,
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html[data-theme="dark"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n),
  html[data-theme="contrast"] .module-content .orbit-intendent-menu .intendent-week-grid.intendent-week-grid-v2 > .intendent-day-card:nth-child(n) {
    grid-column:1 / -1!important;
    min-height:140px;
  }
}


/* ================================================================
   Nutriva NEXT 0.14.6.7 — Żywienie / Dashboard + Kalkulator dnia
   ================================================================ */
@media screen {
  html[data-theme="dark"] .orbit-nutrition-dashboard,
  html[data-theme="dark"] .orbit-nutrition-calculator {
    --food-shadow:0 14px 34px rgba(12,48,38,.09);
    --food-shadow-strong:0 18px 42px rgba(12,48,38,.14);
    --food-border:#d7e0d4;
    --food-surface:#fff;
    --food-surface-soft:#f6f8f4;
    --food-dark:#103628;
    --food-dark-2:#174836;
    --food-gold:#c69b4a;
    --food-muted:#597262;
  }

  html[data-theme="dark"] .orbit-nutrition-dashboard :is(.nutrition-dashboard-main,.nutrition-dashboard-lower),
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-form,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meals {
    gap:18px;
  }

  html[data-theme="dark"] .orbit-nutrition-dashboard :is(.nutrition-today-panel,.nutrition-attention-panel,.nutrition-actions-panel,.nutrition-smart-panel,.nutrition-trend-panel),
  html[data-theme="dark"] .orbit-nutrition-calculator :is(.calculator-energy-card,.calculator-workbar,.calculator-note-card,.calculator-meal-card,.calculator-final-actions) {
    background:var(--food-surface)!important;
    border:1px solid var(--food-border)!important;
    border-radius:22px!important;
    box-shadow:var(--food-shadow);
  }

  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-dashboard-hero,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-hero {
    margin-bottom:4px;
    padding-bottom:22px;
    border-bottom:1px solid var(--food-border);
  }

  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-dashboard-date,
  html[data-theme="dark"] .orbit-nutrition-calculator :is(.calculator-date-control,.calculator-status-card) {
    background:linear-gradient(180deg,#fff,#f7faf7)!important;
    border:1px solid var(--food-border)!important;
    border-radius:20px!important;
    box-shadow:var(--food-shadow);
  }

  html[data-theme="dark"] .orbit-nutrition-dashboard .warehouse-kpi {
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .warehouse-kpi:is(:hover,:focus-visible) {
    transform:translateY(-2px);
    border-color:#cdb37c!important;
    box-shadow:var(--food-shadow);
    background:linear-gradient(180deg,#fff,#fbfcfa)!important;
  }

  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick-grid {
    gap:10px;
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick {
    position:relative;
    min-height:78px;
    align-content:start;
    padding:15px 16px;
    border:1px solid var(--food-border)!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,#fff,#f7faf7)!important;
    box-shadow:none;
    transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick::after {
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    box-shadow:inset 0 0 0 1px rgba(198,155,74,.0);transition:box-shadow .18s ease;
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick:is(:hover,:focus-visible) {
    transform:translateY(-2px);
    border-color:#ccb178!important;
    background:linear-gradient(145deg,#ffffff,#f2f7f2)!important;
    box-shadow:var(--food-shadow-strong);
    text-decoration:none;
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick:is(:hover,:focus-visible)::after {
    box-shadow:inset 0 0 0 1px rgba(198,155,74,.35);
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick.is-primary {
    background:linear-gradient(145deg,var(--food-dark),var(--food-dark-2))!important;
    border-color:transparent!important;
    box-shadow:0 18px 34px rgba(16,54,40,.16);
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick.is-primary :is(strong,small) {color:#fff!important;}
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick:not(.is-primary) :is(strong,small) {color:#204535!important;}
  html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-quick small {color:var(--food-muted)!important;}

  html[data-theme="dark"] .orbit-nutrition-dashboard :is(.nutrition-smart-list>a,.nutrition-attention-list>a) {
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
  }
  html[data-theme="dark"] .orbit-nutrition-dashboard :is(.nutrition-smart-list>a,.nutrition-attention-list>a):is(:hover,:focus-visible) {
    transform:translateY(-1px);
    background:#fbfcfb!important;
    border-color:#cbb078!important;
    box-shadow:var(--food-shadow);
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-page {
    display:grid;gap:18px;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-hero {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:16px;
    align-items:end;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-date-control,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-status-card {
    min-height:84px;
    padding:16px 18px;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured {
    padding:22px;
    border:none!important;
    border-radius:24px!important;
    background:linear-gradient(135deg,#0f3629,#154634 52%,#1e5b42)!important;
    box-shadow:0 22px 44px rgba(11,41,31,.18);
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured :is(.calculator-summary-title,.calculator-nutrient-card) {
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    border-radius:18px!important;
    color:#fff!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-summary-title {
    padding:18px;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-summary-title :is(span,strong,small) {
    color:#fff!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-summary-title span {
    color:#f0cf87!important;
    letter-spacing:.12em;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-summary-title strong {
    font-size:1.6rem;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-summary-title small {
    color:#d9e7df!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-nutrient-card {
    padding:16px;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-nutrient-card :is(span,strong,small) {
    color:#fff!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-nutrient-card span {
    color:#d3e4da!important;
    font-weight:700;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-nutrient-card strong {
    font-size:1.45rem;
    line-height:1.05;
    margin-top:2px;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured .calculator-nutrient-card small {
    color:#cfe0d7!important;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-energy-card {
    padding:18px 20px;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:18px 20px;
    background:linear-gradient(180deg,#fff,#f6faf6)!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar > div:first-child {
    display:grid;gap:5px;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions {
    display:flex;gap:10px;align-items:center;flex-wrap:wrap;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions :is(button,a.btn-secondary) {
    min-height:44px;border-radius:14px;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-note-card--featured {
    padding:20px;
  }

  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-card {
    padding:20px;
    overflow:hidden;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-head {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:14px;
    align-items:start;
    padding-bottom:16px;
    margin-bottom:16px;
    border-bottom:1px solid #e4ebe2;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state {
    padding:14px 16px;
    border-radius:16px;
    background:linear-gradient(145deg,var(--food-dark),var(--food-dark-2))!important;
    border:1px solid rgba(255,255,255,.08);
    min-width:180px;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state :is(span,strong,small) {
    color:#fff!important;opacity:1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state span {color:#d5e5dc!important;}
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-entry-list {
    border:1px solid #e4ebe2!important;
    border-radius:18px!important;
    overflow:hidden;
    background:#f9fbf8!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-entry-row {
    padding:12px 14px;
    transition:background .16s ease;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-entry-row:is(:hover,:focus-within) {
    background:#f1f6f0!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary {
    margin-top:18px;
    padding:14px;
    border-radius:18px;
    border:1px solid #e4ebe2;
    background:#f7faf7;
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:10px;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div {
    padding:12px;
    border:1px solid #dce6db;
    border-radius:14px;
    background:#fff;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div :is(span,strong,small) {opacity:1!important;}
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div strong {color:#173d2c!important;}
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-actions-secondary {margin-top:4px;}

  @media (max-width:1180px) {
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-hero {grid-template-columns:1fr;align-items:start;}
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-head {grid-template-columns:1fr;}
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary {grid-template-columns:repeat(3,minmax(0,1fr));}
  }

  @media (max-width:760px) {
    html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-dashboard-lower,
    html[data-theme="dark"] .orbit-nutrition-dashboard .nutrition-dashboard-main,
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar {grid-template-columns:1fr;display:grid;}
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions {display:grid;grid-template-columns:1fr;}
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary {grid-template-columns:repeat(2,minmax(0,1fr));}
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured {padding:18px;}
  }

  @media (max-width:540px) {
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary {grid-template-columns:1fr;}
  }
}


/* ================================================================
   Nutriva NEXT 0.14.6.8 — Kalkulator dnia hotfix readability
   ================================================================ */
@media screen {
  html[data-theme="dark"] .orbit-nutrition-calculator :is(.calculator-date-control,.calculator-status-card,.calculator-workbar) {
    color:#173b2c!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator :is(.calculator-date-control,.calculator-status-card,.calculator-workbar) :is(span,strong,small,p,label,em,h1,h2,h3) {
    color:#173b2c!important;
    -webkit-text-fill-color: currentColor !important;
    opacity:1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-date-control span,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-status-card span,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar span {
    color:#8f6b28!important;
    -webkit-text-fill-color: currentColor !important;
    letter-spacing:.12em;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-date-control strong,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-status-card strong,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar strong {
    color:#173b2c!important;
    -webkit-text-fill-color: currentColor !important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-date-control small,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-status-card small,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar small,
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar em {
    color:#5e7768!important;
    -webkit-text-fill-color: currentColor !important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-date-control {
    background:linear-gradient(180deg,#ffffff,#f7faf7)!important;
    box-shadow:0 14px 28px rgba(11,41,31,.08)!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-date-control a {
    color:#173b2c!important;
    background:#fff!important;
    border:1px solid #d9e4d8!important;
    box-shadow:0 6px 16px rgba(11,41,31,.08)!important;
    -webkit-text-fill-color: currentColor !important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-status-card {
    background:linear-gradient(180deg,#ffffff,#f8fbf8)!important;
    box-shadow:0 14px 28px rgba(11,41,31,.08)!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar {
    background:linear-gradient(180deg,#ffffff,#f8fbf8)!important;
    box-shadow:0 14px 28px rgba(11,41,31,.08)!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions :is(.btn-secondary,.btn-primary,button) {
    -webkit-text-fill-color: currentColor !important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions .btn-secondary {
    color:#173b2c!important;
    background:#fff!important;
    border:1px solid #bfd0bc!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions .btn-primary {
    color:#fff!important;
    background:linear-gradient(135deg,#144533,#1c6245)!important;
    border-color:transparent!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-workbar-actions .btn-primary:is(:hover,:focus-visible) {
    color:#fff!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-day-summary--featured {
    border:1px solid rgba(255,255,255,.08)!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state {
    color:#fff!important;
    box-shadow:0 16px 28px rgba(14,50,37,.18)!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color: currentColor !important;
    opacity:1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state span {
    color:#d7e7de!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state small {
    color:#dce9e1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-state strong {
    color:#ffffff!important;
    font-size:1.5rem;
    line-height:1.05;
  }
}



/* 0.14.6.8 — wspólna semantyka wartości odżywczych: Kalkulator + Smart Dania. */
@media screen {
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary {
    border:1px solid #cbdcd0!important;
    background:#edf3ee!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div {
    position:relative;
    min-width:0;
    min-height:103px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:15px 13px!important;
    border:1px solid #285a46!important;
    border-radius:15px!important;
    background:linear-gradient(155deg,#153d2f,#225940)!important;
    background-image:linear-gradient(155deg,#153d2f,#225940)!important;
    box-shadow:0 8px 16px rgba(15,57,40,.13);
    color:#fff!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div::after {
    content:none!important;
    display:none!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div span {
    color:#d4e7db!important;
    font-size:.75rem!important;
    font-weight:750;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div strong {
    color:#fff!important;
    margin-top:10px;
    font-size:clamp(1.1rem,1.35vw,1.45rem)!important;
    font-weight:800;
    line-height:1.15;
    font-variant-numeric:tabular-nums;
  }
  html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary > div small {
    color:#cfe3d7!important;
    font-size:.71rem!important;
    margin-top:5px;
  }

  html[data-theme="dark"] .module-content .smart-nutrition-card {
    padding:24px!important;
    margin:18px 0!important;
    border:1px solid #d7e0d4!important;
    border-radius:22px!important;
    background:#fff!important;
    box-shadow:0 14px 34px rgba(12,48,38,.09);
  }
  html[data-theme="dark"] .module-content .smart-nutrition-card .smart-section-head {
    margin-bottom:18px;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-card .smart-section-head :is(h2,p,span) {
    color:#173b2c!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-card .smart-section-head>span {
    color:#146744!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:10px;
    padding:16px;
    border-radius:20px;
    border:1px solid #224d39;
    background:linear-gradient(135deg,#0f3428,#164533 53%,#1c553d)!important;
    box-shadow:0 16px 28px rgba(14,50,37,.13);
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div {
    min-width:0;
    min-height:116px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    position:relative;
    padding:15px!important;
    border:1px solid rgba(255,255,255,.18)!important;
    border-radius:15px!important;
    color:#fff!important;
    background:rgba(255,255,255,.09)!important;
    background-image:none!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div:first-child {
    border-color:rgba(229,191,113,.6)!important;
    background:rgba(218,185,106,.13)!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div::after {
    content:none!important;
    display:none!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div span {
    color:#d3e6d9!important;
    font-size:.74rem!important;
    font-weight:750;
    line-height:1.2!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div strong {
    margin:4px 0 0;
    color:#fff!important;
    font-size:clamp(1.2rem,1.55vw,1.6rem)!important;
    font-weight:820;
    letter-spacing:-.035em;
    line-height:1.15!important;
    font-variant-numeric:tabular-nums;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div small {
    color:#d6e5dc!important;
    font-size:.69rem!important;
    line-height:1.3!important;
  }
  html[data-theme="dark"] .module-content .smart-nutrition-grid>div:first-child strong {
    color:#fff8dd!important;
  }
  @media (max-width:1250px) {
    html[data-theme="dark"] .module-content .smart-nutrition-grid {
      grid-template-columns:repeat(4,minmax(0,1fr));
    }
  }
  @media (max-width:800px) {
    html[data-theme="dark"] .module-content .smart-nutrition-grid {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
    html[data-theme="dark"] .orbit-nutrition-calculator .calculator-meal-summary {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
  }
  @media (max-width:450px) {
    html[data-theme="dark"] .module-content .smart-nutrition-card {padding:16px!important;}
    html[data-theme="dark"] .module-content .smart-nutrition-grid {padding:10px;gap:8px;}
    html[data-theme="dark"] .module-content .smart-nutrition-grid>div {padding:12px!important;}
  }
}

/* Wysoki kontrast: brak zielonych / złotych wypełnień, pełna typografia. */
@media screen {
  html[data-theme="contrast"] .orbit-nutrition-calculator :is(.calculator-date-control,.calculator-status-card,.calculator-workbar,.calculator-meal-state),
  html[data-theme="contrast"] .module-content :is(.smart-nutrition-card,.smart-nutrition-grid,.smart-nutrition-grid>div) {
    background:#000!important;
    background-image:none!important;
    color:#fff!important;
    border:2px solid #fff!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }
  html[data-theme="contrast"] .orbit-nutrition-calculator :is(.calculator-date-control,.calculator-status-card,.calculator-workbar,.calculator-meal-state) :is(span,strong,small,em,p),
  html[data-theme="contrast"] .module-content .smart-nutrition-card :is(.smart-section-head>span,.smart-section-head h2,.smart-section-head p),
  html[data-theme="contrast"] .module-content .smart-nutrition-grid>div :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-workbar-actions :is(button,.btn-secondary,.btn-primary) {
    background:#000!important;
    color:#fff!important;
    border:2px solid #fff!important;
    -webkit-text-fill-color:currentColor!important;
  }
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-workbar-actions .btn-primary {
    background:#ffeb00!important;
    color:#000!important;
    border-color:#ffeb00!important;
  }
  html[data-theme="contrast"] .module-content .smart-nutrition-grid>div:first-child,
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-meal-summary>div:first-child {
    border-color:#ffeb00!important;
  }
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-meal-summary,
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-day-summary--featured {
    background:#000!important;
    box-shadow:none!important;
    border:2px solid #fff!important;
  }
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-meal-summary>div,
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-day-summary--featured :is(.calculator-summary-title,.calculator-nutrient-card) {
    background:#000!important;
    color:#fff!important;
    border:2px solid #fff!important;
    box-shadow:none!important;
  }
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-meal-summary>div :is(span,strong,small),
  html[data-theme="contrast"] .orbit-nutrition-calculator .calculator-day-summary--featured :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
}

/* Ostateczny kontrakt: wewnętrzne KPI posiłków nie dziedziczą koloru kart zewnętrznych. */
@media screen {
  html[data-theme="dark"] .module-content .orbit-nutrition-calculator .calculator-meal-card .calculator-meal-state :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .orbit-nutrition-calculator .calculator-meal-card .calculator-meal-state span,
  html[data-theme="dark"] .module-content .orbit-nutrition-calculator .calculator-meal-card .calculator-meal-state small {
    color:#deebe1!important;
    -webkit-text-fill-color:#deebe1!important;
  }
  html[data-theme="contrast"] .module-content .orbit-nutrition-calculator .calculator-meal-card .calculator-meal-state :is(span,strong,small) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
  }
}

/* ================================================================
   Nutriva Orbit 0.14.6.9 — jeden komponent WARTOŚCI ODŻYWCZE
   Używany przez Dania, formularz receptury, Smart Dania i Produkty.
   Klasa jest celowo niezależna od .nutrition-field (pola input).
   ================================================================ */
@media screen {
  html[data-theme="dark"] .module-content .orbit-nutrition-section {
    background:#fff!important;
    border:1px solid #d7e1d6!important;
    border-radius:22px!important;
    box-shadow:0 12px 34px rgba(15,48,35,.075);
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics {
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr))!important;
    gap:10px!important;
    padding:16px!important;
    min-width:0;
    border:1px solid #1b4d39!important;
    border-radius:21px!important;
    background:linear-gradient(135deg,#103629 0%,#174c37 62%,#205740 100%)!important;
    box-shadow:0 18px 36px rgba(15,48,35,.16);
    color:#fff!important;
    overflow:hidden;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric {
    position:relative;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:7px!important;
    min-width:0;
    min-height:126px;
    padding:16px!important;
    margin:0!important;
    border:1px solid rgba(246,251,246,.19)!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.08)!important;
    background-image:none!important;
    color:#fff!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric::before,
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric::after {
    content:none!important;
    display:none!important;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric.is-energy {
    background:rgba(225,190,110,.13)!important;
    border-color:rgba(240,205,127,.65)!important;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric :is(.orbit-nutrient-label,.orbit-nutrient-value,.orbit-nutrient-unit) {
    display:block!important;
    position:relative;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    color:#fff!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.28;
    letter-spacing:normal;
    text-transform:none;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric .orbit-nutrient-label {
    color:#d7e7dd!important;
    font-size:.77rem!important;
    font-weight:720!important;
    letter-spacing:.005em;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric .orbit-nutrient-value {
    color:#fff!important;
    font-size:clamp(1.25rem,1.7vw,1.75rem)!important;
    font-weight:830!important;
    line-height:1.12;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.035em;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric.is-energy .orbit-nutrient-value {
    color:#fff0bc!important;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric .orbit-nutrient-unit {
    color:#cddfd3!important;
    font-size:.7rem!important;
    font-weight:560!important;
    white-space:normal;
  }
  html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric.is-unknown .orbit-nutrient-value {
    color:#e0eae3!important;
  }

  /* Te same liczby i jednostki na każdej podstronie, niezależnie od szerokości panelu. */
  @media(max-width:720px) {
    html[data-theme="dark"] .module-content .orbit-nutrient-metrics {
      padding:12px!important;
      gap:9px!important;
      grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr))!important;
    }
    html[data-theme="dark"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric {
      min-height:112px;
      padding:12px!important;
    }
  }
}

/* Tryb wysokiego kontrastu: czarny, biały, żółty (bez zieleni). */
@media screen {
  html[data-theme="contrast"] .module-content .orbit-nutrition-section,
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics,
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric {
    color:#fff!important;
    background:#000!important;
    background-image:none!important;
    border:2px solid #fff!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics {
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr))!important;
    gap:10px!important;
    padding:16px!important;
    min-width:0;
    border-radius:20px!important;
  }
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric {
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    gap:7px!important;
    padding:14px!important;
    min-width:0;
    min-height:126px;
    border-radius:14px!important;
  }
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric.is-energy {
    border-color:#ffeb00!important;
  }
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric :is(.orbit-nutrient-label,.orbit-nutrient-value,.orbit-nutrient-unit) {
    display:block!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:none!important;
    color:#fff!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
    line-height:1.25;
  }
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric .orbit-nutrient-label {font-size:.77rem!important;font-weight:720!important;}
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric .orbit-nutrient-value {font-size:clamp(1.25rem,1.7vw,1.75rem)!important;font-weight:830!important;font-variant-numeric:tabular-nums;}
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric .orbit-nutrient-unit {font-size:.7rem!important;font-weight:580!important;}
  html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric.is-energy .orbit-nutrient-value {
    color:#ffeb00!important;
  }
  @media(max-width:720px) {
    html[data-theme="contrast"] .module-content .orbit-nutrient-metrics {padding:12px!important;gap:9px!important;}
    html[data-theme="contrast"] .module-content .orbit-nutrient-metrics .orbit-nutrient-metric {min-height:112px;padding:12px!important;}
  }
}
/* ===========================================================================
   NUTRIVA ORBIT — RAPORTY · RELEASE 0.14.6.11
   Shared analytics design language. Scoped to Reports only, visual changes only.
   Source: Reports dashboard, summary, nutrition, menu, intelligence, compliance,
   resources. No changes to data, permissions, forms, pagination or printing.
   =========================================================================== */
@media screen {
  html[data-theme="dark"] .module-content:has(.reports-hero),
  html[data-theme="dark"] .module-content:has(.reports-page-head) {
    --ro-green:#123e2e;
    --ro-green-deep:#0d3326;
    --ro-green-light:#1e6346;
    --ro-text:#163c2b;
    --ro-muted:#567160;
    --ro-gold:#d1a456;
    --ro-soft:#f3f7f1;
    --ro-line:#d7e2d5;
    --ro-shadow:0 14px 36px rgba(13,48,36,.075);
    --ro-shadow-lift:0 20px 42px rgba(13,48,36,.13);
    min-width:0;
  }

  /* The Dashboard is intentionally a dark hero: white headings now have
     an actually dark surface behind them. Other report pages stay cream. */
  html[data-theme="dark"] .module-content .reports-hero {
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.35fr) 250px;
    align-items:center;
    gap:22px;
    min-height:248px;
    padding:32px clamp(24px,3vw,40px);
    margin:0 0 18px;
    overflow:hidden;
    background:radial-gradient(ellipse 46% 90% at 92% 35%,rgba(202,170,96,.18),transparent 80%),linear-gradient(115deg,#0d3025 0%,#154b36 72%,#1a593d 100%)!important;
    border:1px solid #2d6a4c!important;
    border-radius:24px!important;
    box-shadow:0 22px 48px rgba(12,46,33,.18)!important;
    color:#fff!important;
  }
  html[data-theme="dark"] .module-content .reports-hero::before {
    border-color:rgba(223,205,150,.16)!important;
    box-shadow:0 0 0 52px rgba(255,255,255,.025),0 0 0 104px rgba(255,255,255,.022)!important;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-hero-copy {
    min-width:0;
    color:#fff!important;
  }
  html[data-theme="dark"] .module-content .reports-hero .future-kicker {
    color:#f0cf91!important;
    -webkit-text-fill-color:#f0cf91!important;
    font-weight:850;
    letter-spacing:.15em;
  }
  html[data-theme="dark"] .module-content .reports-hero .future-kicker i {
    background:#e3b764!important;
  }
  html[data-theme="dark"] .module-content .reports-hero h1 {
    margin:12px 0 13px;
    font-size:clamp(2.2rem,3.3vw,3.5rem)!important;
    line-height:1.04!important;
    letter-spacing:-.055em;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-weight:740;
    text-shadow:none!important;
  }
  html[data-theme="dark"] .module-content .reports-hero h1 em {
    color:#f0c876!important;
    -webkit-text-fill-color:#f0c876!important;
    font-style:normal;
  }
  html[data-theme="dark"] .module-content .reports-hero p {
    max-width:52ch;
    font-size:.9rem;
    line-height:1.6;
    color:#dcebe2!important;
    -webkit-text-fill-color:#dcebe2!important;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-hero-orbit {
    width:220px;
    height:220px;
    justify-self:center;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core {
    width:136px;height:136px;
    background:linear-gradient(155deg,#fffdf5,#edf3e7)!important;
    border:5px solid rgba(239,211,142,.62)!important;
    box-shadow:0 20px 42px rgba(0,0,0,.25),inset 0 0 0 1px #ceddcc!important;
    color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core :is(strong,small,svg) {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core strong {
    font-size:2.5rem;
    font-weight:800;
    letter-spacing:-.06em;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core small {
    color:var(--ro-muted)!important;
    font-size:.68rem;
  }
  html[data-theme="dark"] .module-content .reports-hero .orbit-ring {
    border-color:rgba(231,217,161,.3)!important;
  }
  html[data-theme="dark"] .module-content .reports-hero .orbit-node {
    background:#e4bb70!important;
    border-color:#174a38!important;
  }

  /* Heading on all other report views. */
  html[data-theme="dark"] .module-content .reports-page-head {
    margin:0 0 16px!important;
    padding:10px 0 22px!important;
    border-bottom:1px solid var(--ro-line);
  }
  html[data-theme="dark"] .module-content .reports-page-head .future-kicker {
    color:#97661d!important;
    -webkit-text-fill-color:#97661d!important;
  }
  html[data-theme="dark"] .module-content .reports-page-head h1 {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
    line-height:1.09!important;
  }
  html[data-theme="dark"] .module-content .reports-page-head p {
    max-width:73ch;
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
    line-height:1.6;
  }

  /* Date filters and actual exports (controls in the screenshot had pale text). */
  html[data-theme="dark"] .module-content .reports-toolbar {
    display:flex;
    gap:16px;
    align-items:end;
    justify-content:space-between;
    padding:15px 18px;
    margin:0 0 18px;
    background:#fff!important;
    border:1px solid var(--ro-line)!important;
    border-radius:18px!important;
    box-shadow:var(--ro-shadow)!important;
    color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-period {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:end;
  }
  html[data-theme="dark"] .module-content .reports-period label > span {
    display:block;
    margin-bottom:3px;
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
    opacity:1!important;
    font-weight:850;
    font-size:.72rem;
  }
  html[data-theme="dark"] .module-content .reports-period input[type="date"] {
    min-height:44px;
    min-width:158px;
    padding:8px 13px;
    font-weight:690;
    background:#f8faf7!important;
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
    border:1px solid #c4d4c3!important;
    border-radius:12px!important;
    color-scheme:light;
    opacity:1!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .module-content .reports-filter-btn {
    min-height:44px;
    padding:0 19px;
    background:var(--ro-green)!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    border:1px solid var(--ro-green)!important;
    border-radius:12px!important;
    font-weight:800;
    box-shadow:0 8px 20px rgba(14,65,44,.16);
    opacity:1!important;
    transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
  }
  html[data-theme="dark"] .module-content .reports-filter-btn :is(span,svg) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-filter-btn:is(:hover,:focus-visible) {
    background:#205e43!important;
    transform:translateY(-1px);
    box-shadow:0 12px 26px rgba(14,65,44,.22);
  }
  html[data-theme="dark"] .module-content .reports-export-set {
    display:flex;gap:9px;flex-wrap:wrap;
  }
  html[data-theme="dark"] .module-content .reports-export {
    min-width:74px;
    min-height:44px;
    border-radius:12px!important;
    border:1px solid #cbdac8!important;
    background:#f8faf7!important;
    color:var(--ro-green)!important;
    -webkit-text-fill-color:var(--ro-green)!important;
    text-decoration:none;
    opacity:1!important;
    transition:border-color .17s ease,background .17s ease,transform .17s ease;
  }
  html[data-theme="dark"] .module-content .reports-export :is(span,small) {
    color:inherit!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-export-main {
    background:#fff5dd!important;
    border-color:#dac38d!important;
    color:#705018!important;
    -webkit-text-fill-color:#705018!important;
  }
  html[data-theme="dark"] .module-content .reports-export:is(:hover,:focus-visible) {
    background:#eaf3e9!important;
    border-color:#a0bd9e!important;
    transform:translateY(-1px);
  }

  /* KPI cards — a dark first tile anchors the page without losing numbers. */
  html[data-theme="dark"] .module-content .reports-kpi-grid {
    gap:14px;
    margin:0 0 16px;
  }
  html[data-theme="dark"] .module-content .reports-kpi {
    min-width:0;
    min-height:126px;
    padding:19px 20px;
    background:#fff!important;
    color:var(--ro-text)!important;
    border:1px solid var(--ro-line)!important;
    border-radius:19px!important;
    box-shadow:var(--ro-shadow)!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi > span {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
    letter-spacing:.11em;
    font-weight:850;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi > strong {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
    font-size:clamp(1.55rem,2.1vw,2.05rem)!important;
    font-weight:785;
    line-height:1.08;
    font-variant-numeric:tabular-nums;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi > strong small {
    color:#567160!important;
    -webkit-text-fill-color:#567160!important;
    font-size:.82rem;
  }
  html[data-theme="dark"] .module-content .reports-kpi > p {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi.reports-kpi-featured {
    background:linear-gradient(145deg,#0f3829,#1c5940)!important;
    border-color:#1d5a41!important;
    box-shadow:0 17px 34px rgba(16,54,40,.17)!important;
    color:#fff!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi.reports-kpi-featured :is(span,strong,p,small) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi.reports-kpi-featured > span {
    color:#efd5a3!important;
    -webkit-text-fill-color:#efd5a3!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi.reports-kpi-featured > p {
    color:#d7e9df!important;
    -webkit-text-fill-color:#d7e9df!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi.is-alert:not(.reports-kpi-featured) {
    border-color:#e5b6a6!important;
    background:#fffaf6!important;
  }
  html[data-theme="dark"] .module-content .reports-kpi.is-alert:not(.reports-kpi-featured) > strong {
    color:#a23e30!important;
    -webkit-text-fill-color:#a23e30!important;
  }

  /* Reports cards, charts, empty states, links, laws, lists and tables. */
  html[data-theme="dark"] .module-content :is(.reports-dashboard-grid,.reports-two-col,.reports-shortcuts,.reports-menu-preview,.reports-resources-stack) {
    gap:16px;
  }
  html[data-theme="dark"] .module-content :is(.reports-panel,.reports-menu-day,.reports-law-card,.reports-compliance) {
    background:#fff!important;
    border:1px solid var(--ro-line)!important;
    border-radius:20px!important;
    box-shadow:var(--ro-shadow)!important;
    color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-panel {
    min-width:0;padding:20px 21px;
  }
  html[data-theme="dark"] .module-content .reports-panel > header {
    margin-bottom:18px;
    gap:14px;
    padding-bottom:11px;
    border-bottom:1px solid #e8eee6;
  }
  html[data-theme="dark"] .module-content :is(.reports-panel > header > div > span,.reports-shortcuts-head > div > span) {
    color:#176a46!important;
    -webkit-text-fill-color:#176a46!important;
    font-weight:850;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content :is(.reports-panel > header h2,.reports-shortcuts-head h2) {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
    font-weight:780;
  }
  html[data-theme="dark"] .module-content .reports-panel > header > small {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-empty {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
    background:#f5f8f3!important;
    border:1px dashed #d8e2d5!important;
    border-radius:13px!important;
    min-height:72px;
    display:flex;
    justify-content:center;
    align-items:center;
  }
  html[data-theme="dark"] .module-content .reports-bar-track,
  html[data-theme="dark"] .module-content .reports-spark-list i {
    background:#edf3ea!important;
  }
  html[data-theme="dark"] .module-content .reports-bar-track i,
  html[data-theme="dark"] .module-content .reports-spark-list i b {
    background:linear-gradient(180deg,#bc9b5e,#1c6948)!important;
    opacity:1;
  }
  html[data-theme="dark"] .module-content .reports-bar-track b,
  html[data-theme="dark"] .module-content .reports-spark-list strong {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-bar-item > span,
  html[data-theme="dark"] .module-content .reports-spark-list span {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
  }
  html[data-theme="dark"] .module-content :is(.reports-signal-grid > a,.reports-shortcuts > a,.reports-expiry-list > div,.reports-flow-pair > div) {
    background:#f8faf7!important;
    color:var(--ro-text)!important;
    border:1px solid #d7e4d5!important;
    border-radius:14px!important;
    transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
  }
  html[data-theme="dark"] .module-content :is(.reports-signal-grid > a,.reports-shortcuts > a):is(:hover,:focus-visible) {
    background:#edf4ec!important;
    border-color:#a4bda3!important;
    box-shadow:var(--ro-shadow-lift)!important;
    transform:translateY(-2px);
  }
  html[data-theme="dark"] .module-content :is(.reports-signal-grid > a,.reports-shortcuts > a,.reports-flow-pair > div) :is(strong,small,span,b,p) {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:currentColor!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content :is(.reports-signal-grid > a,.reports-shortcuts > a,.reports-flow-pair > div) small {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
  }
  html[data-theme="dark"] .module-content .reports-shortcuts-head {
    margin:24px 0 13px;
  }
  html[data-theme="dark"] .module-content .reports-shortcuts > a {
    min-height:90px;
    padding:16px;
  }
  html[data-theme="dark"] .module-content .reports-shortcuts > a > i {
    display:grid;
    place-items:center;
    background:#eaf2e7!important;
    color:#1e6849!important;
    border:1px solid #d6e5d5!important;
  }
  html[data-theme="dark"] .module-content .reports-shortcuts > a > i svg {
    color:#1e6849!important;
  }
  html[data-theme="dark"] .module-content .reports-link-arrow,
  html[data-theme="dark"] .module-content .reports-signal-grid > a > svg {
    color:#1c6848!important;
  }
  html[data-theme="dark"] .module-content .reports-nutrition-strip > article {
    min-width:0;
    padding:18px!important;
    background:linear-gradient(180deg,#fff,#f8faf7)!important;
    border:1px solid var(--ro-line)!important;
    border-radius:16px!important;
    box-shadow:var(--ro-shadow)!important;
    color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-nutrition-strip > article :is(span,strong,small) {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-nutrition-strip > article > span {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
  }
  html[data-theme="dark"] .module-content .reports-table-wrap {
    border:1px solid #dce6d9;
    border-radius:14px;
    background:#fff;
    max-width:100%;overflow-x:auto;
  }
  html[data-theme="dark"] .module-content .reports-table {
    background:#fff!important;
    color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-table thead th {
    background:#eaf2e8!important;
    color:#234b36!important;
    -webkit-text-fill-color:#234b36!important;
    white-space:nowrap;
  }
  html[data-theme="dark"] .module-content .reports-table tbody td {
    background:#fff!important;
    color:#345640!important;
    -webkit-text-fill-color:#345640!important;
  }
  html[data-theme="dark"] .module-content .reports-table tbody tr:nth-child(even) td {
    background:#f9fbf8!important;
  }
  html[data-theme="dark"] .module-content .reports-table tbody tr:hover td {
    background:#eff6ee!important;
  }
  html[data-theme="dark"] .module-content .reports-table tbody td strong {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-compliance :is(h2,strong) {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-compliance :is(p,small) {
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
  }
  html[data-theme="dark"] .module-content .reports-law-card :is(span,h2,p,a) {
    color:var(--ro-text)!important;
    -webkit-text-fill-color:var(--ro-text)!important;
  }
  html[data-theme="dark"] .module-content .reports-law-card span {
    color:#94621b!important;
    -webkit-text-fill-color:#94621b!important;
  }
  html[data-theme="dark"] .module-content .reports-legal-note {
    background:#f3f7f1!important;
    color:var(--ro-muted)!important;
    -webkit-text-fill-color:var(--ro-muted)!important;
  }
  html[data-theme="dark"] .module-content .reports-status.ok {
    color:#1a6944!important;
    background:#eaf5e9!important;
    border-color:#c5e0c4!important;
  }
  html[data-theme="dark"] .module-content .reports-status.attention {
    color:#825713!important;
    background:#fff4df!important;
    border-color:#e9c78c!important;
  }
  html[data-theme="dark"] .module-content .reports-status.alert {
    color:#a23e30!important;
    background:#fff0ed!important;
    border-color:#dfb3aa!important;
  }
  html[data-theme="dark"] .module-content .reports-status.data {
    color:#536d5c!important;
    background:#eff4ee!important;
    border-color:#d3dfd0!important;
  }
  html[data-theme="dark"] .module-content :is(.reports-ranking,.reports-conflicts,.reports-expiry-list) :is(span,strong,small,b,p) {
    opacity:1!important;
  }
  html[data-theme="dark"] .module-content .reports-ranking b,
  html[data-theme="dark"] .module-content .reports-conflicts > div > b {
    color:#80541e!important;
    -webkit-text-fill-color:#80541e!important;
  }
  html[data-theme="dark"] .module-content .reports-compliance-list {
    gap:12px;
    margin-bottom:18px;
  }
  html[data-theme="dark"] .module-content .reports-compliance-list .reports-compliance {
    padding:19px;
  }
  html[data-theme="dark"] .module-content .reports-menu-day.is-empty {
    opacity:1!important;
    background:#f5f7f3!important;
  }
  html[data-theme="dark"] .module-content :is(.reports-pagination,.reports-energy-target) {
    color:var(--ro-muted)!important;
  }

  /* Responsive layout: retains filters and prevents app-width overflow. */
  @media(max-width:1180px) {
    html[data-theme="dark"] .module-content .reports-hero {
      grid-template-columns:minmax(0,1fr) 186px;
      gap:12px;
    }
    html[data-theme="dark"] .module-content .reports-hero .reports-hero-orbit {
      width:184px;height:184px;
    }
  }
  @media(max-width:960px) {
    html[data-theme="dark"] .module-content .reports-hero {
      grid-template-columns:minmax(0,1fr);
      min-height:0;
    }
    html[data-theme="dark"] .module-content .reports-hero .reports-hero-orbit {
      display:none;
    }
    html[data-theme="dark"] .module-content .reports-toolbar {
      display:grid;
      grid-template-columns:minmax(0,1fr);
      align-items:stretch;
    }
    html[data-theme="dark"] .module-content .reports-export-set {justify-content:flex-start;}
  }
  @media(max-width:640px) {
    html[data-theme="dark"] .module-content .reports-hero {
      padding:24px 20px;
      border-radius:20px!important;
    }
    html[data-theme="dark"] .module-content .reports-hero h1 {
      font-size:clamp(2rem,9vw,2.65rem)!important;
    }
    html[data-theme="dark"] .module-content .reports-kpi-grid,
    html[data-theme="dark"] .module-content .reports-kpi-grid-5 {
      grid-template-columns:repeat(2,minmax(0,1fr));
    }
    html[data-theme="dark"] .module-content .reports-kpi {padding:14px;min-height:115px;}
    html[data-theme="dark"] .module-content .reports-kpi > strong {font-size:1.5rem!important;}
    html[data-theme="dark"] .module-content .reports-period {
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      width:100%;
    }
    html[data-theme="dark"] .module-content .reports-period label,
    html[data-theme="dark"] .module-content .reports-period input[type="date"] {
      min-width:0;
      width:100%;
    }
    html[data-theme="dark"] .module-content .reports-period .reports-filter-btn {
      grid-column:1/-1;
    }
    html[data-theme="dark"] .module-content .reports-export-set {
      display:grid;
      grid-template-columns:repeat(3,minmax(0,1fr));
    }
    html[data-theme="dark"] .module-content .reports-export {min-width:0;}
    html[data-theme="dark"] .module-content :is(.reports-panel,.reports-menu-day,.reports-law-card,.reports-compliance) {
      border-radius:17px!important;
    }
    html[data-theme="dark"] .module-content .reports-shortcuts {
      grid-template-columns:minmax(0,1fr);
    }
  }
  @media(max-width:395px) {
    html[data-theme="dark"] .module-content .reports-kpi-grid,
    html[data-theme="dark"] .module-content .reports-kpi-grid-5 {
      grid-template-columns:minmax(0,1fr);
    }
  }
  @media(prefers-reduced-motion:reduce) {
    html[data-theme="dark"] .module-content :is(.reports-export,.reports-filter-btn,.reports-shortcuts > a,.reports-signal-grid > a) {
      transition:none!important;transform:none!important;
    }
  }
}

/* High contrast is black/white/yellow and does not depend on the normal theme. */
@media screen {
  html[data-theme="contrast"] .module-content .reports-hero,
  html[data-theme="contrast"] .module-content :is(.reports-toolbar,.reports-kpi,.reports-panel,.reports-menu-day,.reports-law-card,.reports-compliance,.reports-nutrition-strip > article,.reports-flow-pair > div,.reports-shortcuts > a,.reports-signal-grid > a,.reports-empty) {
    background:#000!important;
    border:2px solid #fff!important;
    color:#fff!important;
    box-shadow:none!important;
    text-shadow:none!important;
  }
  html[data-theme="contrast"] .module-content .reports-hero :is(h1,p,.future-kicker),
  html[data-theme="contrast"] .module-content .reports-page-head :is(h1,p,.future-kicker),
  html[data-theme="contrast"] .module-content :is(.reports-kpi,.reports-panel,.reports-nutrition-strip > article,.reports-flow-pair > div,.reports-compliance) :is(h2,span,strong,p,small,b) {
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    opacity:1!important;
  }
  html[data-theme="contrast"] .module-content .reports-hero h1 em,
  html[data-theme="contrast"] .module-content .reports-hero .future-kicker,
  html[data-theme="contrast"] .module-content .reports-kpi.reports-kpi-featured > strong {
    color:#ffeb00!important;
    -webkit-text-fill-color:#ffeb00!important;
  }
  html[data-theme="contrast"] .module-content .reports-hero .reports-orbit-core,
  html[data-theme="contrast"] .module-content :is(.reports-period input,.reports-filter-btn,.reports-export) {
    background:#000!important;
    color:#fff!important;
    border:2px solid #fff!important;
    box-shadow:none!important;
    color-scheme:dark;
  }
  html[data-theme="contrast"] .module-content .reports-hero .reports-orbit-core :is(strong,small,svg) {
    color:#fff!important;-webkit-text-fill-color:#fff!important;
  }
  html[data-theme="contrast"] .module-content :is(.reports-period label>span,.reports-period input,.reports-filter-btn,.reports-filter-btn span,.reports-export,.reports-export span,.reports-export small) {
    color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
  }
  html[data-theme="contrast"] .module-content :is(.reports-filter-btn,.reports-export-main) {
    background:#ffeb00!important;
    border-color:#ffeb00!important;
    color:#000!important;
    -webkit-text-fill-color:#000!important;
  }
  html[data-theme="contrast"] .module-content :is(.reports-filter-btn span,.reports-export-main span,.reports-export-main small,.reports-filter-btn svg) {
    color:#000!important;-webkit-text-fill-color:#000!important;
  }
  html[data-theme="contrast"] .module-content :is(.reports-signal-grid > a,.reports-shortcuts > a,.reports-empty) :is(span,strong,small,svg) {
    color:#fff!important;-webkit-text-fill-color:#fff!important;
  }
  html[data-theme="contrast"] .module-content .reports-table-wrap {
    background:#000!important;border:2px solid #fff!important;
  }
  html[data-theme="contrast"] .module-content .reports-table :is(th,td) {
    background:#000!important;
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    border-color:#fff!important;
  }
  html[data-theme="contrast"] .module-content .reports-table tbody tr:hover td {
    background:#242424!important;
  }
  html[data-theme="contrast"] .module-content :is(.reports-status,.energy-status-pill) {
    border:1px solid #ffeb00!important;
    background:#000!important;
    color:#ffeb00!important;
    -webkit-text-fill-color:#ffeb00!important;
  }
  html[data-theme="contrast"] .module-content :is(a,button,input):focus-visible {
    outline:3px solid #ffeb00!important;outline-offset:3px!important;
  }
  html[data-theme="contrast"] .module-content :is(.reports-signal-grid>a,.reports-shortcuts>a):is(:hover,:focus-visible) {
    border-color:#ffeb00!important;
    color:#ffeb00!important;
  }
  html[data-theme="contrast"] .module-content .reports-bar-track,
  html[data-theme="contrast"] .module-content .reports-spark-list i {
    background:#262626!important;
  }
  html[data-theme="contrast"] .module-content .reports-bar-track i,
  html[data-theme="contrast"] .module-content .reports-spark-list i b {
    background:#ffeb00!important;
  }
}

/* Print reports are still ink-on-paper, never white text on a dark field. */
@media print {
  .module-content :is(.reports-hero,.reports-page-head,.reports-toolbar,.reports-kpi,.reports-panel,.reports-menu-day,.reports-compliance,.reports-law-card) {
    background:#fff!important;color:#000!important;border-color:#ccc!important;
    box-shadow:none!important;text-shadow:none!important;
  }
  .module-content :is(.reports-hero,.reports-page-head,.reports-kpi,.reports-panel) :is(h1,h2,p,span,strong,small,em) {
    color:#000!important;-webkit-text-fill-color:#000!important;
  }
}

/* High-contrast action priority (explicit selectors avoid :is() max-specificity). */
@media screen {
  html[data-theme="contrast"] .module-content .reports-toolbar .reports-period .reports-filter-btn,
  html[data-theme="contrast"] .module-content .reports-toolbar .reports-export-set .reports-export-main {
    background:#ffeb00!important;
    border:2px solid #ffeb00!important;
    color:#000!important;
    -webkit-text-fill-color:#000!important;
  }
  html[data-theme="contrast"] .module-content .reports-toolbar .reports-period .reports-filter-btn :is(span,svg),
  html[data-theme="contrast"] .module-content .reports-toolbar .reports-export-set .reports-export-main :is(span,small) {
    color:#000!important;
    -webkit-text-fill-color:#000!important;
  }
}


/* Nutriva NEXT 0.14.6.12 — drobne poprawki Raportów (hero label + Jadłospis A4). */
@media screen {
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core {
    position:relative;
    overflow:visible;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core :is(svg,strong) {
    position:relative;
    z-index:3;
  }
  html[data-theme="dark"] .module-content .reports-hero .reports-orbit-core small {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:8px;
    padding:4px 10px;
    min-height:24px;
    border-radius:999px;
    background:rgba(255,255,255,.96)!important;
    color:#294634!important;
    -webkit-text-fill-color:#294634!important;
    box-shadow:0 8px 18px rgba(12,47,34,.16);
    position:relative;
    z-index:4;
  }
  html[data-theme="dark"] .module-content .reports-hero .orbit-node {
    z-index:1;
  }

  html[data-theme="dark"] .module-content .reports-menu-preview {
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html[data-theme="dark"] .module-content .reports-menu-day .reports-empty {
    background:transparent!important;
    border:1px dashed #dce5d9!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .module-content .reports-menu-day.is-empty {
    background:#fbfcfa!important;
  }
}

@media screen {
  html[data-theme="contrast"] .module-content .reports-hero .reports-orbit-core small {
    background:#000!important;
    color:#ffeb00!important;
    -webkit-text-fill-color:#ffeb00!important;
    border:1px solid #ffeb00!important;
    border-radius:999px!important;
    padding:4px 10px!important;
    position:relative;
    z-index:4;
  }
  html[data-theme="contrast"] .module-content .reports-menu-preview {
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html[data-theme="contrast"] .module-content .reports-menu-day .reports-empty {
    background:transparent!important;
    border:2px dashed #fff!important;
    box-shadow:none!important;
  }
}


/* Nutriva NEXT 0.14.6.13 — Raporty / Jadłospis A4: usuń biały kontener pod dniami. */
@media screen {
  html[data-theme="dark"] .module-content .reports-panel:has(.reports-menu-preview),
  html[data-theme="dark"] .module-content .reports-card:has(.reports-menu-preview),
  html[data-theme="dark"] .module-content .reports-block:has(.reports-menu-preview) {
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html[data-theme="dark"] .module-content .reports-panel:has(.reports-menu-preview) > header,
  html[data-theme="dark"] .module-content .reports-card:has(.reports-menu-preview) > header,
  html[data-theme="dark"] .module-content .reports-block:has(.reports-menu-preview) > header {
    padding-inline:0!important;
    margin-inline:0!important;
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .module-content .reports-menu-preview {
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    outline:none!important;
    padding:0!important;
  }
}

@media screen {
  html[data-theme="contrast"] .module-content .reports-panel:has(.reports-menu-preview),
  html[data-theme="contrast"] .module-content .reports-card:has(.reports-menu-preview),
  html[data-theme="contrast"] .module-content .reports-block:has(.reports-menu-preview) {
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    padding:0!important;
  }
  html[data-theme="contrast"] .module-content .reports-menu-preview {
    background:transparent!important;
    border:none!important;
    box-shadow:none!important;
    outline:none!important;
    padding:0!important;
  }
}


/* Nutriva NEXT 0.14.6.14 — Raporty / Jadłospis A4
   ROOT CAUSE: removed .reports-menu-preview from generic surface cards.
   The weekly grid is layout-only and must remain transparent. */
@media screen {
  html[data-theme="dark"] .module-content > section.reports-menu-preview {
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
    padding:0!important;
  }
  html[data-theme="contrast"] .module-content > section.reports-menu-preview {
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    outline:0!important;
    padding:0!important;
  }
}


/* ================================================================
   NUTRIVA ORBIT 0.14.7.0 — Administracja / wspólne komponenty
   Scope: only Admin subpages and admin-* controls; screen only.
   ================================================================ */
@media screen {
 html[data-theme="dark"] .module-content:has(.admin-workspace-head),
 html[data-theme="dark"] .module-content:has(.admin-page-head) {
   --ad-ink:#173c2c;--ad-muted:#566e5d;--ad-soft:#f6f8f4;
   --ad-stroke:#d7e2d5;--ad-green:#164e38;--ad-gold:#966818;
   --ad-shadow:0 12px 32px rgba(13,44,31,.075);
   min-width:0;
 }
 /* Admin / Posiłki: keep the Orbit heading divider, but separate it
    from the card. The previous release incorrectly removed this line. */
 html[data-theme="dark"] .module-content .admin-workspace-head.admin-meals-head,
 html[data-theme="contrast"] .module-content .admin-workspace-head.admin-meals-head {
   border-bottom:1px solid #d6e1d5!important;
   padding-bottom:20px!important;
   margin-bottom:24px!important;
   box-shadow:none!important;
 }
 html[data-theme="contrast"] .module-content .admin-workspace-head.admin-meals-head {
   border-bottom-color:#ffffff!important;
 }
 html[data-theme="dark"] .module-content .admin-meals-form,
 html[data-theme="contrast"] .module-content .admin-meals-form {
   margin-top:0!important;
 }
 @media(max-width:760px) {
   html[data-theme="dark"] .module-content .admin-workspace-head.admin-meals-head,
   html[data-theme="contrast"] .module-content .admin-workspace-head.admin-meals-head {
     padding-bottom:14px!important;
     margin-bottom:18px!important;
   }
 }
 /* Dashboard hero must never be white text on a white background. */
 html[data-theme="dark"] .module-content .admin-orbit-hero {
   color:#fff!important;
   background:radial-gradient(circle at 92% 30%,rgba(211,174,95,.16),transparent 38%),linear-gradient(120deg,#0e3529,#18503c 82%)!important;
   border:1px solid #2b644d!important;
   border-radius:24px!important;
   padding:30px clamp(22px,3vw,40px)!important;
   box-shadow:0 20px 44px rgba(9,46,31,.16)!important;
 }
 html[data-theme="dark"] .module-content .admin-orbit-hero :is(h1,h2,p,strong) {
   color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
 }
 html[data-theme="dark"] .module-content .admin-orbit-hero p {color:#d9e8df!important;-webkit-text-fill-color:#d9e8df!important;}
 html[data-theme="dark"] .module-content .admin-orbit-hero .future-kicker {color:#edcc86!important;-webkit-text-fill-color:#edcc86!important;}
 html[data-theme="dark"] .module-content .admin-orbit-hero h1 span {color:#edcc86!important;-webkit-text-fill-color:#edcc86!important;}
 html[data-theme="dark"] .module-content .admin-orbit-hero .admin-control-orb {
   background:rgba(255,255,255,.94)!important;
   border:1px solid #bed5c3!important;border-radius:16px!important;box-shadow:0 15px 28px rgba(0,0,0,.12)!important;
 }
 html[data-theme="dark"] .module-content .admin-orbit-hero .admin-control-orb :is(span,strong,small) {
   color:#18402d!important;-webkit-text-fill-color:#18402d!important;opacity:1!important;
 }
 html[data-theme="dark"] .module-content .admin-orbit-hero .admin-control-orb span {color:#875b1a!important;-webkit-text-fill-color:#875b1a!important;}

 /* Top KPI strips should have only separate rounded cards, never a white tray. */
 html[data-theme="dark"] .module-content .admin-command-strip,
 html[data-theme="dark"] .module-content .admin-command-strip.admin-command-strip-4 {
   background:transparent!important;
   background-image:none!important;
   border:0!important;outline:0!important;box-shadow:none!important;
   padding:0!important;margin-block:18px!important;
   gap:12px!important;
 }
 html[data-theme="dark"] .module-content .admin-command-strip > div {
   background:#fff!important;border:1px solid var(--ad-stroke)!important;
   border-radius:18px!important;box-shadow:var(--ad-shadow)!important;
   min-width:0;padding:18px 17px!important;
 }
 html[data-theme="dark"] .module-content .admin-command-strip > div :is(strong,span,small) {opacity:1!important;}
 html[data-theme="dark"] .module-content .admin-command-strip > div strong {color:var(--ad-ink)!important;-webkit-text-fill-color:var(--ad-ink)!important;}
 html[data-theme="dark"] .module-content .admin-command-strip > div :is(span,small) {color:var(--ad-muted)!important;-webkit-text-fill-color:var(--ad-muted)!important;}

 /* Admin panels and tiles have an opaque surface, clear edge and consistent radii. */
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-control-tile,.admin-info-box) {
   border:1px solid var(--ad-stroke,#d7e2d5)!important;
   border-radius:20px!important;
   background:#fff!important;box-shadow:var(--ad-shadow,0 12px 32px rgba(13,44,31,.075))!important;
 }
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card) :is(h2,h3,strong,b) {color:#163d2b!important;}
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card) :is(p,small) {color:#566e5e!important;}
 html[data-theme="dark"] .module-content .admin-control-tile {transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important;}
 html[data-theme="dark"] .module-content .admin-control-tile:is(:hover,:focus-visible) {
   transform:translateY(-3px);border-color:#b8cfbb!important;box-shadow:0 20px 44px rgba(13,44,31,.14)!important;
 }
 html[data-theme="dark"] .module-content .admin-control-tile h2 {color:#164432!important;}
 html[data-theme="dark"] .module-content .admin-control-tile p {color:#526f5e!important;}
 html[data-theme="dark"] .module-content .admin-card-head {padding-bottom:12px;}
 html[data-theme="dark"] .module-content .admin-settings-stack {display:grid;gap:16px;}
 html[data-theme="dark"] .module-content .admin-settings-stack .admin-settings-card {min-width:0;}
 html[data-theme="dark"] .module-content .admin-sticky-actions {
   background:#fff!important;border:1px solid var(--ad-stroke,#d7e2d5)!important;
   border-radius:18px!important;box-shadow:var(--ad-shadow,0 12px 32px rgba(13,44,31,.075))!important;
 }
 /* Fields in Administrator screens retain native validation and labels. */
 html[data-theme="dark"] .module-content :is(.admin-field,.user-admin-role,.admin-inline-fields,.admin-secret-grid) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
 html[data-theme="dark"] .module-content .admin-settings-card :is(input[type="number"],input[type="text"],input[type="password"],select),
 html[data-theme="dark"] .module-content .user-admin-row select {
   min-height:44px;background:#fff!important;color:#173c2c!important;
   -webkit-text-fill-color:#173c2c!important;
   border:1px solid #bed0bf!important;border-radius:12px!important;
   box-shadow:none!important;
 }
 html[data-theme="dark"] .module-content :is(.admin-field,.user-admin-role) :is(input,select,textarea):focus-visible,
 html[data-theme="dark"] .module-content .admin-settings-card :is(input,select):focus-visible {
   outline:3px solid #c49b4d!important;outline-offset:2px!important;
 }

 /* Orbit Checkbox V1: same semantic state on meals, warehouse, users and roles. */
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:not(.orbit-select-option) {
   appearance:none!important;-webkit-appearance:none!important;
   display:inline-grid!important;place-items:center!important;
   flex:0 0 21px!important;width:21px!important;height:21px!important;min-width:21px!important;
   padding:0!important;margin:0!important;border:1.5px solid #9cb5a4!important;
   border-radius:7px!important;background:#fff!important;
   box-shadow:inset 0 1px 2px rgba(10,48,30,.07)!important;
   opacity:1!important;pointer-events:auto!important;
   cursor:pointer;vertical-align:middle;position:relative;
 }
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]::after {
   content:"";display:block;width:10px;height:6px;
   border-left:2px solid #fff;border-bottom:2px solid #fff;
   transform:translateY(-1px) rotate(-45deg) scale(0);
   transition:transform .13s ease;
 }
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:checked {
   background:#19553d!important;border-color:#19553d!important;
   box-shadow:0 0 0 3px rgba(25,85,61,.10)!important;
 }
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:checked::after {
   transform:translateY(-1px) rotate(-45deg) scale(1);
 }
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:focus-visible {
   outline:3px solid #b78932!important;outline-offset:3px!important;
 }
 html[data-theme="dark"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:disabled {
   opacity:.55!important;cursor:not-allowed;background:#eaece8!important;
 }
 /* Hidden checkbox cards: module and permissions still follow their accessible input. */
 html[data-theme="dark"] .module-content .module-permissions label,
 html[data-theme="dark"] .module-content .permission-list label {position:relative;}
 html[data-theme="dark"] .module-content .module-permissions input[type="checkbox"],
 html[data-theme="dark"] .module-content .permission-list input[type="checkbox"] {
   position:absolute!important;inset-inline-start:9px;top:50%;transform:translateY(-50%);
   opacity:0!important;width:1px!important;height:1px!important;min-width:1px!important;
   pointer-events:none!important;
 }
 html[data-theme="dark"] .module-content .module-permissions label > span,
 html[data-theme="dark"] .module-content .permission-list label > span {
   position:relative;min-height:42px;
   padding:10px 12px!important;border:1px solid #d7e2d5!important;
   background:#f8faf7!important;border-radius:12px!important;
   color:#284c38!important;
 }
 html[data-theme="dark"] .module-content .module-permissions label > span::before {
   content:"";display:inline-block;width:15px;height:15px;flex:0 0 15px;
   border:1.5px solid #93ad9d;border-radius:5px;background:#fff;
 }
 html[data-theme="dark"] .module-content .module-permissions input[type="checkbox"]:checked + span,
 html[data-theme="dark"] .module-content .permission-list input[type="checkbox"]:checked + span {
   background:#e8f2e9!important;border-color:#86b39a!important;color:#124a32!important;
 }
 html[data-theme="dark"] .module-content .module-permissions input[type="checkbox"]:checked + span::before {
   background:#19553d!important;border-color:#19553d!important;
   box-shadow:inset 0 0 0 3px #19553d;
 }
 html[data-theme="dark"] .module-content .module-permissions input[type="checkbox"]:checked + span::after {
   content:"✓";position:absolute;left:13px;top:50%;transform:translateY(-50%);
   color:#fff;font-size:12px;font-weight:900;
 }
 html[data-theme="dark"] .module-content .permission-list label span i {
   width:17px;height:17px;border:1.5px solid #93ad9d;border-radius:5px;background:#fff;
   box-shadow:none!important;display:inline-grid;place-items:center;flex:0 0 17px;
 }
 html[data-theme="dark"] .module-content .permission-list input[type="checkbox"]:checked + span i {
   background:#19553d!important;border-color:#19553d!important;
 }
 html[data-theme="dark"] .module-content .permission-list input[type="checkbox"]:checked + span i::after {
   content:"✓";color:#fff;font-size:12px;font-style:normal;font-weight:900;
 }
 html[data-theme="dark"] .module-content :is(.module-permissions,.permission-list) input[type="checkbox"]:focus-visible + span {
   outline:3px solid #bd9138!important;outline-offset:2px!important;
 }
 /* Selected radio cards are an Orbit surface with unmistakable state. */
 html[data-theme="dark"] .module-content .admin-choice > span {
   background:#fff!important;color:#1d4431!important;
   border:1px solid #d5e1d2!important;border-radius:16px!important;
 }
 html[data-theme="dark"] .module-content .admin-choice input[type="radio"]:checked + span {
   background:#e8f3e8!important;border:2px solid #1d694b!important;
   box-shadow:inset 4px 0 0 #1d694b!important;
 }
 html[data-theme="dark"] .module-content .admin-choice input[type="radio"]:focus-visible + span {
   outline:3px solid #bd9138!important;outline-offset:2px!important;
 }
 html[data-theme="dark"] .module-content :is(.correction-config-option,.admin-toggle-row,.admin-danger-check) {
   background:#f8faf7!important;color:#284c38!important;
   border:1px solid #d5e1d2!important;border-radius:15px!important;
 }
 html[data-theme="dark"] .module-content :is(.correction-config-option,.admin-toggle-row,.admin-danger-check):has(input:checked) {
   background:#edf5eb!important;border-color:#a9cab2!important;
 }
 html[data-theme="dark"] .module-content .correction-config-option {align-items:center;}
 html[data-theme="dark"] .module-content .correction-config-option :is(strong,small) {color:#284c38!important;}
 html[data-theme="dark"] .module-content .admin-toggle-row :is(strong,small) {color:#284c38!important;}
 /* User list: balance role, admin and active controls without boxy old lines. */
 html[data-theme="dark"] .module-content .user-admin-row {
   display:grid;grid-template-columns:minmax(210px,1fr) minmax(170px,230px) auto auto 42px;
   align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e2eae0;
 }
 html[data-theme="dark"] .module-content .user-admin-row .mini-check {
   display:inline-flex;align-items:center;gap:7px;white-space:nowrap;color:#244835;
 }
 html[data-theme="dark"] .module-content .admin-state-card {
   background:#fff!important;color:#173c2c!important;
   border:1px solid #d7e2d5!important;border-radius:17px!important;
   box-shadow:var(--ad-shadow,0 12px 32px rgba(13,44,31,.075))!important;
 }
 html[data-theme="dark"] .module-content .admin-state-card :is(span,strong,small) {color:#173c2c!important;opacity:1!important;}
 html[data-theme="dark"] .module-content .admin-state-card small {color:#5a7462!important;}

 @media(max-width:1120px) {
  html[data-theme="dark"] .module-content .user-admin-row {
   grid-template-columns:minmax(190px,1fr) minmax(155px,210px) auto auto 42px;gap:8px;
  }
 }
 @media(max-width:860px) {
  html[data-theme="dark"] .module-content .user-admin-row {
   grid-template-columns:minmax(0,1fr) minmax(145px,1fr);gap:8px;
  }
  html[data-theme="dark"] .module-content .user-admin-row .user-admin-person {grid-column:1/-1;}
  html[data-theme="dark"] .module-content .user-admin-row .icon-save {justify-self:end;}
 }
 @media(max-width:600px) {
  html[data-theme="dark"] .module-content .admin-command-strip {grid-template-columns:1fr!important;}
  html[data-theme="dark"] .module-content .user-admin-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  html[data-theme="dark"] .module-content :is(.admin-choice-grid,.correction-config-grid,.admin-grid-2) {grid-template-columns:1fr!important;}
 }
 @media(prefers-reduced-motion:reduce) {
  html[data-theme="dark"] .module-content .admin-control-tile {transition:none!important;transform:none!important;}
 }
}
/* Wysoki Kontrast: czerń, biel i żółty, bez półprzezroczystych kart. */
@media screen {
 html[data-theme="contrast"] .module-content .admin-orbit-hero,
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-control-tile,.admin-state-card,.admin-info-box,.admin-command-strip>div) {
   background:#000!important;color:#fff!important;border:2px solid #fff!important;
   box-shadow:none!important;text-shadow:none!important;
 }
 html[data-theme="contrast"] .module-content .admin-command-strip {
   background:transparent!important;border:none!important;padding:0!important;box-shadow:none!important;
 }
 html[data-theme="contrast"] .module-content .admin-orbit-hero :is(h1,h2,p,strong),
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-control-tile,.admin-state-card,.admin-command-strip>div) :is(h2,h3,strong,span,small,p,b) {
   color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;
 }
 html[data-theme="contrast"] .module-content .admin-orbit-hero :is(.future-kicker,h1 span) {color:#ffeb00!important;-webkit-text-fill-color:#ffeb00!important;}
 html[data-theme="contrast"] .module-content .admin-orbit-hero .admin-control-orb {
   background:#000!important;color:#fff!important;border:2px solid #fff!important;box-shadow:none!important;
 }
 html[data-theme="contrast"] .module-content .admin-orbit-hero .admin-control-orb :is(span,strong,small) {color:#fff!important;-webkit-text-fill-color:#fff!important;}
 html[data-theme="contrast"] .module-content .admin-control-tile:is(:hover,:focus-visible) {border-color:#ffeb00!important;transform:none!important;box-shadow:none!important;}
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:not(.orbit-select-option) {
   appearance:none!important;-webkit-appearance:none!important;
   background:#000!important;border:2px solid #fff!important;
   width:22px!important;height:22px!important;min-width:22px!important;
   border-radius:5px!important;box-shadow:none!important;
 }
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:checked {
   background:#ffeb00!important;border-color:#ffeb00!important;
 }
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:checked::after {
   border-color:#000!important;
 }
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:focus-visible {outline:3px solid #ffeb00!important;outline-offset:3px!important;}
 html[data-theme="contrast"] .module-content :is(.admin-choice>span,.correction-config-option,.admin-toggle-row,.admin-danger-check,.module-permissions span,.permission-list span) {
   background:#000!important;color:#fff!important;border:2px solid #fff!important;
 }
 html[data-theme="contrast"] .module-content .admin-choice input[type="radio"]:checked + span,
 html[data-theme="contrast"] .module-content .module-permissions input[type="checkbox"]:checked + span,
 html[data-theme="contrast"] .module-content .permission-list input[type="checkbox"]:checked + span {
   background:#000!important;border-color:#ffeb00!important;color:#ffeb00!important;
 }
 html[data-theme="contrast"] .module-content .module-permissions input[type="checkbox"]:checked + span::before,
 html[data-theme="contrast"] .module-content .permission-list input[type="checkbox"]:checked + span i {
   background:#ffeb00!important;border-color:#ffeb00!important;
 }
 html[data-theme="contrast"] .module-content .permission-list input[type="checkbox"]:checked + span i::after,
 html[data-theme="contrast"] .module-content .module-permissions input[type="checkbox"]:checked + span::after {color:#000!important;}
 html[data-theme="contrast"] .module-content :is(.admin-field input,.admin-field select,.user-admin-role select,.admin-settings-card input:not([type="checkbox"]):not([type="radio"])) {
   background:#000!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:2px solid #fff!important;
 }
 html[data-theme="contrast"] .module-content :is(.admin-control-tile,.admin-choice,.admin-card) :is(a,button,input,select):focus-visible {outline:3px solid #ffeb00!important;outline-offset:3px!important;}
}
@media print {
 .module-content .admin-orbit-hero,.module-content .admin-card,.module-content .admin-command-strip>div {
   background:#fff!important;color:#000!important;box-shadow:none!important;
 }
}

/* High-contrast checked state is a checkmark, not color alone. */
@media screen {
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:not(.orbit-select-option) {
   display:inline-grid!important;place-items:center!important;
 }
 html[data-theme="contrast"] .module-content :is(.admin-card,.admin-settings-card,.admin-settings-stack,.user-admin-list,.roles-list) input[type="checkbox"]:checked::after {
   content:"";display:block;width:10px;height:6px;
   border-left:2px solid #000!important;border-bottom:2px solid #000!important;
   transform:translateY(-1px) rotate(-45deg) scale(1)!important;
 }
 html[data-theme="contrast"] .module-content .module-permissions label > span::before {
   content:"";display:inline-block;width:16px;height:16px;flex:0 0 16px;
   border:2px solid #fff!important;border-radius:4px;background:#000;
 }
 html[data-theme="contrast"] .module-content .module-permissions input[type="checkbox"]:checked + span::after {
   content:"✓";position:absolute;left:13px;top:50%;transform:translateY(-50%);
   font-size:12px;font-weight:900;color:#000!important;
 }
 html[data-theme="contrast"] .module-content .permission-list label span i {
   width:17px;height:17px;border:2px solid #fff!important;border-radius:4px;
   background:#000!important;display:inline-grid;place-items:center;flex:0 0 17px;
 }
 html[data-theme="contrast"] .module-content .permission-list input[type="checkbox"]:checked + span i::after {
   content:"✓";font-size:12px;font-style:normal;font-weight:900;color:#000!important;
 }
}


/* 0.14.7.0 — źródłowa kontrolka aktywności posiłku: tylko jeden checkbox. */
@media screen {
  html[data-theme="dark"] .module-content .admin-card .meal-row .switch-control {
    display:inline-flex!important;align-items:center;justify-content:center;
    min-width:44px;min-height:44px;margin:0!important;
  }
  html[data-theme="dark"] .module-content .admin-card .meal-row .switch-control > span {
    display:none!important;
  }
  html[data-theme="dark"] .module-content .admin-card .meal-row .switch-control > input[type="checkbox"] {
    position:static!important;inset:auto!important;transform:none!important;
    opacity:1!important;pointer-events:auto!important;
    width:22px!important;height:22px!important;min-width:22px!important;
    cursor:pointer!important;
  }
  html[data-theme="contrast"] .module-content .admin-card .meal-row .switch-control > span {
    display:none!important;
  }
  html[data-theme="contrast"] .module-content .admin-card .meal-row .switch-control > input[type="checkbox"] {
    position:static!important;inset:auto!important;transform:none!important;
    opacity:1!important;pointer-events:auto!important;
  }
}


/* ============================================================
 Nutriva NEXT 0.14.7.1 — Administracja / Role: jeden panel Orbit
 Poprawa autofill i wyrównania formularza zakładania konta.
 Reguły dotyczą tylko widoku Zespół i dostęp, nie reszty aplikacji.
 ============================================================ */
@media screen {
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-access-list > .role-card,
 html[data-theme="dark"] .module-content .admin-grid-users > .admin-card .role-card-new {
   display:block;
   min-width:0;
   padding:0!important;
   margin:0!important;
   background:transparent!important;
   background-image:none!important;
   border:0!important;
   border-radius:0!important;
   outline:0!important;
   box-shadow:none!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-access-list > .role-card + .role-card {
   padding-top:20px!important;
   margin-top:20px!important;
   border-top:1px solid #d8e3d5!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .role-card .permission-group {
   margin-top:17px;
   padding-top:15px;
   background:transparent!important;
   background-image:none!important;
   box-shadow:none!important;
   border:0!important;
   border-top:1px solid #d8e3d5!important;
   border-radius:0!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .role-card :is(.module-permissions,.permission-list) {
   min-width:0;
   background:transparent!important;
   box-shadow:none!important;
   border:0!important;
   padding:0!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .role-card :is(.permission-group>strong,.permission-list b) {
   color:#214634!important;
   -webkit-text-fill-color:currentColor!important;
   opacity:1!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields {
   display:grid;
   grid-template-columns:repeat(2,minmax(0,1fr));
   align-items:start!important;
   gap:14px 16px!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields > .admin-field {
   display:grid;
   grid-template-rows:auto 46px auto;
   align-content:start!important;
   align-self:start!important;
   gap:7px;
   min-width:0;
   margin:0!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields > .admin-field > span {
   min-height:19px;
   line-height:19px;
   margin:0!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields > .admin-field :is(input,select) {
   min-height:46px!important;
   height:46px!important;
   margin:0!important;
   border-radius:12px!important;
   box-sizing:border-box;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields > .admin-field > small {
   line-height:1.4;
   margin:0!important;
 }
 /* Browser password-manager autofill does not use the default pale-blue fill. */
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields input[type="password"] {
   background-color:#fff!important;
   color:#173c2c!important;
   -webkit-text-fill-color:#173c2c!important;
   caret-color:#173c2c!important;
   color-scheme:light!important;
 }
 html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields input[type="password"]:is(:autofill,:-webkit-autofill) {
   -webkit-box-shadow:0 0 0 1000px #fff inset!important;
   box-shadow:0 0 0 1000px #fff inset!important;
   -webkit-text-fill-color:#173c2c!important;
   background-color:#fff!important;
   border-color:#bed0bf!important;
   caret-color:#173c2c!important;
   transition:background-color 9999s ease-out 0s;
 }
 @media(max-width:760px) {
   html[data-theme="dark"] .module-content .admin-grid-users .orbit-admin-account-fields {
     grid-template-columns:minmax(0,1fr)!important;
   }
 }
}
@media screen {
 html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-access-list > .role-card,
 html[data-theme="contrast"] .module-content .admin-grid-users > .admin-card .role-card-new,
 html[data-theme="contrast"] .module-content .admin-grid-users .role-card .permission-group {
   background:transparent!important;
   border:0!important;
   border-radius:0!important;
   box-shadow:none!important;
   padding-inline:0!important;
 }
 html[data-theme="contrast"] .module-content .admin-grid-users .role-card .permission-group {
   border-top:2px solid #fff!important;
   padding-top:16px!important;
 }
 html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-access-list > .role-card + .role-card {
   border-top:2px solid #fff!important;
   padding-top:20px!important;
 }
 html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-account-fields {
   display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
   align-items:start!important;gap:14px 16px!important;
 }
 html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-account-fields > .admin-field {
   display:grid;grid-template-rows:auto 46px auto;align-content:start!important;
   align-self:start!important;gap:7px;min-width:0;margin:0!important;
 }
 html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-account-fields > .admin-field > span {
   min-height:19px;line-height:19px;
 }
 html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-account-fields input[type="password"]:is(:autofill,:-webkit-autofill) {
   background:#000!important;
   -webkit-box-shadow:0 0 0 1000px #000 inset!important;
   box-shadow:0 0 0 1000px #000 inset!important;
   -webkit-text-fill-color:#fff!important;
   caret-color:#fff!important;
   color-scheme:dark!important;
 }
 @media(max-width:760px) {
   html[data-theme="contrast"] .module-content .admin-grid-users .orbit-admin-account-fields {
     grid-template-columns:minmax(0,1fr)!important;
   }
 }
}
