
/* Preview 4 additive manager-only styles; stable 1.8.9 rules unchanged. */
.fast-p4-manager #cards > .vehicle-card:not([data-shared-id]){display:none!important}
.fast-p4-detail{padding:16px!important;overflow:visible}
.fast-p4-head{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.9fr);gap:18px;align-items:start}
.fast-p4-ident,.fast-p4-photo{min-width:0}
.fast-p4-photo img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:12px}

.fast-p4-footer{display:flex;flex-wrap:wrap;align-items:end;gap:12px}
.fast-p4-status{display:flex;flex-direction:column;gap:5px;font-size:12px}
.fast-p4-status select{background:#1a3048;color:var(--text);border:1px solid #3b526d;border-radius:8px;padding:7px}
#fast-p4-save-state{font-size:12px;color:var(--muted);flex:1}
.fast-p4-delete{background:#6c303b;color:white}
.fast-p4-alert{padding:10px;background:#503b2b;border-radius:8px;color:#ffe3bd;font-size:12px}
.fast-p4-card .badge{font-size:11px;padding:4px 8px;white-space:normal;text-align:center}
@media(max-width:1300px){.fast-p4-head{grid-template-columns:1fr}}

.fast-list-view .fast-p4-detail{display:block;grid-template-columns:none;grid-template-areas:none;padding:16px!important}

/* Preview 5: use existing card action treatment and consistent heading alignment. */
.fast-p4-manager .fast-p4-card .actions{display:flex;align-items:stretch;gap:6px}
.fast-p4-manager .fast-p4-card .actions .open{flex:1;min-width:0}
.fast-p4-manager .fast-p4-card .actions .delete-action{flex:0 0 34px;width:34px;min-width:34px;height:36px;padding:8px;display:flex;align-items:center;justify-content:center}
.fast-p4-manager .fast-p4-card .actions .delete-action svg{width:17px;height:17px;pointer-events:none}


/* Preview 8: manager form uses the original salesperson .spec/.specs.editable/.editor-title rules from style.css.
   These rules govern layout only; field colors, borders, padding and typography are shared. */
.fast-p4-manager .fast-p4-detail .fast-p4-ident .editor-title{margin:0 0 10px;text-align:left;color:var(--text);font-size:16px;font-weight:800}

.fast-p4-manager .fast-p4-detail .detail-options .editor-title, .fast-p4-manager .fast-p4-detail .detail-description .editor-title{color:var(--text);text-align:left}

/* Preview 9: field labels follow the salesperson card alignment. */

/* Preview 10: one shared field component and shared grid, identical to Salesperson.
   Only the manager identification/photo composition and long-text spans differ. */
.fast-list-view .fast-p4-detail .fast-p4-ident .specs.editable {grid-template-columns:repeat(2,minmax(0,1fr))}
.fast-p4-detail .specs.editable .spec:has(textarea) {grid-column:1/-1}
.fast-p4-detail .specs.editable .spec textarea {min-height:94px;height:94px;resize:vertical}
@media(max-width:650px){.fast-list-view .fast-p4-detail .fast-p4-ident .specs.editable{grid-template-columns:1fr}}

/* Preview 11: use salesperson's actual .detail-content wrapper.
   Override list-view display:contents so the wrapper can establish text alignment
   and padding without doubling the existing outer manager padding. */
.fast-list-view .fast-p4-detail { padding:0!important; }
.fast-list-view .fast-p4-detail > .detail-content {
  display:block;
  text-align:left;
  padding:16px;
}

/* Preview 12: compact manager sections using the same semantic wrappers as sales.
   Scoped to the manager card to avoid disturbing the salesperson workspace. */
.fast-p4-manager .fast-p4-detail .detail-options,
.fast-p4-manager .fast-p4-detail .detail-description {
  grid-area:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
.fast-p4-manager .fast-p4-detail .detail-options .editor-title,
.fast-p4-manager .fast-p4-detail .detail-description .editor-title {
  margin:14px 0 10px;
}
.fast-p4-manager .fast-p4-detail .review-footer {
  grid-area:auto;
  border-top:0;
  margin-top:12px;
  padding-top:12px;
}

/* Preview 13: use the salesperson list card dimensions, not manager overrides. */
.fast-list-view.fast-p4-manager .fast-p4-card .actions{gap:4px;align-items:stretch}
.fast-list-view.fast-p4-manager .fast-p4-card .actions .open{font-size:11px;line-height:16px;padding:6px 5px;min-height:28px;height:28px}
.fast-list-view.fast-p4-manager .fast-p4-card .actions .delete-action{flex:0 0 27px;width:27px;min-width:27px;height:28px;padding:6px}
.fast-list-view.fast-p4-manager .fast-p4-card .actions .delete-action svg{width:14px;height:14px}
.fast-p4-manager .fast-p4-detail .detail-options .editor-title,
.fast-p4-manager .fast-p4-detail .detail-description .editor-title{margin-top:20px}
.fast-p13-status-wrap{position:relative;flex:none}
.fast-p13-status-toggle{cursor:pointer;border:0;line-height:1.2}
.fast-p13-status-menu{position:absolute;right:0;top:calc(100% + 4px);min-width:190px;z-index:25;padding:6px;background:#203750;border:1px solid var(--edge);border-radius:12px;box-shadow:0 8px 24px #0008}
.fast-p13-status-menu[hidden]{display:none}
.fast-p13-status-menu button{display:block;width:100%;padding:9px 12px;text-align:left;border-radius:8px;background:transparent;font-size:12px}
.fast-p13-status-menu button:hover,.fast-p13-status-menu button[aria-current="true"]{background:#345878}
.fast-p4-manager .fast-p4-card{overflow:visible}
.fast-p4-manager .fast-p4-card .card-photo{border-radius:12px 0 0 12px}
#fast-p13-publish:disabled{opacity:.65;cursor:not-allowed}

/* v1.9.1: role control beside language toggle, shared badge metrics. */
.fast-role-switch{display:inline-flex;align-items:center;border:1px solid #425669;border-radius:9px;padding:3px;background:#172735;min-width:0}
.fast-role-switch select{appearance:none;-webkit-appearance:none;border:0;outline:0;border-radius:6px;background:#2683bb;color:#fff;font:700 12px/16px "Open Sans",sans-serif;padding:7px 28px 7px 11px;cursor:pointer;max-width:235px;min-width:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center}
.fast-role-switch select:focus-visible{outline:2px solid #6fc3ff;outline-offset:2px}
.fast-role-switch select option{background:#172735;color:white}
.header-right .trial{font-size:12px;color:#8fb5db;white-space:nowrap}
/* Salesperson's compact badge is the canonical list-view height. */
.fast-list-view .vehicle-card .sales-badge,
.fast-list-view .fast-p4-card .fast-p13-status-toggle{box-sizing:border-box;font-size:11px;line-height:16px;padding:4px 7px;min-height:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}
.fast-list-view .fast-p4-card .fast-p13-status-toggle{white-space:nowrap}
@media(max-width:850px){.fast-role-switch select{max-width:160px}.header-right{gap:8px}}

/* v1.9.2: developer preview is a subdued navigation control, not a primary action. */
.fast-role-switch{background:#172735;border:1px solid #425669;border-radius:9px;padding:3px;box-shadow:none}
.fast-role-switch select{background-color:transparent;color:#c5d5e5;font-weight:600;font-size:12px;line-height:16px;padding:7px 28px 7px 11px;max-width:235px;transition:background-color .15s,color .15s}
.fast-role-switch select:hover{background-color:#243b52;color:#fff}
.fast-role-switch select:focus-visible{outline:2px solid #6fc3ff;outline-offset:2px}
.header-right .trial{color:#a9bfd4;font-size:12px;font-weight:700;letter-spacing:.01em}

/* FAST v1.9.4 shared CARFAX badges */
.fast-verified-badges{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.fast-verified-badges span{padding:7px 12px;border-radius:7px;color:#fff;font-weight:700;font-size:13px}
.fast-badge-one{background:#179c43}.fast-badge-noaccident{background:#1476d8}.fast-badge-low{background:#586d85}
.fast-carfax-state{display:block;margin-top:8px;opacity:.85}
.fast-carfax-report{display:inline-flex;align-items:center;padding:9px 15px;border-radius:7px;background:#1667b8;color:#fff;text-decoration:none;font-weight:700}

/* v1.9.5: neutral branded report control; replace wordmark with licensed image when supplied. */
.fast-carfax-report{gap:10px;background:#fff;color:#17212e;border:1px solid #b9c5d3;box-shadow:0 1px 3px #0002}.fast-carfax-report:hover{background:#eaf3fc}.fast-carfax-wordmark{font-weight:900;letter-spacing:.08em;color:#fff;background:#c7222a;border-radius:3px;padding:4px 7px;font-size:13px}

/* v1.9.7 — original CARFAX artwork, unified 41px row */
.fast-carfax-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 18px}
.fast-carfax-inline .fast-carfax-report{height:41px;box-sizing:border-box;padding:0;background:transparent;border:0;box-shadow:none;display:inline-flex;align-items:center}
.fast-carfax-inline .fast-carfax-report:hover{background:transparent}
.fast-carfax-logo{display:block;height:41px;width:auto;max-width:100%;object-fit:contain}
.fast-carfax-inline .fast-verified-badges,.fast-carfax-inline .carfax-badges{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0}
.fast-carfax-inline .fast-verified-badges img,.fast-carfax-inline .carfax-badge-image{height:41px;width:auto;display:block;object-fit:contain}
/* Preserve entered case and acronym labels; display labels are formatted in JS. */
#fast-manager-form input,#fast-manager-form select{text-transform:none}
#fast-manager-form input[type="number"]{appearance:textfield}

/* v1.9.8: shared galleries use original FAST gallery controls and dimensions. */
.fast-shared-gallery{min-width:0}
.fast-shared-gallery .gallery-selector{display:flex;gap:8px;margin-bottom:10px}




.fast-shared-gallery .photo-upload-actions{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.fast-shared-gallery .hero{width:100%;object-fit:cover;border-radius:12px}

/* v1.9.9: reuse the original gallery tile, delete button and drag-slot styling. */
#shared-thumbs-gallery{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-behavior:auto;overscroll-behavior-x:contain;padding:16px 12px 18px;min-height:112px;touch-action:auto}
#shared-thumbs-gallery .managed-photo{display:block;position:relative;flex:0 0 100px;width:100px;height:80px;margin:0;border-radius:12px;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;cursor:grab;transition:transform .14s ease,background .14s ease}
#shared-thumbs-gallery .managed-photo .thumb{display:block;width:100%;height:100%;object-fit:cover;border-radius:12px;border:2px solid transparent;pointer-events:none}
#shared-thumbs-gallery .managed-trash{position:absolute;z-index:3;top:4px;right:4px;width:25px;height:25px;min-width:25px;padding:0;border-radius:50%;border:0;background:rgba(216,41,53,.8);color:#fff;opacity:1;display:grid;place-items:center;box-shadow:0 1px 4px #0005;touch-action:manipulation;cursor:pointer}
#shared-thumbs-gallery .managed-trash svg{width:13px;height:13px}
#shared-thumbs-gallery .managed-photo.photo-slot{background:#367bb43d;border:2px dashed #7cc4ff;box-shadow:inset 0 0 0 2px #7cc4ff22;opacity:1;transform:none}
#shared-thumbs-gallery .managed-photo.photo-slot .thumb,#shared-thumbs-gallery .managed-photo.photo-slot .managed-trash{visibility:hidden}
.photo-ghost{position:fixed!important;z-index:9999!important;pointer-events:none!important;margin:0!important;opacity:.88;box-shadow:0 14px 30px #000a;transform:scale(1.04);transition:none!important}
body.photo-sorting,body.photo-sorting *{cursor:grabbing!important;user-select:none!important;-webkit-user-select:none!important}
@media(max-width:620px){#shared-thumbs-gallery .managed-photo{flex-basis:100px;width:100px;height:80px}#shared-thumbs-gallery{gap:10px}}


/* v1.9.13 — per-salesperson Marketplace publication indicators */
.fast-p13-pub-dot{display:inline-block;width:12px;height:12px;border-radius:50%;flex:none;margin:5px 0 4px;box-shadow:0 0 0 2px rgba(255,255,255,.08)}
.fast-p13-pub-dot.is-online{background:#26b96c}.fast-p13-pub-dot.is-offline{background:#e44949}
.fast-p13-people{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin:5px 0 8px}
.fast-p13-person{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background:#323943;color:white;font-size:11px;font-weight:700}
.fast-p13-person img{width:100%;height:100%;object-fit:cover}.fast-p13-person.is-offline{filter:grayscale(1) brightness(.36)}
.fast-p13-person.is-online{filter:none}
.fast-p13-publication{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.fast-p13-publication button{cursor:pointer}

/* v1.9.14 publication indicators align beside lifecycle status */
.fast-p4-card .stock-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.fast-p4-card .stock-status .fast-p13-people{margin:0;flex-wrap:nowrap;gap:4px}
.fast-p4-card .stock-status .fast-p13-pub-dot{margin:0}
.fast-p4-card .stock-status .fast-p13-person{width:27px;height:27px;flex:none}

/* v1.9.15 — match the legacy stock/status row in both card and list layouts. */
.fast-p4-card .stock-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px;min-width:0}
.fast-p4-card .stock-status>.stock{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.fast-p4-card .fast-p15-status-right{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 1 auto;min-width:0;margin-left:auto}
.fast-p4-card .fast-p15-status-right .fast-p13-people{display:flex;align-items:center;gap:4px;margin:0;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:thin}
.fast-p4-card .fast-p15-status-right .fast-p13-pub-dot{margin:0;flex:none}
.fast-p4-card .fast-p15-status-right>.badge,.fast-p4-card .fast-p15-status-right>.fast-p13-status-wrap{flex:none}
.fast-p4-card .fast-p15-status-right .fast-p13-person{width:27px;height:27px;flex:0 0 27px}

/* v1.9.17 removal tasks: high priority without making details illegible. */
.vehicle-card.fast-removal-card{border:2px solid #db303c!important;background:color-mix(in srgb,var(--panel,#252525) 72%,#555 28%);box-shadow:0 0 0 1px rgba(219,48,60,.2)}
.fast-removal-card .card-photo{opacity:.48;filter:grayscale(.75)}
.fast-removal-warning{color:#f36b73;font-size:12px;font-weight:750;line-height:1.5;margin:5px 0}
.fast-removal-actions{display:flex;margin-top:8px}
.fast-removal-actions button,.fast-removal-detail button{border:1px solid #db303c;border-radius:8px;padding:9px 13px;color:#fff;background:#a72330;cursor:pointer}
.fast-removal-detail{padding:25px;border:2px solid #db303c;border-radius:12px;display:grid;gap:14px}
.fast-removal-detail .open{display:inline-flex;width:max-content}

/* v1.9.17.3: no empty thumbnail gutter when a gallery has 0 or 1 photo. */
#shared-thumbs-gallery.no-thumbnails{display:none!important;min-height:0;padding:0;margin:0;}
.fast-shared-gallery:has(#shared-thumbs-gallery.no-thumbnails) .photo-upload-actions{margin-top:8px;}

/* v1.9.17.6: header weight and inventory sorting */
.header-right .trial{font-weight:400}
.fast-sort-label{font-size:12px;color:#a9bfd4;white-space:nowrap}
#fast-inventory-sort{height:33px;min-width:150px;max-width:215px;flex:0 1 185px;border:1px solid #425669;border-radius:9px;background:#172735;color:#f1f6fd;padding:0 9px;font:400 12px "Open Sans",sans-serif}
@media(max-width:900px){.toolbar{flex-wrap:wrap}}

/* v1.9.17.7: inventory toolbar two-row layout; preserve card renderer. */
.toolbar{flex-wrap:nowrap!important;gap:clamp(5px,.7vw,12px)!important;margin-bottom:7px!important}
.toolbar #search{flex:1 1 auto!important;width:auto!important;min-width:110px!important}
.fast-inventory-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;min-width:0}
.fast-inventory-meta #count{margin:0!important;flex:1 1 auto;min-width:0;font-size:12px;color:var(--muted)}
.fast-sort-controls{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;min-width:0}
.fast-sort-controls .fast-sort-label{font-size:12px;white-space:nowrap;color:var(--muted)}
.fast-sort-controls #fast-inventory-sort{display:block;box-sizing:border-box;appearance:auto;-webkit-appearance:menulist;min-width:205px;max-width:235px;width:215px;height:33px;flex:none;padding:0 7px;background-color:#172735!important;color:#f1f6fd!important;border:1px solid #425669;border-radius:9px;font:400 12px "Open Sans",sans-serif;opacity:1!important;visibility:visible!important}
.fast-sort-controls #fast-inventory-sort option{background:#172735;color:#f1f6fd}
@media(max-width:720px){.fast-inventory-meta{flex-wrap:wrap;gap:7px}.fast-inventory-meta #count{flex-basis:100%}.fast-sort-controls{margin-left:auto}.fast-sort-controls #fast-inventory-sort{width:min(215px,55vw);min-width:140px}}
@media(max-width:520px){.toolbar{flex-wrap:wrap!important}.toolbar #search{flex-basis:calc(100% - 90px)!important}.toolbar .tabs{flex-basis:100%}}
