/* Fleet performance: responsive portfolio view, using the portal's selected theme. */
.fp-dashboard{color:var(--theme-text);margin:4px 0 28px;font-variant-numeric:tabular-nums}
.fp-dashboard *{box-sizing:border-box}
.fp-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}
.portal .fp-heading h1{font-family:'DM Sans',sans-serif;font-size:clamp(28px,3vw,40px);letter-spacing:-.045em;line-height:1.15;margin:7px 0 7px;font-weight:700}
.fp-heading p{margin:0;font-size:15px;color:var(--theme-muted)}
.fp-eyebrow{font-size:10px;letter-spacing:.18em;color:var(--theme-muted);font-weight:600}
.fp-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.fp-month,.fp-scope{display:flex;gap:10px;align-items:center;background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:8px;min-width:0;padding:0 12px}
.fp-dashboard select{color:var(--theme-text);background:transparent;border:0;border-radius:0;padding:10px 24px 10px 0;min-height:44px;font:500 14px 'DM Sans',sans-serif;width:auto;max-width:100%}
.fp-dashboard select option{background:var(--theme-surface);color:var(--theme-text)}
.fp-dashboard svg{width:20px;height:20px;flex-shrink:0}
.fp-period{margin-left:auto;color:var(--theme-muted);font-size:12px}
.fp-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:30px}
.fp-metric{background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:10px;padding:20px 16px;min-width:0}
.fp-metric-label{display:flex;align-items:center;gap:10px;color:var(--theme-muted);font-size:12px;line-height:1.4;min-height:36px}
.fp-icon{display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--theme-soft);color:var(--theme-text);width:36px;height:36px;flex-shrink:0}
.fp-metric>strong{display:block;font-size:clamp(23px,2.5vw,34px);letter-spacing:-.045em;line-height:1.2;font-weight:600;margin:14px 0 8px;overflow-wrap:anywhere}
.fp-metric>small{display:block;color:var(--theme-muted);font-size:11px;line-height:1.5}
.fp-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.portal .fp-list-head h2{font:600 16px 'DM Sans',sans-serif;margin:0;letter-spacing:0}
.fp-list-head h2 span{display:inline-flex;font-size:11px;padding:3px 7px;margin-left:6px;border-radius:5px;background:var(--theme-soft);color:var(--theme-muted)}
.fp-list-head>span{font-size:11px;color:var(--theme-muted)}
.fp-vehicles{display:grid;gap:14px}
.fp-vehicle{display:grid;grid-template-columns:minmax(150px,25%) minmax(0,1fr) minmax(140px,20%) 44px;align-items:center;gap:20px;position:relative;overflow:hidden;background:var(--theme-surface);border:1px solid var(--theme-border);border-left:6px solid var(--fp-accent);border-radius:10px;min-width:0;transition:border-color .15s}
.fp-vehicle:hover{border-top-color:var(--theme-muted);border-right-color:var(--theme-muted);border-bottom-color:var(--theme-muted)}
.fp-photo{align-self:stretch;min-height:136px;background:var(--theme-soft);position:relative}
.fp-photo img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.fp-no-photo{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center;height:100%;min-height:136px;color:var(--theme-muted);font-size:11px}
.fp-identity{padding-block:18px;min-width:0}
.portal .fp-identity h3{font:600 17px/1.35 'DM Sans',sans-serif;margin:0 0 10px;overflow-wrap:anywhere;letter-spacing:-.01em}
.fp-identity p{font-size:12px;display:flex;align-items:center;gap:8px;color:var(--theme-muted);margin:0 0 8px}
.fp-color-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:var(--fp-accent)}
.fp-vin{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:10px;color:var(--theme-muted);letter-spacing:.025em}
.fp-vin>span{overflow-wrap:anywhere}
.fp-vin button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:var(--theme-muted);padding:5px;min-width:32px;min-height:32px;cursor:pointer;border-radius:4px}
.fp-vin button svg{width:14px;height:14px}
.fp-identity>small{display:block;color:var(--theme-muted);font-size:10px;margin-top:4px}
.fp-numbers{display:grid;gap:15px;border-left:1px solid var(--theme-border);padding:8px 0 8px 22px;min-width:0}
.fp-numbers>div{display:flex;align-items:center;gap:10px}
.fp-numbers svg{color:var(--theme-muted);width:18px;height:18px}
.fp-numbers strong{font-size:17px;font-weight:500;overflow-wrap:anywhere}
.fp-numbers small{display:block;color:var(--theme-muted);font-size:10px;margin-top:3px}
.fp-open{display:flex;align-items:center;justify-content:center;min-height:48px;width:44px;border:0;background:transparent;color:var(--theme-muted);cursor:pointer}
.fp-open:hover,.fp-vin button:hover{background:var(--theme-soft);color:var(--theme-text)}
.fp-dashboard :is(button,a,select,summary):focus-visible{outline:2px solid var(--theme-accent-text,#438dde);outline-offset:3px}
.fp-totals{display:grid;grid-template-columns:1.2fr repeat(3,1fr);background:var(--theme-surface);border:1px solid var(--theme-border);border-radius:10px;padding:22px 12px;margin-top:18px;align-items:center}
.fp-totals>div{padding:0 16px;text-align:center;min-width:0;border-left:1px solid var(--theme-border)}
.fp-totals>.fp-total-label{display:flex;gap:10px;text-align:left;align-items:center;border-left:0}
.fp-totals strong{font-size:20px;font-weight:600;display:block;overflow-wrap:anywhere}
.fp-totals .fp-total-label strong{font-size:14px}
.fp-totals small{font-size:11px;display:block;color:var(--theme-muted);margin-bottom:5px}
.fp-totals svg{color:var(--theme-muted)}
.fp-method{font-size:12px;color:var(--theme-muted);margin-top:16px;line-height:1.7}
.fp-method summary{cursor:pointer;width:fit-content;min-height:36px;padding:6px 0}
.fp-method p{max-width:90ch;margin:8px 0}
.fp-empty{background:var(--theme-surface);border:1px dashed var(--theme-border);padding:45px 20px;text-align:center;border-radius:10px;color:var(--theme-muted)}
.fp-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:22px}
.fp-actions [data-payment-sync-status]:empty{display:none}
.fp-attention{margin-bottom:22px}
.fp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.fp-metric{padding:16px 12px}.fp-metric-label{gap:7px;font-size:11px}.fp-vehicle{gap:14px;grid-template-columns:23% minmax(0,1fr) 140px 36px}.fp-open{width:36px}.fp-numbers{padding-left:14px}}
@media(max-width:700px){.fp-heading{align-items:flex-start;gap:12px}.fp-heading .btn{font-size:12px;padding:9px}.fp-heading .btn svg{display:none}.fp-eyebrow{font-size:9px}.fp-heading p{font-size:13px}.fp-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}.fp-metric>strong{font-size:28px}.fp-toolbar{gap:8px}.fp-period{width:100%;margin:2px 0 0}.fp-month,.fp-scope{max-width:100%}.fp-dashboard select{font-size:16px}.fp-vehicle{grid-template-columns:110px minmax(0,1fr) 40px;gap:0 12px}.fp-photo{grid-row:1;min-height:130px}.fp-identity{grid-column:2;padding:16px 0 10px}.portal .fp-identity h3{font-size:15px;margin-bottom:6px}.fp-vin{font-size:9px;gap:3px}.fp-vin button{min-height:44px;min-width:44px}.fp-open{grid-column:3;grid-row:1;width:40px;min-height:48px}.fp-numbers{grid-row:2;grid-column:1/-1;display:flex;justify-content:space-between;border-left:0;border-top:1px solid var(--theme-border);padding:13px 16px;gap:12px}.fp-numbers strong{font-size:16px}.fp-numbers small{font-size:10px}.fp-numbers>div:last-child{text-align:right}.fp-numbers>div:last-child svg{display:none}.fp-totals{grid-template-columns:repeat(3,minmax(0,1fr));padding:16px 8px;gap:15px 0}.fp-totals>.fp-total-label{grid-column:1/-1;justify-content:center;padding-bottom:14px;border-bottom:1px solid var(--theme-border)}.fp-totals>div{padding:0 8px}.fp-totals>div:nth-child(2){border-left:0}.fp-totals strong{font-size:18px}.fp-totals small{font-size:10px}.fp-actions>.btn{flex:1;min-height:46px}.fp-list-head>span{display:none}}
@media(max-width:380px){.fp-vehicle{grid-template-columns:85px minmax(0,1fr) 36px;gap:0 9px}.fp-open{width:36px}.fp-metric-label{font-size:10px}.fp-icon{width:28px;height:28px}.fp-metric>strong{font-size:24px}.fp-totals strong{font-size:15px}.fp-heading .btn{max-width:85px;text-align:center}}
@media(prefers-reduced-motion:reduce){.fp-vehicle{transition:none}}

