/* ============================================================
   GastroSys — style.css
   ============================================================ */

/* TOKENS — ciemny motyw (domyślny) */
:root {
  --green:  #22C990; --green-d:  #17A87A; --green-dim:  rgba(34,201,144,.13);
  --red:    #FF5C5C; --red-dim:   rgba(255,92,92,.13);
  --amber:  #F5A623; --amber-dim: rgba(245,166,35,.13);
  --blue:   #5B9CF6; --blue-dim:  rgba(91,156,246,.13);
  --purple: #B57BF5; --purple-dim:rgba(181,123,245,.13);
  --gold:   #FFD700; --gold-dim:  rgba(255,215,0,.13);

  --bg:      #0F0F0F;
  --surface: #1A1A1A;
  --surf2:   #222222;
  --surf3:   #2A2A2A;
  --border:  rgba(255,255,255,.08);
  --border2: rgba(255,255,255,.04);
  --text:    #F0F0F0;
  --text2:   #888888;
  --text3:   #444444;
  --shadow:  0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5);

  --r:  12px; --rl: 16px; --rx: 20px;
  --topbar:  52px; --sidebar: 220px; --mobnav: 60px;
  --role-admin:   #B57BF5;
  --role-manager: #F5A623;
  --role-kucharz: #22C990;
  --role-kelner:  #5B9CF6;
}

/* ============================================================
   JASNY MOTYW — kompletny redesign
   ============================================================ */
body.light {
  --bg:       #F0F2F5;
  --surface:  #FFFFFF;
  --surf2:    #F5F7FA;
  --surf3:    #E8ECF2;
  --border:   rgba(0,0,0,.09);
  --border2:  rgba(0,0,0,.05);
  --text:     #111827;
  --text2:    #6B7280;
  --text3:    #9CA3AF;
  --shadow:   0 1px 4px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-md:0 4px 20px rgba(0,0,0,.1), 0 0 0 1px rgba(0,0,0,.04);

  /* Kolory bardziej nasycone dla lepszego kontrastu */
  --green:     #059669; --green-d:  #047857; --green-dim: rgba(5,150,105,.10);
  --red:       #DC2626; --red-dim:  rgba(220,38,38,.10);
  --amber:     #D97706; --amber-dim:rgba(217,119,6,.10);
  --blue:      #2563EB; --blue-dim: rgba(37,99,235,.10);
  --purple:    #7C3AED; --purple-dim:rgba(124,58,237,.10);
  --gold:      #B45309; --gold-dim: rgba(180,83,9,.10);
  --role-admin:   #7C3AED;
  --role-manager: #D97706;
  --role-kucharz: #059669;
  --role-kelner:  #2563EB;
}

