/* AGC V2 CUSTOMER & SALES CLARITY PATCH | OCT 2026
   Layout-only. Keeps original approved AGC pictorial logo and business documents. */
:root{--agc-ux-line:#e7e9ed;--agc-ux-bg:#fff;--agc-ux-muted:#656d77}
.agc-ux-passport,.agc-ux-sales-page{display:grid;gap:14px;min-width:0}
.agc-ux-passport > *,.agc-ux-sales-page > *{min-width:0}
.agc-ux-hero{display:grid;gap:16px!important;border:1px solid #e6e8eb;background:#fff;padding:22px!important}
.agc-ux-hero-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.agc-ux-hero-head>div:first-child{min-width:0;flex:1 1 250px}
.agc-ux-kicker{font-size:10px;color:#646c77;font-weight:800;letter-spacing:.12em}
.agc-ux-hero h2{margin:6px 0;font-size:clamp(18px,2vw,25px);font-weight:800;line-height:1.17;letter-spacing:-.02em;overflow-wrap:anywhere}
.agc-ux-hero p{margin:0;color:#5d6671;font-size:12px;line-height:1.6}
.agc-ux-actions{display:flex;gap:8px;flex-wrap:wrap}
.agc-ux-actions .btn{white-space:normal;text-align:center}
.agc-ux-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.agc-ux-stat{display:flex;flex-direction:column;justify-content:space-between;gap:7px;min-height:90px;padding:15px;border:1px solid var(--agc-ux-line);border-radius:12px;background:#fafafa;min-width:0}
.agc-ux-stat span{color:var(--agc-ux-muted);font-size:10px;font-weight:750;line-height:1.45;letter-spacing:.04em}
.agc-ux-stat b{font-size:clamp(16px,1.8vw,23px);font-weight:850;line-height:1.12;letter-spacing:-.025em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.agc-ux-financialnote{font-size:11px!important;color:#767b82!important;line-height:1.6!important;max-width:900px}
.agc-ux-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.agc-ux-panel{background:var(--agc-ux-bg);border:1px solid var(--agc-ux-line);border-radius:14px;padding:18px;min-width:0}
.agc-ux-panelhead{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:15px;flex-wrap:wrap}
.agc-ux-panelhead h3{font-size:14px;margin:0;font-weight:800;line-height:1.35}
.agc-ux-panelhead small{color:var(--agc-ux-muted);font-size:10px;font-weight:700;line-height:1.5}
.agc-ux-vehicle{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:#fff;border:1px solid var(--agc-ux-line);border-radius:10px;padding:13px 14px;min-height:60px;margin-top:8px;color:#151619;cursor:pointer}
.agc-ux-vehicle:focus-visible,.agc-ux-directory-card:focus-visible,.agc-ux-link:focus-visible{outline:2px solid #245e91;outline-offset:2px}
.agc-ux-vehicle:hover,.agc-ux-directory-card:hover{border-color:#aeb6c0;background:#fbfcff}
.agc-ux-vehicle span:first-child{display:flex;flex-direction:column;gap:5px;min-width:0}
.agc-ux-vehicle b{font-size:14px;font-weight:800}
.agc-ux-vehicle small,.agc-ux-pkg-row small{color:var(--agc-ux-muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.agc-ux-vehicle>span:last-child{font-size:22px;color:#8b929b}
.agc-ux-pkg-row{display:flex;align-items:start;justify-content:space-between;gap:12px;border-top:1px solid var(--agc-ux-line);padding:14px 0;min-width:0}
.agc-ux-pkg-row:first-of-type{border-top:0}
.agc-ux-pkg-row>div:first-child{display:flex;flex-direction:column;min-width:0;gap:5px;flex:1}
.agc-ux-pkg-row b{font-size:13px}
.agc-ux-pkg-action{display:flex;align-items:end;justify-content:end;flex-wrap:wrap;gap:7px;max-width:225px}
.agc-ux-pkg-action strong{font-size:19px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-bottom:5px}
.agc-ux-expand{padding:0}
.agc-ux-expand>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 18px;min-height:55px;font-size:13px;font-weight:750;list-style:none}
.agc-ux-expand>summary::-webkit-details-marker{display:none}
.agc-ux-expand>summary small{font-weight:650;color:var(--agc-ux-muted);font-size:11px;margin-top:3px;display:block;line-height:1.4}
.agc-ux-expand[open]>summary{border-bottom:1px solid var(--agc-ux-line)}
.agc-ux-history #agcUnifiedVisits,.agc-ux-history #agcVehicleUnifiedVisits{padding:5px 18px 18px}
.agc-ux-records{display:grid;gap:0;max-height:570px;overflow:auto;-webkit-overflow-scrolling:touch}
.agc-ux-visit{border-bottom:1px solid #f0f1f3;display:flex;align-items:start;justify-content:space-between;gap:14px;padding:13px 0}
.agc-ux-visit:last-child{border-bottom:0}
.agc-ux-visit[role=button]{cursor:pointer}
.agc-ux-visit-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.agc-ux-visit-main b{font-size:12px;line-height:1.45}
.agc-ux-visit-main small{font-size:11px;line-height:1.45;color:var(--agc-ux-muted)}
.agc-ux-price{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.agc-ux-detailgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 22px;padding:8px 18px}
.agc-ux-expand>.row,.agc-ux-expand>h3,.agc-ux-expand>.kv{margin-left:18px;margin-right:18px}
.agc-ux-empty{font-size:12px;color:#777d84;background:#fafafa;border:1px dashed #e5e7eb;padding:18px;border-radius:10px;text-align:center;line-height:1.5}
.agc-ux-directory-card{width:100%;min-width:0;background:#fff;border:1px solid var(--agc-ux-line);padding:15px 17px;display:flex;gap:16px;align-items:center;justify-content:space-between;border-radius:12px;text-align:left;color:#16191e;margin:8px 0;cursor:pointer}
.agc-ux-dir-main{display:flex;flex-direction:column;gap:7px;min-width:0;flex:1}
.agc-ux-dir-main>b{font-size:14px;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
.agc-ux-dir-main>small{font-size:11px;color:var(--agc-ux-muted);line-height:1.4}
.agc-ux-dir-plates{display:flex;gap:6px;flex-wrap:wrap}
.agc-ux-plate{font-size:10px;padding:5px 8px;border-radius:7px;border:1px solid #e3e5ea;background:#f8f9fb;color:#40464f;line-height:1.3;font-weight:700}
.agc-ux-dir-right{display:flex;flex-direction:column;align-items:end;gap:6px;min-width:90px;text-align:right}
.agc-ux-dir-right b{font-size:11px}.agc-ux-dir-right small{font-size:10px;color:#407146;font-weight:750}.agc-ux-dir-right>span{font-size:18px;color:#7e858c}
.agc-ux-sales-controls{margin:0}.agc-ux-period-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}
.agc-ux-period-tabs .btn{font-size:12px}.agc-ux-dates{display:flex;gap:12px;flex-wrap:wrap;align-items:end}
.agc-ux-dates label{font-size:10px;color:#5f6671;font-weight:750;display:grid;gap:5px}
.agc-ux-dates input{min-width:174px;max-width:100%;font-size:14px}
.agc-ux-dates>b{font-size:12px;margin-bottom:13px}
.agc-ux-report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.agc-ux-report-stats>div{border:1px solid var(--agc-ux-line);border-radius:13px;padding:16px;min-width:0;background:white;display:flex;flex-direction:column;gap:7px}
.agc-ux-report-stats span{font-size:10px;color:#66707a;font-weight:750;line-height:1.4;letter-spacing:.02em}
.agc-ux-report-stats b{font-size:20px;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.035em;overflow-wrap:anywhere}
.agc-ux-report-stats small{font-size:10px;color:#686f78}
.agc-ux-tenders{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.agc-ux-tenders>div{padding:12px;background:#fafafa;border:1px solid #edf0f2;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.agc-ux-tenders span{font-size:11px;color:#5a626c}.agc-ux-tenders b{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.agc-ux-tablewrap{overflow:auto;-webkit-overflow-scrolling:touch;margin:0 -2px}
.agc-ux-table{border-collapse:collapse;width:100%;min-width:850px}
.agc-ux-table th{background:#f8f9fa;color:#565e67;padding:11px 10px;text-align:left;font-size:10px;position:sticky;top:0}
.agc-ux-table td{padding:12px 10px;border-bottom:1px solid #eff1f3;font-size:11px;line-height:1.5;vertical-align:top}
.agc-ux-table td b{font-size:11px}.agc-ux-table td small{display:block;font-size:10px;color:#747b83}
.agc-ux-link{border:0;background:transparent;text-align:left;padding:0;cursor:pointer;font-weight:800;text-decoration:underline;color:#245e91}
@media(max-width:1000px){.agc-ux-metrics,.agc-ux-report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.agc-ux-two{grid-template-columns:1fr}}
@media(max-width:650px){.agc-ux-hero{padding:15px!important}.agc-ux-hero-head{flex-direction:column;align-items:stretch}.agc-ux-actions{display:grid;grid-template-columns:1fr 1fr}.agc-ux-actions .btn{min-width:0;padding:10px 7px;font-size:11px}.agc-ux-stat{padding:12px;min-height:85px}.agc-ux-panel{padding:13px}.agc-ux-expand{padding:0}.agc-ux-visit-main b{font-size:11px}.agc-ux-pkg-row{flex-direction:column;gap:7px}.agc-ux-pkg-action{max-width:none;width:100%;justify-content:start;align-items:center}.agc-ux-report-stats>div{padding:12px}.agc-ux-report-stats b{font-size:16px}.agc-ux-dates{align-items:stretch}.agc-ux-dates label{flex:1}.agc-ux-directory-card{padding:13px}.agc-ux-dir-right{min-width:66px}.agc-ux-dir-main>b{font-size:13px}}
@media(prefers-reduced-motion:reduce){.agc-ux-vehicle,.agc-ux-directory-card{transition:none}}
.agc-ux-search-label{display:grid;gap:5px;margin:7px 0 12px;font-size:10px;font-weight:800;color:#616974}
.agc-ux-search-label input{min-height:44px;font-size:13px;width:100%;border-radius:10px;border:1px solid #dfe3e9;padding:10px 12px}
