/* AutoGestão Pro / Rodada 9 – escopo exclusivo: dashboard administrativo e Veículo 360. */
.agp-executive-dashboard { min-width:0; overflow-x:clip; }
.agp-executive-dashboard > div:first-child {
  background:linear-gradient(125deg,#0a1e34 0%,#111827 65%,#0b1222 100%);
  border:1px solid #253953;box-shadow:0 10px 30px #0002;
}
.agp-executive-dashboard h1 { font-size:clamp(1.35rem,2vw,1.9rem);letter-spacing:-.025em; }
.agp-executive-dashboard :is(button,select,input) {min-height:36px;}
.agp-executive-dashboard :is(button,select,input):focus-visible,
.agp-v360-page :is(button,select,input):focus-visible {outline:2px solid #38bdf8;outline-offset:2px;}
.agp-exec-metrics {grid-template-columns:repeat(6,minmax(0,1fr));align-items:stretch;}
.agp-exec-metrics > div {min-width:0;min-height:130px;overflow-wrap:anywhere;box-shadow:0 6px 22px #0002;transition:border-color .15s, transform .15s;background-color:#101d30;}
.agp-exec-metrics > div:hover {border-color:#375879;transform:translateY(-1px);}
.agp-exec-metrics > .agp-financial-metric {background:linear-gradient(150deg,#122640,#0d192c);border:1px solid #284563;}
.agp-exec-metrics > .agp-total {order:-6;border-color:#047857;background:linear-gradient(140deg,#064e3b77,#0d192c);}
.agp-exec-metrics > .agp-received {order:-5;border-color:#1d4ed8;background:linear-gradient(140deg,#1e40af66,#0d192c);}
.agp-exec-metrics > .agp-balance {order:-4;border-color:#a16207;background:linear-gradient(140deg,#92400e66,#0d192c);}
.agp-exec-metrics > .agp-overdue-count {order:-3;border-color:#be123c;background:linear-gradient(140deg,#9f123966,#0d192c);}
.agp-exec-metrics > .agp-risk-metric {order:-2;border-color:#6d28d9;background:linear-gradient(140deg,#5b21b666,#0d192c);}
.agp-exec-metrics > .agp-alert-metric {order:-1;border-color:#be123c;background:linear-gradient(140deg,#9f123966,#0d192c);}
.agp-exec-metrics > .agp-overdue {order:0;}
.agp-exec-metrics > div:not(.agp-financial-metric) {order:1;}
.agp-dashboard-fleet {padding:18px;background:linear-gradient(155deg,#091829,#0d1628);border:1px solid #1e3349;border-radius:20px;}
.agp-fleet-controls {min-width:0;}
.agp-fleet-controls input {width:230px;max-width:100%;}
.agp-fleet-controls select {max-width:100%;}
.agp-fleet-grid {grid-template-columns:repeat(4,minmax(0,1fr));}
.agp-fleet-card {min-width:0;background:linear-gradient(155deg,#152337,#0f1a2d);border-color:#263950;overflow:hidden;}
.agp-fleet-card:focus-visible {outline:2px solid #38bdf8;outline-offset:2px;}
.agp-fleet-photo {width:100%;height:145px;border-color:#35475b;}
.agp-fleet-photo img {object-position:center;}
.agp-fleet-card > div:nth-child(2) {min-width:0;}
.agp-fleet-card .grid-cols-4 {gap:4px;}
.agp-fleet-card .grid-cols-4 > div {min-width:0;overflow-wrap:anywhere;}
.agp-fleet-pagination {padding:10px 2px 0;border-top:1px solid #28394d;}
.agp-page-button {padding:8px 14px;border:1px solid #32506c;color:#d1e8fa;border-radius:10px;background:#142338;cursor:pointer;}
.agp-page-button:hover:not(:disabled) {background:#1b3c59;}
.agp-page-button:disabled {opacity:.35;cursor:not-allowed;}
.agp-v360-page {width:100%;height:100dvh;min-width:0;background:#08121f;}
.agp-v360-shell {width:100%;min-height:0;}
.agp-v360-shell > div:first-child {background:linear-gradient(115deg,#0a1d32,#111827);border-bottom:1px solid #28445e;}
.agp-v360-shell > div:nth-child(3) {scrollbar-width:thin;scrollbar-color:#294962 transparent;}
.agp-v360-shell > div:nth-child(3) button {min-height:38px;}
.agp-v360-shell > div:last-child {min-height:0;scrollbar-width:thin;scrollbar-color:#294962 transparent;}
.agp-v360-section {max-width:1100px;margin-inline:auto;}
@media(max-width:1350px) {
  .agp-exec-metrics {grid-template-columns:repeat(3,minmax(0,1fr));}
  .agp-fleet-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:1000px) {
  .agp-fleet-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px) {
  .agp-executive-dashboard {padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));}
  .agp-exec-metrics {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
  .agp-exec-metrics > div {min-height:115px;padding:12px;}
  .agp-dashboard-fleet {padding:12px;border-radius:16px;}
  .agp-fleet-controls {width:100%;}
  .agp-fleet-controls > div:first-child {flex:1 1 100%;}
  .agp-fleet-controls input {width:100%;min-width:0;}
  .agp-fleet-grid {grid-template-columns:repeat(1,minmax(0,1fr));}
  .agp-fleet-card .agp-fleet-photo {height:190px;}
  .agp-v360-page {bottom:calc(64px + env(safe-area-inset-bottom,0px));height:auto;}
  .agp-v360-shell > div:first-child {padding:12px;}
  .agp-v360-shell > div:last-child {padding:12px;}
}
@media (prefers-reduced-motion:reduce) {
  .agp-exec-metrics > div {transition:none;transform:none!important;}
}
