*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#e8eef4;color:#0f172a}.hidden{display:none!important}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0b2b4d,#123f67)}.auth-card{width:430px;background:white;border-radius:16px;padding:28px;box-shadow:0 18px 45px rgba(0,0,0,.25)}.auth-logo{background:#0b2b4d;color:white;font-size:30px;font-weight:900;text-align:center;border-radius:10px;padding:14px;letter-spacing:4px}.auth-card h1{font-size:22px;text-align:center}.auth-card p{text-align:center;color:#475569}label{display:block;font-weight:800;margin:12px 0 5px}input,textarea,select{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:11px;font-size:14px;background:#fff}textarea{margin-top:12px}.auth-actions,.action-row,.top-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.btn-primary,.btn-light,.btn-danger{border:0;border-radius:9px;padding:11px 15px;font-weight:900;cursor:pointer}.btn-primary{background:#0b2b4d;color:#fff}.btn-light{background:#e9eef5;color:#0b2b4d}.btn-danger{background:#fee2e2;color:#991b1b}.msg{font-weight:900;margin-top:10px;color:#b00020}.app{display:flex;min-height:100vh}.sidebar{width:220px;background:#0b2b4d;color:white;position:fixed;left:0;top:0;bottom:0;padding:22px 14px}.brand{margin-bottom:25px}.brand-title{font-size:34px;font-weight:900;letter-spacing:5px}.brand-sub{font-size:12px;color:#cbd5e1}.nav{display:block;width:100%;margin:7px 0;padding:12px;border:0;border-radius:9px;text-align:left;background:transparent;color:white;font-weight:900;cursor:pointer}.nav.active,.nav:hover{background:#1b5a8a}.version{position:absolute;bottom:18px;font-size:11px;color:#cbd5e1}.main{margin-left:220px;width:calc(100% - 220px);padding:22px}.topbar{display:flex;justify-content:space-between;align-items:center;background:white;border-radius:16px;padding:18px 22px;margin-bottom:18px}.topbar h2{margin:0}.topbar p{margin:4px 0 0;color:#64748b}.pill{background:#e9eef5;color:#0b2b4d;padding:10px 14px;border-radius:999px;font-weight:900}.hero{background:linear-gradient(135deg,#0b2b4d,#1b5a8a);color:white;border-radius:18px;padding:24px;display:flex;justify-content:space-between;align-items:center}.hero h1{margin:0}.hero strong{font-size:46px;letter-spacing:6px}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:14px 0}.stat{background:white;border-radius:14px;padding:18px;display:flex;gap:14px;align-items:center}.stat span{font-size:25px}.stat b{font-size:24px;display:block}.stat small{color:#64748b}.panel{background:white;border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 4px 16px rgba(15,23,42,.06)}.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.grid-4{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.section-head h3{margin:0 0 6px}.section-head p{margin:0;color:#64748b}.vehicle-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:14px}.vehicle-card{background:#f8fafc;border:1px solid #dbe3ee;border-radius:16px;padding:16px}.vehicle-top{display:flex;justify-content:space-between;gap:12px}.vehicle-card h4{margin:0 0 4px}.small{color:#64748b;font-size:13px}.status{display:inline-block;border-radius:999px;padding:6px 10px;background:#e0f2fe;color:#075985;font-weight:900;font-size:12px}.status.sprawdzone,.status.Dostępny{background:#dcfce7;color:#166534}.status.do_poprawy,.status.Uszkodzony,.status.Warsztat{background:#fee2e2;color:#991b1b}.status.zapisany{background:#dbeafe;color:#1e40af}.meter{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-bottom:8px}.meter span{display:block;height:100%}.meter-ok{background:#22c55e}.meter-warn{background:#f59e0b}.meter-danger{background:#ef4444}.vehicle-warning{margin-top:10px;padding:10px;border-radius:8px;font-weight:800;background:#fff3cd;color:#856404;border-left:4px solid #ffc107}.vehicle-danger{margin-top:10px;padding:10px;border-radius:8px;font-weight:800;background:#f8d7da;color:#721c24;border-left:4px solid #dc3545}.vehicle-detail-box{background:#fff;border:1px solid #dbe3ee;border-radius:14px;padding:14px;margin-top:12px}.vehicle-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;font-size:14px}.list-item{background:#f8fafc;border:1px solid #dbe3ee;border-radius:14px;padding:14px;margin:10px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #e2e8f0;text-align:left}.checkbox-line{display:flex;align-items:center;gap:8px;font-weight:900;margin-top:12px}.checkbox-line input{width:auto}.police-doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0}.police-doc-card{margin:0;padding:14px;border:1px solid #dbe3ee;background:#f8fafc;color:#0f172a;border-radius:14px;text-align:left;cursor:pointer}.police-doc-card b{display:block;font-size:18px;color:#0b2b4d;margin-bottom:4px}.police-doc-card span{font-weight:800}.police-doc-card.active{background:#fff;border-color:#0b2b4d;box-shadow:0 4px 14px rgba(15,23,42,.14)}#policeDocEditorWrap{display:flex;justify-content:center;margin-bottom:18px}#policeDocEditor{width:100%;display:flex;justify-content:center}.police-document{color:#111;background:#fff;box-shadow:0 6px 22px rgba(15,23,42,.18)}.police-a4{width:794px;min-height:1123px;padding:58px 70px;box-sizing:border-box;font-family:Georgia,Cambria,"Times New Roman",serif;font-size:15px;line-height:1.35}.police-a4 h2{text-align:center;font-family:Cambria,Georgia,"Times New Roman",serif;font-size:20px;margin:34px 0 22px;letter-spacing:.4px;text-transform:uppercase}.police-top{display:flex;justify-content:space-between;gap:25px;margin-bottom:28px}.line-edit{border:none;border-bottom:1.5px dotted #000;outline:none;min-height:20px;padding:1px 4px;display:inline-block;box-sizing:border-box;vertical-align:bottom;font-family:Georgia,Cambria,"Times New Roman",serif;font-weight:700;text-transform:uppercase}.nu-line{border-bottom:1.5px dotted #000;min-height:22px;outline:none;padding:1px 3px;margin:4px 0;font-family:Georgia,Cambria,"Times New Roman",serif;font-weight:700;text-transform:uppercase;white-space:pre-wrap}.police-section{margin-top:14px;page-break-inside:avoid}.police-section-title{font-weight:800;text-decoration:underline;margin:14px 0 7px}.police-area{border:1.5px dotted #000;min-height:80px;outline:none;padding:8px;margin-top:5px;font-family:Georgia,Cambria,"Times New Roman",serif;font-weight:700;text-transform:uppercase;white-space:pre-wrap}.police-row{display:flex;align-items:flex-end;gap:5px;margin:7px 0;flex-wrap:wrap}.police-checkbox{display:inline-flex;align-items:center;gap:5px;margin-right:15px;cursor:pointer}.police-checkbox .box{width:14px;height:14px;border:1px solid #000;display:inline-flex;align-items:center;justify-content:center;font-weight:bold;font-size:13px;line-height:1}.yesno .pick{cursor:pointer;padding:0 3px}.yesno .selected{color:#c00000;font-weight:900;text-decoration:line-through;text-decoration-thickness:2px}.crossable{cursor:pointer;padding:0 3px}.crossed{text-decoration:line-through;text-decoration-thickness:2px;font-weight:bold}.signature-place{margin-top:45px;text-align:right;page-break-inside:avoid}.signature-place:before{content:"";display:block;width:260px;border-top:1.5px dotted #000;margin-left:auto;margin-bottom:5px}.spb-a4{width:794px;min-height:1123px;background:#fff;padding:56px 66px;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif;font-size:18px;line-height:1.36}.spb-a4 h2{text-align:center;font-family:Georgia,Cambria,"Times New Roman",serif;font-size:30px;letter-spacing:.5px;margin:48px 0 25px}.spb-sub{text-align:center;font-family:Georgia,Cambria,"Times New Roman",serif;font-size:21px;margin-bottom:36px}.spb-head{display:flex;justify-content:flex-end}.spb-head-box{width:290px;font-size:18px}.spb-line{border-bottom:1.5px dotted #000;display:inline-block;min-width:120px;min-height:22px;outline:none;font-weight:800;text-align:center;padding:0 4px}.spb-fill{border-bottom:1.5px dotted #000;display:inline-block;min-width:160px;min-height:22px;outline:none;font-weight:800;padding:0 4px}.spb-box{border:1.5px dotted #000;min-height:70px;padding:13px;outline:none;font-weight:800;margin:8px 0 25px}.spb-section-title{font-weight:900;text-decoration:underline;margin:24px 0 14px;font-size:21px}.spb-check{display:flex;align-items:center;gap:6px;margin:5px 0;cursor:pointer}.spb-check .box{font-family:monospace;font-weight:900;color:#c00000;font-size:22px;width:28px}.spb-red{color:#c00000;font-weight:900}.spb-desc{border:1.5px dotted #000;min-height:720px;padding:15px;outline:none;font-weight:800;white-space:pre-wrap}.spb-stamp{margin-top:120px;margin-left:auto;width:260px;height:95px;border:4px solid #555;transform:rotate(-3deg);display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:Georgia,serif;font-weight:900;font-size:22px;color:#555}.pzd-a4{width:794px;background:#fff;color:#000;box-shadow:0 6px 22px rgba(15,23,42,.18);padding:18px 22px;box-sizing:border-box;font-family:Arial,sans-serif;font-size:13px;line-height:1.35}.pzd-doc{border:2px solid #000}.pzd-section{border-top:1px solid #000;padding:10px 14px}.pzd-section:first-child{border-top:none}.pzd-title{text-align:center;font-weight:bold;font-size:16px;margin:16px 0 18px}.pzd-top{display:flex;justify-content:space-between;font-size:12px}.pzd-input{border:none;border-bottom:1.5px dotted #000;outline:none;min-height:18px;display:inline-block;padding:0 4px;font-weight:bold;text-transform:uppercase;flex:1;font-family:Arial,sans-serif}.pzd-row{display:flex;align-items:flex-end;gap:5px;margin:7px 0;flex-wrap:wrap}.pzd-sub{font-size:10px;text-align:center;width:100%;margin-top:-3px}.pzd-checks{display:flex;gap:18px;flex-wrap:wrap;margin:7px 0}.pzd-pesel{display:flex;border:1px solid #000;height:22px}.pzd-pesel span{width:18px;border-right:1px solid #000;display:inline-block;outline:none;text-align:center;font-weight:bold}.pzd-pesel span:last-child{border-right:none}.pzd-signatures{display:flex;justify-content:space-between;margin-top:30px}.pzd-sign{width:45%;text-align:center}.pzd-sign:before{content:"";display:block;border-top:1.5px dotted #000;margin-bottom:5px}.pzd-foot{font-size:9px;margin-top:12px}@media(max-width:900px){.main{margin-left:0;width:100%;padding:10px}.sidebar{position:static;width:100%;height:auto}.app{display:block}.grid-2{grid-template-columns:1fr}.topbar{display:block}#policeDocEditorWrap{overflow:auto;justify-content:flex-start}}