/* KBM Phase02 Rev18.67 — Responsive Smart Governance: Desktop / Tablet / Mobile */
:root{
  --kbm-rwd-yellow:#ffcd11;
  --kbm-rwd-navy:#071d2d;
  --kbm-rwd-text:#0f172a;
  --kbm-rwd-muted:#64748b;
  --kbm-rwd-line:#e2e8f0;
  --kbm-rwd-bg:#f6f8fb;
  --kbm-rwd-card:#fff;
  --kbm-rwd-radius:22px;
  --kbm-rwd-shadow:0 14px 38px rgba(15,23,42,.10);
  --kbm-rwd-shell:1280px;
  --kbm-rwd-mobile-w:430px;
}
body.kbm-rwd-smart{overflow-x:hidden!important;background:var(--kbm-rwd-bg)!important;}
body.kbm-rwd-smart *{box-sizing:border-box;min-width:0;}
body.kbm-rwd-smart img,body.kbm-rwd-smart video,body.kbm-rwd-smart iframe{max-width:100%;height:auto;}
body.kbm-rwd-smart :where(.kbm-shell,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-adsv2-wrap,.kbm-adsv2-archive,.kbm-p20p-archive,.kbm-p20-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive,.kbm-p5-archive,.kbm-driver-archive,.kbm-dashboard,.kbm-auth-page,.entry-content){min-width:0!important;overflow-wrap:anywhere;}
body.kbm-rwd-smart :where(h1,h2,h3,h4,p,span,a,button,label,strong,small,input,select,textarea){writing-mode:horizontal-tb!important;text-orientation:mixed!important;word-break:normal!important;overflow-wrap:break-word;}

/* Shared archive/filter form quality */
body.kbm-rwd-smart :where(.kbm-adsv2-filters,.kbm-ads-filters,.kbm-filters,.kbm-filter-drawer,.kbm-p20p-filters,.kbm-p20-filters,.kbm-sales-filters,.kbm-machine-sales-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p23-card.kbm-p23-filters,.kbm-p5r15-sidebar,.kbm-p5r15-filters,.kbm-tender-filters,.kbm-driver-filters){
  background:#fff!important;border:1px solid rgba(226,232,240,.95)!important;border-radius:24px!important;box-shadow:0 16px 42px rgba(15,23,42,.08)!important;color:var(--kbm-rwd-text)!important;direction:rtl!important;
}
body.kbm-rwd-smart :where(.kbm-adsv2-filters input,.kbm-adsv2-filters select,.kbm-ads-filters input,.kbm-ads-filters select,.kbm-filters input,.kbm-filters select,.kbm-filter-drawer input,.kbm-filter-drawer select,.kbm-p20p-filters input,.kbm-p20p-filters select,.kbm-p20-filters input,.kbm-p20-filters select,.kbm-provider-filters input,.kbm-provider-filters select,.kbm-p23-filters input,.kbm-p23-filters select,.kbm-p5r15-sidebar input,.kbm-p5r15-sidebar select,.kbm-driver-filters input,.kbm-driver-filters select){
  width:100%!important;min-height:48px!important;border:1px solid #dbe4ee!important;border-radius:15px!important;background:#fff!important;color:#0f172a!important;font-size:15px!important;font-weight:850!important;padding:0 13px!important;box-shadow:none!important;outline:0!important;
}
body.kbm-rwd-smart :where(.kbm-adsv2-apply,.kbm-adsv2-btn-primary,.kbm-p20p-btn--yellow,.kbm-p20p-filters button[type=submit],.kbm-p20-filters button[type=submit],.kbm-provider-filters button[type=submit],.kbm-p23-filters button[type=submit],.kbm-p5r15-sidebar button[type=submit],.kbm-filter-drawer button[type=submit],.kbm-filters button[type=submit]){
  min-height:50px!important;border-radius:16px!important;font-weight:1000!important;line-height:1.35!important;white-space:nowrap!important;
}

/* DESKTOP: normal product website; zoom-safe containers. */
body.kbm-rwd-device-desktop{
  padding-top:0!important;padding-bottom:0!important;
}
body.kbm-rwd-device-desktop :where(.kbm-app-mini-topbar,.kbm-mobile-bottom-nav,.kbm-mobile-app-backdrop,.kbm-mobile-app-filter-fab,.kbm-mobile-app-drawer-head){display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rwd-device-desktop :where(.kbm-shell-cleanup-header,.kbm-site-header,.site-header){display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;pointer-events:auto!important;}
body.kbm-rwd-device-desktop :where(.kbm-shell,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-p20p-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive){
  width:min(var(--kbm-rwd-shell),calc(100vw - 40px))!important;max-width:min(var(--kbm-rwd-shell),calc(100vw - 40px))!important;margin-inline:auto!important;
}
body.kbm-rwd-device-desktop :where(.kbm-mobile-app-drawer-target,.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){
  position:static!important;inset:auto!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;width:auto!important;max-width:none!important;max-height:none!important;overflow:visible!important;
}
body.kbm-rwd-device-desktop :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){
  display:grid!important;grid-template-columns:minmax(260px,320px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important;
}
body.kbm-rwd-device-desktop :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid){
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))!important;gap:16px!important;
}
body.kbm-rwd-device-desktop :where(.kbm-p20p-single__top,.kbm-p20p-single,.kbm-adsv2-single,.kbm-single-ad,.kbm-provider-single,.kbm-p23-single){
  max-width:min(var(--kbm-rwd-shell),calc(100vw - 40px))!important;margin-inline:auto!important;
}
body.kbm-rwd-device-desktop.kbm-rwd-width-compact :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){grid-template-columns:1fr!important;}
body.kbm-rwd-device-desktop.kbm-rwd-width-compact :where(.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){padding:16px!important;margin:0 0 14px!important;}