/* Jasny motyw — komponenty specyficzne */
body.light .topbar        { box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,.06); }
body.light .sidebar       { box-shadow: 1px 0 0 var(--border); }
body.light .card          { box-shadow: var(--shadow); border-color: rgba(0,0,0,.07); }
body.light .modal         { box-shadow: 0 20px 60px rgba(0,0,0,.18); }
body.light .btn           { box-shadow: 0 1px 2px rgba(0,0,0,.06); }
body.light .btn:hover     { background: var(--surf3); box-shadow: 0 2px 4px rgba(0,0,0,.1); }
body.light .tbl tr:hover td { background: rgba(0,0,0,.015); }
body.light .tab-btn       { box-shadow: 0 1px 2px rgba(0,0,0,.06); }
body.light .tab-btn.active{ background: var(--text); color: var(--surface); }
body.light .stat-card     { box-shadow: var(--shadow); }
body.light .input         { background: var(--surface); box-shadow: inset 0 1px 3px rgba(0,0,0,.06); }
body.light .input:focus   { box-shadow: 0 0 0 3px rgba(5,150,105,.15), inset 0 1px 3px rgba(0,0,0,.04); }
body.light .worker-pill   { box-shadow: var(--shadow); }
body.light .nav-item.active { background: rgba(5,150,105,.10); color: var(--green); border-color: rgba(5,150,105,.2); }
body.light #toast         { background: #1F2937; color: #F9FAFB; border-color: transparent; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
body.light .overlay       { background: rgba(0,0,0,.45); }
body.light .badge-gray    { background: #E5E7EB; color: #4B5563; }
body.light .time-in       { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.12); color: var(--text); }
body.light .mobile-nav    { box-shadow: 0 -1px 0 var(--border), 0 -4px 12px rgba(0,0,0,.06); }

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  height: var(--topbar);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  position: sticky; top: 0; z-index: 100; flex-shrink: 0;
}
.topbar-left  { display: flex; align-items: center; gap: 10px; }
.topbar-right { display: flex; align-items: center; gap: 7px; }
.app-logo  { font-size: 20px; }
.app-name  { font-size: 14px; font-weight: 600; }
.user-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--surf2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px 4px 6px;
}
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.user-name { font-size: 12px; font-weight: 500; }
.user-role { font-size: 11px; color: var(--text2); }
.back-link { color: var(--text2); text-decoration: none; font-size: 18px; transition: color .12s; }
.back-link:hover { color: var(--text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--r);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border);
  background: var(--surf2); color: var(--text);
  transition: all .12s; white-space: nowrap; min-height: 40px;
  text-decoration: none;
}
.btn:hover   { background: var(--surf3); }
.btn:active  { transform: scale(.97); }
.btn:disabled{ opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--green);   color: #fff; border-color: var(--green);   font-weight: 600; }
.btn-primary:hover { background: var(--green-d); border-color: var(--green-d); }
.btn-danger  { color: var(--red); border-color: rgba(220,38,38,.3); background: transparent; }
.btn-danger:hover  { background: var(--red-dim); }
.btn-amber   { background: var(--amber); color: #fff; border-color: var(--amber); font-weight: 600; }
.btn-sm  { padding: 5px 12px; font-size: 12px; min-height: 32px; }
.btn-xs  { padding: 3px 8px;  font-size: 11px; min-height: 26px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-green { background: var(--green-dim); color: var(--green); }
.badge-red   { background: var(--red-dim);   color: var(--red); }
.badge-amber { background: var(--amber-dim); color: var(--amber); }
.badge-blue  { background: var(--blue-dim);  color: var(--blue); }
.badge-gray  { background: var(--surf2);     color: var(--text2); }

/* ============================================================
   INPUTS
   ============================================================ */
.input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--surf2); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  transition: border-color .15s;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,201,144,.12); }
.input::placeholder { color: var(--text3); }
select.input { cursor: pointer; }
.input-mono  { font-family: 'DM Mono', monospace; font-size: 16px; font-weight: 600; text-align: right; }
.input-num   { border-color: rgba(245,166,35,.4); }
.input-num:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,.12); }

/* ============================================================
   FORM
   ============================================================ */
.form-field { margin-bottom: 14px; }
.form-field:last-child { margin-bottom: 0; }
.form-label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--text2); margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .06em;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:500px) { .form-grid-2 { grid-template-columns: 1fr; } }
.error-msg {
  background: var(--red-dim); color: var(--red);
  border: 1px solid rgba(220,38,38,.2); border-radius: var(--r);
  padding: 9px 14px; font-size: 13px; margin-bottom: 12px; display: none;
}

/* ============================================================
   CARD
   ============================================================ */
.card        { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; }
.card-body   { padding: 1.25rem; }
.card-header { padding: 12px 16px; background: var(--surf2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-size: 14px; font-weight: 600; }

/* ============================================================
   TABLE
   ============================================================ */
.tbl         { width: 100%; border-collapse: collapse; }
.tbl th      { text-align: left; padding: 9px 14px; font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); background: var(--surf2); }
.tbl td      { padding: 11px 14px; border-bottom: 1px solid var(--border2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(0,0,0,.015); }

/* ============================================================
   SECTION
   ============================================================ */
.sec-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 8px; }
.sec-title   { font-size: 17px; font-weight: 700; }
.sec-label   { font-size: 11px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }

