/* ============================================================================
   TSL Tools - styl makiety 1:1 (tsl-makieta.css)
   Źródło: F:\Mackup_TSLTOOLS\TSL-makieta-interaktywna.html (wersja z 9.10.2026, 18:21),
           jedyny blok <style> (linie 7-222 pliku). Numery "l.N" poniżej to numer linii
           WEWNĄTRZ tego bloku (linia pliku HTML = N + 5).
   Zasady tego pliku:
   1) Reguły są PRZEPISANE BEZ ZMIAN WARTOŚCI i w ORYGINALNEJ KOLEJNOŚCI. Kolejność ma
      znaczenie: makieta jest zbudowana warstwowo (późniejsze bloki nadpisują wcześniejsze,
      np. szerokość menu z bloku 23 nadpisuje 240/250/200px z bloków 4 i 21).
   2) Zmienione zostało tylko formatowanie (jedna reguła w linii, długie rozbite na linie)
      i dodane komentarze nagłówkowe. Test odwrotny (skrypt) potwierdza identyczność
      selektorów, kolejności i treści deklaracji z oryginałem: patrz 05_DESIGN_SYSTEM.md.
   3) Sekcja "TOKENY POCHODNE" na początku to DODATEK DOKUMENTACYJNY: nazwy nadane przez
      dokumentację dla wartości powtarzających się w makiecie. Żadna reguła poniżej ich
      nie używa, więc nie zmieniają wyglądu. Służą do nowych ekranów spoza makiety.
   4) Makieta nie ładuje czcionek z sieci: body ma "Segoe UI",Arial,sans-serif, logo Georgia.
   ============================================================================ */

/* ============================================================================
   TOKENY POCHODNE (dodatek dokumentacyjny, wartości 1:1 z makiety)
   Prefiks --tsl- odróżnia je od zmiennych oryginalnych (--ink, --muted, ...).
   ============================================================================ */
:root{
  /* czcionki */
  --tsl-font-body:"Segoe UI",Arial,sans-serif;   /* body: font:15px/1.5 (l.3) */
  --tsl-font-logo:Georgia,serif;                 /* .brand-square: font:42px (l.4) */
  /* tekst */
  --tsl-text-strong:#111;        /* 7x: .home-search h2, .home-table-section h2, .home-actions h2, .profile-window-head h1 ... */
  --tsl-text-home-h1:#0a0b0c;    /* .home-heading h1 (l.36) */
  --tsl-text-secondary:#434b57;  /* 3x: th tabeli pulpitu, "Wiersze", .home-status */
  --tsl-text-table:#23282d;      /* td tabeli pulpitu (l.64) */
  --tsl-text-label:#435460;      /* label.field (l.6) */
  --tsl-text-link:#1972c4;       /* .company-table-section button.link (l.66) */
  --tsl-text-record:#35414b;     /* .record-table td (l.110) */
  --tsl-text-record-head:#82919d;/* .record-table th (l.109) */
  /* powierzchnie */
  --tsl-white:#fff;              /* 23x tło kart, tabel, pól, okien */
  --tsl-surface-subtle:#f6f8fa;  /* 4x: thead, input[readonly], .notice, th pulpitu (l.56, potem nadpisane l.63) */
  --tsl-surface-table-head:#eef0f3; /* th tabeli pulpitu (l.63), .account-dot (l.39) */
  --tsl-surface-dialog-foot:#f8fafb;/* .dialog-footer (l.7), .registry-sublist (l.187) */
  --tsl-surface-flow:#f8fafc;    /* .flow-box */
  /* obramowania */
  --tsl-border-input:#ccd5dc;    /* input/select/textarea (l.6) */
  --tsl-border-table-outer:#e1e5e9;  /* .company-table-section .table-scroll (l.54) */
  --tsl-border-row:#e8edf1;      /* td (l.6) */
  --tsl-border-profile:#c6cbd0;  /* .profile-window (l.81) */
  /* niebieski interfejsu */
  --tsl-blue-hover:#cce2f2;      /* button.primary:hover (l.3) */
  --tsl-blue-border:#bed1df;     /* button.primary border (l.3) */
  --tsl-blue-on:#173b55;         /* tekst na button.primary (l.3) */
  --tsl-focus:#4b89b8;           /* outline fokusu, 4x */
  /* statusy */
  --tsl-green-bg:#e9f4ed;  --tsl-amber-bg:#fff4d9;  --tsl-blue-bg:#eaf2f9;  --tsl-red-bg:#fbecec;   /* .badge.* (l.6) */
  --tsl-dot-green:#40984e; --tsl-dot-amber:#d9a01b; --tsl-dot-blue:#5fc0e2;                         /* .home-status i (l.68-69) */
  /* błąd pola */
  --tsl-error:#c53838;           /* ramka pola z błędem (l.132) */
  --tsl-error-bg:#fff5f5;        /* tło pola z błędem (l.132) */
  --tsl-error-icon:#bd2828;      /* .field-warning (l.133) */
  --tsl-error-text:#952828;      /* dymek błędu (l.135) */
  /* przycisk usuwania */
  --tsl-danger:#b83d3d;          /* record-action.danger, confirm-delete (l.108) */
  --tsl-danger-hover:#9f3030;    /* hover (l.109) */
  /* menu boczne */
  --tsl-side-bg:#08090a;         /* .sidebar (l.4) */
  --tsl-side-text:#ddd;          /* .nav button (l.4) */
  --tsl-side-hover:#202326;      /* .nav button:hover (l.4) */
  --tsl-side-active-text:#131f28;/* .nav button.active (l.4) */
  --tsl-side-caption:#91999f;    /* .brand-caption (l.4) */
  --tsl-side-rule:#282c30;       /* .user border-top (l.4) */
  /* cienie */
  --tsl-shadow-toast:0 5px 24px #0002;                /* .toast (l.6) */
  --tsl-shadow-dialog:0 20px 100px #12293c33;         /* dialog (l.7) */
  --tsl-shadow-tooltip:0 3px 12px #0002;              /* dymek błędu .field-warning (l.135) */
  --tsl-shadow-field-error:inset 0 0 0 1px #c53838;   /* pole z błędem (l.132) */
}

/* ============================================================================
   TOKENY ORYGINALNE (l.2) - bez zmian
   ============================================================================ */

/* l.2 */
:root{--ink:#17212b;--muted:#677581;--line:#dce2e7;--blue:#dcebf7;--blue-dark:#244f72;--canvas:#f7f9fb;--green:#26704d;--amber:#8a620c;--red:#ae3d3d}

/* ============================================================================
   1. BAZA (box-sizing, body 15px/1.5 Segoe UI, kolor i tło strony)
   ============================================================================ */
/* l.3 */
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--canvas);font:15px/1.5 "Segoe UI",Arial,sans-serif}

/* ============================================================================
   2. PRZYCISKI I ELEMENTY STERUJĄCE (button, .primary .dark .link .icon .danger; fokus, disabled, hover)
   ============================================================================ */
