#check-car .checkcar-steps{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}
#check-car .checkcar-steps button{width:38px;height:38px;border-radius:999px;padding:0}
#check-car .checkcar-steps button.active{font-weight:800;outline:3px solid rgba(0,0,0,.12)}
#check-car .checkcar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#check-car .checkcar-grid .wide{grid-column:1/-1}
#check-car label{display:flex;flex-direction:column;gap:6px}
#check-car input,#check-car select,#check-car textarea{width:100%}
#check-car .checkcar-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px;flex-wrap:wrap}
#check-car .checkcar-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#check-car .checkcar-photo{border:1px solid #d9dee7;border-radius:12px;padding:12px;background:#fff}
#check-car .checkcar-group{margin-top:18px}
#check-car .checkcar-item{border:1px solid #e1e5eb;border-radius:12px;padding:10px;margin:8px 0}
#check-car .checkcar-item-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#check-car .checkcar-item-head>div:first-child{display:flex;flex-direction:column;gap:3px}
#check-car .checkcar-choice{display:flex;gap:6px;flex-wrap:wrap}
#check-car .checkcar-choice button{padding:7px 10px}
#check-car .checkcar-choice button.active.ok{background:#1f7a3d;color:#fff}
#check-car .checkcar-choice button.active.problem{background:#b42318;color:#fff}
#check-car .checkcar-choice button.active.na{background:#6b7280;color:#fff}
#check-car .checkcar-problem{display:grid;grid-template-columns:2fr 1fr;gap:8px;margin-top:10px}
#check-car .checkcar-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
#check-car .checkcar-summary .stat{border:1px solid #dce1e8;border-radius:12px;padding:14px;text-align:center}
#check-car .checkcar-summary .stat b{font-size:24px;display:block}
#check-car .checkcar-history{margin-top:24px;border-top:1px solid #e4e7ec;padding-top:14px}
#check-car .checkcar-history>div{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #eef0f3}
#check-car .ok-note{padding:10px 12px;border-radius:10px;background:#eaf7ee;color:#175b2b}
@media(max-width:720px){#check-car .checkcar-grid,#check-car .checkcar-photo-grid{grid-template-columns:1fr}#check-car .checkcar-item-head{align-items:flex-start;flex-direction:column}#check-car .checkcar-problem{grid-template-columns:1fr}#check-car .checkcar-summary{grid-template-columns:repeat(2,1fr)}}

#check-car .checkcar-review{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid #dce1e8;border-radius:12px;margin:12px 0}
.checkcar-pill{display:inline-block;padding:4px 8px;border-radius:999px;font-weight:700;font-size:12px}
.checkcar-pill.ok{background:#eaf7ee;color:#175b2b}.checkcar-pill.warn{background:#fff4db;color:#805b00}.checkcar-pill.bad{background:#fdecec;color:#9f1c1c}
.checkcar-fleet-table{width:100%;border-collapse:collapse}.checkcar-fleet-table th,.checkcar-fleet-table td{padding:9px;border-bottom:1px solid #e7eaf0;text-align:left;white-space:nowrap}
.checkcar-detail{margin-top:18px;padding-top:14px;border-top:1px solid #e3e6eb}
.checkcar-issues{display:flex;flex-direction:column;gap:8px}.checkcar-issue{display:flex;justify-content:space-between;gap:12px;border:1px solid #e0e4ea;border-left:5px solid #8a94a6;border-radius:10px;padding:10px}.checkcar-issue>div:first-child{display:flex;flex-direction:column;gap:3px}.checkcar-issue.urgent,.checkcar-issue.stop{border-left-color:#b42318}.checkcar-issue.repair{border-left-color:#b7791f}
@media(max-width:720px){.checkcar-issue{flex-direction:column}.checkcar-fleet-table{min-width:760px}}

#check-car .checkcar-photo-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
#check-car .checkcar-compare-callout{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;padding:10px;border:1px solid #dce1e8;border-radius:10px}
#check-car .checkcar-comparison{margin-top:14px;padding:12px;border:1px solid #dce1e8;border-radius:12px}
#check-car .checkcar-compare-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
#check-car .checkcar-photo-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#check-car .checkcar-photo-pair{border:1px solid #e2e6ec;border-radius:10px;padding:10px}
#check-car .checkcar-photo-pair h5{margin:0 0 8px}
#check-car .checkcar-photo-pair>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#check-car .checkcar-photo-compare{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:9px;width:100%;min-height:64px}
#check-car .checkcar-photo-compare.empty{border:1px dashed #cbd2dc;border-radius:8px;padding:9px;color:#6b7280}
@media(max-width:720px){#check-car .checkcar-compare-meta,#check-car .checkcar-photo-compare-grid{grid-template-columns:1fr}}

#check-car .checkcar-alerts,#fleetCheckCarPanelV1 .checkcar-alerts{margin:12px 0;display:flex;flex-direction:column;gap:8px}
#check-car .checkcar-alert,#fleetCheckCarPanelV1 .checkcar-alert{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e1e5eb;border-left:5px solid #b7791f;border-radius:10px}
#check-car .checkcar-alert.bad,#fleetCheckCarPanelV1 .checkcar-alert.bad{border-left-color:#b42318;background:#fff8f7}
#check-car .checkcar-alert.warn,#fleetCheckCarPanelV1 .checkcar-alert.warn{border-left-color:#b7791f;background:#fffcf5}
#check-car .checkcar-alert>div,#fleetCheckCarPanelV1 .checkcar-alert>div{display:flex;flex-direction:column;gap:3px}

#check-car .checkcar-issue-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;margin-top:6px}
#check-car .checkcar-upload-btn{display:inline-flex;cursor:pointer;align-items:center;justify-content:center}
#check-car .checkcar-upload-btn input{display:none}
#check-car .checkcar-issue-history{margin-top:10px;padding-top:8px;border-top:1px solid #e5e8ed;display:flex;flex-direction:column;gap:6px}
#check-car .checkcar-issue-history>div:not(.checkcar-photo-list){display:flex;flex-direction:column;gap:2px}

#check-car .checkcar-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin:14px 0;padding:12px;border:1px solid #e1e5eb;border-radius:12px}
#check-car .checkcar-filters label{display:flex;flex-direction:column;gap:5px;font-weight:600}
#check-car .checkcar-filters input,#check-car .checkcar-filters select{width:100%}
#check-car .checkcar-filter-count{margin:4px 0 8px}
#check-car .checkcar-all-issues{margin-top:18px;padding-top:14px;border-top:1px solid #e1e5eb}
#check-car .checkcar-inline-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:850px){#check-car .checkcar-filters{grid-template-columns:1fr 1fr} }
@media(max-width:560px){#check-car .checkcar-filters{grid-template-columns:1fr} }

#check-car .checkcar-new-damage{display:inline-block;margin:4px 0;padding:3px 7px;border-radius:7px;background:#b42318;color:#fff;font-size:10px;font-weight:800;letter-spacing:.02em}

#check-car .checkcar-photo-compare img{display:block;width:100%;height:190px;object-fit:cover;border-radius:8px;margin-top:7px;background:#eef1f4}
#check-car .checkcar-photo-pair>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#check-car .checkcar-photo-pair{padding:10px;border:1px solid #e1e5eb;border-radius:10px}
#check-car .checkcar-photo-pair h5{margin:0 0 7px}
#check-car .checkcar-comparison{margin-top:12px;padding:12px;border:2px solid #dce1e8;border-radius:12px}
#check-car .checkcar-compare-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}
@media(max-width:650px){#check-car .checkcar-photo-pair>div,#check-car .checkcar-compare-meta{grid-template-columns:1fr}#check-car .checkcar-photo-compare img{height:160px}}


/* Check Car 2026-10-12: inline gallery and closeable in-app lightbox on iOS/Android. */
#check-car .checkcar-history>.checkcar-history-row{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:14px 0}
#check-car .checkcar-history-row>div:first-child{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
#check-car .checkcar-inspection-detail{width:100%;padding:14px;border-radius:12px;border:1px solid #d9e3ee;background:#f8fafc}
#check-car .checkcar-inspection-detail h4{margin:12px 0 8px}
#check-car .checkcar-photo-thumbnails{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:10px;margin-top:9px}
#check-car .checkcar-photo-thumb{width:100%;display:flex;flex-direction:column;gap:7px;align-items:stretch;padding:7px;min-width:0;min-height:142px;border:1px solid #d2dce8;border-radius:12px;background:#fff;color:#12233d;text-align:left;cursor:pointer}
#check-car .checkcar-photo-thumb img{width:100%;height:124px;border-radius:8px;object-fit:cover;background:#edf1f5}
#check-car .checkcar-photo-thumb>span:last-child{font-size:13px;line-height:1.35;font-weight:650}
#check-car .checkcar-photo-thumb-empty{display:grid;place-items:center;height:124px;border-radius:8px;background:#e8edf4;font-size:34px}
#check-car .checkcar-all-items{margin-top:16px;padding:10px 12px;border:1px solid #dde5ef;border-radius:10px}
#check-car .checkcar-all-items summary{cursor:pointer;font-weight:700}
#check-car .checkcar-checklist-items{display:grid;gap:5px;max-height:330px;overflow:auto;padding-top:9px}
#check-car .checkcar-checklist-items>div{padding:6px 0;border-bottom:1px solid #e5ebf1}
.checkcar-viewer-overlay{position:fixed;inset:0;z-index:2147483600;display:grid;place-items:center;padding:12px;background:rgba(6,16,33,.94);padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}
.checkcar-viewer-overlay[hidden],.checkcar-viewer-overlay [hidden]{display:none!important}
.checkcar-viewer-dialog{display:flex;flex-direction:column;width:min(980px,100%);height:min(94vh,900px);height:min(94dvh,900px);background:#101c30;color:#fff;border:1px solid #40526b;border-radius:16px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.checkcar-viewer-toolbar,.checkcar-viewer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;flex-shrink:0}
.checkcar-viewer-toolbar strong{font-size:16px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.checkcar-viewer-overlay button{background:#e7eef8!important;color:#152b44!important;border:1px solid #95a7be!important;border-radius:10px!important;font-weight:700!important;min-height:44px;padding:8px 14px!important}
.checkcar-viewer-overlay button:disabled{opacity:.4;cursor:default}
.checkcar-viewer-toolbar [data-cc-gallery-close]{background:#fff!important;color:#7f1720!important;white-space:nowrap}
.checkcar-viewer-image-wrap{flex:1;position:relative;min-height:0;display:flex;justify-content:center;align-items:center;overflow:hidden;background:#070c15}
.checkcar-viewer-image-wrap img{width:100%;height:100%;display:block;object-fit:contain}
.checkcar-viewer-image-wrap [data-cc-gallery-status]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90%;text-align:center;color:#fff;font-weight:600;background:rgba(7,12,21,.5);border-radius:8px;padding:0 9px}
.checkcar-viewer-bottom [data-cc-gallery-count]{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}
@media(max-width:600px){
 #check-car .checkcar-photo-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr))}
 .checkcar-viewer-overlay{padding-left:5px;padding-right:5px}
 .checkcar-viewer-dialog{height:min(98dvh,940px);border-radius:10px}
 .checkcar-viewer-toolbar,.checkcar-viewer-bottom{padding:10px 8px}
 .checkcar-viewer-toolbar strong{font-size:14px}
 .checkcar-viewer-overlay button{font-size:13px;padding:8px!important}
}