/* ============================================================
   STATS
   ============================================================ */
.stats-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 10px; margin-bottom: 1.25rem; }
.stat-card   { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: .875rem 1.25rem; }
.stat-label  { font-size: 11px; color: var(--text2); margin-bottom: 5px; }
.stat-value  { font-size: 22px; font-weight: 700; font-family: 'DM Mono', monospace; }

/* ============================================================
   PROGRESS
   ============================================================ */
.progress      { background: var(--surf2); border-radius: 6px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 6px; transition: width .3s; }
.progress-bar  { background: var(--surf2); border-radius: 4px; height: 4px; margin-top: 8px; overflow: hidden; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* ============================================================
   MODAL
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.65);
  display: none; align-items: center; justify-content: center;
  z-index: 300; backdrop-filter: blur(4px); padding: 1rem;
}
.overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--rx);
  border: 1px solid var(--border); padding: 1.75rem;
  width: 480px; max-width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  animation: modalIn .15s ease;
  max-height: 90vh; overflow-y: auto;
}
@keyframes modalIn { from { opacity:0; transform:translateY(-8px) scale(.97) } to { opacity:1; transform:none } }
.modal-title  { font-size: 17px; font-weight: 700; margin-bottom: 1.25rem; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ============================================================
   EMPTY
   ============================================================ */
.empty      { text-align: center; padding: 3rem; color: var(--text3); }
.empty-icon { font-size: 36px; margin-bottom: 12px; }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surf3); border: 1px solid var(--border); color: var(--text);
  padding: 10px 20px; border-radius: var(--rl); font-size: 14px;
  z-index: 999; opacity: 0; transition: opacity .2s;
  white-space: nowrap; pointer-events: none;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar  { display: flex; gap: 4px; flex-wrap: wrap; padding: 1rem 1rem 0; flex-shrink: 0; }
.tab-btn  { padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surf2); color: var(--text2); font-family: 'DM Sans', sans-serif; transition: all .12s; }
.tab-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tab-btn:hover  { color: var(--text); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 8px 0; flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0; /* kluczowe dla flex overflow */
}
@media(max-width:767px) { .sidebar { display: none; } }
.nav-section { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .08em; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r); margin: 1px 8px;
  cursor: pointer; color: var(--text2); transition: all .12s;
  border: 1px solid transparent; text-decoration: none;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
}
.nav-item:hover  { background: var(--surf2); color: var(--text); }
.nav-item.active { background: var(--green-dim); color: var(--green); border-color: rgba(34,201,144,.2); font-weight: 600; }
.nav-item.disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.nav-icon  { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.nav-label { font-size: 13px; font-weight: 500; flex: 1; }
.nav-badge { background: var(--surf3); color: var(--text3); font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 20px; }
.sidebar-divider { height: 1px; background: var(--border); margin: 8px 14px; }

/* ============================================================
   MOBILE NAV — większe touch targety
   ============================================================ */
.mobile-nav { display: none; background: var(--surface); border-top: 1px solid var(--border); flex-shrink: 0; }
@media(max-width:767px) { .mobile-nav { display: flex; height: var(--mobnav); } }
.mob-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; color: var(--text2); cursor: pointer; border: none; background: transparent;
  padding: 4px; font-family: 'DM Sans', sans-serif; text-decoration: none; transition: color .12s;
  font-weight: 500;
}
.mob-btn.active { color: var(--green); }
.mob-icon { font-size: 22px; line-height: 1; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.app-body  { display: flex; flex: 1; overflow: hidden; }
.content   { flex: 1; overflow-y: auto; }
.page      { padding: 1.25rem; max-width: 1100px; margin: 0 auto; }
@media(max-width:767px) { .page { padding: .875rem; padding-bottom: calc(var(--mobnav) + .5rem); } }

/* ============================================================
   MONTH NAV
   ============================================================ */
.month-nav  { display: flex; align-items: center; gap: 8px; }
.mnav-btn   { background: var(--surf2); border: 1px solid var(--border); color: var(--text); border-radius: var(--r); padding: 7px 14px; font-size: 14px; cursor: pointer; transition: background .12s; }
.mnav-btn:hover { background: var(--surf3); }
.mnav-label { font-size: 14px; font-weight: 600; min-width: 150px; text-align: center; }

/* ============================================================
   GRAFIK
   ============================================================ */
.week-grid { display: grid; gap: 6px; align-items: start; overflow-x: auto; }
.day-header { text-align: center; padding: 8px 4px; border-radius: var(--r); background: var(--surf2); border: 1px solid var(--border); margin-bottom: 6px; }
.day-num    { font-size: 20px; font-weight: 700; font-family: 'DM Mono', monospace; }
.day-name   { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--text2); }
.day-count  { font-size: 11px; margin-top: 3px; }
.day-today .day-header   { border-color: var(--green); background: var(--green-dim); }
.day-today .day-num      { color: var(--green); }
.day-weekend .day-header { border-color: rgba(245,166,35,.3); }
.day-weekend .day-num    { color: var(--amber); }

