:root{--ink:#1c293f;--muted:#8090a5;--line:#e9eef5;--soft:#f5f7fc;--accent:#3168ed;--accent-hover:#2558d4;--navy:#15213a;--shadow:0 8px 28px rgba(22,43,77,.035);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f5f7fb;min-width:320px}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.35}a{text-decoration:none;color:inherit}.svg-symbols{position:absolute;width:0;height:0;overflow:hidden}.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:flex;min-height:100vh}.sidebar{width:256px;background:var(--navy);color:#c5cfe3;display:flex;flex-direction:column;flex-shrink:0;min-height:100vh;position:sticky;top:0;height:100vh}.brand{padding:33px 24px 48px;display:flex;align-items:center;gap:12px}.brand-mark{height:40px;width:40px;border-radius:12px;background:#4575f0;display:flex;align-items:center;justify-content:center;color:white;box-shadow:0 5px 14px #08102950}.brand-mark .icon{width:24px;height:24px}.brand strong{display:block;font-size:16px;letter-spacing:-.3px;color:white}.brand span{display:block;color:#7f91b6;font-size:11px;margin-top:2px}.sidebar-caption{padding:0 25px;color:#617492;letter-spacing:1.6px;font-size:10px;font-weight:800;margin-bottom:18px}.sidebar-nav{display:grid;gap:5px;padding:0 12px}.nav-item{border-radius:9px;display:flex;align-items:center;gap:13px;padding:14px 12px;font-size:13px;font-weight:570;color:#aebbd4}.nav-item .icon{width:19px;height:19px}.nav-item.active{background:#293a5c;color:white}.nav-item.active .icon{color:#82a6ff}.nav-item:not(.disabled):hover{background:#263654;color:#fff}.nav-item.disabled{opacity:.52;cursor:default}.nav-count{margin-left:auto;background:#ffffff19;padding:2px 8px;border-radius:7px;font-size:11px}.coming{font-size:10px;margin-left:auto;border-radius:4px;color:#8193b4}.sidebar-bottom{margin:auto 20px 25px;padding:17px 5px 5px;border-top:1px solid #ffffff17;display:flex;gap:10px;align-items:flex-start}.sidebar-bottom strong{font-size:12px;color:#e4eaf6;display:block}.sidebar-bottom small{font-size:10px;line-height:20px;color:#8797b6;display:block}.status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#29c38d;box-shadow:0 0 0 3px #29c38d1c;flex-shrink:0;margin-top:5px}.main{min-width:0;flex:1}.topbar{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 43px}.breadcrumbs{font-size:12px;color:#8b98aa;font-weight:600}.breadcrumbs span{margin:0 12px;color:#c3ccd9}.top-tag{font-size:11px;border:1px solid var(--line);padding:9px 12px;border-radius:10px;display:flex;align-items:center;gap:10px;color:#687990;background:#fff}.top-tag .status-dot{margin-top:0}.content{max-width:1440px;padding:40px 43px 35px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:29px;gap:20px}.eyebrow,.panel-eyebrow{letter-spacing:1.5px;font-weight:800;font-size:10px;color:#6287da}.page-heading h1{font-size:32px;line-height:1.25;letter-spacing:-1.2px;margin:9px 0 8px;color:#192841}.h1-dot{color:#4575ee}.page-heading p{font-size:13px;color:#8c9ab0;margin:0}.date-pill{border:1px solid #e8edf5;background:white;border-radius:10px;color:#6f7e95;padding:11px 16px;font-size:12px;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:28px}.stat-card{background:white;border:1px solid var(--line);border-radius:15px;padding:23px 26px;box-shadow:var(--shadow)}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#77879d;font-size:12px;font-weight:650}.stat-icon{height:37px;width:37px;display:flex;align-items:center;justify-content:center;border-radius:11px}.stat-icon.blue{background:#ebf1ff;color:#4b77e8}.stat-icon.purple{background:#f0edff;color:#8a6be5}.stat-icon.orange{background:#fff2e9;color:#ef975c}.stat-number{font-size:34px;line-height:1.3;letter-spacing:-1.5px;font-weight:760;color:#1c293d;margin-top:2px}.stat-note{font-size:11px;color:#98a5b8;margin-top:7px}.list-panel{background:white;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.panel-heading{padding:29px 29px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-heading h2{font-size:21px;letter-spacing:-.5px;margin:6px 0 6px;color:#1b2c44}.panel-heading p{color:#99a5b4;font-size:12px;margin:0}.heading-count{font-size:12px;letter-spacing:0;background:#edf2fa;color:#657994;vertical-align:middle;border-radius:8px;padding:4px 9px;margin-left:6px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:none;border-radius:9px;padding:12px 18px;font-size:12px;font-weight:700;white-space:nowrap;transition:background .15s,transform .15s}.btn:active{transform:translateY(1px)}.btn-primary{background:var(--accent);color:white;box-shadow:0 5px 13px #3168ed27}.btn-primary:hover{background:var(--accent-hover)}.btn .icon{width:17px;height:17px}.btn-secondary{background:#f0f3f8;color:#60718a}.btn-secondary:hover{background:#e6ecf4}.btn-danger{background:#da4559;color:white}.btn-danger:hover{background:#c32e43}.table-toolbar{padding:15px 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fcfdff;display:flex;align-items:center;justify-content:space-between;gap:18px}.searchbox{background:white;display:flex;align-items:center;gap:11px;border:1px solid #e6ebf3;border-radius:9px;padding:0 13px;width:min(100%,415px);color:#abb6c6}.searchbox .icon{height:16px;width:16px}.searchbox input{border:0;outline:0;background:transparent;height:39px;width:100%;font-size:12px;color:#314158}.searchbox input::placeholder{color:#b1bdcb}.searchbox:focus-within{border-color:#94b2ff;box-shadow:0 0 0 3px #3168ed16}.results-count{font-size:11px;color:#9daaba;white-space:nowrap}.table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;text-align:left;min-width:780px}.data-table th{font-size:10px;font-weight:800;letter-spacing:1.06px;color:#a3afbd;padding:16px 28px;background:#fff;border-bottom:1px solid #eef1f5;white-space:nowrap}.data-table td{border-bottom:1px solid #f0f2f7;padding:18px 28px;font-size:12px;vertical-align:middle}.data-table tbody tr:hover{background:#fafcff}.data-table tbody tr:last-child td{border-bottom:none}.data-table tbody tr[hidden]{display:none}.person-cell,.vehicle-cell{display:flex;align-items:center;gap:13px}.avatar,.vehicle-avatar{height:38px;width:38px;border-radius:11px;flex-shrink:0;background:#e9efff;color:#4d72dc;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:850}.vehicle-avatar{background:#f0efff;color:#7965d5}.vehicle-avatar .icon{height:21px;width:21px}.cell-primary{font-size:12px;font-weight:750;color:#314058;white-space:nowrap}.cell-primary.small{font-size:12px}.cell-secondary{font-size:11px;color:#9ba8b9;margin-top:4px;white-space:nowrap}.location-cell{font-size:12px;color:#6d7e94}.plate{display:inline-block;margin-top:5px;padding:2px 7px;background:#f2f5fa;border:1px solid #e1e7f0;border-radius:4px;font-weight:800;letter-spacing:.3px;font-size:10px;color:#536279}.count-pill{border-radius:7px;background:#f1f5fb;color:#7b8ba1;padding:6px 10px;font-size:11px;font-weight:650;white-space:nowrap}.count-pill.has-entries{background:#fff4dc;color:#b5842d}.date-cell{color:#98a5b7;font-size:11px!important;white-space:nowrap}.actions-heading{text-align:right!important}.row-actions{display:flex;justify-content:flex-end;gap:5px}.icon-btn{background:transparent;color:#7f90a9;width:31px;height:31px;border:1px solid transparent;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;padding:0}.icon-btn:hover:not(:disabled){color:#2c61df;background:#edf3ff;border-color:#dce6ff}.icon-btn.danger:hover:not(:disabled){color:#d33e55;background:#fff0f3;border-color:#ffdae1}.icon-btn .icon{height:16px;width:16px}.panel-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 28px;border-top:1px solid var(--line);font-size:10px;color:#a6b2c0}.bottom-note{display:flex;align-items:center;justify-content:center;gap:9px;color:#a3adbc;font-size:11px;margin-top:26px;text-align:center}.bottom-note .icon{width:14px;height:14px}.empty-state{text-align:center;padding:60px 20px 64px}.empty-state[hidden]{display:none}.empty-symbol{margin:0 auto 14px;height:50px;width:50px;border-radius:14px;background:#eef3ff;color:#5681ed;display:flex;align-items:center;justify-content:center}.empty-symbol .icon{width:24px;height:24px}.empty-state h3{font-size:16px;margin:8px 0}.empty-state p{font-size:12px;color:#99a5b7}.alert{display:flex;align-items:center;gap:10px;border-radius:10px;padding:14px 17px;margin-bottom:18px;font-size:12px}.alert-success{background:#e8f8f1;color:#207852;border:1px solid #cdeedb}.alert-error{background:#fff0f2;color:#ac3349;border:1px solid #f9d4da}.alert .icon{width:17px;height:17px}.modal{padding:0;border:1px solid #e6eaf1;border-radius:17px;box-shadow:0 25px 85px #07152659;max-width:min(95vw,525px);width:100%;max-height:92vh;overflow:auto;color:var(--ink)}.modal::backdrop{background:rgba(19,33,55,.57);backdrop-filter:blur(2px)}.modal-small{max-width:min(95vw,445px)}.modal-header{padding:25px 29px 22px;display:flex;align-items:start;justify-content:space-between;gap:12px;border-bottom:1px solid #eff2f7}.modal-header h2{font-size:23px;letter-spacing:-.6px;margin:7px 0}.modal-header p{font-size:12px;color:#94a1b3;margin:0}.modal-body{padding:25px 29px;display:grid;gap:19px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:720;color:#52647b}.field span{color:#ed7380}.field input,.field select{background:#fff;width:100%;border:1px solid #dfe6ef;border-radius:9px;height:43px;padding:0 12px;outline:0;font-size:13px;font-weight:450;color:#23344d}.field input:focus,.field select:focus{border-color:#7295f8;box-shadow:0 0 0 3px #386af319}.field input::placeholder{color:#b3becc}.field small{font-size:11px;font-weight:450;color:#a4adbb}.modal-footer{display:flex;justify-content:flex-end;gap:10px;background:#fafbfd;border-top:1px solid #eff2f7;padding:19px 29px}.danger-text{color:#d74b62}.delete-confirm-label{font-size:15px;font-weight:750;margin:0}.delete-warning{font-size:12px;color:#9b6a60;margin:0;line-height:1.7}@media(max-width:1200px){.sidebar{width:223px}.brand{padding-left:18px}.topbar{padding:0 27px}.content{padding:32px 27px}.data-table td,.data-table th{padding-left:17px;padding-right:17px}}@media(max-width:850px){.shell{display:block}.sidebar{width:100%;height:auto;min-height:0;position:static}.brand{padding:18px 22px}.sidebar-caption,.sidebar-bottom{display:none}.sidebar-nav{display:flex;overflow-x:auto;padding:0 12px 12px}.nav-item{white-space:nowrap;padding:10px 13px}.nav-count,.coming{display:none}.topbar{height:53px}.content{padding:26px 19px}.page-heading h1{font-size:26px}.stats{gap:10px}.stat-card{padding:16px}.stat-number{font-size:28px}.panel-heading{padding:20px}.table-toolbar{padding:12px 20px}.panel-footer{padding:15px 20px}}@media(max-width:580px){.top-tag,.date-pill{display:none}.page-heading{margin-bottom:19px}.page-heading h1{font-size:25px}.stats{grid-template-columns:1fr;gap:9px}.stat-card{padding:12px 18px}.stat-top{font-size:11px}.stat-number{font-size:27px}.stat-note{margin-top:1px}.panel-heading{display:flex;flex-direction:column;align-items:stretch}.btn-primary{width:100%}.panel-footer{font-size:9px}.results-count{display:none}.field-grid{grid-template-columns:1fr}.modal-header,.modal-body,.modal-footer{padding-left:20px;padding-right:20px}.modal-footer .btn{flex:1}.modal-footer{padding-bottom:20px}}

/* Ewidencja: ekran startowy i modularna nawigacja */
.sidebar-section{margin-top:25px}
.modules-section{margin-bottom:26px}
.modules-heading{margin:0 0 19px}
.modules-heading h2{font-size:21px;letter-spacing:-.5px;margin:7px 0}
.modules-heading p{font-size:12px;color:#8d9bad;margin:0}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.module-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px 24px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow);min-height:233px;transition:border-color .15s,transform .15s}
a.module-card:hover{border-color:#b7caff;transform:translateY(-2px)}
.module-symbol{display:flex;align-items:center;justify-content:center;height:48px;width:48px;border-radius:13px}
.module-symbol .icon{width:25px;height:25px}
.module-symbol.people{background:#eaf0ff;color:#4b77e8}
.module-symbol.vehicles{background:#f0edff;color:#8a6be5}
.module-symbol.future-icon{background:#f1f4f8;color:#889ab0}
.module-card strong{font-size:17px;letter-spacing:-.2px}
.module-card>span:not(.module-symbol):not(.module-link):not(.module-soon){font-size:12px;line-height:1.65;color:#8190a5}
.module-link{display:flex;align-items:center;gap:9px;color:#3464db;font-weight:700;font-size:12px;margin-top:auto}
.module-link .icon{width:15px;height:15px}
.module-card.future{border-style:dashed}
.module-soon{font-size:11px;color:#95a3b5;margin-top:auto}
@media(max-width:1050px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.sidebar-section{margin-top:10px}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.module-grid{grid-template-columns:1fr}.module-card{min-height:0}}

/* Ewidencja 0.4 — uwierzytelnianie i konfiguracja */
.sidebar-logout {padding:12px 20px; margin-top:16px}
.sidebar-logout .btn{width:100%;justify-content:center; font-size:12px}
.auth-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 0 0,#162849,#0b1325 70%)}
.auth-card{background:#fff;border:1px solid #dfe5f0;border-radius:20px;padding:clamp(24px,4vw,44px);max-width:480px;width:100%;box-shadow:0 26px 75px #040b1c65}
.auth-header{display:flex;align-items:center;gap:14px;padding-bottom:28px}
.auth-logo{display:block;width:84px;max-width:32vw;height:auto;object-fit:contain;flex:none}
.auth-header strong{display:block;font-size:20px;color:#0c1934}.auth-header small{display:block;color:#64748b;font-size:12px}
.auth-card h1{font-size:clamp(25px,4vw,34px);color:#15233e;line-height:1.15;margin:10px 0 14px}
.auth-card p{line-height:1.65;color:#58657b;margin:12px 0 22px}
.auth-form{display:flex;flex-direction:column;gap:16px;margin-top:18px}
.auth-submit{width:100%;justify-content:center;margin-top:5px;min-height:46px}
.auth-back{display:inline-block;margin-top:18px;color:#2563eb;text-decoration:none;font-weight:700;font-size:14px}
.auth-footer{color:#aebdd5;margin:22px auto;font-size:12px;text-align:center}
.auth-qr{display:flex;justify-content:center;padding:12px;background:#fff;max-width:242px;margin:18px auto;border:1px solid #e2e8f0;border-radius:10px}
.auth-qr img{display:block;max-width:100%}
.auth-secret{display:block;overflow-wrap:anywhere;padding:12px;text-align:center;letter-spacing:1px;background:#f1f5f9;border-radius:8px;font-size:14px}
.auth-card p.auth-hint{font-size:13px;margin:10px 0;color:#596777}
.auth-secondary-form{margin-top:15px}
.auth-link-button{background:transparent;color:#2563eb;border:0;font:inherit;cursor:pointer;padding:0;font-size:13px}
.settings-card{background:#fff;border:1px solid #e4eaf3;border-radius:16px;padding:clamp(18px,3vw,32px);margin:0 0 20px;box-shadow:0 4px 30px #10182808}
.settings-card h2{font-size:21px;margin:8px 0 12px;color:#182842}
.settings-card p{color:#607086;line-height:1.55}
.settings-form{display:flex;flex-direction:column;gap:16px;max-width:850px;margin-top:20px}
.settings-form .btn{align-self:flex-start;max-width:100%}
.settings-check{display:flex;align-items:center;gap:10px;font-size:14px;color:#20324c;font-weight:600}
.settings-check input{accent-color:#2966de;width:17px;height:17px;flex:none}
.settings-checks{display:flex;flex-wrap:wrap;gap:24px}
.settings-note{font-size:13px;margin-top:10px}
.settings-users{display:grid;gap:10px;margin-top:20px}
.settings-user{border:1px solid #dce4f2;border-radius:12px;background:#fafbfe;padding:18px 20px}
.settings-user summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.settings-user summary::-webkit-details-marker{display:none}
.settings-user summary span{font-size:13px;color:#66758b}
.settings-user[open] summary{padding-bottom:18px;border-bottom:1px solid #dce4f2}
@media(max-width:700px){.settings-checks{flex-direction:column;gap:12px}.settings-form .btn{width:100%;justify-content:center}.auth-page{padding:14px}}

/* Role logowania oraz niezależne akcje panelu administratora */
.auth-card .login-area-hint{font-size:11px;color:#8391a8;line-height:1.5;margin:8px 0 10px}
.report-perms{padding:16px;border:1px solid #dbe7ff;background:#f8fbff;border-radius:12px;display:flex;flex-direction:column;gap:13px}
.report-perms[hidden]{display:none}
.report-perms strong{font-size:13px;color:#253a56}
.report-perms small{font-size:11px;color:#71839e}
.admin-reset-group{margin-top:24px;padding-top:20px;border-top:1px solid #dce4f2}
.admin-reset-group h3{font-size:16px;margin:0 0 8px;color:#26384f}
.admin-reset-group p{color:#6a7c94;font-size:12px;line-height:1.6;margin:0 0 10px}
.admin-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:22px}
.admin-shortcut{display:flex;flex-direction:column;gap:9px;padding:22px;border:1px solid #dce6f6;border-radius:13px;background:#f8fbff}
.admin-shortcut:hover{border-color:#9bb9ed;background:#f0f5ff}
.admin-shortcut strong{font-size:15px;color:#24416d}
.admin-shortcut span{font-size:12px;color:#7689a4;line-height:1.55}
@media(max-width:580px){.admin-shortcuts{grid-template-columns:1fr}}

/* Wybór funkcjonalności - widoczny wyłącznie po autoryzacji */
.start-page{min-height:100vh;background:radial-gradient(circle at 0 0,#162849,#0b1325 70%);padding:clamp(16px,4vw,55px) 16px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.start-wrap{width:min(100%,840px);background:#fff;border:1px solid #dfe5f0;border-radius:20px;box-shadow:0 26px 75px #040b1c65;padding:clamp(22px,4.4vw,40px)}
.start-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.start-header .auth-header{padding-bottom:0}.start-account{text-align:right;display:flex;flex-direction:column;gap:5px;min-width:0}.start-account span{font-size:13px;font-weight:740;color:#1c293f;overflow-wrap:anywhere}.start-account small{font-size:11px;color:#8090a5}.start-wrap h1{font-size:clamp(25px,4vw,33px);color:#15233e;letter-spacing:-.8px;margin:9px 0 7px}.start-intro{font-size:13px;color:#748298;margin:0 0 26px;line-height:1.5}
.start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.start-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;border:1px solid #e0e7f3;border-radius:15px;padding:20px;min-height:180px;background:#f9fbff;transition:background .15s,border-color .15s,transform .15s,box-shadow .15s}.start-tile:hover{background:#eff5ff;border-color:#a8bfe9;box-shadow:0 5px 22px #1d44771a;transform:translateY(-2px)}.start-tile:focus-visible{outline:3px solid #4277ee;outline-offset:3px}.start-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#e9f0ff;color:#346bce}.start-icon svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}.start-tile strong{font-size:16px;font-weight:750;line-height:1.25;color:#1d314f}.start-tile>span:not(.start-icon):not(.start-go){font-size:12px;line-height:1.5;color:#75859b}.start-go{margin-top:auto;font-size:12px;font-weight:750;color:#3266d9}
.start-legacy{border-top:1px solid #e9eef5;margin-top:26px;padding-top:21px}.start-legacy h2{font-size:16px;color:#20324c;margin:0 0 15px}.start-secondary-link{display:inline-block;margin-top:15px;color:#3266d9;font-weight:700;font-size:12px}.start-bottom{border-top:1px solid #e9eef5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:27px;padding-top:18px;font-size:13px;font-weight:700;color:#3769d3}.start-logout{border:0;background:transparent;color:#71819b;font-weight:700;padding:0}.start-logout:hover,.start-secondary-link:hover,.start-bottom a:hover{text-decoration:underline}
@media(max-width:560px){.start-wrap{padding:24px 18px}.start-header{align-items:flex-start}.start-header .auth-logo{width:66px}.start-header .auth-header strong{font-size:17px}.start-account span{font-size:11px}.start-grid{grid-template-columns:1fr;gap:10px}.start-tile{min-height:132px;padding:15px}.start-legacy{margin-top:20px}}

/* Kartoteka osób: czytelne powiązania z pojazdami i maszynami */
.person-vehicle-preview{margin-top:7px;max-width:370px;font-size:11px;line-height:1.45;color:#718098;overflow-wrap:anywhere}
.person-vehicle-preview>div{padding:2px 0}
.person-vehicles-section{padding:20px 29px 25px;border-top:1px solid #e9eef5;background:#fbfcff}
.person-vehicles-section[hidden]{display:none}
.person-vehicles-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.person-vehicles-heading strong{font-size:14px;color:#1c293d}
.person-vehicles-list{display:grid;gap:8px;margin-bottom:18px;max-height:240px;overflow-y:auto}
.person-vehicle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e1e8f3;border-radius:10px;background:white}
.person-vehicle-row span{font-size:12px;line-height:1.5;overflow-wrap:anywhere;min-width:0}
.person-vehicle-row .btn{flex-shrink:0;padding:8px 12px}
.person-assign-box{border-top:1px dashed #dae3f1;padding-top:15px;display:grid;gap:10px}
.person-assign-box>.btn{justify-self:start}
.vehicle-free-status{display:inline-block;border-radius:8px;background:#e6f6ef;color:#206a51;padding:7px 10px;font-size:11px;font-weight:700}
@media(max-width:580px){.person-vehicles-section{padding:18px 20px}.person-vehicle-row{align-items:flex-start;flex-direction:column}.person-assign-box>.btn{width:100%}}

.reset-buttons{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.reset-dialog{width:min(520px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #dce4f2;border-radius:16px;padding:24px;color:var(--ink);background:white;box-shadow:0 20px 70px #15213a40}
.reset-dialog::backdrop{background:#15213a88}
.reset-dialog h3{margin:0 0 12px;font-size:18px}.reset-dialog p{font-size:14px;line-height:1.6;color:#53647b}

/* v0.7: logo i niezależnie przewijana nawigacja boczna. */
.sidebar-logo{flex:0 0 76px;width:76px;padding:6px;background:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center}
.sidebar-logo img{display:block;width:100%;height:auto;object-fit:contain}
.sidebar>.brand,.sidebar>.sidebar-caption,.sidebar>.sidebar-nav,.sidebar>.sidebar-logout,.sidebar>.sidebar-bottom{flex-shrink:0}
.sidebar .brand{padding:24px 18px 30px;gap:10px}
.sidebar .brand>div:last-child,.sidebar-bottom>div{min-width:0;overflow-wrap:anywhere}
.sidebar-logout .btn{white-space:normal;overflow-wrap:anywhere}
@media(min-width:851px){
 .sidebar{height:100vh;height:100dvh;min-height:0;align-self:flex-start;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#536582 transparent;overscroll-behavior-y:contain}
 .sidebar-caption{margin-bottom:10px}
 .sidebar-section{margin-top:18px}
 .sidebar-nav{gap:3px}
 .sidebar .nav-item{padding-top:10px;padding-bottom:10px;min-height:0}
 .sidebar-bottom{margin: auto 16px 12px;padding:12px 5px 5px}
 .sidebar-logout{margin-top:12px;padding:8px 16px 12px}
}
@media(max-width:850px){.sidebar{overflow:visible}.sidebar .brand{padding:18px 22px}.sidebar-logout{margin-top:0;padding:8px 16px 12px}}

/* Stan licznika i faktury za paliwo */
.fuel-section{margin-top:20px}.fuel-form{display:grid;gap:16px;margin:16px 0}.fuel-form>.btn{justify-self:start}.fuel-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:15px}.fuel-align{align-self:end}.fuel-table{min-width:620px}.fuel-table .row-actions{justify-content:flex-start}.fuel-table td,.fuel-table th{padding:12px}.fuel-table form{margin:0}@media(max-width:700px){.fuel-fields{grid-template-columns:1fr}}

/* v0.10 — układ mobilny, bez rozpoznawania typu urządzenia. */
.field,.field-grid>*,.fuel-fields>*,.settings-card,.settings-users,.settings-user,.fuel-form,.person-cell>div,.vehicle-cell>div{min-width:0}
.field input,.field select{max-width:100%;min-width:0}
@media(max-width:850px){
 body{min-width:0}
 .sidebar-nav{flex-wrap:wrap;overflow:visible;gap:5px}
 .sidebar .nav-item{white-space:normal;min-height:44px;overflow-wrap:anywhere;flex:1 1 145px}
 .sidebar-caption{display:block;margin:8px 0;font-size:10px}
 .topbar{height:auto;min-height:53px;padding:12px 16px;gap:12px;flex-wrap:wrap}
 .breadcrumbs,.page-heading,.settings-card,.alert{overflow-wrap:anywhere}
 .page-heading{flex-wrap:wrap}
 .field input,.field select,.searchbox input{font-size:16px;min-height:44px}
 .btn,.icon-btn{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 .icon-btn{min-width:44px}
 .row-actions,.modal-footer,.reset-buttons,.panel-footer,.start-bottom{flex-wrap:wrap}
 .modal,.reset-dialog{max-width:calc(100% - 20px);max-height:92vh;max-height:92dvh;overscroll-behavior:contain}
 .fuel-form>div:last-child{min-width:0}
 .fuel-form .btn,.fuel-align .btn{max-width:100%}
 .table-wrap{max-width:100%}
 .data-table{min-width:0;width:100%}
 .data-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .data-table,.data-table tbody,.data-table tbody tr{display:block}
 .data-table tbody tr{border:1px solid var(--line);border-radius:12px;margin:10px;padding:6px 12px;background:white}
 .data-table tbody tr[hidden]{display:none}
 .data-table td{display:block;padding:10px 0;white-space:normal;overflow-wrap:anywhere;font-size:14px}
 .data-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;color:#687990;font-weight:700;margin-bottom:5px}
 .data-table td:last-child{border-bottom:0}
 .data-table .cell-primary,.data-table .cell-secondary{white-space:normal;overflow-wrap:anywhere}
 .data-table .row-actions{justify-content:flex-start}
 .data-table .count-pill{white-space:normal;display:inline-block}
 .fuel-table tbody tr{margin:10px 0}
 .fuel-table .row-actions form{max-width:100%}
}
@media(max-width:580px){
 .content{padding:18px 12px}.settings-card{padding:16px 12px}.settings-user{padding:14px 12px}
 .auth-card,.start-wrap{padding:20px 16px}.auth-page,.start-page{padding:12px}
 .start-header{flex-wrap:wrap}.start-account{text-align:left}
 .field-grid,.fuel-fields{grid-template-columns:minmax(0,1fr)}
 .fuel-form>.btn,.fuel-align .btn,.fuel-form>div:last-child>.btn{width:100%}
 .fuel-form>div:last-child>.btn+.btn{margin-top:8px}
 .modal-footer .btn,.reset-buttons .btn{flex:1 1 130px}
 .modal-header,.modal-body,.modal-footer,.person-vehicles-section{padding-left:14px;padding-right:14px}
 .reset-dialog{padding:16px}.panel-heading,.table-toolbar{padding:16px 12px}
 .searchbox{width:100%;min-width:0}.auth-qr img{height:auto}
}
