/* ═══════════════════════════════════════════════════════════
   FleetManager — wspólny wygląd (logo, nagłówki, wersja mobilna)
   Ładowany po app.css; nadpisuje style z poszczególnych modułów.
   ═══════════════════════════════════════════════════════════ */
:root {
  --navy: #143264;
  --navy-dark: #0f2650;
  --gold: #F5A800;
}
html { color-scheme: only light; }
body, #tech-view, #sale-view, #LOGIN { font-family: 'DM Sans', sans-serif; }
button, input, select, textarea { font-family: inherit; }

/* ── Logo w nagłówku ── */
.header { background: var(--navy) !important; }
.header .logo { gap: 0; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-mark { display: none; height: 32px; width: auto; }

/* ── Menu boczne: ikony SVG + znak firmy w modułach ── */
.snb-icon svg { width: 20px; height: 20px; display: block; }
.snb-brand { display: none; padding: 4px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.snb-brand img { width: 100%; height: auto; display: block; }
.ovl-side-nav .snb-brand, .dash-side-nav .snb-brand { display: block; }
.side-nav-btn.active { box-shadow: inset 3px 0 0 var(--gold); }

/* ── Serwis: pasek narzędzi ── */
.svc-filter-toggle { display: none; }

/* ── Karty zleceń: braki danych jako drobne znaczniki ── */
.svc-miss-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: 11px; color: var(--text3, #94a3b8); }
.svc-miss { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: #fef9ec; color: #92400e; border: 1px solid #fde68a; }

/* ── Widok serwisanta ── */
.tech-head {
  background: var(--navy); color: #fff; padding: 12px 20px;
  display: flex; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.tech-logo { display: flex; align-items: center; flex-shrink: 0; }
.tech-logo-full { height: 34px; width: auto; display: block; }
.tech-logo-mark { height: 32px; width: auto; display: none; }
.tech-head-txt { flex: 1; min-width: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.tech-head-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-head-user { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tech-head-logout {
  flex-shrink: 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
#tech-bottom-nav { display: none; }
.tech-more-sheet { display: none; }

/* ═════════════ TELEFON ═════════════ */
@media (max-width: 700px) {
  /* Serwisant: zwarty nagłówek + dolny pasek */
  .tech-head { padding: 10px 14px; gap: 10px; }
  .tech-logo-full { display: none; }
  .tech-logo-mark { display: block; }
  .tech-head-txt { padding-left: 10px; }
  .tech-head-title { font-size: 15px; }
  .tech-head-user { font-size: 11px; }
  .tech-tabs { display: none !important; }
  #tech-view { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  #tech-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: #fff; border-top: 1px solid #e2e8f0; box-shadow: 0 -2px 12px rgba(15,38,80,.08);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  #tech-bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: none; border: none; padding: 7px 2px 5px; border-radius: 10px;
    font-size: 10.5px; font-weight: 600; color: #64748b; cursor: pointer;
  }
  #tech-bottom-nav button svg { width: 22px; height: 22px; }
  #tech-bottom-nav button.active { color: var(--navy); background: #eef2f9; }
  #tech-bottom-nav button.active svg { stroke: var(--navy); }
  .tech-more-sheet.open {
    display: block; position: fixed; inset: 0; z-index: 950; background: rgba(15,23,42,.45);
  }
  .tech-more-panel {
    position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0;
    padding: 10px 14px calc(16px + env(safe-area-inset-bottom));
  }
  .tech-more-panel .grab { width: 40px; height: 4px; border-radius: 4px; background: #cbd5e1; margin: 0 auto 12px; }
  .tech-more-panel button {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 10px; background: none; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 600; color: #1e293b; cursor: pointer; text-align: left;
  }
  .tech-more-panel button:active, .tech-more-panel button.active { background: #eef2f9; color: var(--navy); }
  .tech-more-panel svg { width: 22px; height: 22px; flex-shrink: 0; }

  /* Serwis (manager): filtry pod jednym przyciskiem */
  .svc-head { flex-direction: column; align-items: stretch !important; }
  .svc-toolbar { width: 100%; }
  .svc-filter-toggle {
    display: inline-flex; align-items: center; padding: 6px 12px; background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
  }
  .svc-head:not(.filters-open) #svc-search,
  .svc-head:not(.filters-open) #svc-status-filter,
  .svc-head:not(.filters-open) #svc-tech-filter,
  .svc-head:not(.filters-open) #svc-view-btns { display: none !important; }
  .svc-head.filters-open #svc-search { width: 100% !important; order: 10; }
  .svc-head.filters-open #svc-status-filter, .svc-head.filters-open #svc-tech-filter { flex: 1; max-width: none !important; order: 11; }
  .svc-head.filters-open .svc-filter-toggle { background: #fff; color: var(--navy); }

  /* Wynajem: 5 kafelków jako 2 + 3 */
  .metrics { grid-template-columns: repeat(6, 1fr) !important; gap: 8px; }
  .metrics .metric { grid-column: span 2; padding: .65rem .7rem; }
  .metrics .metric:nth-child(-n+2) { grid-column: span 3; }
  .metrics .metric-val { font-size: 22px; }
  .metrics .metric-lbl { font-size: 11px; line-height: 1.25; }

  .brand-logo { height: 30px; }
  .snb-brand { display: none !important; }
  .side-nav-btn.active { box-shadow: inset 0 -3px 0 var(--gold); }
}

/* ═══ Wynajem: ten sam układ co pozostałe moduły ═══ */
.header {
  display: block !important; height: auto !important; padding: 0 !important;
  margin-left: 72px; position: sticky; top: 0; z-index: 50;
}
.hdr-row1 {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; color: #fff;
}
.hdr-title { display: flex; align-items: center; gap: 8px; }
.hdr-h { font-size: 16px; font-weight: 700; white-space: nowrap; }
.hdr-count { font-size: 12px; opacity: .7; }
.hdr-actions { display: flex; gap: 6px; align-items: center; }
.header .header-btn.hdr-act-light, .header .header-btn.hdr-act-gold {
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; border: none;
}
.header .header-btn.hdr-act-light { background: #fff; color: var(--navy); }
.header .header-btn.hdr-act-gold { background: #f59e0b; color: #1a1a1a; }
.hdr-tabs {
  display: flex !important; gap: 3px; padding: 6px 14px; background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,.1); overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important;
}
.hdr-tabs::-webkit-scrollbar { display: none; }
.header .hdr-tab {
  padding: 7px 16px; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.12); color: #fff; white-space: nowrap; flex-shrink: 0;
}
.header .hdr-tab:hover { background: rgba(255,255,255,.22); }
.header .hdr-tab.hdr-tab-active { background: #fff; color: var(--navy); }
/* wylogowanie jest teraz w menu bocznym */
header.header #_logout_btn, header.header #auth-logout-btn { display: none !important; }

/* menu boczne strony głównej — na całą wysokość, ze znakiem firmy (jak w modułach) */
.side-nav { top: 0 !important; z-index: 60; }
.side-nav .snb-brand { display: block; }
.side-nav-slot { display: flex; flex-direction: column; }
.snb-logout { margin-top: auto !important; color: #dc2626 !important; }
.snb-logout:hover { background: #fef2f2 !important; }

/* treść wyśrodkowana (maks. 1200 px) — czytelniej na szerokich ekranach */
body.has-side-nav .main {
  margin-left: calc(72px + max(0px, (100vw - 72px - 1200px) / 2)) !important;
  margin-right: max(0px, (100vw - 72px - 1200px) / 2) !important;
  max-width: 1200px !important; padding: 1.5rem;
}

@media (max-width: 600px) {
  .header { margin-left: 0; margin-top: 60px; position: relative; }
  .side-nav { top: 0 !important; }
  .side-nav-slot { flex-direction: row; }
  .snb-logout { margin-top: 0 !important; margin-left: auto !important; }
  body.has-side-nav .main { margin-left: 0 !important; margin-top: 0 !important; padding: 12px; }
  /* zakładki jako przewijany pasek — tak jak w Serwisie */
  .hdr-tabs, .hdr-tabs.open {
    display: flex !important; flex-direction: row !important; position: static !important;
    padding: 6px 14px !important; gap: 3px !important; box-shadow: none !important; border-bottom: 1px solid rgba(255,255,255,.1) !important;
  }
  .hamburger { display: none !important; }
}
@media (min-width: 601px) { .hamburger { display: none !important; } }

/* plakietka z liczbą (np. nowe wnioski urlopowe) w menu bocznym */
.side-nav-btn { position: relative; }
.snb-badge {
  position: absolute; top: 6px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 18px;
  text-align: center; box-shadow: 0 0 0 2px #fff;
}
@media (max-width: 600px) { .snb-badge { top: 2px; right: 2px; } }

/* powiadomienia serwisanta */
#tech-tab-leave, #tech-tab-timesheet, #tech-bottom-nav button, #tech-more-sheet button { position: relative; }
.tech-badge {
  display: inline-block; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 6px; border-radius: 9px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; vertical-align: 1px;
}
#tech-bottom-nav .tech-badge { position: absolute; top: 3px; left: calc(50% + 6px); margin: 0; box-shadow: 0 0 0 2px #fff; }
#tech-notif-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 16px;
  background: #fff7e6; border-bottom: 1px solid #fde68a; font-size: 13px; color: #92400e; font-weight: 600;
}
#tech-notif-banner a { color: #143264; text-decoration: underline; cursor: pointer; font-weight: 700; }

/* komunikaty nad dolnym paskiem serwisanta */
/* ukryty komunikat nie może przechwytywać dotknięć (zasłaniał dolny pasek serwisanta) */
#toast { z-index: 99000 !important; pointer-events: none; }
#toast.show { pointer-events: auto; }
@media (max-width: 700px) {
  body:has(#tech-bottom-nav) #toast { bottom: calc(80px + env(safe-area-inset-bottom)) !important; left: 16px; right: 16px !important; max-width: none; }
}

/* ═══════════ Dashboard „Do zrobienia" ═══════════ */
#dash-overlay .dash-header { display: none !important; }
#dash-overlay .dash-main { max-width: none !important; padding: 0 !important; background: #eef1f6; min-height: 100%; }
.dd-hero {
  background: var(--navy); color: #fff; padding: 24px 32px 34px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.dd-hero > div { max-width: 1240px; }
.dd-date-line { font-size: 13px; font-weight: 600; color: #c9d5ea; letter-spacing: .3px; }
.dd-hero h1 { margin: 4px 0; font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.dd-summary { font-size: 14px; color: #dbe4f3; }
.dd-summary strong { color: var(--gold); }
.dd-refresh {
  min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.dd-refresh:hover { background: rgba(255,255,255,.2); }
.dd-stats {
  margin: -16px 32px 0; position: relative; background: #fff; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,38,80,.08);
  padding: 14px 22px; display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; font-size: 14px; color: #4a5872;
}
.dd-stats strong { font-size: 20px; color: var(--navy); margin-right: 3px; }
.dd-stats .dd-c-green { color: #15803d; } .dd-stats .dd-c-purple { color: #6d28d9; }
.dd-body { padding: 24px 32px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dd-list { flex: 2 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dd-group { background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(15,38,80,.07); overflow: hidden; }
.dd-gh { margin: 0; padding: 13px 20px; font-size: 13.5px; font-weight: 800; letter-spacing: .6px; display: flex; align-items: center; gap: 9px; }
.dd-g-urgent .dd-gh { background: #fdecec; color: #a51d1d; }
.dd-g-soon .dd-gh { background: #fff4e0; color: #8a4a00; }
.dd-g-later .dd-gh { background: #eef3fb; color: var(--navy); }
.dd-item { padding: 14px 20px; border-top: 1px solid #f1f3f7; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dd-ico { width: 40px; height: 40px; border-radius: 10px; background: #eaf0fa; color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dd-g-urgent .dd-ico { background: #fdecec; color: #a51d1d; }
.dd-g-later .dd-ico { background: #f1f3f7; color: #4a5872; }
.dd-txt { flex: 1 1 280px; min-width: 0; }
.dd-title { font-size: 15px; font-weight: 700; color: #0f1d33; }
.dd-accent { font-weight: 700; }
.dd-g-urgent .dd-accent { color: #b42318; } .dd-g-soon .dd-accent { color: #8a4a00; } .dd-g-later .dd-accent { color: #4a5872; font-weight: 600; }
.dd-meta { font-size: 13px; color: #4a5872; margin-top: 2px; overflow-wrap: anywhere; }
.dd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dd-btn {
  min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy);
  font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.dd-btn:hover { border-color: var(--navy); }
.dd-btn-primary { background: var(--navy); border-color: var(--navy); color: #fff !important; }
.dd-btn-primary:hover { background: var(--navy-dark); }
.dd-snooze { width: 40px; padding: 0; justify-content: center; border: none; background: #f1f3f7; color: #4a5872; }
.dd-ok { padding: 13px 18px; border-radius: 14px; background: #e9f7ee; color: #14532d; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; font-weight: 600; }
.dd-empty { padding: 26px; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 16px; color: #15803d; font-size: 15px; }
.dd-empty div { color: #4a5872; } .dd-empty strong { color: #0f1d33; }
.dd-snoozed { font-size: 12.5px; color: #64748b; padding: 0 4px; }
.dd-snoozed button { background: none; border: none; padding: 0; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.dd-week { flex: 1 1 300px; min-width: 0; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(15,38,80,.07); padding: 18px 20px 8px; }
.dd-week h2 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; letter-spacing: .6px; color: var(--navy); }
.dd-day { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid #f1f3f7; }
.dd-date { width: 46px; flex-shrink: 0; text-align: center; background: #f1f3f7; border-radius: 10px; padding: 4px 0; display: flex; flex-direction: column; line-height: 1.15; }
.dd-date span { font-size: 10.5px; font-weight: 700; color: #4a5872; }
.dd-date strong { font-size: 18px; font-weight: 800; color: #0f1d33; }
.dd-date.dd-we span { color: #b42318; } .dd-date.dd-we strong { color: #8090a8; }
.dd-today .dd-date { background: var(--navy); } .dd-today .dd-date span, .dd-today .dd-date strong { color: #fff; }
.dd-busy .dd-date { background: #fff4e0; }
.dd-ev { display: flex; flex-direction: column; gap: 3px; font-size: 13px; align-self: center; min-width: 0; color: #24324a; }
.dd-none { color: #8090a8; }
.dd-w-out, .dd-w-ret { color: var(--navy); } .dd-w-abs { color: #6d28d9; } .dd-w-svc { color: #8a4a00; }
.dd-busy-note { color: #8a4a00; font-weight: 700; }

@media (max-width: 700px) {
  .dd-hero { padding: 18px 16px 30px; }
  .dd-hero h1 { font-size: 24px; }
  .dd-refresh { display: none; }
  .dd-stats { margin: -16px 12px 0; padding: 12px 14px; gap: 6px 16px; font-size: 13px; }
  .dd-stats strong { font-size: 18px; }
  .dd-body { padding: 16px 12px 28px; gap: 16px; }
  .dd-item { padding: 14px 14px; }
  .dd-ico { display: none; }
  .dd-acts { width: 100%; }
  .dd-acts .dd-btn { flex: 1 1 0; justify-content: center; min-height: 44px; }
  .dd-acts .dd-snooze { flex: 0 0 44px; }
}

/* ═══════════ Serwis: zakładki, tablica, plan ═══════════ */
.svc-gtabs { display: flex; gap: 4px; padding: 7px 14px; min-width: max-content; }
.svc-gtab {
  min-height: 36px; padding: 0 16px; border: none; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.12); color: #fff; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
}
.svc-gtab:hover { background: rgba(255,255,255,.22); }
.svc-gtab.active { background: #fff; color: var(--navy); }
.svc-gbadge { display: inline-flex; align-items: center; min-width: 18px; height: 18px; padding: 0 7px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; }
.svc-gbadge.soft { background: #F5A800; color: #1a1a1a; }
.svc-more-menu {
  display: none; position: fixed; z-index: 100000; min-width: 230px; background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 10px 30px rgba(15,23,42,.2); border: 1px solid #e2e8f0;
}
.svc-more-menu.open { display: block; }
.svc-more-menu button { width: 100%; text-align: left; min-height: 42px; padding: 0 12px; border: none; background: none; border-radius: 8px; font-size: 14px; font-weight: 600; color: #1e293b; cursor: pointer; }
.svc-more-menu button:hover, .svc-more-menu button.active { background: #eef3fb; color: var(--navy); }
.svc-fleet-subnav { gap: 6px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.svc-fleet-subnav button { min-height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid #cdd6e4; background: #fff; color: #24324a; font-size: 13px; font-weight: 700; cursor: pointer; }
.svc-fleet-subnav button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.svc-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.svc-chip.red { background: #fdecec; color: #a51d1d; } .svc-chip.org { background: #fff4e0; color: #8a4a00; }
.svc-chip.blu { background: #eaf0fa; color: var(--navy); } .svc-chip.gry { background: #f1f3f7; color: #4a5872; }
.svc-av { width: 26px; height: 26px; border-radius: 13px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-av0 { width: 26px; height: 26px; border-radius: 13px; border: 1.5px dashed #94a3b8; color: #64748b; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.svc-who { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: #24324a; min-width: 0; }
.svc-cnt { min-width: 24px; height: 24px; border-radius: 12px; background: #fff; color: #24324a; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.svc-cnt.hot { background: #ef4444; color: #fff; }
.svc-btn { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.svc-btn:hover { border-color: var(--navy); }
.svc-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc-btn.grow { flex: 1; }

/* tablica */
.svc-bd-seg { display: none; }
.svc-bd { display: flex; gap: 14px; align-items: flex-start; }
.svc-bd-col { flex: 1 1 0; min-width: 0; background: #e4e9f1; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: background .15s, box-shadow .15s; }
.svc-bd-col.over { background: #d6e2f5; box-shadow: inset 0 0 0 2px var(--navy); }
.svc-bd-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.svc-bd-h h2 { margin: 0; font-size: 12.5px; font-weight: 800; letter-spacing: .6px; color: #24324a; }
.svc-bd-drop { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.svc-bd-empty { font-size: 12.5px; color: #64748b; text-align: center; padding: 18px 8px; border: 1.5px dashed #c7d0de; border-radius: 10px; }
.svc-bd-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,38,80,.1); padding: 12px 13px; display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.svc-bd-card:hover { box-shadow: 0 3px 10px rgba(15,38,80,.15); }
.svc-bd-card.dragging { opacity: .45; }
.svc-bd-card.urgent { box-shadow: 0 0 0 2px #f3b4b4, 0 1px 3px rgba(15,38,80,.1); }
.svc-bd-t { font-size: 14px; font-weight: 700; color: #0f1d33; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.svc-bd-c { font-size: 12.5px; color: #4a5872; }
.svc-bd-d { font-size: 12.5px; color: #24324a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-bd-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #4a5872; margin-top: 2px; }
.svc-bd-r { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.svc-due { font-size: 11.5px; font-weight: 600; color: #4a5872; }
.svc-due.late { color: #b42318; font-weight: 700; }
.svc-bd-p { font-size: 11.5px; font-weight: 600; color: #1d4ed8; }
.svc-bd-a { display: flex; gap: 6px; }
.svc-bd-a:empty { display: none; }
.svc-stage-btn { display: none; }
.svc-bd-link { display: block; padding: 9px 11px; border-radius: 10px; background: #fff; color: #4a5872; text-decoration: none; font-size: 12.5px; font-weight: 600; }
.svc-bd-link strong { color: var(--navy); }
.svc-bd-link.hot { background: #fdecec; color: #a51d1d; font-weight: 700; }

/* plan */
.svc-pl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.svc-pl-bar .t { font-size: 14px; color: #4a5872; } .svc-pl-bar .t strong { color: #0f1d33; }
.svc-pl-bar .n { display: flex; gap: 6px; }
.svc-pl-desk { display: flex; gap: 16px; align-items: flex-start; padding: 16px; }
.svc-pl-side { flex: 0 0 250px; background: #e4e9f1; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.svc-pl-un { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(15,38,80,.1); padding: 11px 12px 11px 8px; display: flex; gap: 8px; cursor: grab; font-size: 13px; }
.svc-pl-un .grip { color: #94a3b8; letter-spacing: -2px; padding-top: 1px; }
.svc-pl-un .m { font-size: 12px; color: #4a5872; margin-top: 2px; } .svc-pl-un .a { font-size: 11.5px; font-weight: 600; color: #4a5872; margin-top: 3px; } .svc-pl-un .a.red { color: #a51d1d; font-weight: 700; }
.svc-pl-hint { font-size: 11.5px; color: #64748b; text-align: center; }
.svc-pl-gridwrap { flex: 1 1 0; min-width: 0; background: #fff; border-radius: 14px; box-shadow: 0 1px 4px rgba(15,38,80,.07); overflow-x: auto; }
.svc-pl-grid { display: grid; grid-template-columns: 190px repeat(5, minmax(150px, 1fr)); min-width: 940px; }
.svc-pl-hd { padding: 10px; font-size: 12px; font-weight: 800; color: #4a5872; letter-spacing: .3px; border-bottom: 1px solid #dfe4ec; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.svc-pl-hd small { font-weight: 600; color: #64748b; letter-spacing: 0; }
.svc-pl-hd.today { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); }
.svc-pl-hd.busy { background: #fff4e0; color: #8a4a00; } .svc-pl-hd.busy small { color: #8a4a00; }
.svc-pl-nm { padding: 10px 12px; border-bottom: 1px solid #eef1f6; display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 700; }
.svc-pl-nm small { display: block; font-size: 11.5px; font-weight: 600; color: #64748b; }
.svc-pl-cell { padding: 6px; border-bottom: 1px solid #eef1f6; border-left: 1px solid #eef1f6; min-height: 60px; display: flex; flex-direction: column; gap: 6px; transition: background .12s; }
.svc-pl-cell.over { background: #dbe7fb; box-shadow: inset 0 0 0 2px var(--navy); }
.svc-pl-cell.leave { background: repeating-linear-gradient(135deg,#f3eefe 0 8px,#ece4fd 8px 16px); }
.svc-pl-cell .lv { font-size: 11.5px; font-weight: 700; color: #6d28d9; }
.svc-pl-cell .free, .svc-pl-mrow .free { font-size: 12px; color: #15803d; font-weight: 600; padding: 3px 2px; }
.svc-pl-blk { border-radius: 9px; padding: 7px 9px; font-size: 12px; line-height: 1.3; background: #eaf0fa; color: var(--navy); cursor: grab; }
.svc-pl-blk b { display: block; font-size: 12.5px; }
.svc-pl-blk em { display: block; font-style: normal; font-weight: 700; margin-top: 2px; }
.svc-pl-blk.go { background: #e4f0ff; box-shadow: inset 3px 0 0 #2563eb; }
.svc-pl-blk.bad { background: #fff; color: #a51d1d; box-shadow: 0 0 0 2px #e05252; }
.svc-pl-blk.dragging, .svc-pl-un.dragging { opacity: .45; }
.svc-pl-mob { display: none; }

/* okno przypisania / wybór (komputer: środek, telefon: od dołu) */
.svc-sheet-wrap { position: fixed; inset: 0; z-index: 400002; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.svc-sheet { background: #fff; border-radius: 16px; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; padding: 16px 16px 18px; box-shadow: 0 12px 40px rgba(15,23,42,.25); }
.svc-sheet .grab { display: none; width: 40px; height: 4px; border-radius: 4px; background: #cbd5e1; margin: 0 auto 12px; }
.svc-sheet h2 { margin: 0 0 2px; font-size: 17px; font-weight: 800; color: #0f1d33; }
.svc-sheet-sub { font-size: 13px; color: #4a5872; margin-bottom: 12px; }
.svc-sheet-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.svc-opt { width: 100%; min-height: 50px; padding: 6px 12px; border: 1px solid transparent; background: none; border-radius: 12px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: #0f1d33; cursor: pointer; text-align: left; font-family: inherit; }
.svc-opt:hover { background: #f4f7fb; }
.svc-opt.sel { background: #eaf0fa; border-color: var(--navy); }
.svc-opt .nm { flex: 1; min-width: 0; } .svc-opt .nm small { display: block; font-size: 12px; font-weight: 500; color: #4a5872; }
.svc-opt .av-free { font-size: 12px; font-weight: 700; color: #15803d; } .svc-opt .av-part { font-size: 12px; font-weight: 600; color: #4a5872; }
.svc-opt .av-leave { font-size: 12px; font-weight: 700; color: #6d28d9; } .svc-opt .av-busy { font-size: 12px; font-weight: 700; color: #a51d1d; }
.svc-sheet-foot { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.svc-sheet-foot label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #4a5872; }
.svc-sheet-foot input { min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid #cdd6e4; font: inherit; font-size: 15px; color: #0f1d33; }
.svc-sheet-foot .svc-btn { min-height: 42px; padding: 0 16px; font-size: 13.5px; }

@media (max-width: 700px) {
  .svc-bd-seg { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
  .svc-bd-seg::-webkit-scrollbar { display: none; }
  .svc-bd-seg button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid #cdd6e4; background: #fff; color: #24324a; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; }
  .svc-bd-seg button span { min-width: 20px; height: 20px; border-radius: 10px; background: #eef1f6; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
  .svc-bd-seg button span.hot { background: #ef4444; color: #fff; }
  .svc-bd-seg button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
  .svc-bd { display: block; }
  .svc-bd-col { display: none; background: transparent; padding: 0; }
  .svc-bd-col.m-show { display: flex; }
  .svc-bd-h { display: none; }
  .svc-bd-card { cursor: default; padding: 14px; }
  .svc-bd-t { font-size: 15.5px; } .svc-bd-d { font-size: 13.5px; background: #f6f8fb; border-radius: 8px; padding: 8px 10px; -webkit-line-clamp: 3; }
  .svc-bd-a .svc-btn { min-height: 44px; font-size: 13.5px; }
  .svc-stage-btn { display: inline-block; }
  .svc-pl-desk { display: none; }
  .svc-pl-mob { display: block; padding: 12px; }
  .svc-pl-days { display: flex; gap: 6px; margin-bottom: 12px; }
  .svc-pl-days button { flex: 1; min-height: 62px; border-radius: 12px; border: 1px solid #dfe4ec; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #24324a; font-family: inherit; cursor: pointer; }
  .svc-pl-days button small { font-size: 11px; font-weight: 700; color: #4a5872; } .svc-pl-days button b { font-size: 18px; font-weight: 800; line-height: 1; }
  .svc-pl-days .dots { display: flex; gap: 3px; height: 6px; } .svc-pl-days .dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--navy); display: block; }
  .svc-pl-days button.busy { background: #fff4e0; border-color: #f5c77e; }
  .svc-pl-days button.active { background: var(--navy); border-color: var(--navy); color: #fff; } .svc-pl-days button.active small { color: #c9d5ea; } .svc-pl-days button.active .dots i { background: var(--gold); }
  .svc-pl-unbar { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: none; background: #fdecec; color: #a51d1d; font-size: 14px; font-weight: 700; text-align: left; font-family: inherit; cursor: pointer; margin-bottom: 12px; }
  .svc-pl-mob h3 { margin: 4px 2px 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; color: #24324a; }
  .svc-pl-mrow { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(15,38,80,.08); padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; }
  .svc-pl-mrow.leave { background: repeating-linear-gradient(135deg,#faf7ff 0 10px,#f3eefe 10px 20px); }
  .svc-pl-mrow .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
  .svc-pl-mrow .lvt { font-size: 12.5px; font-weight: 700; color: #6d28d9; }
  .svc-pl-mrow .svc-pl-blk { font-size: 13px; padding: 9px 11px; } .svc-pl-mrow .svc-pl-blk b { font-size: 14px; }
  .svc-pl-mrow .svc-btn { min-height: 44px; font-size: 13.5px; }
  .svc-pl-add { min-height: 42px; border-radius: 10px; border: 1px dashed #94a3b8; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer; }
  .svc-pl-bar { padding: 10px 12px; }
  .svc-sheet-wrap { align-items: flex-end; padding: 0; }
  .svc-sheet { max-width: none; border-radius: 20px 20px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); }
  .svc-sheet .grab { display: block; }
  .svc-opt { min-height: 54px; }
}
.svc-pl-side { transition: background .12s, box-shadow .12s; }
.svc-pl-side.over { background: #fde7e7; box-shadow: inset 0 0 0 2px #e05252; }
.svc-unplan { width: 100%; margin-top: 10px; min-height: 42px; border-radius: 10px; border: 1px solid #f3b4b4; background: #fff5f5; color: #a51d1d; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* zaległe zlecenia */
.svc-late-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #8a4a00; background: #fff4e0; border: 1px solid #f5c77e; border-radius: 6px; padding: 2px 7px; margin-bottom: 3px; }
.svc-pl-blk.late { background: #fff8eb; color: #5c3200; box-shadow: inset 3px 0 0 #f59e0b; }
.svc-pl-blk .svc-late-tag { display: block; margin-bottom: 4px; }
.dd-w-late { font-style: normal; color: #8a4a00; font-weight: 700; }
.dd-today.dd-busy .dd-date { background: var(--navy); box-shadow: 0 0 0 2px var(--gold); }

/* ═══════════════════ WYNAJEM — alarmy, wyszukiwarka, lista, oś czasu ═══════════════════ */
#metrics { display: none !important; }

/* Alarmy w jednej linii */
.wa-line { background: #fff; border: 1px solid #dfe4ec; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.wa-line.wa-has-red { border-color: #f3c1c1; }
.wa-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: none; border: none; cursor: pointer; text-align: left; font-size: 14px; color: #24324a; min-height: 46px; }
.wa-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.wa-chip i { width: 7px; height: 7px; border-radius: 4px; display: block; background: currentColor; }
.wa-red { background: #fdecec; color: #a51d1d; } .wa-amber { background: #fff4e0; color: #8a4a00; }
.wa-green { background: #e7f6ec; color: #166534; } .wa-pur { background: #f1ebfe; color: #5b21b6; }
.wa-txt { color: #4a5872; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-more { margin-left: auto; display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--navy); white-space: nowrap; flex-shrink: 0; }
.wa-more svg { transition: transform .15s; }
.wa-line.open .wa-more svg { transform: rotate(180deg); }
.wa-detail { display: none; padding: 0 12px 12px; }
.wa-line.open .wa-detail { display: block; }
.wa-detail .alert-banner { margin-bottom: 8px; }
.wa-detail .alert-banner:last-child { margin-bottom: 0; }

/* Znajdź wolny wózek */
.wf { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,38,80,.08); margin-bottom: 14px; border: 1px solid #e6eaf1; }
.wf-top { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: none; border: none; cursor: pointer; text-align: left; color: var(--navy); min-height: 50px; }
.wf-title { font-size: 16px; font-weight: 800; color: #0f1d33; white-space: nowrap; }
.wf-sub { font-size: 13px; color: #4a5872; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-chev { margin-left: auto; color: #4a5872; transition: transform .15s; flex-shrink: 0; }
.wf.open .wf-chev { transform: rotate(180deg); }
.wf-body { display: none; padding: 0 18px 16px; }
.wf.open .wf-body { display: block; }
.wf-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.wf-fl { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 700; color: #4a5872; letter-spacing: .3px; text-transform: uppercase; }
.wf-in { min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #cdd6e4; background: #fff; font-size: 14.5px; color: #0f1d33; box-sizing: border-box; min-width: 130px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.wf-pills { display: flex; gap: 6px; }
.wf-pill { min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid #cdd6e4; background: #fff; color: #24324a; font-size: 13.5px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }
.wf-pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.wf-go { min-height: 42px; padding: 0 24px; border-radius: 10px; border: none; background: var(--gold); color: #0f1d33; font-size: 14px; font-weight: 800; cursor: pointer; margin-left: auto; }
.wf-msg { margin-top: 12px; font-size: 13.5px; color: #a51d1d; font-weight: 600; }
.wf-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-top: 1px solid #edf0f5; margin-top: 14px; padding-top: 12px; font-size: 14px; }
.wf-sum span { color: #4a5872; font-size: 13px; }
.wf-clear { margin-left: auto; border: none; background: none; color: #4a5872; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 32px; }
.wf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wf-row { display: grid; grid-template-columns: 96px minmax(0,1.6fr) minmax(0,1.2fr) minmax(0,1.3fr) 210px; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #f6f8fb; }
.wf-ph, .wl-ph, .tl-ph { position: relative; border-radius: 10px; background: #dde3ec; border: 1px solid #cdd6e4; box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: #7a879c; overflow: hidden; flex-shrink: 0; }
.wf-ph, .wl-ph { width: 96px; height: 72px; }
.wf-ph svg, .wl-ph svg { width: 32px; height: 32px; }
.wf-ph img, .wl-ph img, .tl-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.wf-name { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: #0f1d33; min-width: 0; }
.wf-name b { font-size: 14.5px; font-weight: 700; }
.wf-name span, .wf-s { font-size: 12.5px; color: #4a5872; line-height: 1.4; }
.wf-green { color: #166534; font-weight: 700; } .wf-amber { color: #8a4a00; font-weight: 700; }
.wf-btns { display: flex; gap: 8px; justify-content: flex-end; }
.wf-b1, .wf-b2 { min-height: 40px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.wf-b1 { border: none; background: var(--navy); color: #fff; }
.wf-b2 { border: 1px solid #cdd6e4; background: #fff; color: var(--navy); }
.wf-almost { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px dashed #c9b3f5; background: #faf7ff; font-size: 13.5px; color: #3b2470; }
.wf-almost svg { flex-shrink: 0; }
.wf-almost button { margin-left: auto; border: none; background: none; color: #5b21b6; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; min-height: 36px; }

/* Zakładki statusów jako chipy */
.tabs .tab { display: inline-flex; align-items: center; gap: 7px; border-radius: 18px; min-height: 36px; }
.tabs .tab b { font-weight: 800; }
.tab-dot { width: 7px; height: 7px; border-radius: 4px; display: inline-block; }
.tab-free .tab-dot { background: #16a34a; } .tab-reserved .tab-dot { background: #7c3aed; }
.tab-rented .tab-dot { background: var(--navy); } .tab-ending .tab-dot { background: #d97706; } .tab-overdue .tab-dot { background: #dc2626; }
.tabs .tab.active .tab-dot { background: #fff; }

/* Lekka lista ze zdjęciami */
.wl-box { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,38,80,.08); border: 1px solid #e6eaf1; overflow: hidden; }
.wl-head, .wl-row { display: grid; grid-template-columns: 96px minmax(0,1.5fr) 120px minmax(0,1.3fr) minmax(0,1.2fr) 176px; gap: 14px; align-items: center; padding: 10px 16px; }
.wl-head { background: #f6f8fb; font-size: 11.5px; font-weight: 700; color: #4a5872; letter-spacing: .4px; text-transform: uppercase; padding-top: 9px; padding-bottom: 9px; }
.wl-row { border-top: 1px solid #edf0f5; cursor: pointer; }
.wl-row:hover { background: #f8fafd; }
.wl-row.wl-overdue { background: #fffafa; }
.wl-row.wl-faulty { box-shadow: inset 4px 0 0 #dc2626; }
.wl-main, .wl-cl, .wl-when { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wl-main b { font-size: 14.5px; font-weight: 700; color: #0f1d33; }
.wl-cl b { font-size: 13.5px; font-weight: 600; color: #24324a; overflow: hidden; text-overflow: ellipsis; }
.wl-when b { font-size: 14px; font-weight: 700; color: #0f1d33; }
.wl-main span, .wl-cl span, .wl-when span { font-size: 12.5px; color: #4a5872; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-main .wl-warn { font-weight: 700; white-space: normal; }
.wl-when .wl-next { color: #6d28d9; font-weight: 600; }
.wl-chip { display: inline-flex; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.wl-red { background: #fdecec; color: #a51d1d; } .wl-pur { background: #f1ebfe; color: #5b21b6; } .wl-blu { background: #eaf0fa; color: var(--navy); }
.wl-grn { background: #e7f6ec; color: #166534; } .wl-amb { background: #fff4e0; color: #8a4a00; }
.wl-tred { color: #a51d1d !important; } .wl-tamb { color: #8a4a00 !important; } .wl-tgrn { color: #166534 !important; font-weight: 600; font-size: 13px; } .wl-muted { color: #94a3b8; }
.wl-act { display: flex; gap: 6px; justify-content: flex-end; }
.wl-btn { min-height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.wl-btn-p { background: var(--navy); border-color: var(--navy); color: #fff; }
.wl-btn-end { color: #a51d1d; border-color: #f3c1c1; }

/* Oś czasu jako widok */
#wyn-tl { display: none; }
body.wyn-tl-on #wyn-tl { display: block; }
body.wyn-tl-on .main > :not(#wyn-tl) { display: none !important; }
.tl-bar { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.tl-nav { display: flex; align-items: center; gap: 8px; }
.tl-nav h2 { margin: 0 4px; font-size: 17px; font-weight: 800; color: #0f1d33; white-space: nowrap; }
.tl-ar { width: 38px; height: 38px; border-radius: 9px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tl-today { min-height: 38px; padding: 0 14px; border-radius: 9px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.tl-sel { min-height: 38px; padding: 0 10px; border-radius: 9px; border: 1px solid #cdd6e4; background: #fff; color: #24324a; font-size: 13px; }
.tl-filters { display: flex; gap: 8px; }
.tl-q { width: 200px; }
.tl-legend { margin-left: auto; display: flex; gap: 14px; flex-wrap: wrap; }
.tl-legend span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #24324a; font-weight: 600; }
.tl-legend i { width: 14px; height: 14px; border-radius: 4px; display: block; box-sizing: border-box; }
.lg-rent { background: var(--navy); } .lg-res { background: #ede5fd; border: 1.5px solid #8b5cf6; } .lg-svc { background: #fff1dc; border: 1.5px solid #f0a742; }
.lg-late { background: #dc2626; } .lg-past { background: #e3e8f0; border: 1px solid #cdd6e4; }
.tl-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,38,80,.08); border: 1px solid #e6eaf1; padding: 6px 0 10px; }
.tl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tl-grid { position: relative; }
.tl-bg { position: absolute; top: 0; bottom: 0; left: var(--lbl); right: 0; pointer-events: none; }
.tl-we { position: absolute; top: 0; bottom: 0; background: #f4f6fa; }
.tl-tod { position: absolute; top: 0; bottom: 0; background: rgba(245,168,0,.10); box-shadow: inset 2px 0 0 var(--gold), inset -2px 0 0 var(--gold); }
.tl-row { display: flex; position: relative; border-bottom: 1px solid #edf0f5; min-height: 54px; }
.tl-hrow { min-height: 0; }
.tl-mrow { border-bottom: none; }
.tl-lbl { width: var(--lbl); flex: 0 0 var(--lbl); position: sticky; left: 0; z-index: 4; background: #fff; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 14px; box-sizing: border-box; border: none; border-right: 1px solid #edf0f5; text-align: left; cursor: pointer; color: #0f1d33; min-width: 0; }
.tl-lbl-h { cursor: default; font-size: 11px; font-weight: 700; color: #4a5872; letter-spacing: .4px; text-transform: uppercase; }
.tl-ph { width: 44px; height: 33px; border-radius: 7px; }
.tl-ph svg { width: 20px; height: 20px; }
.tl-lt { display: flex; flex-direction: column; min-width: 0; }
.tl-lt b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-lt span { font-size: 11.5px; color: #4a5872; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track { position: relative; flex: 1; min-width: 0; }
.tl-days { display: flex; }
.tl-d { flex: 1; min-width: 0; text-align: center; font-size: 11px; font-weight: 700; color: #4a5872; padding: 4px 0 6px; line-height: 1.25; white-space: nowrap; }
.tl-d small { display: block; font-weight: 600; font-size: 10px; color: #7a879c; }
.tl-d-t, .tl-d-t small { color: #8a4a00; }
.tl-mrow .tl-track { display: flex; }
.tl-m { font-size: 11px; font-weight: 800; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; padding: 6px 0 0 6px; white-space: nowrap; overflow: hidden; box-sizing: border-box; border-left: 1px solid #edf0f5; }
.tl-m:first-child { border-left: none; }
.tl-bar-i { position: absolute; top: 11px; height: 32px; border-radius: 8px; display: flex; align-items: center; padding: 0 9px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; border: none; cursor: pointer; z-index: 2; font-family: inherit; text-align: left; }
.tl-rent { background: var(--navy); color: #fff; }
.tl-res { background: #ede5fd; color: #4c1d95; border: 1.5px solid #8b5cf6; }
.tl-svc { background: #fff1dc; color: #8a4a00; border: 1.5px solid #f0a742; z-index: 3; padding: 0 5px; }
.tl-late { background: #dc2626; color: #fff; z-index: 3; }
.tl-past { background: #e3e8f0; color: #4a5872; border: 1px solid #cdd6e4; font-weight: 600; }
.tl-cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl-cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tl-ghost { position: absolute; top: 11px; height: 32px; border-radius: 8px; border: 2px dashed var(--navy); background: rgba(20,50,100,.07); color: var(--navy); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; box-sizing: border-box; z-index: 5; pointer-events: none; }
.tl-row:not(.tl-hrow) .tl-track { cursor: crosshair; }
.tl-empty { padding: 24px; text-align: center; color: #4a5872; font-size: 14px; }
.tl-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 16px 0; font-size: 12.5px; color: #4a5872; }

@media (max-width: 900px) {
  .wf-row { grid-template-columns: 80px minmax(0,1fr); gap: 6px 12px; }
  .wf-row .wf-ph { width: 80px; height: 60px; grid-row: span 2; }
  .wf-row .wf-last { display: none; }
  .wf-row .wf-btns { grid-column: 1 / -1; }
  .toolbar .search-wrap { flex: 1 1 100%; min-width: 0; }
  .wl-head { display: none; }
  .wl-row { grid-template-columns: 80px minmax(0,1fr) auto; grid-template-areas: "ph main st" "ph cl when"; gap: 4px 12px; padding: 10px 12px; }
  .wl-ph { width: 80px; height: 64px; grid-area: ph; }
  .wl-main { grid-area: main; } .wl-st { grid-area: st; justify-self: end; } .wl-cl { grid-area: cl; } .wl-when { grid-area: when; align-items: flex-end; text-align: right; }
  .wl-act { display: none; }
  .wl-main > span:not(.wl-warn) { display: none; }
}
@media (max-width: 700px) {
  .wa-txt { display: none; }
  .wa-head { flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
  .wf-top { padding: 12px 14px; }
  .wf-sub { display: none; }
  .wf-body { padding: 0 14px 14px; }
  .wf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .wf-in { min-width: 0; width: 100%; min-height: 44px; }
  .wf-form .wf-fl:nth-child(5) { grid-column: 1 / -1; }
  .wf-pill { flex: 1; min-height: 44px; }
  .wf-go { grid-column: 1 / -1; margin-left: 0; min-height: 46px; }
  .wf-almost { flex-wrap: wrap; }
  .wf-almost button { margin-left: 0; }
  .wf-b1, .wf-b2 { flex: 1; min-height: 44px; }
  .wf-btns { width: 100%; }
  .wl-box { border-radius: 14px; }
  .tl-nav { flex-wrap: wrap; width: 100%; }
  .tl-nav h2 { font-size: 15px; flex: 1; text-align: center; white-space: normal; order: 0; }
  .tl-filters { width: 100%; }
  .tl-q { flex: 1; width: auto; min-height: 44px; }
  .tl-legend { margin-left: 0; gap: 10px; }
  .tl-lbl { padding: 6px 8px; gap: 6px; }
  .tl-ph { display: none; }
  .tl-lt b { font-size: 12.5px; }
}

.tabs.wf-dim { opacity: .45; }
.wf-sum span { flex: 1; min-width: 0; }
.er-calc { font-size: 13px; color: #24324a; line-height: 1.5; margin: -4px 0 12px; }
.er-calc:empty { display: none; }
.er-calc.er-warn { background: #fff4e0; color: #5c3200; padding: 9px 12px; border-radius: 10px; margin-top: 0; }
.er-calc.er-ok { background: #e7f6ec; color: #14532d; padding: 9px 12px; border-radius: 10px; margin-top: 0; }
.er-check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #f6f8fb; margin-bottom: 14px; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.er-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.er-check small { color: var(--text3); font-size: 12px; }
/* Wolne w terminie: przycisk w pasku + panel pod paskiem */
.wf-tbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border-radius: var(--radius, 10px); border: 1px solid var(--navy); background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.wf-tbtn.on { background: var(--navy); color: #fff; }
#wyn-finder { display: none; margin-top: 4px; }
#wyn-finder.open { display: block; }
#wyn-finder .wf-top { display: none; }
#wyn-finder .wf-body { display: block; padding-top: 16px; }

/* ═══════════════════ ZADANIA ═══════════════════ */
#task-overlay { display: none; position: fixed; inset: 0; background: #eef1f6; z-index: 300; flex-direction: row; overflow: hidden; }
#task-overlay.open { display: flex; }
#task-overlay .dash-content { background: #eef1f6; }
.tk-head { background: var(--navy); color: #fff; padding: 14px 32px 0; position: sticky; top: 0; z-index: 20; }
.tk-head-row { display: flex; align-items: baseline; gap: 12px; }
.tk-head h1 { margin: 0; font-size: 22px; font-weight: 800; }
.tk-head-row > span { font-size: 13px; color: #c9d5ea; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-close { align-self: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.tk-tabs { display: flex; gap: 4px; margin-top: 12px; }
.tk-tabs button { min-height: 40px; padding: 0 16px; border-radius: 9px 9px 0 0; border: none; background: none; color: #c9d5ea; font-size: 13.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.tk-tabs button.on { background: #eef1f6; color: var(--navy); font-weight: 800; }
.tk-tabs b { background: rgba(255,255,255,.18); color: #fff; font-size: 11px; border-radius: 10px; padding: 1px 7px; }
.tk-tabs button.on b { background: #dfe6f2; color: var(--navy); }
.tk-main { display: flex; gap: 20px; align-items: flex-start; padding: 20px 32px 40px; max-width: 1240px; width: 100%; box-sizing: border-box; margin: 0 auto; }
.tk-col { flex: 1; min-width: 0; }
.tk-err { background: #fdecec; color: #7f1d1d; border: 1px solid #f3c1c1; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 12px; line-height: 1.45; }
.tk-add { background: #fff; border-radius: 14px; border: 1px solid #e6eaf1; box-shadow: 0 1px 3px rgba(15,38,80,.06); padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.tk-add-row { display: flex; gap: 10px; align-items: center; color: var(--navy); }
.tk-add-row input { flex: 1; min-width: 0; border: none; outline: none; font-size: 15.5px; color: #0f1d33; min-height: 40px; background: transparent; }
.tk-add-btn { min-height: 40px; padding: 0 18px; border-radius: 9px; border: none; background: var(--gold); color: #0f1d33; font-size: 14px; font-weight: 800; cursor: pointer; }
.tk-qa { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tk-qc { position: relative; min-height: 34px; padding: 0 11px; border-radius: 17px; border: 1px solid #cdd6e4; background: #fff; color: #24324a; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.tk-qc i { width: 9px; height: 9px; border-radius: 5px; display: block; }
.tk-qc.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tk-qc select { border: none; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; outline: none; }
.tk-qc.on select option { color: #0f1d33; }
.tk-qc-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tk-x { border: none; background: none; color: inherit; padding: 0; margin-left: 2px; display: flex; cursor: pointer; }
.tk-sep { width: 1px; height: 22px; background: #e2e7ef; margin: 0 3px; }
.tk-pend { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: #f1ebfe; border: 1px solid #d9c8fb; display: flex; align-items: center; gap: 12px; color: #5b21b6; flex-wrap: wrap; }
.tk-pend-t { flex: 1; min-width: 200px; font-size: 13.5px; color: #3b2470; }
.tk-pend-ok, .tk-pend-no { min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tk-pend-ok { border: none; background: #5b21b6; color: #fff; }
.tk-pend-no { border: 1px solid #c4b1f2; background: #fff; color: #5b21b6; }
.tk-gh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .6px; color: #4a5872; padding: 16px 4px 6px; }
.tk-gh span { font-weight: 700; color: #7a879c; }
.tk-gh-red { color: #a51d1d; }
.tk-row { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
.tk-row + .tk-row { margin-top: 6px; }
.tk-row-in { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid #e6eaf1; border-radius: 12px; transition: transform .18s ease; }
.tk-row.swiping .tk-row-in { transition: none; }
.tk-row:hover .tk-row-in { border-color: #cdd6e4; }
.tk-row.sel .tk-row-in { box-shadow: inset 0 0 0 2px var(--navy); border-color: var(--navy); }
.tk-row.tk-late .tk-row-in { border-color: #f3c1c1; }
.tk-swipe-bg { position: absolute; inset: 0; display: none; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 13px; font-weight: 800; color: #fff; }
.tk-swipe-bg span { display: flex; align-items: center; gap: 6px; }
.tk-row.swiping .tk-swipe-bg { display: flex; }
.tk-row.sw-r .tk-swipe-bg { background: #16a34a; } .tk-row.sw-r .tk-swipe-bg span:last-child { visibility: hidden; }
.tk-row.sw-l .tk-swipe-bg { background: #d97706; } .tk-row.sw-l .tk-swipe-bg span:first-child { visibility: hidden; }
.tk-ck { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; margin-top: 1px; position: relative; }
.tk-ck::after { content: ''; position: absolute; inset: -10px; }
.tk-ck:hover { border-color: #16a34a; background: #e7f6ec; }
.tk-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tk-tt b { font-size: 14.5px; font-weight: 600; color: #0f1d33; overflow-wrap: anywhere; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: #4a5872; }
.tk-pr { width: 9px; height: 9px; border-radius: 5px; display: inline-block; flex-shrink: 0; }
.tk-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 12px; font-size: 11.5px; font-weight: 700; }
.tk-t-red { background: #fdecec; color: #a51d1d; } .tk-t-amb { background: #fff4e0; color: #8a4a00; } .tk-t-blu { background: #eaf0fa; color: var(--navy); }
.tk-t-gry { background: #f1f3f7; color: #4a5872; } .tk-t-pur { background: #f1ebfe; color: #5b21b6; }
.tk-lnk { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 12px; border: 1px solid #dfe4ec; background: #fff; font-size: 11.5px; font-weight: 600; color: #24324a; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-lnk:hover { border-color: var(--navy); color: var(--navy); }
.tk-note { font-style: italic; }
.tk-empty { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; padding: 40px 16px; color: #4a5872; font-size: 14px; }
.tk-empty svg { color: #16a34a; flex-shrink: 0; }
.tk-empty small { color: #7a879c; }
.tk-hint { font-size: 12.5px; color: #4a5872; margin: 12px 4px; }
.tk-aside { width: 350px; flex: 0 0 350px; background: #fff; border-radius: 14px; border: 1px solid #e6eaf1; box-shadow: 0 1px 3px rgba(15,38,80,.06); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; box-sizing: border-box; }
.tk-aside-bg { display: none; }
.tk-dh { display: flex; align-items: flex-start; gap: 10px; }
.tk-dh .tk-ck { margin-top: 6px; }
.tk-dtitle { flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 8px; padding: 4px 6px; font-size: 16.5px; font-weight: 800; color: #0f1d33; resize: none; font-family: inherit; line-height: 1.3; }
.tk-dtitle:hover, .tk-dtitle:focus { border-color: #cdd6e4; outline: none; }
.tk-dclose { width: 34px; height: 34px; border-radius: 9px; border: none; background: #f1f3f7; color: #4a5872; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.tk-fl { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 700; color: #4a5872; letter-spacing: .3px; text-transform: uppercase; }
.tk-fi { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #cdd6e4; background: #fff; font-size: 14px; color: #0f1d33; box-sizing: border-box; width: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; font-family: inherit; }
.tk-notes { padding: 10px 12px; min-height: 90px; resize: vertical; line-height: 1.45; }
.tk-2col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-seg { display: flex; border: 1px solid #cdd6e4; border-radius: 10px; overflow: hidden; }
.tk-seg button { flex: 1; min-height: 38px; border: none; background: #fff; font-size: 12.5px; font-weight: 700; color: #4a5872; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tk-seg button + button { border-left: 1px solid #cdd6e4; }
.tk-seg-high { background: #fdecec !important; color: #a51d1d !important; } .tk-seg-normal { background: #eaf0fa !important; color: var(--navy) !important; } .tk-seg-low { background: #f1f3f7 !important; color: #24324a !important; }
.tk-dl { display: flex; gap: 6px; }
.tk-dl-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: none; background: #f6f8fb; color: #0f1d33; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; text-transform: none; letter-spacing: 0; }
.tk-dl-open span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-dl-open small { color: #4a5872; font-weight: 600; }
.tk-dl-open svg { color: var(--navy); flex-shrink: 0; }
.tk-x2 { width: 38px; height: 38px; border-radius: 9px; border: 1px solid #e2e7ef; background: #fff; color: #4a5872; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.tk-addlink { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px dashed #94a3b8; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; text-transform: none; letter-spacing: 0; }
.tk-dacts { border-top: 1px solid #edf0f5; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.tk-hand { min-height: 42px; border-radius: 10px; border: 1px solid #c4b1f2; background: #faf7ff; color: #5b21b6; font-size: 13.5px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tk-2btn { display: flex; gap: 8px; }
.tk-b2 { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.tk-b-del { color: #a51d1d; border-color: #f3c1c1; }
.tk-created { font-size: 12px; color: #4a5872; line-height: 1.5; }
/* Zrobione */
.tk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tk-stats > div { background: #fff; border-radius: 14px; border: 1px solid #e6eaf1; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tk-stats b { font-size: 26px; font-weight: 800; color: #0f1d33; }
.tk-stats span { font-size: 12.5px; color: #4a5872; }
.tk-dfilters { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.tk-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #cdd6e4; background: #fff; color: #4a5872; box-sizing: border-box; }
.tk-search input { border: none; outline: none; font-size: 14px; width: 100%; background: transparent; }
.tk-msel { width: auto; min-width: 190px; min-height: 42px; }
.tk-drow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #fff; border: 1px solid #e6eaf1; border-radius: 12px; }
.tk-drow + .tk-drow { margin-top: 6px; }
.tk-ok { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 7px; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; }
.tk-ok-pur { background: #7c3aed; }
.tk-dt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tk-dt b { font-size: 14px; font-weight: 600; color: #4a5872; text-decoration: line-through; text-decoration-color: #94a3b8; overflow-wrap: anywhere; }
.tk-dt b.tk-nostrike { text-decoration: none; color: #24324a; }
.tk-dt > span { font-size: 12px; color: #4a5872; }
.tk-tm { font-size: 12px; color: #4a5872; white-space: nowrap; }
.tk-undo { min-height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid #cdd6e4; background: #fff; color: var(--navy); font-size: 12.5px; font-weight: 700; cursor: pointer; }
/* okno powiązania */
.tk-modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 2000; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; }
.tk-modal.open { display: flex; }
.tk-modal-box { width: 520px; max-width: 100%; background: #fff; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 80vh; box-sizing: border-box; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.tk-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; }
.tk-link-list { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.tk-lk-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: none; background: none; cursor: pointer; text-align: left; color: var(--navy); min-height: 48px; }
.tk-lk-row:hover { background: #f1f4f9; }
.tk-lk-row span { display: flex; flex-direction: column; min-width: 0; }
.tk-lk-row b { font-size: 14px; color: #0f1d33; font-weight: 600; }
.tk-lk-row small { font-size: 12px; color: #4a5872; }
.tk-empty-s { padding: 20px; text-align: center; color: #4a5872; font-size: 13.5px; }

@media (max-width: 900px) {
  .tk-main { padding: 14px 12px 40px; }
  .tk-aside { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; z-index: 60; box-shadow: 0 -8px 30px rgba(15,23,42,.2); }
  .tk-aside-bg { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 55; }
}
@media (max-width: 700px) {
  #task-overlay { flex-direction: column; }
  .tk-head { padding: 12px 14px 0; position: static; }
  .tk-head h1 { font-size: 19px; }
  .tk-tabs button { padding: 0 12px; font-size: 13px; }
  .tk-add-row input { font-size: 16px; }
  .tk-qa { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; scrollbar-width: none; }
  .tk-qa::-webkit-scrollbar { display: none; }
  .tk-qc { flex-shrink: 0; }
  .tk-ck { width: 26px; height: 26px; flex-basis: 26px; }
  .tk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-stats b { font-size: 22px; }
  .tk-drow { flex-wrap: wrap; }
  .tk-tm { order: 3; }
  .tk-lnk { max-width: 200px; }
}

/* ── Sprzedaż: zdjęcia i import oferty dostawcy ── */
.sf-ph{position:relative;height:120px;border:1.5px dashed var(--border);border-radius:10px;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;background:var(--surface2);color:var(--text3);font-size:13px}
.sf-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sf-ph.has span{display:none}
.sf-ph-del{align-self:flex-start;background:none;border:none;color:var(--text3);font-size:12px;cursor:pointer;padding:0}
.sup-strip{display:flex;gap:8px;flex-wrap:wrap;padding:8px;border:1px solid var(--border);border-radius:10px;background:var(--surface2)}
.sup-strip .t{font-size:11px;color:var(--text2);width:100%}
.sup-th{position:relative;width:88px}
.sup-th img{width:88px;height:66px;object-fit:cover;border-radius:6px;border:1px solid var(--border);display:block}
.sup-th div{display:flex;gap:4px;margin-top:4px}
.sup-th button{flex:1;font-size:11px;padding:2px 0;border:1px solid var(--border);border-radius:5px;background:var(--surface);color:var(--text2);cursor:pointer}
.sup-drop{border:2px dashed var(--border);border-radius:12px;padding:1.5rem;text-align:center;cursor:pointer;transition:.15s}
.sup-drop:hover,.sup-drop.on{border-color:var(--accent);background:var(--surface2)}

/* ── Sprzedaż: karty Wózki / Oferty + mini CRM ── */
.sale-tabs{display:flex;gap:4px;padding:10px 20px 0;background:var(--accent)}
.sale-tab{padding:9px 18px;border:none;border-radius:10px 10px 0 0;background:transparent;color:rgba(255,255,255,.75);font:600 14px 'DM Sans',sans-serif;cursor:pointer;display:flex;align-items:center;gap:6px}
.sale-tab.on{background:var(--bg);color:var(--accent);font-weight:800}
.sale-tab-badge{background:#F5A800;color:#1f1600;border-radius:20px;padding:1px 7px;font-size:11px;font-weight:800}
#sale-offers-view{padding:18px 20px 40px;max-width:1440px;box-sizing:border-box}
.crm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.crm-kpi{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:3px;cursor:pointer;color:var(--text);font-family:inherit}
.crm-kpi span{font-size:12px;color:var(--text2);font-weight:600}
.crm-kpi b{font-size:22px;font-weight:800}
.crm-kpi b em{font-style:normal;font-size:14px;font-weight:700}
.crm-kpi small{font-size:12px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-kpi.warn{background:#fff7e0;border-color:#f5d27a;color:#5c3d00}.crm-kpi.warn span,.crm-kpi.warn small{color:#7a5200}
.crm-kpi.bad{background:#fdecec;border-color:#f3b4b4;color:#5f1414}.crm-kpi.bad span,.crm-kpi.bad small{color:#9f1d1d}
.crm-kpi small.ok,.crm-tr small.ok,.crm-fk small.ok{color:#15803d;font-weight:700}
.crm-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.crm-search{flex:1 1 240px;display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:0 12px;color:var(--text2)}
.crm-search input{border:none;outline:none;background:transparent;padding:10px 0;width:100%;font:14px 'DM Sans',sans-serif;color:var(--text)}
.crm-bar select{padding:9px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font:13px 'DM Sans',sans-serif}
.crm-pills{display:flex;gap:6px;flex-wrap:wrap}
.crm-pills button{padding:8px 12px;border-radius:20px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:600 13px 'DM Sans',sans-serif;cursor:pointer}
.crm-pills button.on{background:#143264;border-color:#143264;color:#fff}
.crm-seg{display:flex;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.crm-seg button{padding:8px 12px;border:none;background:var(--surface);color:var(--text2);font:600 13px 'DM Sans',sans-serif;cursor:pointer}
.crm-seg button.on{background:#e8eef7;color:#143264;font-weight:800}
.crm-empty{padding:3rem;text-align:center;color:var(--text3);background:var(--surface);border:1px solid var(--border);border-radius:12px}
.crm-table{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.crm-tr{display:grid;grid-template-columns:120px minmax(0,1.4fr) minmax(0,1.3fr) 110px 90px 140px 160px 92px;gap:12px;align-items:center;padding:11px 16px;border:none;border-bottom:1px solid var(--border);background:transparent;width:100%;text-align:left;color:var(--text);font-family:inherit;cursor:pointer}
.crm-tr:hover{background:var(--surface2)}
.crm-th{cursor:default;font-size:11px;font-weight:700;letter-spacing:.5px;color:var(--text2);text-transform:uppercase}.crm-th:hover{background:transparent}
.crm-tr .r{text-align:right}
.crm-tr .c-no,.crm-tr .c-pr,.crm-tr .c-nx{display:flex;flex-direction:column;gap:1px;font-size:13px}
.crm-tr .c-pr{align-items:flex-end}
.crm-tr small{font-size:11px;color:var(--text2)}
.crm-tr .c-cl{font-size:14px;font-weight:700;line-height:1.3}
.crm-tr .c-fk{display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.3;min-width:0}
.crm-tr .c-who,.crm-tr .c-vd{font-size:13px}
.crm-tr .c-vd.soon{color:#a15c00;font-weight:700}
.crm-tr.late{background:#fff8f8}.crm-tr.today{background:#fffcf2}.crm-tr.dim{opacity:.68}
b.late,em.late{color:#b91c1c}b.today,em.today{color:#a15c00}b.muted{color:var(--text2);font-weight:500}
.crm-chip{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700;white-space:nowrap}
.crm-hint{margin:0 0 10px;font-size:13px;color:var(--text2)}
.crm-board{display:grid;grid-template-columns:repeat(6,minmax(210px,1fr));gap:10px;overflow-x:auto;align-items:start;padding-bottom:8px}
.crm-col{background:var(--surface2);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:8px;min-height:120px;border:2px solid transparent}
.crm-col.over{border-color:#143264}
.crm-col-h{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:4px 6px;font-size:13px;font-weight:800}
.crm-col-h span{display:flex;align-items:center;gap:7px}.crm-col-h i{width:10px;height:10px;border-radius:50%;display:inline-block}
.crm-col-h small{font-size:11px;color:var(--text2);font-weight:600;text-align:right}
.crm-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:5px;text-align:left;color:var(--text);font-family:inherit;cursor:grab;width:100%}
.crm-card.late{border-color:#f3b4b4}.crm-card.today{border-color:#f5d27a}
.crm-card .t{display:flex;justify-content:space-between;font-size:11px;color:var(--text2);font-weight:600}
.crm-card>b{font-size:13.5px;line-height:1.3}
.crm-card .m{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text2)}
.crm-card .f{display:flex;justify-content:space-between;align-items:center;gap:6px;padding-top:6px;border-top:1px solid var(--border);font-size:13px}
.crm-card .f em{font-style:normal;font-size:11px;font-weight:700;color:var(--text2);text-align:right}
.crm-ov{position:fixed;inset:0;z-index:200005;background:rgba(15,23,42,.45);display:none;justify-content:flex-end}
.crm-panel{width:100%;max-width:620px;height:100%;overflow-y:auto;background:var(--surface);color:var(--text);box-shadow:-10px 0 40px rgba(0,0,0,.2);display:flex;flex-direction:column}
.crm-ph{display:flex;justify-content:space-between;gap:12px;padding:18px 22px 10px}
.crm-ph small{font-size:12px;color:var(--text2);font-weight:600}.crm-ph h2{margin:2px 0 0;font-size:20px;font-weight:800}
.crm-x{width:40px;height:40px;border:none;border-radius:10px;background:var(--surface2);color:var(--text2);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 40px}
.crm-stbar{display:flex;gap:6px;flex-wrap:wrap;padding:0 22px 14px;border-bottom:1px solid var(--border)}
.crm-stbar button{padding:6px 11px;border-radius:20px;border:1px solid var(--border);background:var(--surface);color:var(--text2);font:600 12px 'DM Sans',sans-serif;cursor:pointer}
.crm-stbar button.on{border-width:2px;font-weight:800}
.crm-subf{margin:12px 22px 0;padding:12px 14px;border-radius:12px;display:flex;flex-direction:column;gap:10px;font-size:13px}
.crm-subf p{margin:0;color:var(--text2)}
.crm-subf.ok{background:#ecfdf3;border:1px solid #a7e3bd;color:#14532d}.crm-subf.bad{background:#fdecec;border:1px solid #f3b4b4;color:#7f1d1d}
.crm-pb{padding:16px 22px 28px;display:flex;flex-direction:column;gap:16px}
.crm-fk{display:flex;gap:14px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:12px}
.crm-fk>div{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.crm-fk>div b{font-size:15px}.crm-fk small{font-size:12px;color:var(--text2)}
.crm-fk .r{text-align:right;flex:0 0 auto}.crm-fk .r s{font-size:12px;color:var(--text3)}.crm-fk .r b{font-size:18px}
.crm-g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.crm-g2.n{grid-template-columns:150px minmax(0,1fr)}
.crm-g2 label,.crm-subf label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--text2)}
.crm-g2 input,.crm-subf input,.crm-pb form input{padding:9px 10px;border:1px solid var(--border);border-radius:8px;font:14px 'DM Sans',sans-serif;background:var(--surface);color:var(--text);width:100%;box-sizing:border-box}
.crm-kv div{display:flex;flex-direction:column;gap:2px;font-size:13px}.crm-kv span{font-size:12px;color:var(--text2)}.crm-kv a{color:inherit}
.crm-warn{display:flex;gap:10px;align-items:flex-start;background:#fff7e0;border:1px solid #f5d27a;border-radius:10px;padding:10px 12px;font-size:13px;color:#5c3d00}
.crm-warn svg{flex:0 0 18px;margin-top:1px}
.crm-next{border:1px solid var(--border);background:var(--surface2);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.crm-next.bad{background:#fdecec;border-color:#f3b4b4}.crm-next.warn{background:#fff7e0;border-color:#f5d27a}
.crm-next h3,.crm-h3{margin:0;font-size:12.5px;font-weight:800;letter-spacing:.4px;color:#143264}
.crm-next.bad h3{color:#991b1b}.crm-next small{font-size:12px;color:var(--text2)}
.crm-next.bad label,.crm-next.warn label,.crm-next.bad small,.crm-next.warn small{color:#55627a}
.crm-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.crm-row.sb{justify-content:space-between}.crm-grow{flex:1}
.crm-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 13px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:600 13px 'DM Sans',sans-serif;cursor:pointer;text-decoration:none;min-height:40px;box-sizing:border-box}
.crm-btn.sm{padding:6px 11px;min-height:34px;font-size:12px}
.crm-btn.navy{background:#143264;border-color:#143264;color:#fff;font-weight:700}
.crm-btn.green{background:#15803d;border-color:#15803d;color:#fff;font-weight:700}
.crm-btn.gold{background:#F5A800;border-color:#F5A800;color:#1f1600;font-weight:700}
.crm-pb form{margin-top:8px}
.crm-hist{list-style:none;margin:8px 0 0;padding:0}
.crm-hist li{display:grid;grid-template-columns:44px 14px minmax(0,1fr);gap:8px;padding:7px 0;font-size:13px}
.crm-hist li>span{font-size:12px;color:var(--text2);font-weight:600}
.crm-hist i{width:9px;height:9px;border-radius:50%;margin-top:5px}
.crm-hist p{margin:0;line-height:1.45}.crm-hist small{color:var(--text3)}
.crm-acts{padding-top:10px;border-top:1px solid var(--border)}
.crm-note-st{margin-left:auto}
.sr{position:absolute;left:-9999px}
@media (max-width:900px){
  .crm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-th{display:none}
  .crm-tr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"cl st" "fk pr" "nx no";row-gap:6px}
  .crm-tr .c-cl{grid-area:cl}.crm-tr .c-st{grid-area:st;text-align:right}.crm-tr .c-fk{grid-area:fk}.crm-tr .c-pr{grid-area:pr}
  .crm-tr .c-nx{grid-area:nx}.crm-tr .c-no{grid-area:no;align-items:flex-end}.crm-tr .c-who,.crm-tr .c-vd{display:none}
  .crm-g2.n{grid-template-columns:1fr}
  #sale-offers-view{padding:12px}
}
.crm-col-h small{white-space:nowrap}
@media (max-width:600px){.crm-fk{flex-wrap:wrap}.crm-fk img,.crm-fk>span{width:72px!important;height:54px!important;flex-basis:72px!important}.crm-fk .r{width:100%;text-align:left;display:flex;gap:10px;align-items:baseline}}
.crm-btn.red{background:#fff;border-color:#f3b4b4;color:#b91c1c}.crm-btn.red:hover{background:#fdecec}

/* ── Sprzedaż: karta Firmy ── */
#sale-firms-view{padding:18px 20px 40px;max-width:1440px;box-sizing:border-box}
.ld-stages{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}
.ld-stage{text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:3px;cursor:pointer;font-family:inherit;color:var(--text)}
.ld-stage span{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700;color:var(--text2)}
.ld-stage i{width:9px;height:9px;border-radius:50%}.ld-stage b{font-size:20px;font-weight:800}
.ld-week{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--text2);margin-bottom:12px}.ld-week b{color:var(--text)}
.ld-tr{grid-template-columns:minmax(0,1.5fr) 130px 64px minmax(0,1.4fr) 110px 140px 160px 80px}
.ld-dots{display:inline-flex;gap:3px}.ld-dot{width:10px;height:10px;border-radius:50%;background:#e3e8ef;display:inline-block}.ld-dot.on{background:#F5A800}
.ld-fl{font-size:12px;line-height:1.35}.ld-hot{color:#8a4b00;font-weight:700}.muted{color:var(--text2)}
.ld-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ld-row.sb{justify-content:space-between}.ld-grow{flex:1;justify-content:center}
.ld-day{max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:10px}
.ld-dayh h3{margin:0;font-size:18px;font-weight:800}
.ld-wk{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#143264;border-radius:12px;padding:10px}
.ld-wk div{display:flex;flex-direction:column;color:#fff;padding:4px 6px}.ld-wk b{font-size:18px}.ld-wk span{font-size:11px;color:#c9d5ea}
.ld-gh{margin:8px 0 0;font-size:12px;font-weight:800;letter-spacing:.5px;color:var(--text2)}.ld-gh.late{color:#b91c1c}.ld-gh.today{color:#a15c00}
.ld-dc{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:6px;font-size:13px}
.ld-dc.late{border-color:#f3b4b4}.ld-dc.today{border-color:#f5d27a}.ld-dc>b,.ld-dc .sb b{font-size:15px}.ld-dc small{color:var(--text2);font-size:12px}
.ld-dayf{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:sticky;bottom:0;background:var(--bg);padding:8px 0}
.ld-dayf .crm-btn{justify-content:center;min-height:48px;font-size:15px}
.ld-card{max-width:1180px}
.ld-card .crm-ph h2{font-size:22px}.ld-card .crm-ph small{display:block;margin-top:3px}
.ld-meta{margin-top:8px;font-size:13px}
.ld-in{padding:9px 10px;border:1px solid var(--border);border-radius:8px;font:14px 'DM Sans',sans-serif;background:var(--surface);color:var(--text);width:100%;box-sizing:border-box;min-width:0}
.ld-in.sm{width:auto;padding:5px 8px;font-size:12px}.ld-in.big{font-size:16px;font-weight:600;border:2px solid #143264}
.ld-lbl{display:flex;flex-direction:column;gap:5px;font-size:12.5px;font-weight:700;color:var(--text2)}
.ld-seg{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.ld-seg button{padding:5px 10px;border:none;background:var(--surface);font:600 12px 'DM Sans',sans-serif;color:var(--text2);cursor:pointer}.ld-seg button+button{border-left:1px solid var(--border)}
.ld-seg button.on{background:#F5A800;color:#1f1600;font-weight:800}
.ld-seg3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.ld-seg3 button{min-height:44px;border-radius:10px;border:1px solid var(--border);background:var(--surface);font:600 13px 'DM Sans',sans-serif;cursor:pointer;color:var(--text)}
.ld-seg3 button.on{border:2px solid #143264;background:#e8eef7;color:#143264;font-weight:800}
.ld-acts{display:flex;gap:8px;flex-wrap:wrap;padding:0 22px 12px}
.ld-stbar{display:flex;flex-wrap:wrap;margin:0 22px 14px;border:1px solid var(--border);border-radius:10px;overflow:hidden;width:fit-content;max-width:calc(100% - 44px)}
.ld-stbar button{padding:8px 14px;border:none;border-right:1px solid var(--border);background:var(--surface);color:var(--text2);font:600 13px 'DM Sans',sans-serif;cursor:pointer}
.ld-stbar button.on{font-weight:800}
.ld-cols{display:flex;gap:18px;flex-wrap:wrap;padding:4px 22px 28px;align-items:flex-start}
.ld-col{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.ld-box{border:1px solid var(--border);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.ld-person{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:center;padding-top:8px;border-top:1px solid var(--border);font-size:13px}
.ld-person div{display:flex;flex-direction:column}.ld-person small{color:var(--text2);font-size:12px}
.ld-person .ld-row{flex-direction:row}
.crm-x.sm{width:36px;height:36px;flex-basis:36px}
.ld-pform{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px;border:1px dashed var(--border);border-radius:10px}.ld-pform .crm-row{grid-column:span 2}
.ld-fleet{overflow-x:auto}
.ld-fr{display:grid;grid-template-columns:36px minmax(100px,1.3fr) 54px 46px minmax(80px,.9fr) 66px minmax(60px,1fr);gap:8px;align-items:center;padding:8px 0;border:none;border-top:1px solid var(--border);background:transparent;width:100%;text-align:left;font:13px 'DM Sans',sans-serif;color:var(--text);min-width:500px}
button.ld-fr{cursor:pointer}button.ld-fr:hover{background:var(--surface2)}
.ld-fr-acts{grid-column:1/-1}
.ld-fr.th{border-top:none;font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.4px}
.ld-fr.edit .ld-in{padding:6px 7px;font-size:13px}
.ld-logf{display:flex;flex-direction:column;gap:8px;border:1px solid var(--border);border-radius:10px;padding:10px;background:var(--surface2)}
.crm-btn.sm.on{border-color:#143264;background:#e8eef7;color:#143264;font-weight:800}
.ld-log{list-style:none;margin:0;padding:0}
.ld-log li{display:grid;grid-template-columns:50px 70px minmax(0,1fr);gap:8px;padding:8px 0;border-top:1px solid var(--border);font-size:13px}
.ld-log li>span:first-child{color:var(--text2);font-weight:600;font-size:12px}
.ld-log i{display:inline-block;font-style:normal;padding:2px 7px;border-radius:6px;font-size:11px;font-weight:700}
.ld-log p{margin:0;line-height:1.45}.ld-log small{color:var(--text3)}
.ld-off{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:9px 0;border:none;border-top:1px solid var(--border);background:transparent;text-align:left;font:13px 'DM Sans',sans-serif;color:var(--text);cursor:pointer}
.ld-add{max-width:520px}.ld-add .crm-pb{gap:12px}
.ld-gus{background:#ecfdf3;border:1px solid #a7e3bd;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.ld-gus small{font-size:11px;font-weight:800;letter-spacing:.4px;color:#15803d}.ld-gus b{font-size:15px}
.ld-save{justify-content:center;min-height:50px;font-size:16px}
@media (max-width:900px){
  .ld-stages{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ld-tr{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"cl st" "fk pr" "nx no"}
  .ld-tr>span:nth-child(1){grid-area:cl}.ld-tr>span:nth-child(2){grid-area:st;text-align:right}
  .ld-tr>span:nth-child(3){grid-area:pr;text-align:right}.ld-tr>span:nth-child(4){grid-area:fk}
  .ld-tr>span:nth-child(7){grid-area:nx}.ld-tr>span:nth-child(5),.ld-tr>span:nth-child(6),.ld-tr>span:nth-child(8){display:none}
  .ld-person{grid-template-columns:1fr auto}.ld-person>div:nth-child(2){grid-column:1}
  .ld-cols,.ld-acts{padding-left:14px;padding-right:14px}.ld-stbar{margin-left:14px;margin-right:14px;max-width:calc(100% - 28px)}
  .ld-stbar{width:auto}
  .ld-stbar button{flex:1 1 33%;padding:8px 6px;border-bottom:1px solid var(--border)}
  .ld-cols>.ld-col:last-child{order:-1}
}
.crm-panel>*{flex-shrink:0}
.ld-del{padding:0 22px 28px;display:flex;justify-content:flex-end}

/* ── Sprzedaż: Raport ── */
#sale-report-view{padding:18px 20px 40px;max-width:1440px;box-sizing:border-box}
.rp-head{display:flex;align-items:center;gap:10px;margin-bottom:14px}.rp-head h3{margin:0;font-size:20px;font-weight:800;min-width:190px;text-align:center}
.rp-head .crm-btn[disabled]{opacity:.4;cursor:default}
.rp-box{background:var(--surface);margin-bottom:14px}
.rp-scroll{overflow-x:auto}
.rp-t{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}
.rp-t th,.rp-t td{padding:9px 10px;text-align:right;border-top:1px solid var(--border);white-space:nowrap}
.rp-t thead th{border-top:none;font-size:11px;font-weight:700;color:var(--text2);text-transform:uppercase;letter-spacing:.4px}
.rp-t th:first-child{text-align:left}.rp-t tbody th{font-weight:800}.rp-t td.ok{color:#15803d;font-weight:700}
.rp-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rp-bar{display:grid;grid-template-columns:minmax(120px,1fr) 2fr 90px;gap:10px;align-items:center;font-size:13px;padding:5px 0}
.rp-bar div{height:10px;background:var(--surface2);border-radius:6px;overflow:hidden}.rp-bar i{display:block;height:100%;background:#b91c1c;border-radius:6px}
.rp-bar b{text-align:right}
.rp-trend{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:end;height:200px}
.rp-col{display:flex;flex-direction:column;align-items:center;gap:3px;height:100%;justify-content:flex-end;font-size:12px}
.rp-colbar{flex:1;width:60%;display:flex;align-items:flex-end;min-height:20px}.rp-colbar i{display:block;width:100%;background:#cbd5e1;border-radius:6px 6px 0 0}
.rp-col.on .rp-colbar i{background:#143264}.rp-col b{font-size:13px}.rp-col span{font-weight:700;color:var(--text2);text-transform:capitalize}
@media (max-width:900px){.rp-2{grid-template-columns:1fr}.rp-head h3{min-width:0;font-size:17px}}

/* ── Zgłoś problem ── */
.fb-ov{position:fixed;inset:0;z-index:400020;background:rgba(15,23,42,.55);display:flex;align-items:flex-end;justify-content:center}
@media (min-width:700px){.fb-ov{align-items:center}}
.fb-box{background:#fff;width:100%;max-width:520px;border-radius:16px 16px 0 0;max-height:92vh;overflow-y:auto;font-family:'DM Sans',sans-serif;color:#0f1d33}
@media (min-width:700px){.fb-box{border-radius:16px}}
.fb-h{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #e3e8ef;font-size:16px}
.fb-x{width:40px;height:40px;border:none;border-radius:10px;background:#f1f5f9;font-size:22px;cursor:pointer;color:#475569}
.fb-b{padding:16px 18px 22px;display:flex;flex-direction:column;gap:14px}
.fb-kinds{display:flex;gap:6px;flex-wrap:wrap}
.fb-kinds button{padding:9px 14px;border-radius:20px;border:1px solid #e3e8ef;background:#fff;font:600 13px 'DM Sans',sans-serif;cursor:pointer;color:#0f1d33}
.fb-kinds button.on{background:#143264;border-color:#143264;color:#fff}
.fb-l{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#334155}
.fb-l textarea{padding:10px 12px;border:1px solid #e3e8ef;border-radius:10px;font:15px 'DM Sans',sans-serif;resize:vertical;color:#0f1d33}
.fb-photos{display:flex;gap:8px;flex-wrap:wrap}
.fb-ph{position:relative}.fb-ph img{width:84px;height:84px;object-fit:cover;border-radius:8px;border:1px solid #e3e8ef;display:block}
.fb-ph button{position:absolute;top:-6px;right:-6px;width:24px;height:24px;border-radius:50%;border:none;background:#dc2626;color:#fff;cursor:pointer;font-size:14px;line-height:1}
.fb-add{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:10px 14px;border:1.5px dashed #94a3b8;border-radius:10px;cursor:pointer;font-size:13px;font-weight:600;color:#143264;background:#f8fafc}
.fb-hint{margin:0;font-size:12px;color:#64748b}
.fb-send{min-height:50px;border:none;border-radius:12px;background:#F5A800;color:#1f1600;font:800 16px 'DM Sans',sans-serif;cursor:pointer}
.fb-send:disabled{opacity:.6}

/* ── Kody błędów ── */
.ec-head{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}.ec-head b{font-size:17px;color:#0f1d33}.ec-head span{font-size:13px;color:#64748b}
.ec-wrap{font-family:'DM Sans',sans-serif;color:#0f1d33}
.ec-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}.ec-top h3{margin:0;font-size:18px;flex:1;min-width:0}
.ec-back{width:44px;height:44px;flex-shrink:0;border:1px solid #e3e8ef;border-radius:12px;background:#fff;font-size:26px;line-height:1;cursor:pointer;color:#143264}
.ec-cnt{font-size:12px;color:#64748b;white-space:nowrap}
.ec-search input{width:100%;box-sizing:border-box;padding:13px 14px;border:1.5px solid #cbd5e1;border-radius:12px;font:16px 'DM Sans',sans-serif;background:#fff;color:#0f1d33;outline:none}
.ec-search input:focus{border-color:#143264;box-shadow:0 0 0 3px rgba(20,50,100,.12)}
.ec-sub{font-size:12px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.6px;margin:16px 0 8px}
.ec-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.ec-tile{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:16px;border:1.5px solid #e3e8ef;border-radius:14px;background:#fff;cursor:pointer;font-family:inherit;color:#0f1d33;min-height:96px}
.ec-tile:hover{border-color:#F5A800;box-shadow:0 3px 10px rgba(20,50,100,.1)}
.ec-tile b{font-size:18px;color:#143264}.ec-tile span{font-size:13px;font-weight:700;color:#0f1d33}.ec-tile small{font-size:12px;color:#64748b;line-height:1.35}
.ec-chips{display:flex;gap:6px;overflow-x:auto;padding:10px 0 4px;margin-bottom:6px;-webkit-overflow-scrolling:touch}
.ec-chips button{flex-shrink:0;padding:9px 13px;border-radius:20px;border:1px solid #e3e8ef;background:#fff;font:600 13px 'DM Sans',sans-serif;cursor:pointer;color:#0f1d33;white-space:nowrap}
.ec-chips button small{color:#64748b;font-weight:600;margin-left:2px}
.ec-chips button.on{background:#143264;border-color:#143264;color:#fff}.ec-chips button.on small{color:#cbd5e1}
.ec-rows{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.ec-row{display:flex;align-items:flex-start;gap:12px;width:100%;text-align:left;padding:12px;border:1px solid #e3e8ef;border-radius:12px;background:#fff;cursor:pointer;font-family:inherit;color:#0f1d33}
.ec-row:hover{border-color:#94a3b8}
.ec-code{flex-shrink:0;min-width:58px;text-align:center;padding:5px 8px;border-radius:8px;font:800 14px 'DM Sans',sans-serif;background:#fee2e2;color:#b91c1c;font-variant-numeric:tabular-nums}
.ec-code.warn{background:#fef3c7;color:#92400e}.ec-code.cond{background:#e0e7ff;color:#3730a3}
.ec-code.big{font-size:22px;padding:6px 12px;min-width:0;display:inline-block}
.ec-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.ec-txt b{font-size:14px;font-weight:600;line-height:1.35}.ec-txt small{font-size:12px;color:#64748b;line-height:1.3}
.ec-tipc{flex-shrink:0;font-size:12px;font-weight:700;color:#92400e;background:#fef3c7;border-radius:10px;padding:3px 7px}
.ec-empty{padding:28px 12px;text-align:center;color:#64748b;font-size:14px}
.ec-link{background:none;border:none;color:#143264;text-decoration:underline;cursor:pointer;font:inherit;padding:0}
.ec-ov{position:fixed;inset:0;z-index:400010;background:rgba(15,23,42,.55);display:flex;align-items:flex-end;justify-content:center}
@media (min-width:700px){.ec-ov{align-items:center}}
.ec-box{background:#fff;width:100%;max-width:620px;border-radius:16px 16px 0 0;max-height:92vh;overflow-y:auto;font-family:'DM Sans',sans-serif;color:#0f1d33}
@media (min-width:700px){.ec-box{border-radius:16px}}
.ec-mh{position:sticky;top:0;background:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:16px 18px 12px;border-bottom:1px solid #e3e8ef}
.ec-mh small{display:block;margin-top:6px;font-size:12px;color:#64748b}
.ec-x{width:44px;height:44px;flex-shrink:0;border:none;border-radius:10px;background:#f1f5f9;font-size:24px;cursor:pointer;color:#475569}
.ec-mb{padding:14px 18px 24px}
.ec-desc{font-size:16px;line-height:1.5;margin:0 0 6px;font-weight:600}
.ec-orig{font-size:12px;color:#64748b;margin:0 0 6px;font-style:italic}
.ec-sec{margin-top:16px}.ec-sec h4{margin:0 0 8px;font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:#64748b}.ec-sec h4 small{text-transform:none;letter-spacing:0;font-weight:500}
.ec-sec>p{margin:0;font-size:15px;line-height:1.45}
.ec-causes{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;counter-reset:c}
.ec-causes li{counter-increment:c}
.ec-causes label{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid #e3e8ef;border-radius:10px;cursor:pointer;font-size:14px;line-height:1.4}
.ec-causes label::before{content:counter(c);flex-shrink:0;width:22px;height:22px;border-radius:50%;background:#143264;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.ec-causes input{order:3;margin-left:auto;width:22px;height:22px;flex-shrink:0;accent-color:#16a34a}
.ec-causes label:has(input:checked){background:#f0fdf4;border-color:#bbf7d0}.ec-causes label:has(input:checked) span{text-decoration:line-through;color:#64748b}
.ec-tips{border-top:1px solid #e3e8ef;padding-top:14px}
.ec-tip{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 12px;margin-bottom:8px}.ec-tip p{margin:0 0 4px;font-size:14px;line-height:1.45}.ec-tip small{font-size:12px;color:#78716c}
.ec-none{font-size:13px;color:#64748b;margin:0 0 8px}
.ec-tips textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:15px 'DM Sans',sans-serif;resize:vertical;color:#0f1d33}
.ec-btn{margin-top:8px;min-height:46px;padding:0 18px;border:none;border-radius:11px;background:#F5A800;color:#1f1600;font:800 15px 'DM Sans',sans-serif;cursor:pointer}.ec-btn:disabled{opacity:.6}
.ec-files{margin-top:22px;border-top:1px solid #e3e8ef;padding-top:12px}.ec-files summary{cursor:pointer;font-weight:700;font-size:14px;color:#334155;padding:6px 0}
.ec-files-q{width:100%;padding:9px 14px;border:1px solid #e2e8f0;border-radius:10px;font-size:14px;background:#f8fafc;color:#1e293b;box-sizing:border-box;outline:none;margin:10px 0}

/* ═══════════════════ ODZIEŻ / PALIWO / KASA ═══════════════════ */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#hr-clothes-root,#svc-fuel-view,#cash-root{font-family:'DM Sans',sans-serif;color:#0f1d33}
.odz-top,.fuel-top,.cash-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.odz-top h2,.cash-top h2{margin:0;font-size:20px;font-weight:800}
.odz-top p{margin:3px 0 0;font-size:13px;color:#55647a}
.odz-old-t{color:#9a3412}
.odz-btns,.fuel-btns{display:flex;gap:8px;flex-wrap:wrap}
.odz-btn{min-height:40px;padding:0 14px;border:1px solid #dde4ee;background:#fff;border-radius:10px;font:600 14px 'DM Sans',sans-serif;color:#143264;cursor:pointer;white-space:nowrap}
.odz-btn:hover{border-color:#94a3b8}
.odz-btn.pri{background:#F5A800;border-color:#F5A800;color:#1f1600;font-weight:800}
.odz-btn.danger{color:#b91c1c;border-color:#fecaca;background:#fff5f5}
.odz-btn:disabled{opacity:.6}
.odz-link{background:none;border:none;padding:0;color:#143264;text-decoration:underline;font:600 12.5px 'DM Sans',sans-serif;cursor:pointer}
.odz-import{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 16px;margin-bottom:14px;font-size:14px}
.odz-empty,.fuel-empty{padding:24px;text-align:center;color:#55647a;font-size:14px}
.odz-tbl-wrap{overflow-x:auto;background:#fff;border:1px solid #dde4ee;border-radius:14px}
.odz-tbl{width:100%;border-collapse:collapse;font-size:14px}
.odz-tbl thead th{background:#f6f8fb;text-align:left;font-size:12px;color:#55647a;font-weight:700;padding:10px 12px;white-space:nowrap}
.odz-tbl td,.odz-tbl tbody th{padding:9px 12px;border-top:1px solid #eef1f5;text-align:left;vertical-align:middle}
.odz-tbl tbody th small{display:block;font-size:11.5px;color:#55647a;font-weight:500}
.odz-name{background:none;border:none;padding:0;font:700 14px 'DM Sans',sans-serif;color:#143264;cursor:pointer;text-align:left}
.odz-name:hover{text-decoration:underline}
.odz-d{padding:3px 8px;border-radius:8px;white-space:nowrap}
.odz-d.old{background:#ffedd5;color:#9a3412;font-weight:700}
.odz-none{color:#94a3b8}
.odz-sz{font-size:12px;color:#55647a}
.odz-back{width:44px;height:44px;flex-shrink:0;border:1px solid #dde4ee;border-radius:12px;background:#fff;font-size:24px;line-height:1;color:#143264;cursor:pointer}
.odz-cols,.cash-cols{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start}
.odz-card,.cash-card{background:#fff;border:1px solid #dde4ee;border-radius:14px;padding:16px 18px}
.odz-card h3,.cash-card h3{margin:0 0 12px;font-size:12px;letter-spacing:.6px;text-transform:uppercase;color:#55647a}
.odz-sizes{flex:1 1 280px;display:flex;flex-direction:column;gap:10px}
.odz-hist{flex:999 1 520px;min-width:0;padding:16px}
.odz-hist .odz-tbl-wrap{border-radius:10px}
.odz-sgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.odz-sgrid label,.odz-note{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#55647a;font-weight:600}
.odz-sgrid input,.odz-note input{padding:9px 10px;border:1px solid #cbd5e1;border-radius:9px;font:600 15px 'DM Sans',sans-serif;color:#0f1d33;min-width:0}
.odz-hint{margin:0;font-size:12px;color:#55647a}
.odz-x{width:32px;height:32px;border:1px solid #e3e8ef;background:#fff;border-radius:8px;color:#94a3b8;font-size:18px;line-height:1;cursor:pointer}
.odz-x:hover{color:#b91c1c;border-color:#fecaca}
.odz-ov{position:fixed;inset:0;z-index:400010;background:rgba(15,23,42,.55);display:flex;align-items:flex-end;justify-content:center}
@media (min-width:700px){.odz-ov{align-items:center}}
.odz-box{background:#fff;width:100%;max-width:560px;border-radius:16px 16px 0 0;max-height:92vh;overflow-y:auto;font-family:'DM Sans',sans-serif;color:#0f1d33}
@media (min-width:700px){.odz-box{border-radius:16px}}
.odz-mh{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;background:#143264;color:#fff;padding:14px 18px;font-size:16px}
.odz-mx{width:40px;height:40px;border:none;border-radius:10px;background:rgba(255,255,255,.15);color:#fff;font-size:22px;cursor:pointer}
.odz-mb{padding:16px 18px 20px;display:flex;flex-direction:column;gap:14px}
.odz-l{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#334155}
.odz-l input,.odz-l select,.odz-row input,.odz-row select{padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:15px 'DM Sans',sans-serif;color:#0f1d33;background:#fff;min-width:0}
.odz-row{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.odz-row>input:first-child{flex:1 1 180px}
.odz-row .odz-q{width:72px;flex:0 0 72px}
.odz-row .odz-s{flex:1 1 140px}
.odz-add{align-self:flex-start;border:1px dashed #94a3b8;background:#f8fafc;border-radius:10px;padding:8px 12px;font:600 13px 'DM Sans',sans-serif;color:#143264;cursor:pointer}
.odz-ppl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px;font-weight:500}
.odz-ppl label{display:flex;gap:8px;align-items:center;font-size:14px;padding:5px 0;cursor:pointer}
.odz-ppl input{width:20px;height:20px;accent-color:#143264}
.odz-save{min-height:50px;border:none;border-radius:12px;background:#F5A800;color:#1f1600;font:800 16px 'DM Sans',sans-serif;cursor:pointer}
.odz-save:disabled{opacity:.6}
/* paliwo */
.fuel-tl{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fuel-tl h2{margin:0;font-size:20px;font-weight:800}
.fuel-years{display:flex;gap:4px;flex-wrap:wrap}
.fuel-years button{padding:7px 12px;border-radius:18px;border:1px solid #dde4ee;background:#fff;font:700 13px 'DM Sans',sans-serif;color:#334155;cursor:pointer}
.fuel-years button.on{background:#143264;border-color:#143264;color:#fff}
.fuel-hint{margin:-6px 0 12px;font-size:13px;color:#55647a}
.fuel-sec{margin-bottom:16px}
.fuel-sh{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:6px;flex-wrap:wrap}
.fuel-sh h3{margin:0;font-size:15px}
.fuel-sh span{font-size:13px;color:#55647a}
.fuel-tbl{width:100%;border-collapse:collapse;font-size:13px;min-width:1080px}
.fuel-tbl thead th{background:#f6f8fb;font-size:12px;color:#55647a;padding:8px 4px;text-align:right;font-weight:700}
.fuel-tbl thead th.fuel-n{text-align:left;padding-left:12px}
.fuel-tbl tbody th,.fuel-tbl td{border-top:1px solid #eef1f5;padding:3px 3px}
.fuel-n{min-width:230px;max-width:300px;text-align:left}
.fuel-rn{display:flex;align-items:center;gap:6px;justify-content:space-between;padding-left:9px}
.fuel-rn span{display:flex;flex-direction:column;line-height:1.25}
.fuel-rn small{font-size:11px;color:#55647a;font-weight:500}
.fuel-rn em{font-style:normal;color:#55647a;font-weight:500}
.fuel-ed{width:30px;height:30px;flex-shrink:0;border:1px solid #e3e8ef;background:#fff;border-radius:8px;color:#55647a;cursor:pointer}
.fuel-in{width:100%;min-width:58px;box-sizing:border-box;padding:7px 5px;border:1px solid transparent;border-radius:7px;background:transparent;text-align:right;font:500 13px 'DM Sans',sans-serif;font-variant-numeric:tabular-nums;color:#0f1d33}
.fuel-in:hover{border-color:#dde4ee}
.fuel-in:focus{outline:none;border-color:#143264;background:#fff7e0}
.fuel-s{text-align:right;padding-right:12px!important;white-space:nowrap;font-variant-numeric:tabular-nums}
/* kasa */
#cash-overlay{display:none;position:fixed;inset:0;background:#eef1f6;z-index:300;flex-direction:row;overflow:hidden}
#cash-overlay.open{display:flex}
#cash-overlay .dash-content{background:#eef1f6}
@media (max-width:900px){#cash-overlay{flex-direction:column}}
.cash-main{max-width:1240px;width:100%;min-width:0;box-sizing:border-box;margin:0 auto;padding:20px 24px 40px}
@media (max-width:700px){.cash-main{padding:14px 12px 40px}.cash-nav h2{min-width:0;font-size:18px}}
.cash-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cash-nav h2{min-width:190px;text-align:center}
.cash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
@media (max-width:760px){.cash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cash-kpi{background:#fff;border:1px solid #dde4ee;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.cash-kpi span{font-size:12px;color:#55647a}
.cash-kpi b{font-size:21px;font-weight:800;font-variant-numeric:tabular-nums}
.cash-kpi b.in,.cash-tbl .in{color:#166534}
.cash-kpi b.out,.cash-tbl .out{color:#9a3412}
.cash-kpi .odz-link{align-self:flex-start;font-size:12px}
.cash-kpi.dark{background:#143264;border-color:#143264;color:#fff}
.cash-kpi.dark span{color:#c7d2e3}
.cash-list{flex:999 1 620px;min-width:0;padding:0;overflow:hidden}
.cash-list .odz-tbl-wrap{border:none;border-radius:0}
.cash-form{display:flex;gap:8px;padding:12px 14px;background:#f6f8fb;border-bottom:1px solid #e3e8ef;flex-wrap:wrap;align-items:flex-end}
.cash-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#334155}
.cash-form input{padding:9px 10px;border:1px solid #cbd5e1;border-radius:9px;font:15px 'DM Sans',sans-serif;color:#0f1d33;min-width:0;width:100%;box-sizing:border-box}
.cf-doc{flex:2 1 200px}.cf-who{flex:1 1 160px}.cf-n{flex:1 1 100px}
.cash-tbl .r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.cash-tbl .lp{color:#94a3b8;width:36px}
.cash-tbl tfoot th,.cash-tbl tfoot td{background:#f6f8fb;border-top:2px solid #dde4ee;padding:11px 12px;text-align:left}
.cash-tbl tfoot td.r{text-align:right}
.cash-tbl tr.cash-ed td{background:#fff7e0}
.cash-side{flex:1 1 250px;display:flex;flex-direction:column;gap:16px}
.cash-yr{display:flex;justify-content:space-between;margin:-4px 0 8px}
.cash-m{display:flex;justify-content:space-between;width:100%;padding:8px 10px;border:none;border-radius:9px;background:none;font:500 14px 'DM Sans',sans-serif;color:#0f1d33;cursor:pointer;text-align:left}
.cash-m b{font-variant-numeric:tabular-nums;font-weight:600}
.cash-m:hover{background:#f6f8fb}
.cash-m.on{background:#eef3fb;font-weight:800}
.cash-p{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:14px}
.pm-info{background:#f6f8fb;border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.45}.pm-info span{color:#55647a;font-size:13px}
.pm-wait{padding:14px;text-align:center;color:#55647a;font-size:14px}.pm-err{color:#b91c1c;font-size:14px;margin:0}
/* transport zewnętrzny */
.trn-box{max-width:1100px}
.trn-dlg{z-index:400020}
.trn-tabs{display:flex;gap:6px;flex-wrap:wrap}
.trn-tabs button{padding:8px 14px;border-radius:18px;border:1px solid #dde4ee;background:#fff;color:#334155;font:700 13px 'DM Sans',sans-serif;cursor:pointer;min-height:40px}
.trn-tabs button.on{background:#143264;border-color:#143264;color:#fff}
.trn-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.trn-btn{border:1px solid #dde4ee;background:#fff;border-radius:10px;padding:9px 13px;font:600 14px 'DM Sans',sans-serif;color:#143264;cursor:pointer;min-height:40px}
.trn-btn-y{border-color:#F5A800;background:#F5A800;color:#1f1600;font-weight:800}
.trn-card{background:#fff;border:1px solid #dde4ee;border-radius:14px;overflow:hidden;min-width:0}
.trn-ch{padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:1px solid #eef1f5}
.trn-ch b{font-size:16px}.trn-ch span{font-size:12px;color:#55647a}
.trn-acts{display:flex;gap:6px;flex-wrap:wrap}
.trn-tw{overflow-x:auto}
.trn-t{width:100%;border-collapse:collapse;font-size:14px;min-width:720px}
.trn-t th,.trn-t td{padding:9px 12px;text-align:left;border-top:1px solid #eef1f5}
.trn-t thead th{background:#f6f8fb;font-size:12px;color:#55647a;border-top:none}
.trn-t .r{text-align:right}.trn-t .b{font-weight:700;font-variant-numeric:tabular-nums}
.trn-miss{display:inline-block;padding:3px 9px;border-radius:12px;background:#fff4d6;color:#8a5a00;font-size:12px;font-weight:700}
.trn-ic{border:none;background:transparent;padding:8px;border-radius:8px;cursor:pointer;color:#55647a;min-width:40px;min-height:40px}
.trn-ic:hover{background:#eef2f7;color:#143264}
.trn-empty{padding:14px 16px;color:#55647a;font-size:14px;list-style:none}
.trn-del{border:1px solid #fecaca;background:#fff;color:#b91c1c;border-radius:12px;min-height:44px;font:700 14px 'DM Sans',sans-serif;cursor:pointer}
.trn-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:520px){.trn-2{grid-template-columns:1fr}}
.trn-calc{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
@media (min-width:860px){.trn-calc{grid-template-columns:minmax(0,340px) minmax(0,1fr);align-items:start}}
.trn-in{padding:16px;display:flex;flex-direction:column;gap:12px}
.trn-in h3{margin:0;font-size:16px}
.trn-in input{padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:600 16px 'DM Sans',sans-serif;color:#0f1d33;min-width:0}
.trn-seg{display:flex;gap:6px}
.trn-seg button{flex:1;padding:10px;border-radius:10px;border:1px solid #dde4ee;background:#fff;color:#334155;font:700 14px 'DM Sans',sans-serif;cursor:pointer;min-height:44px}
.trn-seg button.on{background:#143264;border-color:#143264;color:#fff}
.trn-sug{list-style:none;margin:4px 0 0;padding:4px;border:1px solid #dde4ee;border-radius:10px;background:#fff;box-shadow:0 6px 18px rgba(15,29,51,.10)}
.trn-sug button{width:100%;text-align:left;border:none;background:#fff;border-radius:8px;padding:9px 10px;cursor:pointer;font:500 14px 'DM Sans',sans-serif;color:#0f1d33}
.trn-sug button:hover,.trn-sug button:focus{background:#fff8e6}
.trn-sug span{font-size:12px;color:#55647a}
.trn-sug mark{background:#F5A800;color:#1f1600;border-radius:3px;padding:0 1px}
.trn-sug-none{padding:9px 10px;font-size:13px;color:#55647a}
.trn-warn{color:#8a5a00 !important}
.trn-list{list-style:none;margin:0;padding:0}
.trn-list li{display:flex;align-items:center;gap:12px;padding:11px 16px;border-top:1px solid #eef1f5;flex-wrap:wrap}
.trn-list li:first-child{border-top:none}
.trn-list li.best{background:#fff8e6}
.trn-list li.no{background:#fafbfd;color:#64748b}
.trn-list li.no .trn-cost{text-decoration:line-through}
.trn-li{flex:1;min-width:200px}
.trn-li b{font-size:15px}.trn-li span{font-weight:600;color:#55647a}
.trn-li small{display:block;font-size:12px;color:#55647a;margin-top:2px}
.trn-tag{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:800;background:#F5A800;color:#1f1600}
.trn-tag.no{background:#e9edf3;color:#475569}
.trn-cost{min-width:100px;text-align:right;font-size:18px;font-weight:800;font-variant-numeric:tabular-nums}
.trn-foot{padding:12px 16px;border-top:1px solid #dde4ee;background:#f6f8fb;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:14px}
.trn-foot:empty{display:none}