.drop-zone  { border-radius: var(--rl); border: 2px solid transparent; min-height: 40px; transition: all .15s; }
.drop-zone.drag-over { border-color: var(--green); background: var(--green-dim); }
.sec-row    { margin-bottom: 6px; }
.sec-head   { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border-radius: 8px; margin-bottom: 4px; }
.sec-staff  { font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 10px; font-family: 'DM Mono', monospace; }
.sec-ok   { background: var(--green-dim); color: var(--green); }
.sec-warn { background: var(--red-dim);   color: var(--red); }

.shift-chip  { display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 9px; margin-bottom: 3px; font-size: 12px; font-weight: 500; }
.shift-times { display: flex; align-items: center; gap: 3px; margin-top: 2px; }
.time-in {
  background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; color: inherit; font-family: 'DM Mono', monospace;
  font-size: 11px; padding: 2px 4px; width: 50px; text-align: center;
}
.time-in:focus { outline: none; border-color: rgba(255,255,255,.4); }
.del-btn { background: none; border: none; cursor: pointer; color: inherit; opacity: .5; font-size: 13px; padding: 0 2px; line-height: 1; }
.del-btn:hover { opacity: 1; }

.worker-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; background: var(--surf2); border: 1px solid var(--border);
  border-radius: 10px; cursor: grab; font-size: 13px; font-weight: 500;
  margin-bottom: 4px; user-select: none; transition: all .12s;
}
.worker-pill:hover   { background: var(--surf3); }
.worker-pill.dragging{ opacity: .4; }
.workers-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rl); padding: 12px;
  position: sticky; top: 0;
  max-height: calc(100vh - 130px); overflow-y: auto;
  width: 160px; flex-shrink: 0;
}

/* ============================================================
   INWENTARYZACJA
   ============================================================ */
.inv-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border2);
  transition: background .1s;
}
.inv-row:last-child { border-bottom: none; }
.inv-name { font-size: 15px; font-weight: 500; }
.inv-sub  { font-size: 12px; color: var(--text3); margin-top: 2px; }
.inv-input {
  width: 88px; padding: 9px 10px;
  border: 1.5px solid var(--border); border-radius: var(--r);
  background: var(--surf2); color: var(--text);
  font-family: 'DM Mono', monospace; font-size: 17px; font-weight: 600; text-align: center;
  transition: border-color .15s;
}
.inv-input:focus  { outline: none; border-color: var(--green); }
.inv-input.changed{ border-color: var(--green); background: var(--green-dim); color: var(--green); }