/* TABLET: hybrid compact desktop, not phone app. */
body.kbm-rwd-device-tablet{
  padding-top:0!important;padding-bottom:18px!important;
}
body.kbm-rwd-device-tablet :where(.kbm-app-mini-topbar,.kbm-mobile-bottom-nav,.kbm-mobile-app-backdrop,.kbm-mobile-app-filter-fab,.kbm-mobile-app-drawer-head){display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rwd-device-tablet :where(.kbm-shell-cleanup-header,.kbm-site-header,.site-header){display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:0!important;max-height:none!important;pointer-events:auto!important;}
body.kbm-rwd-device-tablet :where(.kbm-shell,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-p20p-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive){width:calc(100vw - 28px)!important;max-width:980px!important;margin-inline:auto!important;}
body.kbm-rwd-device-tablet :where(.kbm-mobile-app-drawer-target,.kbm-adsv2-filters,.kbm-p20p-filters,.kbm-p20-filters,.kbm-provider-filters,.kbm-p23-filters,.kbm-p5r15-sidebar){
  position:static!important;inset:auto!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;padding:16px!important;margin:0 0 14px!important;
}
body.kbm-rwd-device-tablet :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){display:block!important;}
body.kbm-rwd-device-tablet :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
body.kbm-rwd-device-tablet :where(.kbm-adsv2-hero,.kbm-p20p-hero,.kbm-provider-hero,.kbm-p23-hero,.kbm-p5r15-hero,.kbm-vhub-hero){border-radius:24px!important;padding:22px!important;margin-block:12px 16px!important;}
body.kbm-rwd-device-tablet :where(.kbm-vhub-grid,.kbm-home-cat-grid,.kbm-screen-cat-grid){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}

