/* A2Z — light theme. Brand colours come from CSS variables set per company. */
body{background:#f4f6fa;color:#1e293b;font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;font-size:.92rem}
.btn-primary{--bs-btn-bg:var(--a2z-button);--bs-btn-border-color:var(--a2z-button);--bs-btn-hover-bg:var(--a2z-button);--bs-btn-hover-border-color:var(--a2z-button);--bs-btn-active-bg:var(--a2z-button);filter:saturate(1.05)}
.btn-primary:hover{filter:brightness(.92)}
.btn-outline-primary{--bs-btn-color:var(--a2z-primary);--bs-btn-border-color:var(--a2z-primary);--bs-btn-hover-bg:var(--a2z-primary);--bs-btn-hover-border-color:var(--a2z-primary)}
a{color:var(--a2z-primary);text-decoration:none}
a:hover{text-decoration:underline}
.btn:hover,.a2z-link:hover,.list-group-item:hover,a.stat:hover,.dropdown-item:hover,.nav-link:hover{text-decoration:none}
.text-brand{color:var(--a2z-primary)!important}
.a2z-wrap{display:flex;min-height:100vh}
.a2z-sidebar{width:248px;flex-shrink:0;background:var(--a2z-sidebar);border-right:1px solid #e5e9f0}
@media (min-width:992px){.a2z-sidebar{position:sticky;top:0;height:100vh;overflow-y:auto}}
.a2z-brand{display:flex;align-items:center;gap:.6rem;padding:1rem .9rem;border-bottom:1px solid #eef1f6;position:sticky;top:0;background:var(--a2z-sidebar);z-index:2}
.a2z-logo{max-height:38px;max-width:60px;object-fit:contain}
.a2z-mark{width:36px;height:36px;border-radius:9px;background:var(--a2z-primary);color:#fff;display:grid;place-items:center;font-weight:800}
.a2z-nav{padding:.5rem .5rem 2rem}
.a2z-nav-head{font-size:.68rem;font-weight:700;letter-spacing:.08em;color:#94a3b8;padding:.9rem .6rem .3rem}
.a2z-link{display:flex;align-items:center;gap:.6rem;padding:.42rem .65rem;border-radius:8px;color:#334155;text-decoration:none;font-size:.88rem}
.a2z-link i{width:18px;color:#64748b}
.a2z-link:hover{background:#f1f5f9;color:#0f172a}
.a2z-link.active{background:color-mix(in srgb,var(--a2z-primary) 12%,white);color:var(--a2z-primary);font-weight:600}
.a2z-link.active i{color:var(--a2z-primary)}
.a2z-main{flex:1;min-width:0;display:flex;flex-direction:column}
.a2z-top{display:flex;align-items:center;gap:.6rem;padding:.6rem 1.2rem;background:var(--a2z-header);border-bottom:1px solid #e5e9f0;position:sticky;top:0;z-index:20}
.a2z-search{position:relative;flex:1;max-width:460px}
.a2z-search i{position:absolute;left:.7rem;top:.55rem;color:#94a3b8}
.a2z-search input{padding-left:2rem;background:#f4f6fa;border-color:#e5e9f0}
.a2z-content{padding:1.2rem;flex:1}
.a2z-footer{padding:.8rem 1.2rem;color:#94a3b8;font-size:.78rem;border-top:1px solid #e5e9f0;background:#fff}
.card{border:1px solid #e5e9f0;border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.card-header{background:#fff;border-bottom:1px solid #eef1f6;font-weight:600}
.stat{padding:1rem;border-radius:12px;background:#fff;border:1px solid #e5e9f0;height:100%}
.stat .v{font-size:1.5rem;font-weight:700;line-height:1.1}
.stat .l{color:#64748b;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}
.stat i{font-size:1.3rem;color:var(--a2z-primary)}
a.stat{text-decoration:none;color:inherit;display:block}
a.stat:hover{border-color:var(--a2z-primary)}
.table{--bs-table-bg:transparent}
.table thead th{font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;color:#64748b;font-weight:600;white-space:nowrap}
.table td{vertical-align:middle}
.form-label{font-size:.8rem;color:#475569;margin-bottom:.2rem;font-weight:500}
.dt-container .dt-search input{min-width:220px}
.badge{font-weight:600}
.timeline{list-style:none;padding-left:0;margin:0}
.timeline li{position:relative;padding:0 0 .9rem 1.4rem;border-left:2px solid #e5e9f0;margin-left:.4rem}
.timeline li:before{content:"";position:absolute;left:-7px;top:2px;width:12px;height:12px;border-radius:50%;background:var(--dot,#94a3b8);border:2px solid #fff}
.kanban{display:flex;gap:.8rem;overflow-x:auto;padding-bottom:1rem;align-items:flex-start}
.kanban-col{min-width:260px;width:260px;background:#eef1f6;border-radius:12px;padding:.6rem}
.kanban-col h6{font-size:.8rem;display:flex;justify-content:space-between}
.kcard{background:#fff;border:1px solid #e5e9f0;border-radius:10px;padding:.55rem .65rem;margin-bottom:.5rem;cursor:grab;font-size:.82rem}
.kcard:hover{border-color:var(--a2z-primary)}
.drop-hover{outline:2px dashed var(--a2z-primary);outline-offset:-4px}
.dispatch-row{display:flex;gap:.6rem;border-bottom:1px solid #eef1f6;padding:.5rem 0;min-height:64px}
.dispatch-row .who{width:200px;flex-shrink:0}
.dispatch-row .zone{flex:1;display:flex;flex-wrap:wrap;gap:.4rem;min-height:48px;border-radius:8px;padding:.25rem}
.dispatch-row .kcard{width:220px;margin:0}
.login-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--a2z-primary) 10%,white),#f4f6fa)}
.login-card{width:100%;max-width:400px;padding:2rem;border-radius:16px}
.login-a2z{font-size:2.2rem;font-weight:900;letter-spacing:.04em;color:var(--a2z-primary)}
.doc-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:3px solid;padding-bottom:.8rem;margin-bottom:1rem;gap:1rem}
.doc-logo{max-height:70px;max-width:220px;margin-bottom:.4rem}
.doc-title{font-size:1.7rem;font-weight:800;letter-spacing:.04em}
.bank-box{border:1px solid #e5e9f0;border-radius:8px;padding:.6rem .8rem;font-size:.8rem;background:#fafbfc}
.print-body{background:#e9edf3}
.a4{width:210mm;min-height:297mm;margin:1rem auto;background:#fff;padding:14mm;box-shadow:0 2px 12px rgba(0,0,0,.08);font-size:.85rem}
.a4 table{font-size:.82rem}
@media print{.no-print{display:none!important}.print-body{background:#fff}.a4{margin:0;box-shadow:none;width:auto;min-height:auto;padding:0}@page{size:A4;margin:12mm}}
.sig-pad{border:2px dashed #cbd5e1;border-radius:10px;width:100%;height:180px;background:#fff;touch-action:none}
.pipeline-stage{border-top:4px solid var(--c,#94a3b8)}
.mini{font-size:.78rem}
.cursor-pointer{cursor:pointer}
.select2-container--bootstrap-5 .select2-selection{min-height:calc(1.5em + .75rem + 2px)}
.color-dot{display:inline-block;width:12px;height:12px;border-radius:50%;vertical-align:middle}
.preview-box{border:1px solid #e5e9f0;border-radius:12px;overflow:hidden}
.track-steps{list-style:none;padding:0}
.track-steps li{padding:.5rem 0 .5rem 2rem;position:relative}
.track-steps li i{position:absolute;left:0;top:.45rem;font-size:1.2rem}
.offcanvas-lg.a2z-sidebar{--bs-offcanvas-width:260px}
.navbar .nav-link{white-space:nowrap}
/* Accordion sidebar */
.a2z-nav-group{display:flex;align-items:center;gap:.6rem;width:100%;border:0;background:transparent;padding:.5rem .65rem;margin-top:.15rem;border-radius:8px;color:#334155;font-size:.88rem;font-weight:600;text-align:left}
.a2z-nav-group>i:first-child{width:18px;color:#64748b}
.a2z-nav-group:hover{background:#f1f5f9}
.a2z-nav-group:not(.collapsed){color:var(--a2z-primary)}
.a2z-nav-group:not(.collapsed)>i:first-child{color:var(--a2z-primary)}
.a2z-chev{margin-left:auto;font-size:.75rem;transition:transform .2s}
.a2z-nav-group:not(.collapsed) .a2z-chev{transform:rotate(180deg)}
.a2z-nav-items{padding:.1rem 0 .3rem .9rem;border-left:2px solid #eef1f6;margin-left:1.15rem}
.a2z-nav-items .a2z-link{font-size:.85rem;padding:.35rem .6rem}
.addr-ac{position:absolute;z-index:2000;background:#fff;border:1px solid #dbe2ea;border-radius:10px;box-shadow:0 8px 24px rgba(15,23,42,.12);overflow:hidden;display:none;font-size:.86rem}
.addr-ac>div[data-i]{padding:.5rem .7rem;cursor:pointer;border-bottom:1px solid #f1f5f9}
.addr-ac>div[data-i] i{color:var(--a2z-primary);margin-right:.25rem}
.addr-ac>div.on,.addr-ac>div[data-i]:hover{background:color-mix(in srgb,var(--a2z-primary) 8%,white)}
.addr-ac .src{font-size:.68rem;color:#94a3b8;text-align:right;padding:.2rem .6rem}
.addr-hint{font-size:.8rem;margin-top:.3rem;padding:.35rem .55rem;border-radius:8px}
.addr-hint.fix{background:#eff6ff;color:#1e3a8a}.addr-hint.warn{background:#fef3c7;color:#92400e}.addr-hint.ok{background:#ecfdf5;color:#065f46}
/* ---------- Login ---------- */
.lg-body{min-height:100vh;margin:0;background:linear-gradient(160deg,color-mix(in srgb,var(--a2z-primary) 14%,#fff) 0%,#f5f7fb 45%,color-mix(in srgb,#f08a24 10%,#fff) 100%);position:relative;overflow-x:hidden}
.lg-bg{position:fixed;inset:0;pointer-events:none}.lg-bg svg{width:100%;height:100%}
.lg-bg path{fill:none;stroke:var(--a2z-primary);stroke-width:2;stroke-dasharray:14 12;opacity:.13}
.lg-wrap{position:relative;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem 1rem}
.lg-card{width:100%;max-width:430px;background:#fff;border-radius:22px;box-shadow:0 20px 60px rgba(15,35,70,.14),0 2px 6px rgba(15,35,70,.05);padding:2.2rem 2rem 1.4rem;border-top:5px solid var(--a2z-primary)}
.lg-tenant{text-align:center;margin-bottom:1.2rem}
.lg-logo{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:.4rem;margin-bottom:.6rem}
.lg-logo img{max-height:96px;max-width:260px;object-fit:contain}
.lg-mono{width:76px;height:76px;margin:0 auto .7rem;border-radius:20px;display:grid;place-items:center;font-size:2.2rem;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--a2z-primary),color-mix(in srgb,var(--a2z-primary) 60%,#000))}
.lg-name{font-size:1.45rem;font-weight:800;color:#13294b;margin:0;letter-spacing:-.01em}
.lg-slogan{color:#64748b;font-size:.9rem;margin-top:.15rem}
.lg-product-hero{max-width:100%;width:340px;height:auto}
.lg-welcome{text-align:center;font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:#94a3b8;font-weight:600;margin-bottom:1rem}
.lg-form .form-label{font-weight:600;color:#334155;font-size:.82rem}
.lg-field{position:relative}
.lg-field>i{position:absolute;left:.9rem;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:1.05rem;pointer-events:none}
.lg-field .form-control{padding:.75rem .9rem .75rem 2.6rem;border-radius:12px;border-color:#dde3ec;background:#f8fafc;font-size:1rem}
.lg-field .form-control:focus{background:#fff;border-color:var(--a2z-primary);box-shadow:0 0 0 .2rem color-mix(in srgb,var(--a2z-primary) 18%,transparent)}
.lg-eye{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#64748b;padding:.3rem .5rem}
.lg-btn{padding:.8rem;border-radius:12px;font-weight:700;font-size:1.02rem;letter-spacing:.02em;box-shadow:0 8px 20px color-mix(in srgb,var(--a2z-button) 30%,transparent)}
.lg-otp{letter-spacing:.6em;font-weight:700;border-radius:12px}
.lg-powered{text-align:center;margin-top:1.6rem}
.lg-divider{display:flex;align-items:center;gap:.8rem;color:#94a3b8;font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;margin-bottom:.4rem}
.lg-divider:before,.lg-divider:after{content:"";flex:1;height:1px;background:#e5e9f0}
.lg-product{width:240px;max-width:85%;height:auto}
.lg-dev{font-size:.78rem;color:#64748b;margin-top:.35rem}.lg-dev a{color:#1b3a63}
.lg-foot{margin-top:1.2rem;font-size:.75rem;color:#7c8aa0;text-align:center}
@media (max-width:480px){.lg-card{padding:1.8rem 1.25rem 1.2rem;border-radius:18px}.lg-logo img{max-height:80px}}
/* ---------- Driver Daily Runsheet (matches the A4 template) ---------- */
.rs-sheet{--rs-navy:#0f2747;--rs-blue:#1f6fbf;--rs-line:#c9d6e6;--rs-soft:#eef3f9;font-family:Inter,Helvetica,Arial,sans-serif;color:#111;font-size:8.6pt;line-height:1.25}
.rs-title{display:flex;align-items:flex-end;justify-content:space-between;border-bottom:1.5px solid #111;padding-bottom:3px;margin-bottom:8px}
.rs-title>span:first-child{font-size:15pt;font-weight:800;letter-spacing:.01em}
.rs-co{display:flex;align-items:center;gap:6px;font-size:8pt}.rs-co img{max-height:26px;max-width:110px}
.rs-box{border:1px solid var(--rs-line);border-radius:6px;padding:6px 8px;margin-bottom:7px;background:#fff}
.rs-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.rs-grid6{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.rs-lbl{font-size:6.6pt;font-weight:700;letter-spacing:.03em;color:#334155;text-transform:uppercase}
.rs-val{border-bottom:1px dotted #8aa0b8;min-height:15px;padding:2px 0 1px;font-size:9pt;font-weight:600}
.rs-sec{display:flex;align-items:center;justify-content:space-between;background:var(--rs-soft);border-left:4px solid var(--rs-blue);padding:4px 8px;margin:9px 0 6px;font-weight:800;font-size:8.4pt}
.rs-sec small{font-size:6.6pt;color:#64748b;font-weight:700}
.rs-checks{display:grid;grid-template-columns:repeat(4,1fr);gap:4px 10px;font-size:7.6pt}
.rs-cb{display:inline-flex;align-items:center;justify-content:center;width:10px;height:10px;border:1px solid #475569;font-size:8px;line-height:1;font-weight:900;color:#0f5132;vertical-align:-1px}
.rs-tbl{width:100%;border-collapse:collapse;font-size:7.8pt}
.rs-tbl th{background:var(--rs-navy);color:#fff;font-size:6.6pt;font-weight:700;text-align:left;padding:4px 4px;line-height:1.15;border:1px solid var(--rs-navy)}
.rs-tbl td{border:1px solid var(--rs-line);padding:2px 4px;height:22px;vertical-align:middle}
.rs-tbl td.rs-n{text-align:center;color:#334155;font-weight:600}
.rs-tbl.rs-light th{background:var(--rs-soft);color:#334155;border-color:var(--rs-line)}
.rs-pod{font-size:7pt;line-height:1.1}.rs-sig{height:17px;max-width:100%;display:block}.rs-pu{font-style:normal;font-size:6pt;background:#fef3c7;padding:0 2px;border-radius:2px}
.rs-two{display:grid;grid-template-columns:1.12fr 1fr;gap:12px}
.rs-tot{display:flex;justify-content:space-between;gap:8px;font-size:7.6pt;font-weight:700;margin-top:4px}
.rs-decl{margin-top:9px;font-size:7.8pt}.rs-decl>div{margin-bottom:3px}.rs-ital{font-style:italic;color:#334155}
.rs-signs{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:6px}
.rs-sigbox{border-bottom:1px solid #111;height:40px;display:flex;align-items:flex-end;gap:8px}.rs-sigbox img{max-height:38px;max-width:60%}.rs-sigbox span{font-size:7.5pt;margin-left:auto}
.rs-warn{margin-top:6px;font-size:7.6pt;color:#92400e;background:#fef3c7;border-radius:4px;padding:4px 6px}
.rs-screen{overflow-x:auto}.rs-screen .rs-sheet{min-width:720px;max-width:900px;margin:0 auto}
.rs-attach{page-break-before:always;break-before:page;padding-top:4mm}
.rs-attach-h{display:flex;flex-direction:column;border-left:4px solid #1f6fbf;background:#eef3f9;padding:6px 10px;margin-bottom:10px}.rs-attach-h span{font-size:8pt;color:#64748b}
.rs-podcard{display:flex;justify-content:space-between;gap:12px;border:1px solid #c9d6e6;border-radius:8px;padding:10px;margin-bottom:10px;font-size:9pt}.rs-podsig{max-height:90px;max-width:45%;background:#fff;border:1px solid #e5e9f0;border-radius:6px}
.rs-fig{margin:0 0 12px;page-break-inside:avoid;break-inside:avoid;text-align:center}.rs-fig img{max-width:100%;max-height:235mm;object-fit:contain;border:1px solid #e5e9f0}.rs-fig figcaption{font-size:8pt;color:#64748b;margin-top:3px}
.rs-pdf{margin-bottom:10px}.rs-pdfpage{display:block;width:100%;margin:0 0 6px;border:1px solid #e5e9f0;page-break-inside:avoid;break-inside:avoid}.rs-pdfpage+.rs-pdfpage{page-break-before:always;break-before:page}
.rs-file{font-size:9pt;padding:8px;border:1px dashed #c9d6e6;border-radius:6px;margin-bottom:8px}
@media print{.rs-sheet{font-size:8.2pt}.rs-warn{display:none}.rs-tbl th,.rs-sec,.rs-tbl.rs-light th,.rs-attach-h{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.rs-grid4>div,.rs-grid6>div{display:flex;flex-direction:column;justify-content:space-between}
.rs-grid6 .rs-lbl{font-size:6.1pt}.rs-checks{font-size:7pt;gap:3px 8px}
.rs-pdf{break-before:page;page-break-before:always}.rs-pdf .rs-pdfpage:first-of-type{break-before:auto;page-break-before:auto}
.rs-tot2{display:block;white-space:nowrap}@media print{.rs-checks{font-size:6.4pt}}