/* SAVE BAR */
.save-bar { position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--border); padding: .75rem 1rem; z-index: 10; }

/* ============================================================
   JASNY MOTYW — OVERRIDES SPECIFYCZNE
   ============================================================ */

/* Pola godzin w grafiku — białe tło, czarny tekst */
body.light .time-in {
  background: #FFFFFF;
  border: 1.5px solid rgba(0,0,0,.2);
  color: #111827;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
body.light .time-in:focus {
  border-color: var(--green);
  outline: none;
}

/* Karty zmian (shift-chip) — wyraźniejsze sekcje */
body.light .shift-chip {
  border: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

/* Kolumny dni — jaśniejsze i wyraźniejsze */
body.light .drop-zone {
  background: rgba(0,0,0,.02);
  border-radius: var(--rl);
}
body.light .drop-zone.drag-over {
  background: var(--green-dim);
  border-color: var(--green);
}

/* Worker pills — wyraźny border */
body.light .worker-pill {
  border: 1.5px solid rgba(0,0,0,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
body.light .worker-pill:hover {
  background: var(--surf3);
  border-color: var(--green);
}

/* Sekcje SUSHI/KUCHNIA/SALA — wyraźniejsze */
body.light .sec-head {
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.06);
}
body.light .sec-ok  { background: rgba(5,150,105,.12); color: #065F46; }
body.light .sec-warn { background: rgba(220,38,38,.12); color: #991B1B; }

/* Nagłówki dni — lepszy kontrast */
body.light .day-header {
  background: #FFFFFF;
  border: 1.5px solid rgba(0,0,0,.1);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
body.light .day-today .day-header {
  background: rgba(5,150,105,.08);
  border-color: var(--green);
}
body.light .day-weekend .day-header {
  background: rgba(217,119,6,.06);
}

/* Tabele w jasnym motywie */
body.light .tbl th {
  background: #F3F4F6;
  color: #374151;
  font-weight: 700;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
body.light .tbl td {
  border-bottom-color: rgba(0,0,0,.06);
}
body.light .tbl tr:hover td {
  background: rgba(5,150,105,.04);
}

/* Inwentarz — wyraźniejsze pola */
body.light .inv-row:hover {
  background: rgba(0,0,0,.02);
}
body.light .inv-val-btn {
  background: #FFFFFF;
  border: 2px solid rgba(0,0,0,.12);
  color: #111827;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
body.light .inv-val-btn.active {
  border-color: var(--green);
  background: rgba(5,150,105,.08);
  color: var(--green);
}
body.light .inv-val-btn.filled {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(37,99,235,.06);
}

/* Numpad inwentarza */
body.light #inv-numpad {
  background: #FFFFFF;
  border-top: 2px solid var(--green);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
body.light .inv-nkey {
  background: #F9FAFB;
  color: #111827;
  border: 1px solid rgba(0,0,0,.08);
}
body.light .inv-nkey:active { background: #E5E7EB; }
body.light .inv-nkey.nk-ok  { background: var(--green); color: #FFFFFF; }

/* Tabs aktywna zakładka w module */
body.light .tab-btn.active {
  background: #111827;
  color: #FFFFFF;
  border-color: #111827;
}

/* Notatki w grafiku */
body.light input[placeholder*="notatka"] {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.1);
  color: #374151;
}

/* Panel podglądu koszty */
body.light details > summary {
  color: var(--text2);
}
body.light details[open] > summary {
  color: var(--text);
}

/* Mobile nav active indicator */
body.light .mob-btn.active {
  color: var(--green);
  font-weight: 700;
}

/* Save bar */
body.light .save-bar {
  background: rgba(240,242,245,.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0,0,0,.1);
}

/* Grafik planowanie — komórki */
body.light .plan-editor {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}

/* Loading */
body.light .loading {
  color: var(--text3);
}

/* Progress bar */
body.light .progress-bar  { background: #E5E7EB; }
body.light .progress      { background: #E5E7EB; }
