/* =============================================================================
   AP-MY-VEHICLES.CSS — Mijn auto's (voorraad, slice 1)
   Valkuilen-reset bovenaan: px overal, thema geneutraliseerd binnen .ap-voorraad,
   geen breedtelimiet, icoonknoppen expliciet. Accent = #1B4DE4.
   ============================================================================= */

/* ---- Reset / neutralisatie ---- */
.ap-voorraad, .ap-voorraad *{ box-sizing:border-box; }
.ap-voorraad{ line-height:1.4; }
.ap-voorraad p, .ap-voorraad h1, .ap-voorraad h2{ margin:0; }
.ap-voorraad ul, .ap-voorraad li{ margin:0; padding:0; list-style:none; }
.ap-voorraad input, .ap-voorraad select, .ap-voorraad textarea, .ap-voorraad button{ font-family:inherit; line-height:normal; }

/* grijze achtergrond + gloed + volle breedte (alleen deze pagina) */
.ap-content:has(.ap-voorraad){
    background:#F5F7FB radial-gradient(900px 320px at 18% -8%, rgba(27,77,228,.045), transparent 70%) no-repeat !important;
    max-width:none !important;
}

.ap-voorraad{ display:flex; flex-direction:column; gap:18px; width:100%; padding:24px 32px 44px; }

/* verborgen elementen ècht verbergen (onze display-regels mogen hidden niet overrulen) */
.ap-voorraad [hidden]{ display:none !important; }

