.field-hint{display:inline-block;margin-left:8px;color:#95a6af;font-size:11px;font-weight:400}
input[type="file"]{padding:8px;background:#f9fbfc}
.attachments-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:22px}
.vehicle-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.vehicle-detail-identity{display:flex;align-items:center;gap:19px;min-width:0}
.vehicle-side-preview{width:122px;height:82px;flex:none}
.vehicle-side-thumb,.vehicle-side-placeholder{display:grid;place-items:center;width:100%;height:100%;padding:0;overflow:hidden;border:1px solid #dbe6e9;border-radius:12px;background:#e7f1f2;color:#75a69f}
.vehicle-side-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.vehicle-side-placeholder .icon{width:43px;height:43px;stroke-width:1.35}
.driver-lookup{padding:19px 22px;background:#f8fbfb;border-bottom:1px solid #e6edef}
.driver-lookup form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.driver-lookup label{width:265px;max-width:100%}
.driver-lookup input{margin-top:6px}
.driver-lookup .match-result{margin-top:14px}
.driver-lookup .match-result a{color:#087f69;text-decoration:underline;text-underline-offset:3px}
.history-subhead{margin:0;padding:16px 22px 10px;font-size:12px;font-weight:750;color:#2c5365;background:#fff}
.history-subhead:not(:first-of-type){border-top:1px solid #e8eef0}
.inline-end-form .text-button{white-space:nowrap}
.maintenance-items{min-width:220px;max-width:360px;white-space:pre-line;word-break:break-word;color:#37566a;font-weight:600}
.maintenance-files{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;min-width:100px}
.maintenance-file{max-width:175px;min-width:0}
.maintenance-download{display:inline-flex;align-items:center;gap:6px;max-width:175px;word-break:break-all;white-space:normal}
.maintenance-download .icon{width:17px;height:17px}
.attachment-card{min-height:180px;border:1px solid #d4e1e7;border-radius:9px;padding:18px;background:#fff;box-shadow:0 3px 12px #23405208;display:flex;align-items:flex-start;flex-direction:column;gap:11px;min-width:0}
.attachment-card>span{font-size:12px;color:#7a909d;font-weight:700}
.attachment-card>strong{font-size:12px;color:#294a5d;word-break:break-all}
.document-preview{display:block;max-width:100%;width:230px;height:130px;object-fit:contain;background:#fff;border:1px solid #e5ebef;border-radius:7px}
.document-file{width:62px;height:65px;display:grid;place-items:center;border-radius:8px;background:#e4f3ef;color:#139979;font-size:34px}
.document-file>.icon{width:28px;height:28px}
.document-empty{color:#a0b0b8;font-size:12px;margin:auto 0}
.inspection-frequency{display:inline-block;color:#6f8793;font-size:11px;font-weight:600}
.extra-attachments-section{min-width:0;padding-top:8px;border-top:1px solid #e5ecef}
.extra-attachments-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.extra-attachments-heading h3{margin:0 0 4px;color:#24485b;font-size:14px}
.extra-attachments-heading .section-note{margin:0}
.extra-attachments-actions{display:flex;justify-content:flex-end;margin-top:10px}
.extra-upload-list{display:grid;gap:10px}
.extra-upload-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,1fr) auto;align-items:end;gap:12px;padding:12px;border:1px dashed #c9d9de;border-radius:9px;background:#f9fcfc}
.extra-upload-row label{min-width:0}
.existing-extra-files{display:grid;gap:8px;margin-bottom:12px}
.existing-extra-file{display:flex;gap:12px;align-items:baseline;padding:9px 11px;background:#f7fafb;border-radius:7px;font-size:12px}
.existing-extra-file span{color:#6f8793}
.extra-file-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;padding:20px}
.extra-file-card{display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid #d4e1e7;border-radius:9px;background:#fff;box-shadow:0 3px 12px #23405208}
.extra-file-preview{width:84px;height:58px;overflow:hidden}
.extra-file-preview .uploaded-image{width:84px;min-width:84px}
.extra-file-preview .image-thumb{height:58px}
.extra-file-copy{display:grid;gap:4px;min-width:0}
.extra-file-copy strong,.extra-file-copy span{overflow-wrap:anywhere;font-size:12px}
.extra-file-copy span{color:#567181}
.extra-file-copy small{color:#8397a2}
.extra-file-card form{grid-column:3;grid-row:2}
.delete-record-form{display:flex;align-items:center;gap:14px;padding:18px 2px;color:#81949e;font-size:12px}
@media(max-width:650px){.extra-upload-row{grid-template-columns:1fr}.extra-file-card{grid-template-columns:70px minmax(0,1fr)}.extra-file-card>a,.extra-file-card>form{grid-column:2;grid-row:auto}.delete-record-form{align-items:flex-start;flex-direction:column}}
@media(max-width:900px){.vehicle-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.attachments-grid,.vehicle-photo-grid{grid-template-columns:1fr}.vehicle-detail-identity{align-items:flex-start;gap:13px}.vehicle-side-preview{width:88px;height:64px}.vehicle-side-placeholder .icon{width:32px;height:32px}}

.uploaded-image{width:100%;max-width:230px}
.image-thumb{display:block;width:100%;height:130px;padding:0;border:1px solid #dbe5e9;border-radius:8px;background:#f4f8f9;overflow:hidden;cursor:zoom-in}
.image-thumb:hover,.image-thumb:focus-visible{border-color:#16a887;box-shadow:0 0 0 3px #16a8871a}
.image-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.image-actions{display:flex;align-items:center;gap:15px;margin-top:8px}
.uploaded-image.compact{width:84px;min-width:84px}
.uploaded-image.compact .image-thumb{height:58px}
.uploaded-image.compact .image-actions{gap:8px;margin-top:4px}
.uploaded-image.compact .image-actions .text-button,.uploaded-image.compact .image-actions .text-link{font-size:11px}
.receipt-cell{display:flex;align-items:center;gap:10px}
.image-viewer{width:min(960px,calc(100vw - 28px));max-height:calc(100vh - 28px);border:0;border-radius:12px;padding:0;background:#fff;box-shadow:0 20px 70px #102d4060}
.image-viewer::backdrop{background:#0c263bd1}
.image-viewer-head,.image-viewer-foot{display:flex;align-items:center;justify-content:space-between;padding:15px 19px}
.image-viewer-head{border-bottom:1px solid #e5ebef}
.image-viewer-head strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.image-viewer-body{display:grid;place-items:center;padding:14px;background:#f3f6f8;min-height:150px}
.image-viewer-body img{display:block;max-width:100%;max-height:calc(100vh - 190px);object-fit:contain}
.image-viewer-foot{justify-content:flex-end;border-top:1px solid #e5ebef}
