/* AMA Logistics Command Center — production add-on to V4.4 */
.lg-hero{display:flex;gap:26px;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#101c24,#283742);border:1px solid #ab905c;border-radius:15px;color:#fff;padding:28px 32px;margin-bottom:20px;box-shadow:0 12px 22px #28374218}
.lg-hero h1{font-size:28px;margin:4px 0 7px;color:#fff}.lg-hero p{margin:0;color:#d7dce0;font-size:14px;max-width:620px}
.lg-eyebrow{display:block;font-size:11px;letter-spacing:1.8px;color:#d9bd79;font-weight:800}
.lg-hero-actions{display:flex;flex-wrap:wrap;gap:9px}.lg-hero button,.lg-hero-actions button{min-height:40px}
.lg-hero .primary{background:#d4b779;color:#1b242a;border-color:#d4b779;font-weight:750}
.lg-kpis{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:15px;margin:20px 0}
.lg-kpis>div{background:#fff;border:1px solid #e4dfd5;border-radius:12px;padding:20px 18px;min-width:0}
.lg-kpis strong{display:block;color:#1a303f;font-size:33px;font-variant-numeric:tabular-nums}.lg-kpis span{font-size:12px;color:#667078}
.lg-shell{padding:20px 24px}.lg-head{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.lg-head h2{margin:0;font-size:21px}.lg-filter{display:flex;flex-wrap:wrap;gap:12px}.lg-filter label{min-width:175px}
.lg-filter input,.lg-filter select{margin-top:6px}.lg-list{margin-top:18px;display:grid;gap:14px}
.lg-job{border:1px solid #e2e0d9;border-left:4px solid #b79a59;background:#fcfcfb;border-radius:11px;padding:17px}
.lg-job-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.lg-job-head strong{font-size:17px;color:#182e3c}
.lg-job p{font-size:13px;line-height:1.55;color:#465159;margin:8px 0}.lg-job-meta{text-transform:capitalize}
.lg-tag{display:inline-block;background:#e5ecf0;color:#263b49;font-size:10px;letter-spacing:.8px;padding:6px 10px;border-radius:30px;font-weight:800}
.lg-tag.lg-delivered{background:#e3f5e8;color:#157444}.lg-tag.lg-cancelled{background:#fbe5e2;color:#a3362c}.lg-tag.lg-en_route,.lg-tag.lg-collected{background:#fff0d9;color:#99631c}
.lg-card-actions,.lg-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.lg-card-actions button,.lg-card-actions a,.lg-detail-actions button,.lg-map-actions button,.lg-map-actions a,.lg-pdf-actions button{border-radius:8px;padding:9px 12px;font-size:13px;text-decoration:none;border:1px solid #d9ceb5;background:#fff;color:#2a3238;font-weight:600;display:inline-flex;align-items:center;justify-content:center}
.lg-card-actions button:first-child,.lg-detail-actions .primary,.lg-pdf-actions .primary{background:#1a2933;color:#fff;border-color:#1a2933}
.lg-help{font-size:13px;color:#576269;line-height:1.6;padding:16px 22px;margin-top:20px}
.lg-modal{width:min(1120px,96vw);max-height:92vh;padding:24px;border:1px solid #d4d9dc;border-radius:14px;background:#fff;color:#1b2932;box-shadow:0 16px 55px #0003}
.lg-modal::backdrop{background:#17212dc2}.lg-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:0 0 15px;border-bottom:2px solid #e8e4da;position:sticky;top:-24px;background:#fff;z-index:2}
.lg-modal-head h2{font-size:23px;margin:5px 0}.lg-modal-head p{font-size:13px;color:#667078;margin:0;max-width:650px}.lg-modal-head>button{white-space:nowrap}
.lg-form{margin-top:18px}.lg-form-group{background:#fcfcfb;border:1px solid #e8e4dc;border-radius:12px;padding:18px;margin:12px 0 19px}
.lg-form-group h3{font-size:18px;color:#1a303e;margin:2px 0 16px;padding-bottom:9px;border-bottom:1px solid #eadfcb}
.lg-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.lg-field{display:block;font-size:13px;font-weight:650;color:#4c5962;min-width:0;overflow-wrap:anywhere}
.lg-field input,.lg-field textarea,.lg-field select{margin-top:7px;border:1px solid #ccd2d5;background:#fff;border-radius:8px;width:100%;max-width:100%;font-size:14px;color:#21303c}
.lg-field textarea{min-height:74px;resize:vertical}.lg-wide{grid-column:1 / -1}.lg-required{color:#b33131}
.lg-info{font-size:12px;color:#66727c;line-height:1.55;margin:4px 0 17px}.lg-map-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.lg-map-actions a,.lg-card-actions a,.lg-detail-map a{color:#0c617a;text-decoration:underline}
.lg-map-actions a[aria-disabled=true]{pointer-events:none;opacity:.45}.lg-save-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:14px 0}
.lg-save-row button{font-size:14px;white-space:nowrap}.lg-save-row p{font-size:13px;line-height:1.5;color:#9b3b29;flex:1 1 200px;margin:0}
.lg-link-aftersales{margin-top:13px;padding:13px;border:1px solid #d9d0bd;border-radius:10px;background:#fff}.lg-link-aftersales label{max-width:650px}
.lg-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
.lg-detail-summary>div{border:1px solid #e7e0d6;border-radius:10px;background:#faf8f4;padding:13px;min-width:0}
.lg-detail-summary b{color:#9b7a39}.lg-detail-summary p{font-size:13px;color:#2e3d49;line-height:1.5;overflow-wrap:anywhere;margin:7px 0 0}
.lg-detail-map{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lg-detail-map>div{border:1px solid #dfe7e9;border-radius:10px;padding:16px;background:#f7fafb}
.lg-detail-map p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.lg-detail-actions{margin:18px 0 22px;padding-bottom:15px;border-bottom:1px solid #e5e1da}
.lg-detail h3{margin:24px 0 12px;font-size:17px}.lg-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 25px}
.lg-check{padding:10px 11px;background:#f4f7f7;border:1px solid #dee7e8;border-radius:7px;display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:650;color:#314353}
.lg-check input{width:18px;height:18px;accent-color:#147c5c;margin:0;flex:0 0 18px}.lg-history-item{padding:11px 0;border-bottom:1px solid #eae7e2}.lg-history-item p{margin:5px 0;color:#616d76;font-size:13px}
.lg-inspection-compare{background:#eff5f1;padding:13px;border-radius:9px}.lg-inspection-compare p{margin:5px 0;font-size:13px}.lg-differences{background:#fff2e8;border-left:3px solid #ba6e2e;padding:10px 14px;margin-top:11px}
.lg-differences ul{padding-left:20px;margin:8px 0}.lg-differences li{margin:4px 0;font-size:13px}.lg-media-item{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:11px 0;border-bottom:1px solid #e7e7e7}
.lg-media-item b,.lg-media-item small{display:block}.lg-media-item small{font-size:11px;color:#6f7a82;margin-top:3px}.lg-media-item p{font-size:12px;margin:5px 0}.lg-media-item button{white-space:nowrap}
.lg-preview-object{display:block;max-width:100%;max-height:70vh;margin:16px auto;border-radius:8px}.lg-pdf-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.lg-pdf-pages{max-height:64vh;overflow-y:auto;background:#eeeeeb;border:1px solid #d2d2ce;border-radius:10px;padding:10px}.lg-pdf-pages img{display:block;width:min(100%,660px);height:auto;margin:0 auto 15px;box-shadow:0 6px 22px #0002}
.lg-pdf-modal #lgPdfStatus{color:#4b6976;font-size:13px}.lg-media-preview #lgMediaDownload{display:inline-block;color:#005c82;font-weight:700;margin:14px 0}
@media(max-width:900px){.lg-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.lg-detail-summary{grid-template-columns:repeat(2,1fr)}.lg-check-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.lg-hero{padding:20px;display:block}.lg-hero-actions{margin-top:16px}.lg-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lg-kpis>div{padding:13px}.lg-kpis strong{font-size:28px}.lg-fields,.lg-check-grid,.lg-detail-map,.lg-detail-summary{grid-template-columns:1fr}.lg-shell{padding:15px}.lg-modal{padding:14px;max-height:94vh}.lg-modal-head{top:-14px}.lg-modal-head h2{font-size:20px}.lg-form-group{padding:13px}.lg-filter{width:100%}.lg-filter label{width:100%}.lg-card-actions button,.lg-card-actions a{flex:1 1 100%}.lg-save-row button{width:100%}}

/* V4.45: EV checkboxes mirror the confirmed Apple-green success theme. */
.lg-ev-section{grid-column:1/-1;border:1px solid #bbd6bd;background:#f9fefa;border-radius:14px;padding:12px;margin:12px 0}
.lg-ev-section>summary{cursor:pointer;color:#173c2a;font-size:1rem;font-weight:800;padding:8px}
.lg-ev-section .lg-fields{margin-top:12px}
.lg-ev-check:has(input:checked),.lg-check:has(input:checked){background:#e8f9ec!important;border-color:#188544!important;color:#146335!important;font-weight:700}
.lg-ev-check input,.lg-check input{accent-color:#20a54b}
@media print{.lg-ev-section{break-inside:avoid}.lg-ev-check{break-inside:avoid}}