/* l.3 */
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.5}
button,a,input,select,textarea{outline-offset:3px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #4b89b8}
button{border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);padding:9px 16px;min-height:40px}
button:hover:not(:disabled){background:#eff4f8;border-color:#b7c8d5}
button.primary{background:var(--blue);border-color:#bed1df;color:#173b55}
button.primary:hover{background:#cce2f2}
button.dark{background:#202c36;color:#fff;border-color:#202c36}
button.link{border:0;background:transparent;color:var(--blue-dark);padding:3px 0;min-height:30px;text-align:left}
button.icon{width:38px;min-height:36px;padding:5px;font-size:20px}
button.danger{color:var(--red)}

/* ============================================================================
   3. TYPOGRAFIA (h1 h2 h3 p small .muted .small .eyebrow)
   ============================================================================ */
/* l.3 */
h1,h2,h3,p{margin-top:0}
h1{font-size:29px;font-weight:600;margin-bottom:7px;letter-spacing:-.6px}
h2{font-size:20px;font-weight:600;margin-bottom:17px}
h3{font-size:16px;font-weight:600;margin-bottom:12px}
p{margin-bottom:14px}
small,.muted{color:var(--muted)}
.small{font-size:13px}
.eyebrow{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted);margin-bottom:8px;font-weight:600}

/* ============================================================================
   4. MENU BOCZNE, LOGO, NAWIGACJA (.sidebar .brand .brand-square .brand-tools .nav .user .avatar)
   ============================================================================ */
/* l.4 */
.sidebar{position:fixed;left:0;top:0;bottom:0;width:240px;background:#08090a;color:#fff;display:flex;flex-direction:column;padding:28px 0 22px;z-index:20}
.brand{margin:0 30px 40px;display:inline-block;width:77px;color:inherit}
.brand-square{width:74px;height:74px;border:1px solid #aaa;display:flex;align-items:flex-end;padding:0 7px 3px;font:42px Georgia,serif}
.brand-tools{font-size:9px;letter-spacing:8px;margin-top:5px;text-align:center;padding-left:5px}
.brand-caption{font-size:12px;color:#91999f;margin:0 28px 14px}
.nav{display:grid;gap:6px}
.nav button{
  border:0;
  border-radius:0;
  background:transparent;
  color:#ddd;
  text-align:left;
  padding:15px 27px;
  min-height:54px;
  display:flex;
  gap:17px;
  align-items:center;
  font-size:16px;
}
.nav button:hover{background:#202326;color:white}
.nav button.active{background:var(--blue);color:#131f28}
.nav svg{width:23px;height:23px;flex-shrink:0}
.sidebar-bottom{margin-top:auto;padding:24px 25px 0}
.user{display:flex;align-items:center;gap:10px;border-top:1px solid #282c30;padding-top:20px}
.avatar{width:34px;height:34px;border:1px solid #454e56;border-radius:50%;display:grid;place-items:center;font-size:12px;color:#dcebf7}
.sidebar small{color:#939fa8}

/* ============================================================================
   5. POWŁOKA I PASEK GÓRNY (.shell .topbar .workspace-location .demo-badge .top-tools)
   ============================================================================ */
/* l.5 */
.shell{margin-left:240px;min-height:100vh}
.topbar{height:66px;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;gap:16px}
/* l.6 */
.workspace-location{display:block;flex:1 1 0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#677581;font-size:13px}
.demo-badge{
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  border:1px solid #c4d6e5;
  background:#eef5fb;
  color:#365e7c;
  padding:5px 10px;
  border-radius:3px;
  white-space:nowrap;
}
.top-tools{display:flex;align-items:center;gap:15px}
.top-tools button{font-size:12px;padding:5px 8px;min-height:30px}

/* ============================================================================
   6. KONTENER I NAGŁÓWEK STRONY (.content .page-head .row .between .end)
   ============================================================================ */
/* l.6 */
.content{max-width:1450px;margin:auto;padding:35px 38px 28px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:27px}
.page-head p{margin:0;color:var(--muted)}
.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.between{justify-content:space-between}
.end{justify-content:flex-end}

/* ============================================================================
   7. KAFLE STATYSTYK (.stats .stat)
   ============================================================================ */
/* l.6 */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}
.stat{background:#fff;border:1px solid var(--line);padding:18px 23px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.stat strong{font-size:27px;font-weight:500}
.stat span{font-size:13px;color:var(--muted)}

/* ============================================================================
   8. KARTY I NAGŁÓWEK SEKCJI (.card .card-pad .section-head)
   ============================================================================ */
/* l.6 */
.card{background:#fff;border:1px solid var(--line);border-radius:5px;margin-bottom:23px}
.card-pad{padding:25px}
.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}
.section-head h2{margin:0}

/* ============================================================================
   9. WYSZUKIWARKA KLASYCZNA I PRZEŁĄCZNIK RADIO (.search-row .search-mode .check)
   ============================================================================ */
/* l.6 */
.search-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:12px}
.search-row input{min-height:46px}
.search-mode{display:flex;gap:23px;color:#526270;font-size:13px}
.search-mode label,.check{display:flex;gap:8px;align-items:center}
.search-mode input,.check input{width:auto;margin:0;accent-color:#447a9f}

/* ============================================================================
   10. POLA FORMULARZY (label.field, input, select, textarea, readonly, placeholder)
   ============================================================================ */
/* l.6 */
.input-label,label.field{display:block;color:#435460;font-size:13px;margin-bottom:6px;font-weight:500}
input,select,textarea{border:1px solid #ccd5dc;border-radius:3px;width:100%;padding:10px 12px;background:#fff;color:var(--ink);min-height:42px}
input[readonly]{background:#f6f8fa;color:#3f4d58}
input::placeholder{color:#8c979f}
textarea{min-height:78px;resize:vertical}

/* ============================================================================
   11. TABELA PODSTAWOWA (.table-scroll table thead th td td.company .cell-sub)
   ============================================================================ */
/* l.6 */
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
thead{background:#f6f8fa}
th{color:#6a7a87;font-weight:500;font-size:12px;padding:15px 17px;white-space:nowrap;border-bottom:1px solid var(--line)}
td{padding:18px 17px;border-bottom:1px solid #e8edf1;vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
td.company{min-width:170px}
td.company strong{display:block;font-size:14px;font-weight:600}
.cell-sub{display:block;font-size:11px;color:var(--muted);margin-top:3px}

/* ============================================================================
   12. ODZNAKI (.badge, .green .amber .blue .red)
   ============================================================================ */
/* l.6 */
.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:3px;font-size:11px;background:#eef1f4;color:#5c6c79;white-space:nowrap}
.badge:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.badge.green{background:#e9f4ed;color:var(--green)}
.badge.amber{background:#fff4d9;color:var(--amber)}
.badge.blue{background:#eaf2f9;color:var(--blue-dark)}
.badge.red{background:#fbecec;color:var(--red)}

/* ============================================================================
   13. STAN PUSTY I KOMUNIKATY (.empty .guide .notice .error .trail)
   ============================================================================ */
/* l.6 */
.empty{text-align:center;padding:40px 20px;color:var(--muted)}
.empty h3{color:var(--ink);margin-bottom:7px}
.empty p{max-width:480px;margin:0 auto 18px}
.guide{
  background:#eef5fa;
  border:1px solid #d4e3ee;
  border-left:3px solid #7fa8c7;
  padding:15px 18px;
  margin-bottom:24px;
  display:flex;
  gap:12px;
  align-items:flex-start;
  font-size:13px;
}
.guide p{margin:3px 0 0;color:#546875}
.guide strong{font-weight:600}
.guide-icon{color:#4e7896;font-size:19px;line-height:1.3}
.guide[hidden]{display:none}
.notice{background:#f6f8fa;border:1px solid var(--line);padding:12px 16px;margin-bottom:18px;font-size:13px;color:#586b78}
.notice.amber{background:#fff8e8;border-color:#e7d7ac;color:#745b22}
.notice.green{background:#eef8f1;border-color:#c8dfce;color:#346648}
.error{color:var(--red);font-size:13px;margin-top:8px;min-height:0}
.trail{display:flex;gap:8px;align-items:center;margin-bottom:20px;font-size:12px;color:var(--muted)}
.trail button{min-height:24px;font-size:12px}

/* ============================================================================
   14. ZAKŁADKI (.tabs)
   ============================================================================ */
/* l.6 */
.tabs{display:flex;gap:9px;overflow:auto;padding-bottom:1px;margin-bottom:26px}
.tabs button{flex:0 0 auto;min-width:100px;padding:9px 16px;font-size:13px}
.tabs button.active{background:var(--blue);border-color:#b7cfdf;color:#143b57}

/* ============================================================================
   15. TREŚĆ PROFILU: siatka pól, stopka profilu, kontakty (.profile-body .field-grid .profile-footer .contact-*)
   ============================================================================ */
/* l.6 */
.profile-body{min-height:350px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 26px;max-width:960px}
.field-grid .full{grid-column:1/-1}
.field-note{font-size:11px;color:var(--muted);margin-top:5px}
.profile-footer{border-top:1px solid var(--line);margin-top:26px;padding-top:20px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.profile-footer p{font-size:12px;color:var(--muted);margin:0}
.profile-footer .row{gap:9px}
.step-label{display:block;font-size:11px;color:var(--muted);letter-spacing:.8px;margin-bottom:4px}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.contact-entry{display:flex;gap:9px;margin-bottom:10px}
.contact-entry input{min-width:0}
.contact-entry button{flex-shrink:0}

/* ============================================================================
   16. LISTA ŹRÓDEŁ I SPINNER (.source-list .source-item .loading-dot @keyframes spin)
   ============================================================================ */
/* l.6 */
.source-list{display:grid;gap:9px}
.source-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);background:#fff}
.source-item .muted{font-size:12px}
.source-item strong{font-size:13px;font-weight:500}
.loading-dot{height:14px;width:14px;display:inline-block;border:2px solid #b5c9d8;border-top-color:#3b6586;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ============================================================================
   17. MAPA PRZEPŁYWU, DROPZONE, PANEL OCENY (.flow-* .dropzone .file-chip .review-panel)
   ============================================================================ */
/* l.6 */
.flow-map{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}
.flow-box{border:1px solid var(--line);padding:17px;background:#f8fafc}
.flow-box strong{display:block;margin-bottom:7px;font-size:14px}
.flow-box p{font-size:12px;margin:0;color:var(--muted)}
.dropzone{border:1px dashed #aebfca;padding:22px;text-align:center;background:#f8fbfd;margin-bottom:17px}
.dropzone input{border:0;background:transparent;font-size:12px;min-height:0}
.dropzone p{margin:4px 0 10px;font-size:12px;color:var(--muted)}
.file-chip{background:#f0f4f7;padding:8px 12px;margin-top:10px;font-size:12px}
.review-panel{background:#eff6fb;border:1px solid #cbdde9;padding:17px;margin-bottom:17px}

/* ============================================================================
   18. STOPKA I POWIADOMIENIE (.footer .toast)
   ============================================================================ */
/* l.6 */
.footer{color:#8b98a2;font-size:11px;display:flex;justify-content:space-between;gap:10px;padding:0 38px 24px;max-width:1450px;margin:auto}
.toast{
  position:fixed;
  bottom:25px;
  right:25px;
  background:#233642;
  color:#fff;
  padding:13px 19px;
  max-width:440px;
  box-shadow:0 5px 24px #0002;
  border-radius:4px;
  font-size:13px;
  z-index:100;
}
.toast[hidden]{display:none}

/* ============================================================================
   19. OKNO DIALOGOWE (dialog, .dialog-head .dialog-body .dialog-footer)
   ============================================================================ */
/* l.7 */
dialog{
  border:1px solid #c8d4dd;
  border-radius:6px;
  padding:0;
  color:var(--ink);
  max-width:calc(100vw - 40px);
  width:690px;
  max-height:calc(100vh - 40px);
  box-shadow:0 20px 100px #12293c33;
  background:#fff;
}
dialog::backdrop{background:#111d2c88}
.dialog-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:21px 27px}
.dialog-head h2{margin:0}
.dialog-body{padding:26px 27px}
.dialog-footer{padding:18px 27px;background:#f8fafb;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}
.dialog-body .brand{color:#17212b;margin-bottom:20px}
.dialog-body .brand-square{width:54px;height:54px;font-size:31px}
.dialog-body .brand-tools{width:54px;letter-spacing:5px;font-size:7px}

/* ============================================================================
   20. FORMULARZ NIP (.lookup) I POMOCNICZE (.tour-steps .compact .mini-input .progress-line .sep .proof-label .mobile-brand)
   ============================================================================ */
/* l.7 */
.lookup{max-width:460px;margin:0 auto;text-align:center;padding:5px 0 15px}
.lookup label{text-align:left}
.lookup .notice{text-align:left}
.lookup button.primary{margin-top:15px;min-width:245px}
.tour-steps{padding-left:22px;font-size:14px}
.tour-steps li{margin-bottom:12px}
.tour-steps small{display:block}
.compact{max-width:740px}
.mini-input{width:180px}
.progress-line{height:4px;background:#e4edf3;margin-bottom:19px;overflow:hidden}
.progress-line span{display:block;height:100%;background:#799fbb;transition:width .25s}
.sep{height:1px;background:var(--line);margin:22px 0}
.proof-label{font-size:11px;color:#68869b;text-transform:uppercase;letter-spacing:.6px}
.mobile-brand{display:none}

/* ============================================================================
   21. RESPONSYWNOŚĆ BLOKU PODSTAWOWEGO (min-width:1600px, max-width:1100px, max-width:750px, reduced-motion)
   ============================================================================ */
/* l.8 */
@media(min-width:1600px){
  .content{padding-top:45px}
  .card-pad{padding:30px}
  .sidebar{width:250px}
  .shell{margin-left:250px}
}
/* l.9 */
@media(max-width:1100px){
  .sidebar{width:200px}
  .shell{margin-left:200px}
  .content{padding:26px 25px}
  .topbar{padding:0 25px}
  .nav button{padding:14px 18px;font-size:14px;gap:12px}
  .nav svg{width:20px;height:20px}
  .top-tools{gap:8px}
  .flow-map{grid-template-columns:1fr}
  .field-grid{gap:16px}
  .page-head{align-items:flex-start}
  .stats{gap:10px}
  .stat{padding:15px}
  .table-scroll th,.table-scroll td{padding:13px}
  .contact-grid{gap:20px}
  .footer{padding:0 25px 20px}
}
/* l.10 */
@media(max-width:750px){
  .sidebar{position:static;width:auto;padding:0;display:block}
  .brand,.brand-caption,.sidebar-bottom{display:none}
  .nav{display:flex;overflow:auto;gap:0}
  .nav button{flex:0 0 auto;padding:13px;font-size:12px;min-height:45px;gap:0}
  .nav svg{display:none}
  .shell{margin:0}
  .topbar{padding:10px 16px;height:auto;flex-wrap:nowrap}
  .top-tools{width:100%;justify-content:space-between}
  .content{padding:23px 16px}
  .stats{grid-template-columns:1fr}
  .stat{padding:11px 17px}
  .stat strong{font-size:22px}
  .page-head{gap:12px}
  .page-head h1{font-size:25px}
  .page-head>button{font-size:12px;white-space:nowrap}
  .field-grid,.contact-grid{grid-template-columns:1fr}
  .field-grid .full{grid-column:auto}
  .card-pad{padding:20px}
  .profile-footer{align-items:flex-start}
  .profile-footer .row{width:100%}
  .tabs{gap:6px}
  .tabs button{font-size:12px;min-width:0;padding:8px 11px}
  .footer{padding:0 16px 18px;flex-direction:column}
  .dialog-head,.dialog-body,.dialog-footer{padding:20px}
  .dialog-footer{flex-wrap:wrap}
  .search-row{grid-template-columns:1fr}
  .toast{right:15px;bottom:15px;left:15px;max-width:none}
  .demo-badge{font-size:10px}
  .source-item{align-items:flex-start}
  .source-item .badge{font-size:10px}
  .topbar>.muted{display:none}
}
/* l.11 */
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* ============================================================================
   22. TABELE O STAŁYM UKŁADZIE (kolumny, przewijanie)
   ============================================================================ */

/* Stałe położenie tabel i ich kolumn */
/* l.14 */
html{scrollbar-gutter:stable}
/* l.15 */
.table-scroll{scrollbar-gutter:stable;overflow-anchor:none}
/* l.16 */
.company-table-section table,.record-table{table-layout:fixed;width:100%}
/* l.17 */
.company-table-section table{min-width:1080px}
/* l.18 */
.company-table-section th,.company-table-section td,.record-table th,.record-table td{overflow-wrap:anywhere}
/* l.19 */
.company-table-section th{white-space:normal}
/* l.20 */
.company-table-section td.company{min-width:0}
/* l.21 */
.company-table-section .company-name,.company-table-section .company-name-text{white-space:normal;overflow-wrap:anywhere;word-break:normal;min-width:0}
/* l.22 */
.company-table-section .company-name-text{display:block;max-width:100%;font:inherit}
/* l.23 */
.company-table-section .home-status{white-space:normal}
/* l.24 */
.company-table-section .home-status i{flex:0 0 auto}
/* l.25 */
.license-record-table{min-width:920px}
.vehicle-record-table{min-width:1100px}
/* l.26 */
@supports not (scrollbar-gutter:stable){
  html{overflow-y:scroll}
}

/* Pulpit klasyczny — układ zaakceptowany na grafice użytkownika */

/* ============================================================================
   23. PULPIT: szerokość menu (zmienna --sidebar-width) - NADPISUJE szerokości z bloków 4 i 21
   ============================================================================ */
/* l.29 */
:root{--sidebar-width:clamp(230px,19.7vw,330px)}
/* l.30 */
.sidebar{width:var(--sidebar-width)}
.shell{margin-left:var(--sidebar-width)}
/* l.31 */
body.home-view{background:#fff}
.sidebar-bottom{display:none}
/* l.32 */
.sidebar>.brand{margin-bottom:52px}
/* l.33 */
.home-view .content{max-width:none;padding:36px 36px 26px}
.home-view .footer{max-width:none;padding:0 36px 22px;justify-content:flex-end}
/* l.34 */
.home-view .footer>#storage-note{display:none}
.home-view .footer>span:first-child{font-size:11px;color:#8c96a2}

/* ============================================================================
   24. PULPIT: nagłówek powitalny, przycisk Dodaj, konto w pasku (.home-heading .home-add .topbar-account)
   ============================================================================ */
/* l.35 */
.home-heading{position:relative;min-height:124px;border-bottom:1px solid var(--line);margin-bottom:0}
/* l.36 */
.home-greeting{font-size:17px;color:#495260;margin:0 0 8px}
.home-heading h1{font-size:35px;line-height:1.25;letter-spacing:-.7px;font-weight:700;color:#0a0b0c;margin:0}
/* l.37 */
.home-add{position:static;width:220px;min-width:220px;font-size:16px;padding:10px 16px;min-height:49px;flex-shrink:0;white-space:nowrap}
/* l.38 */
button.topbar-account{display:flex;gap:10px;align-items:center;color:#6c7783;border:0;background:transparent;padding:0;min-height:39px;flex:0 0 auto}
/* l.39 */
button.topbar-account:hover:not(:disabled){background:transparent;border:0}
.topbar-account .account-dot{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid #d3d8de;
  background:#eef0f3;
  color:#222;
  font-size:15px;
  display:grid;
  place-items:center;
}
.topbar-account svg{width:18px;height:18px}

/* ============================================================================
   25. PULPIT: wyszukiwarka (.home-search*)
   ============================================================================ */
/* l.40 */
.home-search{padding:22px 0 24px;border-bottom:1px solid var(--line)}
.home-search h2{font-size:21px;margin:0 0 9px;font-weight:500;color:#111}
/* l.41 */
.home-search-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(320px,1fr) 220px;gap:20px;align-items:center}
/* l.42 */
.home-search-box{position:relative}
.home-search-box svg{position:absolute;left:15px;top:14px;width:22px;height:22px;color:#929ba6;pointer-events:none}
/* l.43 */
.home-search-box input{min-height:49px;font-size:16px;padding:11px 16px 11px 56px;border-radius:0;background:#fff}
/* l.44 */
.home-search-line .search-mode{gap:20px;font-size:15px;color:#20252a;justify-content:flex-start;flex-wrap:nowrap}
.home-search-line .search-mode label{gap:8px;white-space:nowrap}
.home-search-line .search-mode input{width:20px;height:20px;min-height:0}

/* ============================================================================
   26. PULPIT: tabela kontrahentów, filtr, stronicowanie, status (.home-table-section .company-table-* .home-status)
   ============================================================================ */
/* l.45 */
.home-table-section{padding:25px 0 26px;border-bottom:1px solid var(--line)}
/* l.46 */
.home-table-section .section-head{margin-bottom:18px}
.home-table-section h2{font-size:23px;font-weight:500;color:#111}
/* l.47 */
.company-table-section .filter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* l.48 */
.company-table-section #table-filter{width:auto;min-width:200px;font-size:14px;min-height:38px;padding:7px 12px;border-radius:0;flex-shrink:0}
/* l.49 */
.company-table-filter,.company-table-page-size{flex:0 0 auto}
/* l.50 */
.company-table-section .section-head{flex-wrap:wrap}
/* l.51 */
.company-table-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;max-width:100%}
/* l.52 */
.company-table-page-size{display:flex;align-items:center;gap:8px;font-size:14px;color:#434b57;white-space:nowrap}
/* l.53 */
.company-table-section #company-page-size{width:82px;font-size:14px;min-height:38px;padding:7px 12px;border-radius:0}
/* l.54 */
.company-table-section .table-scroll{border:1px solid #e1e5e9;border-radius:3px;max-height:none;overflow-x:auto;overflow-y:hidden}
/* l.55 */
.company-table-section .table-scroll.is-scrollable{max-height:600px;overflow-y:auto;scrollbar-gutter:stable}
/* l.56 */
.company-table-section th{position:sticky;top:0;z-index:1;background:#f6f8fa;box-shadow:inset 0 -1px 0 var(--line)}
/* l.57 */
.company-table-pagination{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;margin:0;font-size:13px;color:#5c6875}
/* l.58 */
#company-table-range{white-space:nowrap;inline-size:28ch;flex:0 0 28ch;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
/* l.59 */
.company-table-pages{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* l.60 */
.company-table-pages button{min-height:38px;padding:7px 12px;inline-size:132px;flex:0 0 132px;white-space:nowrap}
/* l.61 */
.company-table-pages button:disabled{cursor:default}
/* l.62 */
.company-table-page-number{white-space:nowrap;inline-size:18ch;flex:0 0 18ch;text-align:center;font-variant-numeric:tabular-nums}
.company-table-section table{font-size:14px}
/* l.63 */
.company-table-section th{font-size:13px;background:#eef0f3;color:#434b57;padding:15px 16px;border-right:1px solid #e2e5e9}
/* l.64 */
.company-table-section td{padding:14px 16px;border-right:1px solid #e6e9ec;font-size:14px;color:#23282d;white-space:normal}
/* l.65 */
.company-table-section td:last-child,.company-table-section th:last-child{border-right:0}
/* l.66 */
.company-table-section button.link{font-size:14px;text-decoration:underline;color:#1972c4;white-space:normal;overflow-wrap:anywhere;max-width:100%;font-weight:400}
/* l.67 */
.home-status{display:inline-flex;align-items:center;gap:12px;white-space:nowrap;font-size:14px;color:#434b57}
/* l.68 */
.home-status i{width:18px;height:18px;border-radius:50%;background:#40984e;display:block;border:1px solid #3a8c47}
/* l.69 */
.home-status.amber i{background:#d9a01b;border-color:#c79518}
.home-status.blue i{background:#5fc0e2;border-color:#53b1d2}

/* ============================================================================
   27. PULPIT: wiersz akcji i stopka podglądu (.home-actions* .home-preview-footer)
   ============================================================================ */
/* l.70 */
.home-actions{padding:22px 0 3px}
.home-actions h2{font-size:21px;font-weight:500;margin-bottom:13px;color:#111}
/* l.71 */
.home-actions-row{display:flex;gap:30px;flex-wrap:wrap}
.home-actions-row button{
  min-width:300px;
  min-height:57px;
  display:flex;
  gap:17px;
  align-items:center;
  justify-content:flex-start;
  font-size:17px;
  border-radius:3px;
  padding:13px 22px;
  background:#e4f0fa;
  border-color:#d3e3f0;
}
/* l.72 */
.home-actions-row button svg{width:27px;height:27px;color:#0d1923}
.home-actions-row button .chevron{margin-left:auto;font-size:27px;line-height:1}
/* l.73 */
.home-preview-footer{display:flex;justify-content:flex-end;gap:18px;align-items:center;margin-top:0;color:#8d98a4;font-size:11px}
.home-preview-footer button{font-size:11px;min-height:24px}

/* ============================================================================
   28. PULPIT: responsywność (max-width:1100px, 750px)
   ============================================================================ */
/* l.74 */
@media(max-width:1100px){
  .home-view .content{padding:30px 25px 24px}
  .home-search-line{gap:16px;grid-template-columns:minmax(160px,1fr) auto 200px}
  .home-search-line .search-mode{gap:18px;font-size:13px}
  .home-search-line .search-mode label{gap:8px}
  .home-heading h1{font-size:29px}
  .home-add{width:200px;min-width:200px;font-size:15px}
  .home-actions-row{gap:18px}
  .home-actions-row button{min-width:260px;font-size:15px}
  .company-table-section th,.company-table-section td{padding:13px 12px;font-size:12px}
  .home-status{font-size:12px;gap:8px}
  .home-status i{width:14px;height:14px}
  .company-table-section button.link{font-size:12px}
}
/* l.75 */
@media(max-width:750px){
  .sidebar{width:auto}
  .shell{margin-left:0}
  .home-view .content{padding:22px 16px}
  .home-heading{min-height:137px}
  .home-heading h1{font-size:28px}
  .home-greeting{font-size:14px}
  .home-add{width:200px;min-width:200px;font-size:15px;min-height:49px}
  .home-search-line{grid-template-columns:minmax(0,1fr) 200px;gap:15px}
  .home-search-box{grid-column:1/-1}
  .home-search-line .search-mode{justify-content:flex-start;gap:26px;font-size:14px}
  .home-search-box input{font-size:14px}
  .home-search h2{font-size:19px}
  .home-table-section h2{font-size:19px}
  .home-actions-row{gap:10px}
  .home-actions-row button{min-width:0;width:100%;font-size:16px}
  .home-preview-footer{flex-wrap:wrap;gap:7px;justify-content:flex-start}
  .home-view .footer{padding:0 16px 17px}
  .home-view .footer>span:first-child{font-size:10px}
}

/* Profil kontrahenta — układ z dostarczonych plansz */

/* ============================================================================
   29. PROFIL KONTRAHENTA: okno, naglowek, zakładki, stopka (.profile-window*)
   ============================================================================ */
/* l.79 */
body.profile-view{background:#f7f9fb}
/* l.80 */
.profile-view .content{max-width:none;padding:32px 16px 22px}
.profile-view .footer{max-width:none;padding:0 25px 18px;justify-content:flex-end;font-size:10px}
/* l.81 */
.profile-window{border:1px solid #c6cbd0;background:#fff;min-height:calc(100vh - 76px);padding:43px 43px 34px;display:flex;flex-direction:column}
/* l.82 */
.profile-window-head{height:138px;position:relative;display:flex;align-items:flex-start;justify-content:center}
/* l.83 */
.profile-window-head .brand{position:absolute;left:0;top:0;margin:0;color:#111;display:block}
/* l.84 */
.profile-window-head .brand-square{border-color:#6c6c6c}
.profile-window-head h1{font-size:23px;font-weight:400;letter-spacing:0;margin:28px 0 0;color:#111}
/* l.85 */
.profile-close{position:absolute;right:0;top:0;border-radius:0;font-size:21px;color:#7b858b;min-height:34px;width:34px;padding:0}
/* l.86 */
.profile-window .tabs{margin:0 30px 33px;gap:10px;justify-content:flex-start}
/* l.87 */
.profile-window .tabs button{border-radius:0;font-size:15px;min-height:36px;padding:5px 14px;min-width:105px;color:#58636c}
/* l.88 */
.profile-window .tabs button.active{background:#dcebf7;color:#2c4a61;border-color:#bfd0dc}
/* l.89 */
.profile-window .profile-body{padding:0 35px;min-height:350px;flex:1}
/* l.90 */
.profile-window .profile-footer{border:0;padding:0;margin:36px 0 0;display:flex;flex-direction:column;gap:10px}
/* l.91 */
.profile-window .profile-footer .row{justify-content:center;gap:39px;width:100%}
.profile-window .profile-footer button{border-radius:0;min-width:125px;font-size:18px;min-height:40px;padding:5px 19px;background:#fff;color:#161c21;border-color:#d1d5d8}
/* l.92 */
.profile-window .profile-footer button.primary{background:#dcebf7}
.profile-window .profile-footer p{font-size:11px;color:#75828d;align-self:flex-end}
/* l.93 */
.profile-window .profile-note{font-size:10px;color:#94a0aa;margin:13px 0 0;text-align:right}
/* l.94 */
.profile-window .section-head h2{font-size:21px;font-weight:400}
.profile-window input{border-radius:0}

/* ============================================================================
   30. PROFIL: listy rekordów i tabele (.record-top .record-list-head .record-table .record-action)
   ============================================================================ */
/* l.95 */
.record-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:14px}
/* l.96 */
.record-top .primary{border-radius:0;background:#dcebf7;padding:5px 17px;font-size:18px;min-height:37px}
/* l.97 */
.record-top .record-tools{display:flex;gap:12px;align-items:center;font-size:12px;color:#6f7c86}
/* l.98 */
.record-list-head{display:flex;align-items:center;justify-content:center;gap:120px;margin:0 0 21px}
.record-list-head h2{font-size:22px;font-weight:400;margin:0}
/* l.99 */
.record-list-head select{width:150px;padding:5px 10px;min-height:36px;font-size:13px;border-radius:0}
/* l.100 */
.record-table{font-size:14px}
/* l.101 */
.policy-record-table,.driver-record-table{table-layout:fixed;width:100%}
/* l.102 */
.policy-record-table{min-width:680px}
.driver-record-table{min-width:620px}
/* l.103 */
.record-table .record-actions-cell{width:90px;white-space:nowrap}
/* l.104 */
.policy-record-table td,.driver-record-table td{overflow-wrap:anywhere}
/* l.105 */
.record-table button.link{white-space:normal;overflow-wrap:anywhere;text-align:left}
/* l.106 */
.record-actions{display:flex;gap:4px;align-items:center;white-space:nowrap}
/* l.107 */
button.record-action{padding:4px 7px;min-height:28px;font-size:12px;line-height:1.2;flex:0 0 auto;white-space:nowrap;border-radius:3px}
/* l.108 */
button.record-action.danger,button.confirm-delete{background:#b83d3d;border-color:#b83d3d;color:#fff}
/* l.109 */
button.record-action.danger:hover:not(:disabled),button.confirm-delete:hover:not(:disabled){background:#9f3030;border-color:#9f3030}
.record-table thead{background:#fff}
.record-table th{background:#fff;font-size:14px;padding:12px 10px;border-bottom:1px solid #e9edf0;white-space:normal;color:#82919d;font-weight:400}
/* l.110 */
.record-table td{padding:14px 10px;color:#35414b;font-size:13px}
.record-number{min-width:42px;min-height:29px;padding:2px 8px;border-radius:0;color:#758591}

/* ============================================================================
   31. PROFIL: formularz rekordu, pole skanu, podgląd (.record-grid .scan-* .inline-scan-review)
   ============================================================================ */
/* l.111 */
.record-grid{display:grid;grid-template-columns:minmax(190px,34%) minmax(240px,1fr);gap:16px 18px;margin-right:12%;align-items:start}
/* l.112 */
.record-grid label{font-size:17px;color:#1b1e22;margin:0;padding-top:1px;line-height:1.3}
/* l.113 */
.record-grid input{border-radius:0;padding:2px 9px;min-height:29px;height:30px;font-size:15px;line-height:1.3}
/* l.114 */
.record-grid .scan-stack{min-width:0}
.scan-drop{border:1px dashed #d5dfeb;padding:17px;text-align:center;background:#f3f7fc;min-height:104px;display:grid;justify-items:center;gap:6px}
/* l.115 */
.scan-drop svg{width:38px;height:38px;color:#176abc}
.scan-drop .file-picker{font-weight:600;color:#1263a7;background:transparent;border:0;font-size:15px;padding:2px 6px;min-height:26px}
.scan-drop span{font-size:12px;color:#657885}
/* l.116 */
.scan-drop.dragging{background:#dcecf8;border-color:#5181a6}
.scan-file-info{font-size:11px;color:#71818e;margin:7px 0 9px}
/* l.117 */
.scan-preview{width:100%;margin-top:13px;background:#fff;min-height:40px}
.scan-document{border:1px solid #e3e9ef}
.scan-document+.scan-document{margin-top:16px}
.scan-document-name{padding:8px 10px;background:#f7f9fb;font-size:12px;overflow-wrap:anywhere}
.scan-preview.empty{padding:13px;text-align:left;font-size:12px;color:#8b959d}
/* l.118 */
.scan-preview img{display:block;width:100%;height:auto;object-fit:contain}
.scan-preview object{display:block;width:100%;height:570px}
.scan-preview .preview-actions{display:flex;gap:15px;padding:7px 10px;font-size:12px;background:#f7f9fb}
/* l.119 */
.scan-preview .preview-actions button{font-size:12px;min-height:24px}
.scan-full img{display:block;max-width:100%;height:auto;margin:auto}
.scan-full object{width:100%;height:70vh;display:block}
/* l.120 */
.inline-scan-review{margin-top:13px;font-size:12px}
.inline-scan-review .check{align-items:flex-start;font-size:12px}
.inline-scan-review input{width:16px;height:16px;min-height:16px;margin-top:2px}
/* l.121 */
.record-grid .subnote{grid-column:2;font-size:11px;color:#7e8c97}
.driver-empty{padding:70px 10px;text-align:center;color:#85929c}

/* ============================================================================
   32. PROFIL: responsywność (max-width:1100px, 750px)
   ============================================================================ */
/* l.122 */
@media(max-width:1100px){
  .profile-window{padding:33px 32px 27px}
  .profile-window .tabs{margin:0 0 30px;gap:10px}
  .profile-window .tabs button{font-size:13px;padding:5px 9px;min-width:85px}
  .profile-window .profile-body{padding:0 15px}
  .record-grid{margin-right:4%;grid-template-columns:33% 1fr}
  .record-grid label{font-size:15px}
  .profile-window .profile-footer .row{gap:20px}
  .profile-window .profile-footer button{font-size:16px;min-width:110px}
  .record-list-head{gap:70px}
}
/* l.123 */
@media(max-width:750px){
  .profile-view .content{padding:12px 10px}
  .profile-window{padding:22px 18px;min-height:calc(100vh - 35px)}
  .profile-window-head{height:110px}
  .profile-window-head h1{font-size:21px;margin-top:22px}
  .profile-window-head .brand-square{width:54px;height:54px;font-size:31px}
  .profile-window-head .brand-tools{width:54px;font-size:7px;letter-spacing:5px}
  .profile-window-head .brand{width:54px}
  .profile-close{width:29px;min-height:29px}
  .profile-window .tabs{justify-content:flex-start;margin-bottom:24px;gap:10px}
  .profile-window .tabs button{font-size:12px;min-width:0;padding:6px 9px}
  .profile-window .profile-body{padding:0;min-height:300px}
  .record-grid{grid-template-columns:1fr;margin:0;gap:9px}
  .record-grid label{margin-top:7px}
  .record-grid input{height:36px;min-height:36px}
  .record-grid .subnote{grid-column:1}
  .profile-window .profile-footer .row{gap:8px;flex-wrap:wrap}
  .profile-window .profile-footer button{font-size:14px;min-width:100px}
  .profile-window .profile-footer{margin-top:27px}
  .record-list-head{gap:17px;justify-content:space-between}
  .record-list-head h2{font-size:20px}
  .record-top{align-items:flex-start;flex-wrap:wrap}
  .record-top .primary{font-size:15px}
  .record-top .record-tools{font-size:11px}
  .scan-preview object{height:430px}
  .profile-window .profile-footer p{align-self:flex-start;text-align:left}
  .profile-window .profile-note{text-align:left}
}

/* ============================================================================
   33. POJAZDY I KIEROWCY: wpisy, PESEL, zgoda (.vehicle-entry .driver-entry .pesel-feedback .driver-consent)
   ============================================================================ */
/* l.125 */
.vehicle-entry+.vehicle-entry,.driver-entry+.driver-entry{margin-top:30px;padding-top:25px;border-top:1px solid #dce4eb}
.vehicle-entry>h3,.driver-entry>h3{font-size:18px;font-weight:500;margin:0 0 16px}
.record-grid select{border-radius:0;min-height:30px;padding:2px 9px;font-size:15px}
/* l.126 */
.pesel-feedback{font-size:12px;color:#6c7e8d;margin:7px 0 0}
.pesel-feedback.valid{color:#287944}
.pesel-feedback.invalid{color:#ad3636}
.driver-consent{display:flex;align-items:flex-start;gap:10px;margin:27px 12% 0 0;font-size:15px;line-height:1.5}
.driver-consent input{width:18px;height:18px;min-height:18px;margin:3px 0 0;flex:0 0 auto}
.driver-demo-note{margin-top:22px}
/* l.127 */
@media(max-width:750px){
  .driver-consent{margin-right:0;font-size:14px}
}

/* Błędy przy polach i jednoznaczne przejścia do list */

/* ============================================================================
   34. BŁĘDY PRZY POLACH I KLIKALNE WIERSZE (.validation-control .field-warning .has-field-error tr[data-action])
   ============================================================================ */
/* l.130 */
.visually-hidden{
  position:absolute!important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
/* l.131 */
.validation-control{position:relative;min-width:0}
.validation-control>input,.validation-control>select{width:100%}
/* l.132 */
.validation-control.has-field-error>input,.validation-control.has-field-error>select{
  border-color:#c53838;
  background:#fff5f5;
  box-shadow:inset 0 0 0 1px #c53838;
  padding-right:36px;
}
/* l.133 */
.field-warning{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#bd2828;display:none;z-index:1}
/* l.134 */
.field-warning[hidden]{display:none}
.field-warning svg{display:block;width:18px;height:18px}
.has-field-error>.field-warning{display:block}
/* l.135 */
.field-warning:hover::after,.field-warning:focus-visible::after{
  content:attr(data-message);
  position:absolute;
  right:0;
  top:25px;
  width:max-content;
  max-width:min(300px,65vw);
  white-space:normal;
  padding:8px 11px;
  background:#fff;
  color:#952828;
  border:1px solid #e0aaaa;
  border-radius:3px;
  box-shadow:0 3px 12px #0002;
  font-size:12px;
  line-height:1.4;
  z-index:5;
}
/* l.136 */
.contact-entry .validation-control{flex:1;min-width:0}
/* l.137 */
.scan-drop.has-field-error{border-color:#c53838;background:#fff5f5;box-shadow:inset 0 0 0 1px #c53838}
/* l.138 */
.inline-scan-review.validation-control{padding-right:30px}
.inline-scan-review.has-field-error{outline:1px solid #c53838;outline-offset:3px;background:#fff5f5}
/* l.139 */
.scan-drop>.field-warning,.inline-scan-review>.field-warning{top:12px;transform:none}
/* l.140 */
.record-table tr[data-action]{cursor:pointer}
.record-table tr[data-action]:hover>td,.record-table tr[data-action]:focus-visible>td{background:#dcebf7}
.record-table tr[data-action]:focus-visible{outline:2px solid #4b89b8;outline-offset:-2px}
/* l.141 */
.record-top{flex-wrap:wrap}
.record-top .record-tools{flex-wrap:wrap;justify-content:flex-end}
.record-bottom-actions{margin-top:18px}
.driver-next-action{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}
/* l.142 */
.record-bottom-actions .primary,.driver-next-action .primary{border-radius:0;background:#dcebf7;padding:5px 17px;font-size:18px;min-height:37px}
/* l.143 */
@media(max-width:750px){
  .record-bottom-actions .primary,.driver-next-action .primary{font-size:15px}
  .record-top .record-tools{max-width:100%}
}

/* Pulpit: obszary pracy, wyszukiwanie kierowców i rozdzielenie podglądu od edycji */

/* ============================================================================
   35. PULPIT: obszary pracy (.home-areas .home-area-*)
   ============================================================================ */
/* l.147 */
.home-areas{padding:23px 0 25px;border-bottom:1px solid var(--line)}
.home-areas>p{font-size:15px;color:#687581;margin-bottom:15px}
/* l.148 */
.home-area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
/* l.149 */
button.home-area-card{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  grid-template-rows:1fr auto;
  gap:15px 19px;
  align-content:stretch;
  text-align:left;
  border:1px solid #c6dff1;
  border-radius:5px;
  padding:25px;
  background:linear-gradient(120deg,#f4f9fd,#edf5fc);
  min-height:208px;
  color:#111;
}
/* l.150 */
button.home-area-card:hover:not(:disabled){background:#e7f2fa;border-color:#98c2df}
/* l.151 */
.home-area-card>svg{width:46px;height:46px;align-self:start}
.home-area-text strong{display:block;font-size:19px;line-height:1.3;margin:3px 0 12px;font-weight:600}
.home-area-text>span{display:block;color:#66717a;font-size:15px;line-height:1.5}
/* l.152 */
.home-area-start{
  grid-column:1/-1;
  justify-self:start;
  align-self:end;
  background:#dcebf7;
  border:1px solid #bed1df;
  border-radius:3px;
  font-size:15px;
  font-weight:600;
  padding:8px 24px;
  margin-top:8px;
}
/* l.153 */
.home-search-line{grid-template-columns:minmax(180px,2fr) minmax(320px,1fr) 220px;gap:20px}
.home-search-line .search-mode{gap:20px;flex-wrap:wrap}
/* l.154 */
.home-search-note{font-size:12px;color:#75828c;margin:9px 0 0}

/* ============================================================================
   36. PULPIT: klikalne wiersze tabeli kontrahentów, tryb profilu (.profile-mode)
   ============================================================================ */
/* l.155 */
.company-table-section tr[data-action]{cursor:pointer}
.company-table-section tr[data-action]:hover>td,.company-table-section tr[data-action]:focus-visible>td{background:#dcebf7}
/* l.156 */
.company-table-section tr[data-action]:focus-visible{outline:2px solid #4b89b8;outline-offset:-2px}
/* l.157 */
.company-table-section tr[data-action]:hover button.link{background:transparent}
/* l.158 */
.company-table-section td[data-independent-action]{cursor:default}
/* l.159 */
.profile-mode{
  position:absolute;
  top:69px;
  left:50%;
  transform:translateX(-50%);
  margin:0;
  white-space:nowrap;
  font-size:12px;
  padding:3px 10px;
  background:#eef3f7;
  border:1px solid #d8e2e9;
  color:#526775;
}
/* l.160 */
.profile-mode.edit-mode{background:#eaf5ed;border-color:#c7ddcd;color:#316448}

/* ============================================================================
   37. PULPIT: responsywność obszarów pracy i wyszukiwania (max-width:1100px, 850px)
   ============================================================================ */
/* l.161 */
@media(max-width:1100px){
  .home-search-line{grid-template-columns:minmax(160px,1fr) auto 200px;gap:16px}
  .home-search-line .search-mode{gap:14px}
  .home-search-line .search-mode label{gap:6px}
  .home-area-grid{gap:14px}
  button.home-area-card{padding:19px;grid-template-columns:35px minmax(0,1fr);gap:12px;min-height:220px}
  .home-area-card>svg{width:35px;height:35px}
  .home-area-text strong{font-size:16px}
  .home-area-text>span{font-size:13px}
}
/* l.162 */
@media(max-width:850px){
  .home-area-grid{grid-template-columns:1fr}
  button.home-area-card{min-height:0;grid-template-columns:40px minmax(0,1fr)}
  .home-area-text strong{font-size:18px}
  .home-area-text>span{font-size:14px}
  .home-area-start{margin-top:2px}
  .home-search-line .search-mode{gap:19px}
  .profile-mode{font-size:10px;top:64px}
}

/* ============================================================================
   38. NAGŁÓWEK WYSZUKIWANIA (.home-search-heading) i responsywność (950px, 750px, 800px)
   ============================================================================ */
/* l.164 */
.home-search-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:9px}
.home-search-heading h2{margin:0}
/* l.165 */
@media(max-width:950px){
  .home-search-line{grid-template-columns:minmax(0,1fr) 200px;gap:14px 16px}
  .home-search-box{grid-column:1/-1}
  .home-search-line .search-mode{gap:18px;font-size:14px}
}
/* l.166 */
@media(max-width:750px){
  .home-search-heading{flex-wrap:wrap;gap:10px}
}
/* l.167 */
@media(max-width:800px){
  .home-search-line{grid-template-columns:minmax(0,1fr)}
  .home-search-line .search-mode{flex-wrap:wrap}
  .home-search-line .home-add{width:200px;max-width:100%;min-width:0;justify-self:start}
}

/* ============================================================================
   39. ZAŁĄCZNIKI, KRAJ (FLAGA), PODGLĄD DEMO (.attachment-* .country-* .demo-attachment-preview)
   ============================================================================ */
/* l.169 */
.attachment-cell{white-space:normal;overflow-wrap:anywhere;word-break:normal}
/* l.170 */
.attachment-links{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 10px;min-width:0;max-width:100%}
/* l.171 */
.attachment-links .attachment-link{
  display:inline-block;
  flex:0 1 auto;
  min-width:0;
  max-width:100%;
  min-height:24px;
  padding:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
  text-align:left;
  line-height:1.5;
}
/* l.172 */
.company-data-table td.company-country{padding-left:6px;padding-right:6px}
/* l.173 */
.country-label{display:flex;align-items:center;flex-wrap:wrap;gap:3px 4px;min-width:0;max-width:100%}
/* l.174 */
.country-flag{display:block;flex:0 0 16px;width:16px;height:12px;object-fit:contain;outline:1px solid #dce4eb;outline-offset:0}
/* l.175 */
.country-code{min-width:0;overflow-wrap:anywhere}
/* l.176 */
.demo-attachment-preview{max-width:800px;margin:0 auto;padding:24px;border:1px solid #cbdbe9;background:#fff}
/* l.177 */
.demo-document-label{font-size:12px;color:#526c83;letter-spacing:.04em}
/* l.178 */
.demo-attachment-preview dl{margin-top:24px}
/* l.179 */
.demo-attachment-preview dl div{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:12px;padding:12px 0;border-top:1px solid #e3e9ef}
/* l.180 */
.demo-attachment-preview dt{color:#637384}
.demo-attachment-preview dd{margin:0;overflow-wrap:anywhere}
/* l.181 */
.attachment-unavailable{padding:16px;max-width:800px;margin:auto;overflow-wrap:anywhere}
/* l.182 */
@media(max-width:600px){
  .demo-attachment-preview{padding:16px}
  .demo-attachment-preview dl div{grid-template-columns:1fr}
}

/* ============================================================================
   40. TYP KONTRAHENTA (.contractor-type*)
   ============================================================================ */
/* l.183 */
.contractor-type{border:0;padding:0;margin:0;min-width:0}
.contractor-type-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.contractor-type-label{font-size:14px;font-weight:600;white-space:nowrap}
.contractor-type .search-mode{justify-content:flex-start;align-items:center;gap:20px;flex-wrap:nowrap;margin:0}
.contractor-type .search-mode label{display:inline-flex;align-items:center;white-space:nowrap}
.contractor-type p{margin:8px 0 0}
.contractor-type-control.has-field-error{outline:1px solid #c53838;outline-offset:6px}

/* ============================================================================
   41. WYNIKI WERYFIKACJI W BAZACH, widok super admina (.registry-*)
   ============================================================================ */
/* l.184 */
.registry-admin-panel{margin-top:10px}
.registry-group{border:1px solid #dce2e7;background:#f2f3f4;font-size:13px;color:#17212b}
.registry-group summary{list-style:none;cursor:pointer}
.registry-group summary::-webkit-details-marker{display:none}
.registry-group summary:focus-visible{outline:2px solid #4b89b8;outline-offset:-2px}
.registry-group>summary{display:flex;align-items:center;gap:12px;padding:15px 16px;border-bottom:1px solid #dce2e7}
.registry-admin-label{margin-left:auto;font-size:11px;color:#677581}
.registry-panel-note{padding:12px 18px;margin:0;border-bottom:1px solid #dce2e7;font-size:12px;color:#677581}
/* l.185 */
.registry-source{border-bottom:1px solid #dce2e7}
.registry-source:last-child{border-bottom:0}
.registry-source>summary{display:grid;grid-template-columns:18px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:13px 16px;min-height:44px}
.registry-source>summary:hover{background:#e9edf0}
.registry-toggle{display:inline-flex;align-items:center;gap:8px;color:#39749c;font-size:11px;white-space:nowrap}
.registry-chevron{display:inline-block;color:#7d8992;transition:transform .15s}
.registry-group details[open]>summary .registry-chevron,.registry-group[open]>summary>.registry-chevron{transform:rotate(180deg)}
.registry-group .collapse-text{display:none}
.registry-group details[open]>summary .expand-text{display:none}
.registry-group details[open]>summary .collapse-text{display:inline}
/* l.186 */
.registry-state-icon{font-size:15px}
.registry-source-state{font-size:11px;white-space:nowrap}
.registry-source-state.pending,.registry-state-icon.pending,.registry-source-state.not-applicable,.registry-state-icon.not-applicable{color:#74818a}
.registry-source-state.done,.registry-state-icon.done{color:#26704d}
.registry-source-state.partial,.registry-state-icon.partial{color:#8a620c}
.registry-source-state.error,.registry-state-icon.error{color:#ae3d3d}
/* l.187 */
.registry-source-body{padding:16px 20px;background:#fff;border-top:1px solid #dce2e7}
.registry-fields{display:grid;grid-template-columns:minmax(160px,30%) minmax(0,1fr);gap:0;margin:0}
.registry-fields dt,.registry-fields dd{padding:9px 10px;border-bottom:1px solid #edf0f2;margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.registry-fields dt{color:#677581}
.registry-fields dd{font-weight:500}
.registry-sublist{margin-top:16px;border:1px solid #dce2e7;background:#f8fafb}
.registry-sublist>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px}
.registry-data-table{width:100%;border-collapse:collapse;font-size:12px}
.registry-data-table th,.registry-data-table td{padding:11px 13px;border-top:1px solid #dce2e7;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.registry-attempts{margin:0;padding:0 18px 14px 38px}
.registry-attempts li{padding-top:12px}
.registry-attempts strong{display:block;margin-bottom:7px}
/* l.188 */
@media(max-width:750px){
  .registry-source>summary{grid-template-columns:16px minmax(0,1fr) auto;gap:8px}
  .registry-source-state{grid-column:2;grid-row:2}
  .registry-toggle{grid-column:3;grid-row:1/3}
  .registry-source-body{padding:13px 10px}
  .registry-fields{grid-template-columns:minmax(120px,40%) minmax(0,1fr)}
  .registry-fields dt,.registry-fields dd{padding:8px 5px}
  .registry-admin-label{display:none}
}

/* ============================================================================
   42. OKNO WERYFIKACJI NIP (.verification-*)
   ============================================================================ */
/* l.189 */
.verification-window-head{display:grid;grid-template-columns:77px minmax(0,1fr) 77px;align-items:end;gap:18px;margin-bottom:14px}
.verification-window .brand{display:block;margin:0;width:77px;color:#17212b}
.verification-window-head h2{margin:0;text-align:center;font-size:23px;font-weight:500;line-height:1.25}
.verification-window .lookup{padding:0}
.verification-window .lookup-help{margin:12px 0 0;text-align:center;font-size:13px;color:#677581;line-height:1.5}
.verification-recent .section-head{margin-bottom:18px}
.verification-recent h2{font-size:23px;font-weight:500;color:#111}
.verification-recent-note{margin:12px 0 0}
/* l.190 */
@media(max-width:750px){
  .verification-window-head{grid-template-columns:54px minmax(0,1fr) 54px;gap:10px}
  .verification-window .brand{width:54px}
  .verification-window .brand-square{width:54px;height:54px;font-size:31px}
  .verification-window .brand-tools{width:54px;font-size:7px;letter-spacing:5px}
  .verification-window-head h2{font-size:20px}
  .verification-recent h2{font-size:20px}
}

/* Licencje, Polisy i Pojazdy: formularz po lewej, jeden ciąg stron po prawej. */

/* ============================================================================
   43. LICENCJE, POLISY, POJAZDY: układ dwukolumnowy, podgląd dokumentów (.license-*)
   ============================================================================ */
/* l.193 */
.license-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:16px;align-items:center;margin-bottom:22px}
/* l.194 */
.license-actions>button:first-child{justify-self:start}
.license-actions>button:nth-child(2){justify-self:center}
.license-actions>button:last-child{justify-self:end}
/* l.195 */
.license-actions button{min-height:38px;padding:8px 14px}
.license-actions button:disabled{opacity:.6;cursor:default}
/* l.196 */
.license-detail-layout{display:grid;grid-template-columns:minmax(0,44fr) minmax(0,56fr);gap:24px;align-items:start}
/* l.197 */
.license-detail-layout form{min-width:0}
.license-detail-layout .record-grid{grid-template-columns:minmax(135px,44%) minmax(0,1fr);gap:14px 14px;margin:0;align-items:start}
/* l.198 */
.license-detail-layout .record-grid label{font-size:16px;line-height:1.45;padding-top:5px}
/* l.199 */
.license-detail-layout .record-grid input,.license-detail-layout .record-grid select{width:100%;min-width:0;height:31px;box-sizing:border-box}
/* l.200 */
.license-detail-layout .scan-stack,.license-detail-layout .validation-control{min-width:0}
/* l.201 */
.license-detail-layout .scan-drop{min-height:145px;margin:0}
.license-detail-layout .scan-file-info{overflow-wrap:anywhere}
/* l.202 */
.license-document-stream{
  height:clamp(450px,65vh,800px);
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  background:#dcecf8;
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
/* l.203 */
.license-document-page{flex:0 0 auto;margin:0;background:#fff;width:100%;min-width:0;overflow:hidden}
/* l.204 */
.license-document-page img,.license-document-page canvas{display:block;width:100%;height:auto;margin:0}
/* l.205 */
.license-image-pending{min-height:180px}
/* l.206 */
.license-pdf-page{position:relative}
.license-pdf-page:empty:after{content:'Przygotowywanie strony…';position:absolute;top:25px;left:15px;color:#6b7883;font-size:12px}
/* l.207 */
.license-preview-placeholder{margin:auto;padding:28px;text-align:center;color:#526c80;line-height:1.7}
/* l.208 */
.license-page-loading,.license-page-error{margin:0;padding:16px;background:#fff;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
/* l.209 */
.license-page-error{color:#9a3434}
/* l.210 */
.license-file-list{list-style:decimal;padding-left:20px;margin:12px 0;max-width:100%;font-size:12px}
/* l.211 */
.license-file-list li{padding:7px 0;border-bottom:1px solid #e4e9ed}
.license-file-list li>span{display:block;overflow-wrap:anywhere}
/* l.212 */
.license-file-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
.license-file-actions button{padding:4px 6px;min-height:25px;font-size:11px}
/* l.213 */
.license-legacy-note{margin:10px 0;font-size:12px;line-height:1.5;color:#657481}
/* l.214 */
@media(max-width:1000px){
  .license-actions{grid-template-columns:1fr 1fr}
  .license-actions>button:nth-child(2){grid-column:1/-1;grid-row:2}
  .license-detail-layout{gap:18px}
  .license-detail-layout .record-grid{grid-template-columns:1fr;gap:6px}
  .license-detail-layout .record-grid label{margin-top:8px}
}
/* l.215 */
@media(max-width:750px){
  .license-actions{display:flex;flex-wrap:wrap;justify-content:space-between}
  .license-actions>button{flex:1 1 200px}
  .license-detail-layout{grid-template-columns:1fr}
  .license-detail-layout .record-grid{grid-template-columns:minmax(135px,40%) minmax(0,1fr);gap:12px}
  .license-document-stream{height:65vh;min-height:400px}
}
/* l.216 */
@media(max-width:420px){
  .license-detail-layout .record-grid{grid-template-columns:1fr;gap:6px}
}