/* MOBILE: app essentials only. */
body.kbm-rwd-device-mobile{
  padding-top:0!important;padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important;background:#f3f6fb!important;
}
body.admin-bar.kbm-rwd-device-mobile{padding-top:0!important;}
body.kbm-rwd-device-mobile :where(.kbm-shell-cleanup-header,.kbm-site-header,.site-header,.kbm-shell-cleanup-footer,.kbm-cmf-footer){
  display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;min-height:0!important;max-height:0!important;overflow:hidden!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;
}
body.kbm-rwd-device-mobile :where(.kbm-shell,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-p20p-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive,.entry-content){
  width:calc(100vw - 20px)!important;max-width:var(--kbm-rwd-mobile-w)!important;margin-inline:auto!important;padding-inline:0!important;
}
body.kbm-rwd-device-mobile.kbm-mobile-route-home :where(.kbm-screen-sponsor,.kbm-home-sponsor,.kbm-adv-global-wrap,.kbm-adv-slot,.kbm-vhub-sponsored,.kbm-vhub-strip,.kbm-home-latest,.kbm-screen-latest,.kbm-screen-tender-panel,.kbm-home-more,.kbm-screen-more,.kbm-screen-quick,.kbm-home-adv-quick){display:none!important;}
body.kbm-rwd-device-mobile.kbm-mobile-route-home :where(.kbm-vhub-hero,.kbm-home-hero,.kbm-screen-hero){margin-top:8px!important;}
body.kbm-rwd-device-mobile :where(.kbm-vhub-grid,.kbm-home-cat-grid,.kbm-screen-cat-grid){display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
body.kbm-rwd-device-mobile :where(.kbm-vhub-card,.kbm-home-cat,.kbm-screen-cat){border-radius:24px!important;overflow:hidden!important;margin:0!important;box-shadow:0 12px 30px rgba(15,23,42,.08)!important;}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-layout,.kbm-p20p-layout,.kbm-p20-layout,.kbm-provider-layout,.kbm-p23-layout,.kbm-p5r15-layout){display:block!important;}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-grid,.kbm-p20p-grid,.kbm-p20-grid,.kbm-provider-grid,.kbm-p23-grid,.kbm-p5r15-grid,.kbm-tenders-grid,.kbm-driver-grid){display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-hero,.kbm-p20p-hero,.kbm-p20-hero,.kbm-provider-hero,.kbm-p23-hero,.kbm-p5r15-hero,.kbm-vhub-hero){
  border-radius:26px!important;padding:16px!important;margin:8px 0 12px!important;min-height:0!important;overflow:hidden!important;
}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-hero h1,.kbm-p20p-hero h1,.kbm-p20-hero h1,.kbm-provider-hero h1,.kbm-p23-hero h1,.kbm-p5r15-hero h1,.kbm-vhub-hero h1){font-size:clamp(24px,7vw,32px)!important;line-height:1.55!important;margin:0!important;}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-hero p,.kbm-p20p-hero p,.kbm-p20-hero p,.kbm-provider-hero p,.kbm-p23-hero p,.kbm-p5r15-hero p,.kbm-vhub-hero p){font-size:13px!important;line-height:1.85!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;margin:6px 0 0!important;}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-card,.kbm-ad-card,.kbm-p20p-card,.kbm-p20-card,.kbm-sales-card,.kbm-provider-card,.kbm-p23-card,.kbm-p23-provider-card,.kbm-p5r15-card,.kbm-tender-card,.kbm-driver-card){
  width:100%!important;border-radius:22px!important;background:#fff!important;border:1px solid rgba(226,232,240,.95)!important;box-shadow:0 10px 26px rgba(15,23,42,.07)!important;overflow:hidden!important;margin:0!important;
}
body.kbm-rwd-device-mobile :where(.kbm-adsv2-title,.kbm-p20p-card__title,.kbm-p20-card__title,.kbm-provider-card h3,.kbm-p23-card h3,.kbm-p5r15-card__title,.kbm-tender-card h3,.kbm-driver-card h3){font-size:16px!important;line-height:1.7!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
body.kbm-rwd-device-mobile :where(.kbm-mobile-app-drawer-target){
  position:fixed!important;left:50%!important;right:auto!important;top:auto!important;bottom:max(10px,env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%) translateY(110%)!important;width:calc(100vw - 22px)!important;max-width:430px!important;max-height:min(82dvh,680px)!important;overflow:auto!important;z-index:2147482600!important;padding:14px!important;
}
body.kbm-rwd-device-mobile.kbm-mobile-app-drawer-open :where(.kbm-mobile-app-drawer-target.is-kbm-mobile-app-open){transform:translateX(-50%) translateY(0)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;}
body.kbm-rwd-device-mobile :where(.kbm-mobile-app-drawer-target form,.kbm-adsv2-form,.kbm-p20p-filters form,.kbm-p20-filters form,.kbm-provider-filters form,.kbm-p23-filters form,.kbm-p5r15-sidebar form){display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
body.kbm-rwd-device-mobile :where(.kbm-mobile-app-drawer-target label,.kbm-adsv2-field-title,.kbm-p20p-filters label,.kbm-p20-filters label,.kbm-provider-filters label,.kbm-p23-filters label,.kbm-p5r15-sidebar label){font-size:13px!important;font-weight:950!important;line-height:1.6!important;margin:0 0 5px!important;color:#0f172a!important;}
body.kbm-rwd-device-mobile :where(.kbm-mobile-app-filter-fab){left:50%!important;right:auto!important;bottom:calc(86px + env(safe-area-inset-bottom,0px))!important;transform:translateX(-50%)!important;width:calc(100vw - 42px)!important;max-width:388px!important;background:var(--kbm-rwd-yellow)!important;color:#071d2d!important;border-radius:18px!important;box-shadow:0 16px 34px rgba(255,205,17,.28)!important;}
body.kbm-rwd-device-mobile.kbm-mobile-route-home :where(.kbm-mobile-app-filter-fab,.kbm-mobile-app-backdrop,.kbm-p3-overlap-filterbar,.kbm-p3-mf-filter-btn){display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rwd-device-mobile :where(.kbm-mobile-bottom-nav){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:center!important;}
body.kbm-rwd-device-mobile.kbm-auth-modal-open :where(.kbm-mobile-bottom-nav),body.kbm-rwd-device-mobile.kbm-mobile-app-drawer-open :where(.kbm-mobile-bottom-nav){transform:translateX(-50%) translateY(120%)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;}
body.kbm-rwd-device-mobile :where(#kbm-auth-modal .kbm-auth-card,#kbm-auth-modal .kbm-auth-sheet,.kbm-auth-modal .kbm-auth-card,.kbm-auth-modal .kbm-auth-sheet,body.kbm-mobile-route-auth .kbm-auth-card,body.kbm-mobile-route-auth .kbm-auth__card,body.kbm-mobile-route-auth .kbm-auth-sheet,body.kbm-mobile-route-auth .kbm-otp-sheet){max-width:430px!important;width:calc(100vw - 22px)!important;max-height:min(82dvh,680px)!important;border-radius:26px!important;}

@media(max-width:420px){
  body.kbm-rwd-device-mobile :where(.kbm-shell,.kbm-home-shell,.kbm-screen-shell,.kbm-vhub,.kbm-adsv2,.kbm-p20p-archive,.kbm-provider-archive,.kbm-p23-archive,.kbm-p5r15-archive,.entry-content){width:calc(100vw - 16px)!important;}
  body.kbm-rwd-device-mobile :where(.kbm-mobile-app-drawer-target,#kbm-auth-modal .kbm-auth-card,#kbm-auth-modal .kbm-auth-sheet,.kbm-auth-modal .kbm-auth-card,.kbm-auth-modal .kbm-auth-sheet){width:calc(100vw - 16px)!important;}
}
