/* KBM GDB-07 | Driver / Technical Expert presentation parity with GDB-03 rental.
 * Page-scoped; data, CPT, authentication, disclosure & submit form unchanged. */
body.kbm-route-drivers .kbm-gdb07-driver{
  --gdb-navy:#0b2a3b;--gdb-yellow:#ffd12f;--gdb-line:#e1e7eb;
  width:min(100%,1392px)!important;max-width:1392px!important;
  padding:18px clamp(12px,2.4vw,30px) 82px!important;margin-inline:auto;
  font-family:var(--kbm-font-fa,Estedad,Tahoma,sans-serif);
}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb07-hero{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.94fr);
  gap:24px;align-items:center;min-height:160px;padding:24px clamp(18px,2.8vw,36px);
  background:linear-gradient(112deg,#164155,#092636 72%);border-radius:20px;color:#fff;
}
body.kbm-route-drivers .kbm-gdb07-hero h1{color:#fff!important;font-size:clamp(23px,2.1vw,33px);margin:6px 0;line-height:1.5}
body.kbm-route-drivers .kbm-gdb07-hero p{color:#deebf0!important;margin:0;font-size:13px;line-height:1.8}
body.kbm-route-drivers .kbm-gdb07-hero .kbm-gdb03-eyebrow{color:#ffda60!important}
body.kbm-route-drivers .kbm-gdb07-hero .kbm-gdb03-search{display:flex;width:100%;min-width:0;align-items:center}
body.kbm-route-drivers .kbm-gdb07-hero .kbm-gdb03-search input{min-width:0;flex:1;background:white!important;border:0!important;padding-inline:12px}
body.kbm-route-drivers .kbm-gdb07-hero .kbm-gdb03-search button{min-width:92px;border-radius:8px;background:#ffd23f;color:#102d40;font-weight:800}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-layout{
  display:grid!important;grid-template-columns:minmax(255px,285px) minmax(0,1fr)!important;
  gap:20px!important;align-items:start;
}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-main{min-width:0}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch;
}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb07-card{
  display:grid!important;grid-template-columns:minmax(112px,40%) minmax(0,1fr)!important;
  grid-template-rows:minmax(238px,auto)!important;min-width:0!important;max-width:none!important;
  width:100%!important;height:auto!important;min-height:238px!important;padding:0!important;overflow:hidden;
  border:1px solid var(--gdb-line)!important;border-radius:15px!important;background:#fff!important;
}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__media{min-height:238px;position:relative;overflow:hidden}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__photo{display:block;position:absolute;inset:0;height:100%;width:100%}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__image{width:100%;height:100%;object-fit:cover;object-position:center}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__content{display:flex;flex-direction:column;gap:7px;padding:15px 14px;min-width:0}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__title{font-size:15px;line-height:1.6;min-height:0;margin:0}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__specs{display:grid;gap:5px;margin:0;padding:0}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__bottom{margin-top:auto}
body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb07-ready{background:#d7f6e9;color:#136545}
body.kbm-route-drivers .kbm-gdb07-driver[data-kbm-gdb07-view=list] .kbm-drivers-recode-grid{grid-template-columns:1fr!important}
body.kbm-route-drivers .kbm-gdb07-driver[data-kbm-gdb07-view=list] .kbm-gdb07-card{grid-template-columns:minmax(170px,31%) minmax(0,1fr)!important}
body.kbm-route-drivers .kbm-gdb07-driver[data-kbm-gdb07-view=list] .kbm-gdb03-card__specs li:nth-child(n+4){display:flex}
body.kbm-route-drivers .kbm-gdb07-toolbar{display:flex!important;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-filter{
  background:#fff;border:1px solid var(--gdb-line);border-radius:16px;box-shadow:0 5px 24px #09263609;
}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-filter__form{display:block!important;padding:0!important}
body.kbm-route-drivers .kbm-gdb07-filter-group{border-top:1px solid var(--gdb-line);margin:0}
body.kbm-route-drivers .kbm-gdb07-filter-group>summary{cursor:pointer;list-style:none;padding:13px 17px;font-size:13px;font-weight:850;color:#1a3d50}
body.kbm-route-drivers .kbm-gdb07-filter-group>summary::-webkit-details-marker{display:none}
body.kbm-route-drivers .kbm-gdb07-filter-group>summary::before{content:'+';display:inline-block;margin-left:8px;color:#8a9dab}
body.kbm-route-drivers .kbm-gdb07-filter-group[open]>summary::before{content:'−'}
body.kbm-route-drivers .kbm-gdb07-filter-fields{display:grid;gap:10px;padding:0 17px 16px}
body.kbm-route-drivers .kbm-gdb07-filter-fields>label{min-width:0;display:grid;gap:6px;font-size:12px;color:#3b5261}
body.kbm-route-drivers .kbm-gdb07-filter-fields :is(input,select){width:100%;min-height:42px;max-width:100%;border-radius:9px}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-filter__form>button[type=submit]{margin:13px 17px 16px;width:calc(100% - 34px);min-height:44px;background:#ffd23f;color:#0b2a3b;border:0;border-radius:9px;font-weight:850}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb03-active{margin-block:12px}
/* SP2002 related profiles reuse the exact archive card anatomy and one image per profile. */
body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card{
  display:flex!important;flex-direction:column!important;height:340px!important;min-height:340px!important;
  width:100%!important;min-width:0!important;overflow:hidden;border:1px solid #e1e7eb;border-radius:15px;background:#fff;
}
body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card .kbm-gdb03-card__media{height:146px!important;min-height:146px!important;flex:0 0 146px}
body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card .kbm-gdb03-card__photo{position:absolute;inset:0;width:100%;height:100%}
body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card .kbm-gdb03-card__content{padding:11px!important;display:flex;flex:1;flex-direction:column;gap:5px;min-width:0}
body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card .kbm-gdb03-card__title{font-size:12px;line-height:1.6}
body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card .kbm-gdb03-card__bottom{margin-top:auto}
/* Single: rental-like summary first, image second, compact technical passport and right-side contact. */
body.kbm-drivers-recode-active .kbm-gdb07-single{
  width:min(100% - 28px,1360px)!important;max-width:1360px!important;margin-inline:auto;padding:18px 14px 92px;
  font-family:var(--kbm-font-fa,Estedad,Tahoma,sans-serif)
}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-parity-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(280px,320px)!important;
  gap:20px!important;align-items:start;
}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-main{display:flex;flex-direction:column;gap:15px;min-width:0}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-summary-card{order:0!important;background:#fff;border-radius:17px;border:1px solid #e1e7eb;padding:20px}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-summary-card h1{font-size:clamp(23px,2.5vw,33px);color:#102d40;line-height:1.6;margin:8px 0}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-media-card{order:1!important;background:#f1f5f7;border:1px solid #e1e7eb;border-radius:17px;overflow:hidden}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver158-hero__media{max-height:360px;min-height:220px;display:grid;place-items:center;overflow:hidden}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver158-hero__media img{max-height:360px;width:100%;height:auto;object-fit:contain}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-gdb07-passport{order:2!important;background:white;border:1px solid #e1e7eb;border-radius:17px;padding:20px}
body.kbm-drivers-recode-active .kbm-gdb07-passport h2{font-size:17px;margin:0 0 14px;color:#102d40}
body.kbm-drivers-recode-active .kbm-gdb07-passport__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0;border-top:1px solid #e9eef1;border-right:1px solid #e9eef1}
body.kbm-drivers-recode-active .kbm-gdb07-passport__grid>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:center;min-height:52px;border-bottom:1px solid #e9eef1;border-left:1px solid #e9eef1}
body.kbm-drivers-recode-active .kbm-gdb07-passport__grid :is(dt,dd){margin:0;padding:12px 10px;overflow-wrap:anywhere;font-size:12px}
body.kbm-drivers-recode-active .kbm-gdb07-passport__grid dt{background:#f4f7f9;color:#586b77;font-weight:600}
body.kbm-drivers-recode-active .kbm-gdb07-passport__grid dd{color:#142f3e;font-weight:800}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-details{order:3!important;min-width:0}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-contact-side{position:sticky;top:105px;min-width:0;border:1px solid #e1e7eb;border-radius:17px;background:white;padding:20px}
body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-contact-side h2{color:#102d40}
@media(max-width:1150px){
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-grid{grid-template-columns:1fr!important}
}
@media(max-width:1024px){
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-layout{grid-template-columns:minmax(0,1fr)!important}
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-filter{border-radius:20px}
}
@media(max-width:860px){
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-drivers-recode-grid{grid-template-columns:1fr!important}
 body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-parity-layout{grid-template-columns:minmax(0,1fr)!important}
 body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-contact-side{position:static}
}
@media(max-width:690px){
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb07-hero{grid-template-columns:1fr;gap:12px;padding:18px;border-radius:16px}
 body.kbm-route-drivers .kbm-gdb07-hero h1{font-size:24px}
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb07-card{grid-template-columns:132px minmax(0,1fr)!important;grid-template-rows:minmax(202px,auto)!important;min-height:202px!important}
 body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__media{min-height:202px}
 body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__content{padding:12px 10px;gap:5px}
 body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__title{font-size:13px}
 body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__specs li:nth-child(n+3){display:none}
 body.kbm-route-drivers .kbm-gdb07-card .kbm-gdb03-card__action{min-height:34px;padding:5px 8px;font-size:10px}
 body.kbm-drivers-recode-active .kbm-sp2002-related .kbm-gdb07-card{height:328px!important;min-height:328px!important}
 body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-gdb07-passport__grid{grid-template-columns:1fr}
 body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-gdb07-passport{padding:13px}
 body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-summary-card{padding:14px}
 body.kbm-drivers-recode-active .kbm-gdb07-single .kbm-driver198-main{gap:11px}
}
@media(max-width:355px){
 body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb07-card{grid-template-columns:110px minmax(0,1fr)!important}
 body.kbm-gdb07-hero .kbm-gdb03-search button{min-width:78px}
}
/* The legacy shell sometimes uses content-box; contain the archive at 320px. */
body.kbm-route-drivers .kbm-gdb07-driver{box-sizing:border-box!important;min-width:0!important}
body.kbm-route-drivers .kbm-gdb07-driver :is(.kbm-drivers-recode-layout,.kbm-drivers-recode-main,.kbm-drivers-recode-grid,.kbm-gdb07-card){min-width:0!important;max-width:100%}
body.kbm-route-drivers .kbm-gdb07-driver .kbm-gdb07-card{box-sizing:border-box!important}
/* Horizontal related rail parity: never compress three profiles into one mobile row. */
body.kbm-drivers-recode-active .kbm-sp2002-related__rail{
  display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;
  gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory;padding:4px 2px 14px;max-width:100%;min-width:0;
}
body.kbm-drivers-recode-active .kbm-sp2002-related__rail>.kbm-gdb07-card{
  flex:0 0 clamp(235px,26vw,278px)!important;max-width:278px!important;
  min-width:235px!important;scroll-snap-align:start;
}
@media(max-width:690px){
 body.kbm-drivers-recode-active .kbm-sp2002-related__rail>.kbm-gdb07-card{flex-basis:250px!important;max-width:250px!important;min-width:235px!important}
}
/* Featured listings use one common GDB-03 card template instead of mixed legacy heights. */
body.kbm-route-drivers .kbm-gdb07-featured{border:1px solid #e6d191;background:#fffcf0;border-radius:16px;padding:14px;margin:10px 0 20px}
body.kbm-route-drivers .kbm-gdb07-featured>h2{margin:0 0 12px;color:#163448;font-size:16px}
body.kbm-route-drivers .kbm-gdb07-featured__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
body.kbm-route-drivers .kbm-gdb07-featured .kbm-gdb07-card{display:grid;grid-template-columns:minmax(112px,40%) minmax(0,1fr);min-height:238px;max-width:100%;width:100%;box-sizing:border-box}
@media(max-width:1150px){body.kbm-route-drivers .kbm-gdb07-featured__grid{grid-template-columns:1fr}}
@media(max-width:690px){body.kbm-route-drivers .kbm-gdb07-featured .kbm-gdb07-card{grid-template-columns:132px minmax(0,1fr);min-height:202px}}
/* V6 has ID-specific !important colors; restore approved rental light summary. */
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-summary-card{
  background:#fff!important;border:1px solid #e1e7eb!important;color:#102d40!important;
  border-radius:17px!important;box-shadow:none!important;
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-summary-card h1,
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver158-stats :is(span,small){
  color:#102d40!important;-webkit-text-fill-color:#102d40!important;
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver158-facts article{
  background:#f4f7f9!important;border:1px solid #e1e7eb!important;color:#102d40!important;
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver158-facts :is(span,small,strong){
  color:#102d40!important;-webkit-text-fill-color:#102d40!important;
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-media-card{
  background:#f1f5f7!important;border:1px solid #e1e7eb!important;box-shadow:none!important;border-radius:17px!important;
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-media-card .kbm-driver158-hero__media{
  max-height:360px!important;background:#edf3f5!important;border:0!important;
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-media-card .kbm-driver158-hero__media img{
  max-height:360px!important;object-fit:contain!important;
}
@media(max-width:860px){
 #kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-parity-layout{grid-template-columns:minmax(0,1fr)!important}
}
#kbm-vr-single.kbm-v6-single--driver .kbm-gdb07-single .kbm-driver198-summary-card .kbm-driver158-badges span.is-role{
  background:#e8f1f5!important;color:#143a4c!important;-webkit-text-fill-color:#143a4c!important;
  border:1px solid #cee0e8!important;
}
