
.gfm-app,.gfm-app *{box-sizing:border-box}
.gfm-app{max-width:1200px;margin:0 auto;color:#1f2937}
.gfm-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.gfm-card{background:#fff;border:1px solid #d9dee5;border-radius:12px;padding:16px;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.gfm-num{font-size:28px;font-weight:700;color:#111827}
.gfm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;color:#111827}
.gfm-vehicle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.gfm-vehicle-card{display:flex;flex-direction:column;text-decoration:none !important;color:#1f2937 !important;background:#fff;border:1px solid #d9dee5;border-radius:16px;overflow:hidden;box-shadow:0 4px 12px rgba(15,23,42,.05);transition:transform .15s ease, box-shadow .15s ease,border-color .15s ease}
.gfm-vehicle-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(15,23,42,.10);border-color:#c7d0da}
.gfm-vehicle-photo{height:190px;background:#eef2f6;display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid #e5e7eb}
.gfm-vehicle-photo img{display:block;width:100%;height:100%;object-fit:cover}
.gfm-vehicle-photo .dashicons{font-size:56px;width:56px;height:56px;color:#64748b}
.gfm-vehicle-body{padding:14px 16px 16px;background:#fff}
.gfm-title{margin:0 0 6px;font-size:18px;line-height:1.3;font-weight:700;color:#0f172a}
.gfm-meta{font-size:14px;line-height:1.45;color:#475569;word-break:break-word}
.gfm-dot{display:inline-block;margin:0 4px;color:#94a3b8}
.gfm-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}
.gfm-last-cleaned{font-size:13px;line-height:1.4;color:#334155}
.gfm-badge{display:inline-block;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:700;line-height:1.2}
.gfm-green{background:#e8f6ec;color:#186a2f}
.gfm-orange{background:#fff1dc;color:#8a4b00}
.gfm-red{background:#fde5e5;color:#9b1c1c}
.gfm-detail-head{display:grid;grid-template-columns:280px 1fr;gap:20px;background:#fff;border:1px solid #ddd;border-radius:14px;padding:16px}
.gfm-detail-head img{display:block;width:100%;height:220px;object-fit:cover;border-radius:10px}
.gfm-actions{display:flex;gap:8px;margin:18px 0}
.gfm-tab-btn{border:0;border-radius:9px;padding:10px 14px;cursor:pointer;font-weight:600}
.gfm-tab{background:#fff;border:1px solid #ddd;border-radius:14px;padding:16px;margin-bottom:20px}
.gfm-form label{display:block;margin:0 0 12px;font-weight:600;color:#111827}
.gfm-form input[type=text],.gfm-form input[type=number],.gfm-form input:not([type]),.gfm-form textarea,.gfm-form select{width:100%;margin-top:5px}
.gfm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.gfm-checklist{border:1px solid #e5e5e5;border-radius:10px;overflow:hidden;margin-bottom:15px}
.gfm-checkrow{display:grid;grid-template-columns:1fr 130px;gap:12px;align-items:center;padding:8px 10px;border-bottom:1px solid #eee}
.gfm-checkrow:last-child{border-bottom:0}
.gfm-table-wrap{overflow:auto}
.gfm-table{min-width:760px}
.gfm-table details{min-width:220px}
.gfm-history{display:grid;gap:8px}
.gfm-history-item{background:#fff;border-left:4px solid #ddd;padding:10px 12px}
.gfm-admin-cols{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:24px}
.gfm-notice{padding:12px;border:1px solid #ddd;background:#fff}
@media(max-width:900px){.gfm-cards{grid-template-columns:1fr 1fr}.gfm-vehicle-grid{grid-template-columns:1fr 1fr}.gfm-admin-cols{grid-template-columns:1fr}}
@media(max-width:600px){.gfm-cards,.gfm-vehicle-grid,.gfm-grid2,.gfm-detail-head{grid-template-columns:1fr}.gfm-detail-head{padding:12px}.gfm-checkrow{grid-template-columns:1fr 105px}.gfm-toolbar{align-items:flex-start}.gfm-actions{overflow:auto}.gfm-card{padding:12px}.gfm-vehicle-photo{height:180px}.gfm-title{font-size:17px}.gfm-meta{font-size:13px}}

/* v0.2.0 damage photos, multi-damage editor and frontend vehicle management */
.gfm-issue-photo-cell{width:88px;vertical-align:middle!important}.gfm-damage-photo{display:block;width:72px;height:56px;border-radius:8px;overflow:hidden;border:1px solid #dbe1e8;background:#f1f5f9}.gfm-damage-photo img{display:block;width:100%;height:100%;object-fit:cover}.gfm-no-photo{color:#94a3b8}.gfm-issue-entry{margin:0 0 16px;padding:16px;border:1px solid #d9dee5;border-radius:12px;background:#f8fafc}.gfm-issue-entry-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#0f172a}.gfm-remove-issue{appearance:none;border:0;background:#fee2e2;color:#991b1b;width:30px;height:30px;border-radius:999px;line-height:28px;font-size:22px;cursor:pointer}.gfm-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.gfm-inline-check{display:flex!important;align-items:center;gap:8px}.gfm-inline-check input{margin:0!important}.gfm-front-manager{display:grid;grid-template-columns:minmax(300px,430px) minmax(0,1fr);gap:22px}.gfm-manager-form,.gfm-manager-list{background:#fff;border:1px solid #d9dee5;border-radius:14px;padding:16px}.gfm-manage-cards{display:grid;gap:10px}.gfm-manage-card{display:grid;grid-template-columns:74px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px;border:1px solid #e2e8f0;border-radius:12px}.gfm-manage-card.is-inactive{opacity:.58}.gfm-manage-thumb{width:74px;height:58px;border-radius:8px;overflow:hidden;background:#eef2f6;display:flex;align-items:center;justify-content:center}.gfm-manage-thumb img{width:100%;height:100%;object-fit:cover}.gfm-manage-info{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;min-width:0}.gfm-manage-info strong{display:block;width:100%;color:#0f172a}.gfm-manage-info>span:not(.gfm-badge){display:block;width:100%;color:#475569;font-size:13px}.gfm-manage-info small{color:#64748b}.gfm-manage-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.gfm-danger{color:#991b1b!important;border-color:#fecaca!important}.gfm-current-photo{margin:8px 0 12px}.gfm-current-photo img{display:block;max-width:220px;height:auto;border-radius:10px}
@media(max-width:800px){.gfm-front-manager{grid-template-columns:1fr}.gfm-manage-card{grid-template-columns:64px minmax(0,1fr)}.gfm-manage-thumb{width:64px;height:52px}.gfm-manage-actions{grid-column:1/-1;justify-content:flex-start}.gfm-issue-photo-cell{width:66px}.gfm-damage-photo{width:58px;height:46px}}
.gfm-photo-gallery{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.gfm-photo-gallery a{display:block;width:72px;height:72px;border-radius:9px;overflow:hidden;border:1px solid #d9dee5;background:#f8fafc}.gfm-photo-gallery img{display:block;width:100%;height:100%;object-fit:cover}.gfm-issue-photo-cell .gfm-photo-gallery{margin-top:0;min-width:80px;max-width:240px}.gfm-damage-gallery a{width:58px;height:58px}.gfm-wash-history{display:grid;gap:12px;margin:0 0 22px}.gfm-wash-entry{background:#fff;border:1px solid #e1e5ea;border-radius:12px;padding:12px}.gfm-wash-date{font-weight:700;color:#334155}.gfm-wash-gallery a{width:92px;height:72px}.gfm-help{display:block;color:#64748b;margin:-6px 0 12px;line-height:1.4}
@media(max-width:600px){.gfm-wash-gallery a{width:84px;height:68px}.gfm-damage-gallery a{width:52px;height:52px}}
.gfm-inspection-list{display:grid;gap:8px;margin:0 0 16px}.gfm-inspection-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 13px;border:1px solid #dbe2ea;border-radius:10px;background:#fff;text-decoration:none!important;color:#1f2937!important}.gfm-inspection-card:hover{border-color:#aebbc9;box-shadow:0 3px 10px rgba(15,23,42,.06)}.gfm-inspection-detail{margin:14px 0 22px;padding:16px;border:1px solid #dbe2ea;border-radius:14px;background:#fff}.gfm-inspection-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.gfm-inspection-detail h4{margin:0 0 4px}.gfm-inspection-detail h5{margin:18px 0 7px}.gfm-inspection-results{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.gfm-inspection-result{display:flex;justify-content:space-between;gap:15px;padding:8px 10px;border-bottom:1px solid #eef0f2}.gfm-inspection-result:last-child{border-bottom:0}.gfm-result-ok strong{color:#166534}.gfm-result-issue{background:#fff5f5}.gfm-result-issue strong{color:#b91c1c}.gfm-result-na strong{color:#64748b}.gfm-inspection-notes{margin-top:14px;padding:11px 12px;background:#f8fafc;border-radius:9px}.gfm-inspection-notes p{margin:5px 0 0}.gfm-edit-existing-photos{margin:10px 0 12px}.gfm-edit-existing-photos .gfm-photo-gallery{margin-top:7px}


/* v0.5.0 fast vehicle search */
.gfm-vehicle-search{display:grid;grid-template-columns:minmax(220px,1fr) 170px auto;gap:10px;align-items:center;margin:0 0 8px}.gfm-search-field{position:relative}.gfm-search-field .dashicons{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#64748b;pointer-events:none}.gfm-search-field input[type=search]{width:100%;min-height:42px;padding:8px 12px 8px 40px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;font-size:14px}.gfm-search-field input[type=search]:focus{border-color:#64748b;box-shadow:0 0 0 2px rgba(100,116,139,.12);outline:none}.gfm-vehicle-status-filter{min-height:42px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a}.gfm-clear-vehicle-search{min-height:42px!important}.gfm-search-summary{margin:0 0 12px;color:#64748b;font-size:13px}.gfm-no-search-results{padding:20px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;color:#64748b;text-align:center;margin:12px 0 20px}
@media(max-width:650px){.gfm-vehicle-search{grid-template-columns:1fr 1fr}.gfm-search-field{grid-column:1/-1}.gfm-clear-vehicle-search{width:100%}}

/* v0.6.0 direct vehicle status, overall history and period reporting */
.gfm-detail-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.gfm-detail-status .gfm-form{display:flex;align-items:center;gap:7px;margin:0}.gfm-detail-status .gfm-form label{display:flex;align-items:center;gap:6px;margin:0;font-weight:600}.gfm-detail-status select{min-width:110px;margin:0!important}.gfm-report-box{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(480px,1.3fr);gap:18px;align-items:end;margin:26px 0;padding:18px;border:1px solid #d9dee5;border-radius:14px;background:#f8fafc}.gfm-report-box h2{margin:0 0 5px;color:#0f172a}.gfm-report-box p{margin:0;color:#64748b}.gfm-report-box .gfm-form{margin:0}.gfm-report-fields{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;gap:10px;align-items:end}.gfm-report-fields label{margin:0}.gfm-report-fields input{width:100%;min-height:40px;margin-top:5px}.gfm-report-fields .button{min-height:40px}.gfm-history-heading{margin-top:28px;margin-bottom:10px}.gfm-history-heading span{font-size:13px;color:#64748b}.gfm-overall-history{display:grid;gap:9px;margin-bottom:24px}.gfm-overall-item{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;padding:12px 14px;border:1px solid #e2e8f0;border-left:4px solid #94a3b8;border-radius:10px;background:#fff}.gfm-event-activity{border-left-color:#3b82f6}.gfm-event-inspection{border-left-color:#22c55e}.gfm-event-issue{border-left-color:#f59e0b}.gfm-event-repair{border-left-color:#8b5cf6}.gfm-overall-time{font-size:13px;font-weight:700;color:#475569;white-space:nowrap}.gfm-overall-main>a{text-decoration:none}.gfm-overall-main>a strong{color:#0f172a}.gfm-overall-main>div{margin-top:2px;color:#334155}.gfm-overall-main p{margin:5px 0 0;color:#64748b}.gfm-history-gallery{margin-top:8px}.gfm-history-gallery a{width:56px;height:48px}
@media(max-width:900px){.gfm-report-box{grid-template-columns:1fr}.gfm-report-fields{grid-template-columns:1fr 1fr}.gfm-report-fields label:nth-child(3){grid-column:1/-1}.gfm-report-fields .button{grid-column:1/-1}}
@media(max-width:600px){.gfm-detail-status{width:100%;justify-content:space-between}.gfm-detail-status .gfm-form{width:100%;display:grid;grid-template-columns:1fr auto}.gfm-detail-status .gfm-form label{display:grid;grid-template-columns:auto 1fr}.gfm-report-fields{grid-template-columns:1fr}.gfm-report-fields label:nth-child(3),.gfm-report-fields .button{grid-column:auto}.gfm-overall-item{grid-template-columns:1fr;gap:4px}.gfm-overall-time{white-space:normal}}

/* v0.7.0 report preview + direct initial damage status */
.gfm-report-actions{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.gfm-report-actions .button{min-height:40px}.gfm-report-preview{margin:0 0 26px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;overflow:hidden}.gfm-report-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:15px 18px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.gfm-report-preview-head h2{margin:0 0 5px}.gfm-report-preview-head p{margin:0;color:#475569}.gfm-report-preview-head>span{white-space:nowrap;padding:5px 9px;border-radius:999px;background:#e2e8f0;color:#334155;font-size:12px;font-weight:700}.gfm-report-preview-body{padding:18px;overflow:auto}.gfm-report-preview-body table{max-width:100%}.gfm-mail-preview-content{min-width:720px}
@media(max-width:900px){.gfm-report-actions{grid-column:1/-1}.gfm-report-actions .button{flex:1}.gfm-report-preview-head{flex-direction:column}.gfm-mail-preview-content{min-width:640px}}
@media(max-width:600px){.gfm-report-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.gfm-report-actions .button{width:100%}.gfm-report-preview-body{padding:12px}.gfm-mail-preview-content{min-width:600px}}


/* v0.7.1 compact damage photo stack + carousel */
.gfm-issue-photo-cell{width:78px;vertical-align:middle}
.gfm-photo-stack{position:relative;display:block;width:58px;height:58px;padding:0;border:0;border-radius:9px;overflow:hidden;background:#e2e8f0;cursor:pointer;box-shadow:0 0 0 1px #d7dee7;text-align:left}
.gfm-photo-stack:hover{box-shadow:0 0 0 2px #64748b}
.gfm-photo-stack:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px}
.gfm-photo-stack-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}
.gfm-photo-count{position:absolute;right:4px;bottom:4px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.88);color:#fff;font-size:11px;font-weight:700;line-height:1}
.gfm-photo-multi-icon{position:absolute;top:4px;right:5px;color:#fff;font-size:14px;line-height:1;text-shadow:0 1px 3px rgba(0,0,0,.85)}
.gfm-photo-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(2,6,23,.88)}
.gfm-photo-modal.is-open{display:flex}
.gfm-photo-modal-dialog{position:relative;width:min(1000px,94vw);height:min(760px,88vh);display:flex;align-items:center;justify-content:center}
.gfm-photo-modal-image{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:10px;box-shadow:0 16px 60px rgba(0,0,0,.45)}
.gfm-photo-modal-close,.gfm-photo-modal-prev,.gfm-photo-modal-next{position:absolute;border:0;background:rgba(15,23,42,.78);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2}
.gfm-photo-modal-close{top:-8px;right:-8px;width:42px;height:42px;border-radius:999px;font-size:26px}
.gfm-photo-modal-prev,.gfm-photo-modal-next{top:50%;transform:translateY(-50%);width:46px;height:58px;border-radius:10px;font-size:30px}
.gfm-photo-modal-prev{left:8px}.gfm-photo-modal-next{right:8px}
.gfm-photo-modal-counter{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);padding:5px 10px;border-radius:999px;background:rgba(15,23,42,.78);color:#fff;font-size:12px;font-weight:700}
.gfm-photo-modal.is-single .gfm-photo-modal-prev,.gfm-photo-modal.is-single .gfm-photo-modal-next,.gfm-photo-modal.is-single .gfm-photo-modal-counter{display:none}
body.gfm-modal-open{overflow:hidden}
@media(max-width:600px){.gfm-photo-modal{padding:12px}.gfm-photo-modal-dialog{width:96vw;height:86vh}.gfm-photo-modal-prev,.gfm-photo-modal-next{width:40px;height:50px}.gfm-photo-modal-prev{left:2px}.gfm-photo-modal-next{right:2px}}

/* v0.7.2 - closed damage/history */
.gfm-closed-issues{margin:0 0 22px;border:1px solid #dbe2ea;border-radius:12px;background:#fff;overflow:hidden}
.gfm-closed-issues>summary{cursor:pointer;padding:12px 14px;font-weight:700;color:#334155;background:#f8fafc}
.gfm-closed-issues[open]>summary{border-bottom:1px solid #e5e7eb}
.gfm-closed-issues .gfm-table-wrap{padding:0}
.gfm-history-damage{border-left-color:#64748b}
.gfm-history-resolution{margin-top:8px;padding:8px 10px;border-radius:8px;background:#f1f5f9;color:#334155}
.gfm-history-damage .gfm-compact-photos{display:inline-flex;margin-left:8px;vertical-align:middle}

/* v0.8.0 - resilient chunked mobile uploads */
.gfm-upload-progress{display:none;margin:12px 0 14px;padding:12px 13px;border:1px solid #cbd5e1;border-radius:11px;background:#f8fafc;color:#334155}
.gfm-upload-progress.has-error{display:block;border-color:#fca5a5;background:#fff7f7}
.gfm-upload-progress-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.gfm-upload-progress-head strong{color:#0f172a}
.gfm-upload-percent{font-variant-numeric:tabular-nums;font-weight:700;color:#475569}
.gfm-upload-track{height:9px;border-radius:999px;overflow:hidden;background:#e2e8f0}
.gfm-upload-track span{display:block;width:0;height:100%;border-radius:999px;background:#2563eb;transition:width .15s linear}
.gfm-upload-progress.has-error .gfm-upload-track span{background:#dc2626}
.gfm-upload-status{margin-top:8px;font-size:13px;font-weight:700;color:#334155}
.gfm-upload-file{margin-top:3px;font-size:12px;color:#64748b;overflow-wrap:anywhere}
.gfm-form button.is-busy{cursor:wait;opacity:.7}
@media(max-width:600px){.gfm-upload-progress{position:sticky;bottom:8px;z-index:50;box-shadow:0 8px 26px rgba(15,23,42,.16)}}

/* Keep close control obvious on every lightbox, also for one photo. */
.gfm-photo-modal-close{box-shadow:0 4px 16px rgba(0,0,0,.4);border:2px solid rgba(255,255,255,.35)}
@media(max-width:600px){.gfm-photo-modal-close{position:fixed;top:calc(env(safe-area-inset-top, 0px) + 12px);right:12px;width:48px;height:48px;font-size:30px;background:rgba(15,23,42,.92)}}