/* Overview actions must not compete with the refresh controls for phone width. */
@media(max-width:860px){
 .portal .fp-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch;width:100%}
 .portal .fp-actions>.btn{width:100%;min-width:0;min-height:54px;flex:none;justify-content:center;gap:10px;padding:15px 18px;font-size:16px;font-weight:600;line-height:1.5;letter-spacing:normal;word-break:normal;overflow-wrap:normal;white-space:normal;text-align:center}
 .portal .fp-actions>.btn svg{flex:0 0 20px;width:20px;height:20px}
 .portal .fp-actions>.row{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px;width:100%;min-width:0}
 .portal .fp-actions [data-payment-sync]{min-height:48px;font-size:16px;line-height:1.5;letter-spacing:normal;white-space:normal;overflow-wrap:normal}
 .portal .fp-actions [data-payment-sync-status]{flex:1 1 100%;margin:0;font-size:14px;line-height:1.6}
 .portal .fp-heading h1{letter-spacing:-.01em;line-height:1.25}
 .portal .fp-heading>.btn{max-width:none;min-height:48px;padding:12px 16px;font-size:15px;line-height:1.5;letter-spacing:normal}
 .fp-metric-label{font-size:13px;line-height:1.5;align-items:flex-start}
 .fp-metric>strong{font-size:28px;letter-spacing:normal;line-height:1.3}
 .fp-metric>small,.fp-numbers small,.fp-totals small{font-size:12px;line-height:1.5}
 .fp-eyebrow{font-size:11px;letter-spacing:.06em}
 .fp-vin{font-size:12px;line-height:1.6;letter-spacing:normal}
 .fp-identity>small,.fp-period{font-size:12px;line-height:1.5}
 .portal .fp-identity h3{font-size:16px;letter-spacing:normal;line-height:1.5}
}
@media(max-width:600px){
 .portal .fp-actions{grid-template-columns:minmax(0,1fr)}
 .portal .fp-actions>.row{display:grid;grid-template-columns:minmax(0,1fr)}
 .portal .fp-actions [data-payment-sync]{width:100%;justify-content:center}
}
@media(max-width:380px){
 .fp-metrics{grid-template-columns:minmax(0,1fr)}
 .fp-metric-label{align-items:center}
 .fp-totals{grid-template-columns:minmax(0,1fr);gap:14px}
 .fp-totals>div{border-left:0}
 .fp-totals strong{font-size:20px}
}

.admin-notification-center{min-width:0}
.admin-notification-feed{max-height:420px;max-height:min(420px,60dvh);overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;padding-right:10px;overflow-wrap:anywhere}
.admin-notification-feed:focus-visible{outline:2px solid var(--theme-text);outline-offset:4px;border-radius:4px}
.admin-notification-feed .activity-item>div{min-width:0}

.fleet-filters [data-id="pending"]{position:relative;padding-right:30px}
.fleet-approval-count{position:absolute;top:-9px;right:-6px;display:inline-flex;align-items:center;justify-content:center;min-width:23px;height:23px;padding:0 5px;border-radius:999px;background:var(--blue,#007cff);color:#fff;font-size:12px;font-weight:700;line-height:1;border:2px solid var(--theme-surface,#fff);box-sizing:border-box}