/* ---- Auto aanbieden (breadcrumb zit in de header) ---- */
.ap-vr-top{ display:flex; justify-content:flex-end; }
.ap-voorraad .ap-vr-nieuwbtn{
    display:inline-flex; align-items:center; gap:8px;
    height:34px; padding:0 15px; border-radius:9px;
    background:#1B4DE4 !important; border:0 !important; color:#fff !important;
    font-size:12.5px !important; font-weight:550; text-decoration:none; line-height:1;
    transition:background .15s, box-shadow .15s;
}
.ap-vr-nieuwbtn i{ font-size:14px; }
.ap-voorraad .ap-vr-nieuwbtn:hover{ background:#143BB0 !important; box-shadow:0 2px 10px rgba(27,77,228,.24); }

/* ---- 1. KPI-strook ---- */
.ap-vr-kpi{
    display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr));
    border-radius:14px; border:1px solid #E7EBF2; background:#fff;
    box-shadow:0 1px 1px rgba(16,35,64,.03), 0 8px 24px -20px rgba(16,35,64,.45);
    overflow:hidden;
}
.ap-vr-kpicel{ display:flex; flex-direction:column; gap:3px; padding:15px 20px; box-shadow:0 0 0 1px #F1F4F9; }
.ap-vr-kpilabel{ font-size:10.5px; font-weight:550; letter-spacing:.05em; color:#8B99AE; text-transform:uppercase; }
.ap-vr-kpiwaarde{ display:flex; align-items:baseline; gap:7px; }
.ap-vr-kpiwaarde b{ font-size:20px; font-weight:600; letter-spacing:-.022em; color:#0C1F3F; }
.ap-vr-delta{ font-size:11.5px; font-weight:550; font-style:normal; }
.ap-vr-delta--con{ color:#8A6100; }

/* ---- 2. Tabs + zoeken + sorteren ---- */
.ap-filterrij{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ap-voorraad .ap-tabs{ display:flex; gap:2px; padding:4px; border-radius:11px; background:#EEF1F7; }
.ap-voorraad .ap-tabs button{
    height:32px; padding:0 14px; border-radius:8px;
    background:transparent !important; border:0 !important;
    font-size:12.5px; letter-spacing:-.01em; white-space:nowrap;
    color:#6B7A93 !important; font-weight:500; cursor:pointer; line-height:1;
}
.ap-voorraad .ap-tabs button span{ color:inherit; }
.ap-voorraad .ap-tabs button.is-actief{ background:#fff !important; color:#0C1F3F !important; font-weight:600; box-shadow:0 1px 2px rgba(16,35,64,.10); }
.ap-voorraad .ap-zoek{
    flex:1 1 240px; display:flex; align-items:center; gap:8px;
    height:38px; padding:0 12px; border-radius:10px; background:#fff; border:1px solid #E2E7F0;
    transition:border-color .15s;
}
.ap-voorraad .ap-zoek:hover{ border-color:#C9D4E6; }
.ap-voorraad .ap-zoek i{ font-size:15px; color:#93A2B8; }
.ap-voorraad .ap-zoek input{ flex:1 1 auto; min-width:0; border:0 !important; background:transparent !important; outline:0; font-size:13px; color:#0C1F3F; padding:0 !important; }
.ap-sorteer{ display:flex; align-items:center; gap:8px; font-size:12px; color:#7B8CA6; white-space:nowrap; }
.ap-voorraad .ap-sorteer select{ height:38px; border-radius:10px; background:#fff; border:1px solid #E2E7F0; font-size:12.5px; color:#0C1F3F; padding:0 10px; cursor:pointer; }

/* ---- 3. Kaartenraster ---- */
.ap-vr-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(320px,1fr)); gap:16px; }

.ap-vr-kaart{
    border-radius:15px; border:1px solid #E7EBF2;
    background:linear-gradient(180deg,#FFFFFF 0%,#FDFEFF 100%);
    box-shadow:0 1px 1px rgba(16,35,64,.03), 0 10px 28px -22px rgba(16,35,64,.5);
    overflow:hidden; display:flex; flex-direction:column;
    transition:border-color .18s, box-shadow .18s, transform .18s;
}
.ap-vr-kaart:hover{
    border-color:#C9D9F6;
    box-shadow:0 2px 5px rgba(16,35,64,.05), 0 20px 40px -24px rgba(16,35,64,.6);
    transform:translateY(-2px);
}

/* Fotovlak */
.ap-vr-foto{
    position:relative; flex:0 0 auto; aspect-ratio:16/10;
    background:linear-gradient(155deg,#EDF1F8,#DFE6F1);
    background-size:cover; background-position:center;
    display:flex; align-items:center; justify-content:center;
}
.ap-vr-foto.is-sold{ opacity:.55; }
.ap-vr-foto > i{ font-size:34px; color:#B3BFD1; }
.ap-vr-pill{
    position:absolute; top:10px; left:10px;
    display:inline-flex; align-items:center; gap:6px;
    height:24px; padding:0 10px; border-radius:7px;
    font-size:11px; font-weight:600; box-shadow:0 1px 3px rgba(11,31,63,.14);
}
.ap-vr-dot{ width:5px; height:5px; border-radius:50%; }
.ap-vr-pill--actief{ background:#E9F8EF; color:#1B7A4B; }
.ap-vr-pill--actief .ap-vr-dot{ background:#2FA96B; }
.ap-vr-pill--concept{ background:#FFF6E5; color:#8A6100; }
.ap-vr-pill--concept .ap-vr-dot{ background:#E0A800; }
.ap-vr-pill--verkocht{ background:#FBE9E7; color:#B0403A; }
.ap-vr-pill--verkocht .ap-vr-dot{ background:#D06058; }
.ap-voorraad .ap-vr-menu{
    position:absolute; top:10px; right:10px;
    width:30px; height:30px; display:grid !important; place-items:center !important; padding:0 !important;
    border-radius:8px; border:1px solid #E7EBF2 !important; background:rgba(255,255,255,.92) !important;
    color:#42536B !important; cursor:pointer;
}
.ap-voorraad .ap-vr-menu:hover{ background:#fff !important; }
.ap-vr-menu i{ font-size:16px; }
.ap-vr-dagen{
    position:absolute; left:10px; bottom:10px;
    display:inline-flex; align-items:center; gap:5px;
    height:22px; padding:0 9px; border-radius:6px;
    background:rgba(11,36,71,.72); color:#fff; font-size:10.5px; font-weight:550;
}
.ap-vr-dagen i{ font-size:12px; }

/* Tekstblok */
.ap-vr-tekst{ padding:13px 14px 4px; display:flex; flex-direction:column; gap:5px; }
.ap-vr-titelrij{ display:flex; align-items:center; gap:8px; }
.ap-vr-titel{ flex:1 1 auto; min-width:0; font-size:14.5px; font-weight:600; letter-spacing:-.016em; color:#0C1F3F; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-vr-plaat{ flex:0 0 auto; display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius:4px; background:#F6C700; border:1px solid #D8B400; color:#1A1A00; font-size:10.5px; font-weight:700; letter-spacing:.05em; }
.ap-vr-uitv{ font-size:12px; color:#7A889E; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-vr-specs{ font-size:11.5px; color:#42536B; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Prijs + prestatie */
.ap-vr-prijsrij{ margin-top:auto; padding:10px 14px 12px; display:flex; align-items:flex-end; gap:10px; }
.ap-vr-prijsblok{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.ap-vr-kicker{ font-size:10px; font-weight:600; letter-spacing:.07em; color:#A6B2C4; }
.ap-vr-prijs{ font-size:18px; font-weight:600; letter-spacing:-.022em; color:#0C1F3F; }
.ap-vr-btw{ font-size:11px; color:#8B99AE; }
.ap-vr-prestatie{ margin-left:auto; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.ap-vr-stat{ display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:550; color:#42536B; }
.ap-vr-stat i{ font-size:13px; color:#93A2B8; }
.ap-vr-stat--sub{ font-size:11px; color:#8B99AE; }
.ap-vr-stat--sub i{ font-size:12px; }

/* Voetregel */
.ap-vr-voet{ display:flex; align-items:center; gap:8px; padding:9px 14px; background:#FBFCFE; border-top:1px solid #EEF1F7; }
.ap-vr-voettekst{ flex:1 1 auto; min-width:0; display:inline-flex; align-items:center; gap:6px; font-size:11px; color:#8B99AE; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ap-vr-voettekst i{ flex:0 0 auto; font-size:13px; color:#93A2B8; }
.ap-voorraad .ap-vr-bekijklink{ flex:0 0 auto; font-size:11.5px; font-weight:550; color:#1B4DE4; text-decoration:none; }
.ap-voorraad .ap-vr-bekijklink:hover{ text-decoration:underline; }

/* Actiestrook */
.ap-vr-acties{ display:flex; align-items:stretch; border-top:1px solid #EEF1F7; background:#fff; }
.ap-voorraad .ap-vr-actie{
    flex:1 1 0; min-height:40px;
    display:inline-flex; align-items:center; justify-content:center; gap:6px;
    font-size:11.5px; font-weight:550; color:#42536B !important; text-decoration:none;
    background:#fff !important; border:0 !important; box-shadow:0 0 0 1px #F1F4F9; cursor:pointer;
    transition:background .12s, color .12s;
}
.ap-vr-actie i{ font-size:14px; }
.ap-voorraad .ap-vr-actie:hover{ background:#F5F8FE !important; color:#1B4DE4 !important; }
.ap-voorraad .ap-vr-actie--verkocht{ color:#B0403A !important; }
.ap-voorraad .ap-vr-actie--verkocht:hover{ background:#B0403A !important; color:#fff !important; }

/* Lege staat */
.ap-vr-leeg{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:52px 20px; border-radius:14px; border:1px dashed #D7DEEA; background:#FAFBFE; text-align:center; }
.ap-vr-leeg > i{ font-size:26px; color:#B3BFD1; }
.ap-vr-leeg-titel{ font-size:13.5px; font-weight:550; color:#0C1F3F; }
.ap-vr-leeg-sub{ font-size:12.5px; color:#7A889E; }

/* Tipblok */
.ap-vr-tip{ display:flex; gap:11px; padding:14px 16px; border-radius:13px; background:#F5F8FE; border:1px solid #E1E9FA; }
.ap-vr-tip > i{ flex:0 0 auto; font-size:17px; color:#1B4DE4; margin-top:1px; }
.ap-vr-tiptekst{ display:flex; flex-direction:column; gap:3px; }
.ap-vr-tiptitel{ font-size:12.5px; font-weight:550; color:#0C1F3F; }
.ap-vr-tipsub{ font-size:12px; color:#6B7A93; line-height:1.5; }

/* header-breadcrumb (voor het geval ap-messages.css niet laadt) */
.ap-global-header .ap-topbar__crumb{ display:flex; align-items:center; gap:7px; }
.ap-global-header .ap-topbar__crumb a{ font-size:12.5px !important; color:#7B8CA6 !important; text-decoration:none; }
.ap-global-header .ap-topbar__crumb a:hover{ color:#1B4DE4 !important; }
.ap-global-header .ap-topbar__crumb i{ font-size:10px !important; color:#B3BFD1 !important; }
.ap-global-header .ap-topbar__crumb span{ font-size:14.5px !important; font-weight:600 !important; letter-spacing:-.015em; color:#0C1F3F !important; }

/* =========================================================================
   MOBIEL (≤ 720px)
   ========================================================================= */
@media (max-width:720px){
    .ap-voorraad{ padding-left:20px; padding-right:20px; }
    .ap-vr-grid{ grid-template-columns:1fr; }
    .ap-vr-kaart{ flex:0 0 auto; }
    .ap-voorraad .ap-vr-menu{ width:36px !important; height:36px !important; }
    .ap-voorraad .ap-vr-actie{ min-height:44px; }

    /* filterrij: drie volle regels */
    main .ap-filterrij{ flex-direction:column !important; align-items:stretch !important; gap:10px !important; }
    main .ap-filterrij .ap-tabs{ flex-wrap:nowrap !important; width:100% !important; }
    main .ap-filterrij .ap-tabs button{ flex:1 1 0 !important; min-width:0 !important; padding:0 8px !important; }
    main .ap-filterrij .ap-zoek{ width:100% !important; flex:0 0 auto !important; height:42px !important; min-height:42px !important; border-color:#DDE3ED !important; }
    main .ap-filterrij .ap-zoek input{ font-size:13px !important; }
    main .ap-filterrij .ap-sorteer{ width:100% !important; gap:10px !important; }
    main .ap-filterrij .ap-sorteer select{ flex:1 1 auto !important; min-width:0 !important; height:42px !important; font-size:13px !important; border-color:#DDE3ED !important; }
}
