/*
 * Bimehkar Reference UI v82 — premium consistency pass.
 * Loaded after v80/v81. Brand artwork remains untouched.
 */
:root{
  --bk82-blue:#1267f6;
  --bk82-blue-2:#0a57dc;
  --bk82-navy:#072456;
  --bk82-navy-2:#041a41;
  --bk82-ink:#15223b;
  --bk82-text:#48566e;
  --bk82-muted:#7f8a9f;
  --bk82-line:#e6ebf2;
  --bk82-line-strong:#d9e1ec;
  --bk82-surface:#f8fafe;
  --bk82-surface-2:#f3f7fc;
  --bk82-card:#fff;
  --bk82-success:#0c9b6c;
  --bk82-warning:#e99a1c;
  --bk82-danger:#dc5366;
  --bk82-purple:#744ce8;
  --bk82-radius:15px;
  --bk82-radius-sm:11px;
  --bk82-shadow:0 8px 28px rgba(11,38,80,.055);
  --bk82-shadow-hover:0 16px 36px rgba(11,38,80,.09);
  --bk82-container:1240px;
  --bk82-sidebar:248px;
}

/* ---------- foundation ---------- */
*,*:before,*:after{box-sizing:border-box}
html{min-width:320px;scroll-behavior:smooth}
body{min-width:320px;color:var(--bk82-ink);font-size:14px;line-height:1.75;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body,input,button,select,textarea{font-family:Vazirmatn,Tahoma,Arial,sans-serif}
a,button,input,select,textarea{outline:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(18,103,246,.2)!important;outline-offset:2px!important}
button,a{touch-action:manipulation}
img{max-width:100%}
.container{width:min(var(--bk82-container),calc(100% - 48px))!important;max-width:var(--bk82-container)!important;margin-inline:auto!important}

/* Brand lock: never manipulate the logo pixels. */
.bk47-brand img,.bk47-footer .footer-brand img,.sidebar .logo-image,.customer-header .brand img,.auth-logo img,.tp-brand img,.tp-login-logo img,.bk81-mobile-admin-brand img{filter:none!important;opacity:1!important;mix-blend-mode:normal!important;object-fit:contain!important}

/* ---------- public shell ---------- */
.bk47-header{height:76px!important;background:rgba(255,255,255,.985)!important;border-bottom:1px solid #edf1f6!important;box-shadow:0 2px 18px rgba(8,34,73,.025)!important;backdrop-filter:blur(14px)!important}
.bk47-header .bk47-nav{height:76px!important;gap:30px!important;padding:0!important;direction:rtl!important}
.bk47-brand{width:164px!important;min-width:164px!important;height:48px!important;margin:0!important;padding:7px 12px!important;border-radius:12px!important;background:linear-gradient(135deg,#082b67 0%,#0a387c 100%)!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important}
.bk47-brand img{height:32px!important;width:auto!important;max-width:138px!important}
.bk47-desktop-nav{gap:28px!important;align-items:center!important;white-space:nowrap!important}
.bk47-desktop-nav a{padding:27px 0!important;font-size:12.5px!important;font-weight:760!important;color:#43516a!important;line-height:1.2!important}
.bk47-desktop-nav a:after{bottom:15px!important;height:2px!important}
.bk47-nav-actions{gap:9px!important;margin-right:auto!important}
.bk58-login{height:40px!important;min-width:88px!important;padding-inline:16px!important;border-radius:10px!important;font-size:11px!important;font-weight:850!important}
.bk58-search-trigger,.bk47-menu-button{width:40px!important;height:40px!important;border-radius:10px!important;border-color:var(--bk82-line)!important}
.bk58-search-panel{top:50px!important;border-radius:15px!important;border-color:var(--bk82-line)!important;box-shadow:0 22px 50px rgba(6,29,73,.14)!important}

/* Home hero: richer scale, same approved composition. */
.bk80-home-hero{padding:36px 0 26px!important;background:#fff!important}
.bk80-home-hero-grid{grid-template-columns:minmax(420px,.93fr) minmax(610px,1.17fr)!important;gap:42px!important;min-height:382px!important;align-items:center!important}
.bk80-home-copy{padding:12px 0!important}
.bk80-home-kicker{font-size:10.5px!important;margin-bottom:9px!important}
.bk80-home-copy h1{font-size:42px!important;line-height:1.47!important;letter-spacing:-1.2px!important;margin:0 0 13px!important;max-width:520px!important;color:var(--bk82-navy)!important}
.bk80-home-copy>p{font-size:12.5px!important;line-height:2.05!important;max-width:530px!important;color:#66738a!important;margin-bottom:15px!important}
.bk80-home-checks{gap:8px 20px!important;margin-top:15px!important;max-width:540px!important}
.bk80-home-checks span{font-size:10px!important;font-weight:720!important;color:#53617a!important}
.bk80-home-checks i{font-size:11.5px!important}
.bk80-feature-cards{gap:13px!important;align-items:stretch!important}
.bk80-feature-card{min-height:302px!important;padding:19px 16px 15px!important;border-radius:16px!important;border-color:#e2e8f1!important;box-shadow:0 7px 24px rgba(9,37,81,.05)!important;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
.bk80-feature-card:hover{transform:translateY(-3px)!important;box-shadow:var(--bk82-shadow-hover)!important;border-color:#cfdaea!important}
.bk80-feature-card h3{font-size:15px!important;line-height:1.5!important;margin-bottom:4px!important}
.bk80-feature-card p{font-size:9.5px!important;line-height:1.95!important;min-height:40px!important}
.bk80-feature-visual{height:142px!important;margin:4px 0 4px!important}
.bk80-feature-visual:before{width:118px!important;height:118px!important;border-radius:32px!important;box-shadow:0 14px 28px rgba(10,50,105,.08)!important}
.bk80-feature-visual img{width:98px!important;height:98px!important;filter:drop-shadow(0 12px 15px rgba(11,39,82,.13))!important}
.bk80-feature-card>a{height:38px!important;border-radius:10px!important;padding-inline:13px!important;font-size:10.5px!important}

.bk80-section{padding:31px 0!important}
.bk80-section.alt{background:#fbfcfe!important}
.bk80-section-head{align-items:flex-end!important;margin-bottom:16px!important}
.bk80-section-head h2{font-size:19px!important;line-height:1.45!important;color:var(--bk82-navy)!important}
.bk80-section-head p{font-size:10.5px!important;line-height:1.8!important}
.bk80-section-head a{font-size:10px!important}
.bk80-insurance-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
.bk80-insurance-card{min-height:108px!important;border-radius:13px!important;border-color:#e2e8f1!important;font-size:10.5px!important;gap:7px!important;box-shadow:0 3px 14px rgba(8,34,74,.025)!important}
.bk80-insurance-card:hover{transform:translateY(-2px)!important;box-shadow:0 12px 24px rgba(8,34,74,.07)!important}
.bk80-insurance-card img{width:47px!important;height:47px!important}
.bk80-home-split{gap:12px!important}
.bk80-home-banner{min-height:166px!important;border-radius:15px!important;border-color:#e2e8f1!important;box-shadow:0 4px 18px rgba(8,34,74,.035)!important}
.bk80-home-banner-copy{padding:23px 23px!important}
.bk80-home-banner h3{font-size:16px!important;line-height:1.55!important}
.bk80-home-banner p{font-size:9.5px!important;line-height:1.95!important}
.bk80-app-card,.bk80-trust-strip{border-color:#e2e8f1!important;box-shadow:0 4px 18px rgba(8,34,74,.03)!important}
.bk80-app-card{min-height:190px!important;border-radius:16px!important}
.bk80-trust-strip{border-radius:15px!important}
.bk80-trust-item{min-height:86px!important}

/* public inner pages */
.bk47-page-hero,.health-hero,.bk61-mag-hero-section{padding:36px 0!important;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%)!important;border-bottom:1px solid var(--bk82-line)!important}
.bk47-page-hero h1,.health-hero h1,.bk61-mag-hero-copy h1{font-size:29px!important;line-height:1.5!important;margin-bottom:8px!important;color:var(--bk82-navy)!important}
.bk47-page-hero p,.health-hero p,.bk61-mag-hero-copy p{font-size:12.5px!important;line-height:2!important;color:#68758a!important;max-width:760px!important}
.bk47-content-page,.bk47-contact-section,.bk47-support-section,.bk47-subservices,.health-content-section,.health-calculator-section,.health-info-section,.health-form-section{padding-top:32px!important;padding-bottom:32px!important}
.bk47-category-grid,.bk47-subservice-grid,.bk47-feature-grid,.bk47-value-grid,.health-benefit-grid,.health-info-grid,.bk61-card-grid{gap:13px!important}
.bk47-category-card,.bk47-service-card,.bk47-subservice-card,.bk47-prose-card,.bk47-support-form-card,.health-hero-card,.health-calculator-card,.health-info-grid article,.tp-card,.customer-card{border-radius:15px!important;border-color:#e2e8f1!important;box-shadow:0 4px 18px rgba(8,34,74,.035)!important}

/* forms */
.clean-form,.claim-form,.corporate-form,.health-form,.tp-form{gap:15px!important}
.clean-form label,.claim-form label,.corporate-form label,.health-form label,.tp-form label{gap:6px!important;font-size:11.5px!important;font-weight:760!important;color:#4f5d73!important}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=email],input[type=tel],input[type=search],select,.form-control,.control{min-height:46px!important;height:46px!important;border-radius:10px!important;padding-inline:13px!important;font-size:12.5px!important;border-color:#dfe5ee!important;background:#fff!important}
textarea{min-height:112px;border-radius:10px!important;padding:12px 13px!important;font-size:12.5px!important;line-height:1.9!important;border-color:#dfe5ee!important}
input:focus,select:focus,textarea:focus,.form-control:focus,.control:focus{border-color:#9bbef8!important;box-shadow:0 0 0 3px rgba(18,103,246,.09)!important}
.btn,.small-btn,.tp-btn{min-height:40px;border-radius:10px!important;font-size:11px!important;font-weight:800!important}

/* public footer/customer/auth */
.brand-footer.bk47-footer{margin-top:34px!important}
.bk47-footer .footer-grid{padding-top:34px!important;padding-bottom:26px!important;gap:28px!important}
.bk47-footer .footer-brand:before{right:-10px!important;top:-8px!important;width:158px!important;height:48px!important;border-radius:11px!important;background:linear-gradient(135deg,#082b67,#0a387c)!important}
.bk47-footer .footer-brand img{height:32px!important;max-width:134px!important;margin:0 4px 14px!important}
.customer-header{height:72px!important;border-bottom:1px solid var(--bk82-line)!important}
.customer-header .container{height:72px!important}
.customer-header .brand{width:154px!important;height:46px!important;border-radius:11px!important;background:linear-gradient(135deg,#082b67,#0a387c)!important}
.customer-header .brand img{height:30px!important;max-width:130px!important}
.customer-panel-shell{max-width:1240px!important}
.auth-layout{max-width:1240px!important;min-height:calc(100vh - 76px)!important}
.auth-card{border:1px solid #e3e9f1!important;border-radius:16px!important;box-shadow:0 14px 42px rgba(7,31,71,.07)!important}
.tp-login-logo,.tp-brand{background:linear-gradient(135deg,#082b67,#0a387c)!important;border-radius:11px!important}

/* ---------- admin shell ---------- */
body.bk58-panel-shell{background:var(--bk82-surface)!important;color:var(--bk82-ink)!important;font-size:13px!important}
body.bk58-panel-shell .sidebar{width:var(--bk82-sidebar)!important;background:linear-gradient(180deg,#06245a 0%,#073575 62%,#063069 100%)!important;box-shadow:inset 1px 0 0 rgba(255,255,255,.04)!important;display:flex!important;flex-direction:column!important}
body.bk58-panel-shell .sidebar-header{height:92px!important;padding:16px 14px 11px!important;flex:0 0 92px!important}
body.bk58-panel-shell .sidebar .logo{height:62px!important;min-height:62px!important;padding:7px 8px!important;border:0!important;border-radius:12px!important;background:transparent!important;display:flex!important;align-items:center!important;justify-content:center!important}
body.bk58-panel-shell .sidebar .logo-image{width:174px!important;max-width:174px!important;max-height:46px!important}
body.bk58-panel-shell .sidebar-menu{height:auto!important;min-height:0!important;flex:1 1 auto!important;padding:8px 12px 14px!important;overflow-y:auto!important;scrollbar-width:thin!important;scrollbar-color:rgba(255,255,255,.16) transparent!important}
body.bk58-panel-shell .menu-group{margin-bottom:4px!important}
body.bk58-panel-shell .menu-group-header{min-height:45px!important;padding:0 10px!important;border-radius:10px!important;font-size:11.5px!important;font-weight:780!important;gap:9px!important;color:rgba(255,255,255,.92)!important}
body.bk58-panel-shell .menu-group-header:hover{background:rgba(255,255,255,.06)!important}
body.bk58-panel-shell .menu-group-header .group-icon{width:29px!important;height:29px!important;border-radius:8px!important;background:rgba(255,255,255,.075)!important;font-size:13px!important;color:#dce9ff!important}
body.bk58-panel-shell .menu-group.has-active>.menu-group-header{background:rgba(255,255,255,.065)!important}
body.bk58-panel-shell .menu-group-header .group-arrow{font-size:8px!important;opacity:.6!important}
body.bk58-panel-shell .menu-items{padding:4px 4px 5px 0!important}
body.bk58-panel-shell .menu-item{min-height:38px!important;border-radius:9px!important;padding:0 9px!important;font-size:10.5px!important;color:rgba(255,255,255,.82)!important}
body.bk58-panel-shell .menu-item .item-icon{width:20px!important;font-size:11px!important;opacity:.85!important}
body.bk58-panel-shell .menu-item:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
body.bk58-panel-shell .menu-item.active{background:linear-gradient(135deg,#1472ff,#0a5de9)!important;color:#fff!important;box-shadow:0 9px 22px rgba(0,88,232,.24)!important}
body.bk58-panel-shell .star-btn{opacity:.35!important;transform:scale(.88)!important}
body.bk58-panel-shell .menu-item-row:hover .star-btn,body.bk58-panel-shell .star-btn.active{opacity:.9!important}
body.bk58-panel-shell .bk80-sidebar-footer{position:static!important;right:auto!important;left:auto!important;bottom:auto!important;flex:0 0 auto!important;margin:0 12px 12px!important;padding-top:10px!important;z-index:3!important}
body.bk58-panel-shell .bk80-sidebar-site{height:46px!important;border-radius:10px!important;font-size:10.5px!important;border-color:rgba(255,255,255,.12)!important;background:rgba(255,255,255,.035)!important}
body.bk58-panel-shell .bk80-sidebar-site:hover{background:rgba(255,255,255,.08)!important}
body.bk58-panel-shell .bk80-sidebar-brand{display:block!important;margin-top:9px!important;padding:9px 5px!important;border-radius:10px!important;border-color:rgba(255,255,255,.08)!important;background:rgba(255,255,255,.025)!important;text-decoration:none!important}
body.bk58-panel-shell .bk80-sidebar-brand strong{font-size:9.5px!important}
body.bk58-panel-shell .bk80-sidebar-brand span{font-size:7.5px!important;opacity:.66!important}
@media(min-width:901px){body.bk58-panel-shell .sidebar.collapsed .bk80-sidebar-footer{display:none!important}}

body.bk58-panel-shell .main{margin-right:var(--bk82-sidebar)!important;width:calc(100% - var(--bk82-sidebar))!important;min-height:100vh!important;background:var(--bk82-surface)!important}
body.bk58-panel-shell .app>.main>.header{height:70px!important;min-height:70px!important;padding:0 22px!important;background:#fff!important;border-bottom:1px solid #e8edf4!important;box-shadow:0 1px 0 rgba(13,40,79,.015)!important;grid-template-columns:minmax(190px,1fr) minmax(340px,430px) minmax(315px,1fr)!important;gap:18px!important}
body.bk58-panel-shell .header-left{gap:6px!important}
body.bk58-panel-shell .header-action-btn,body.bk58-panel-shell .notif-btn{width:38px!important;height:38px!important;border-radius:10px!important;color:#52617a!important}
body.bk58-panel-shell .header-action-btn:hover,body.bk58-panel-shell .notif-btn:hover{background:#f3f7fc!important;color:var(--bk82-blue)!important}
body.bk58-panel-shell .avatar-btn{height:50px!important;padding:0 5px!important;gap:8px!important}
body.bk58-panel-shell .avatar-icon{width:38px!important;height:38px!important;background:#f3e4d7!important;color:#8c5d3d!important}
body.bk58-panel-shell .header-user-summary strong{font-size:11.5px!important;color:#25344d!important;line-height:1.45!important}
body.bk58-panel-shell .header-user-summary span{font-size:8.5px!important;color:#8a95a6!important}
body.bk58-panel-shell .bk55-global-search{top:14px!important;width:min(410px,36vw)!important}
body.bk58-panel-shell .global-search.bk55-search-popover{height:42px!important;border-radius:10px!important;background:#f6f8fb!important;border-color:#e7ecf3!important}
body.bk58-panel-shell .global-search.bk55-search-popover input{height:40px!important;min-height:40px!important;font-size:10.5px!important;padding-inline:14px!important}
body.bk58-panel-shell .global-search.bk55-search-popover button{height:40px!important;width:42px!important}
body.bk58-panel-shell .content{padding:23px 22px 38px!important;max-width:1540px!important;width:100%!important;margin:0 auto!important}

/* Admin headings and generic surfaces. */
body.bk58-panel-shell .page-title,body.bk58-panel-shell .section-title{font-size:18px!important;line-height:1.55!important;color:#172741!important;font-weight:850!important}
body.bk58-panel-shell .card,body.bk58-panel-shell .table-card,body.bk58-panel-shell .report-card,body.bk58-panel-shell .filter-section,body.bk58-panel-shell .chart-card,body.bk58-panel-shell .bk54-card,body.bk58-panel-shell .bk71-action-card{border-radius:14px!important;border-color:#e1e7ef!important;box-shadow:0 4px 18px rgba(8,34,74,.035)!important;background:#fff!important}
body.bk58-panel-shell .card:hover{box-shadow:0 8px 26px rgba(8,34,74,.05)!important}
body.bk58-panel-shell input[type=text],body.bk58-panel-shell input[type=password],body.bk58-panel-shell input[type=number],body.bk58-panel-shell input[type=date],body.bk58-panel-shell input[type=email],body.bk58-panel-shell input[type=tel],body.bk58-panel-shell input[type=search],body.bk58-panel-shell select,body.bk58-panel-shell .form-control,body.bk58-panel-shell .control{min-height:42px!important;height:42px!important;border-radius:9px!important;font-size:11px!important;padding-inline:11px!important;border-color:#dfe5ed!important;background:#fff!important}
body.bk58-panel-shell textarea{border-radius:9px!important;font-size:11px!important;border-color:#dfe5ed!important}
body.bk58-panel-shell label{line-height:1.55!important}

/* dashboard */
body.bk58-tab-dashboard .bk71-desk-nav,body.bk58-tab-dashboard .bk71-health-strip{display:none!important}
.bk80-dashboard{gap:13px!important}
.bk80-dashboard-head{min-height:62px!important;align-items:center!important;margin-bottom:1px!important}
.bk80-dashboard-welcome{gap:10px!important}
.bk80-dashboard-welcome .wave{font-size:30px!important;line-height:1!important}
.bk80-dashboard-welcome h1{font-size:20px!important;line-height:1.5!important;letter-spacing:-.25px!important;color:#192a45!important}
.bk80-dashboard-welcome p{font-size:10px!important;color:#7d899c!important;margin-top:2px!important}
.bk80-date-chip{height:42px!important;padding:0 13px!important;border-radius:10px!important;border-color:#e3e9f1!important;background:#fff!important;font-size:9.5px!important}
.bk80-kpis{gap:11px!important}
.bk80-kpi{min-height:148px!important;padding:15px 15px 42px!important;border-radius:14px!important;border:1px solid #e2e8f1!important;background:#fff!important;box-shadow:0 4px 17px rgba(8,34,74,.028)!important;overflow:hidden!important;position:relative!important}
.bk80-kpi:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--tone-line,#dce8fb);opacity:.95}
.bk80-kpi[data-tone="blue"]{--tone-line:#2a7cff}.bk80-kpi[data-tone="green"]{--tone-line:#26b384}.bk80-kpi[data-tone="amber"]{--tone-line:#f1b24a}.bk80-kpi[data-tone="purple"]{--tone-line:#835cf0}
.bk80-kpi-top{align-items:flex-start!important}
.bk80-kpi-title{font-size:11.5px!important;font-weight:800!important;color:#42516a!important;line-height:1.55!important}
.bk80-kpi-icon{width:38px!important;height:38px!important;border-radius:10px!important;font-size:15px!important}
.bk80-kpi-value{font-size:28px!important;line-height:1.25!important;margin-top:8px!important;letter-spacing:-.35px!important;color:#13233f!important}
.bk80-kpi-meta{font-size:8.5px!important;margin-top:8px!important;color:#8b96a7!important;gap:5px!important}
.bk80-kpi-meta i{font-size:8px!important;color:#0b9d6c!important}
.bk80-kpi-link{height:31px!important;left:12px!important;right:12px!important;bottom:10px!important;border-radius:8px!important;font-size:8.8px!important;font-weight:780!important;border-color:#e5eaf1!important;background:#fafbfd!important;color:#355477!important}
.bk80-kpi-link:hover{background:#f2f7ff!important;color:var(--bk82-blue)!important;border-color:#d7e4f9!important}
.bk80-dashboard-grid{grid-template-columns:1.12fr .88fr!important;gap:11px!important;direction:ltr!important}
.bk80-dashboard-grid>*{direction:rtl!important}
.bk80-chart-panel,.bk80-panel,.bk71-action-card{border-radius:14px!important;border-color:#e1e7ef!important;box-shadow:0 4px 18px rgba(8,34,74,.03)!important;background:#fff!important}
.bk80-panel-head{height:50px!important;padding:0 15px!important;border-bottom-color:#edf1f5!important}
.bk80-panel-head h2{font-size:11.5px!important;font-weight:820!important;color:#27364e!important}
.bk80-panel-head>span,.bk80-panel-head>a{font-size:8.5px!important}
.bk80-panel-body{padding:13px 14px!important}
.bk80-chart-wrap{height:232px!important}
.bk80-dashboard-tables{gap:11px!important;direction:ltr!important}
.bk80-dashboard-tables>*{direction:rtl!important}
.bk80-dashboard-table table{table-layout:fixed!important}
.bk80-dashboard-table th,.bk80-dashboard-table td{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bk80-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.bk80-quick-link{min-height:70px!important;border-radius:10px!important;border-color:#e5eaf1!important;background:#fff!important;font-size:9px!important;box-shadow:none!important;transition:.16s!important}
.bk80-quick-link:hover{border-color:#cddbf0!important;background:#f8fbff!important;transform:translateY(-1px)!important}
.bk80-quick-link i{font-size:18px!important;color:#236df0!important}

/* tables: consistent density while preserving horizontal data. */
body.bk58-panel-shell .table-wrapper,body.bk58-panel-shell .table-container,body.bk58-panel-shell .bk71-table-scroll{border-radius:11px!important;box-shadow:none!important;overflow:auto!important;overscroll-behavior-inline:contain!important;border-color:#e5eaf1!important;scrollbar-width:thin!important;scrollbar-color:#cad5e4 transparent!important}
body.bk58-panel-shell table{font-variant-numeric:tabular-nums!important;border-collapse:separate!important;border-spacing:0!important}
body.bk58-panel-shell thead th{height:42px!important;padding:10px 11px!important;font-size:10px!important;font-weight:790!important;white-space:nowrap!important;color:#506078!important;background:#f8fafc!important;border-bottom-color:#e5eaf1!important}
body.bk58-panel-shell tbody td{height:44px!important;padding:10px 11px!important;font-size:10.5px!important;color:#3f4e65!important;vertical-align:middle!important;border-bottom-color:#edf1f5!important}
body.bk58-panel-shell tbody tr:last-child td{border-bottom:0!important}
body.bk58-panel-shell tbody tr:hover td{background:#fbfdff!important}
body.bk58-panel-shell .badge,body.bk58-panel-shell .bk54-badge{border-radius:999px!important;font-size:9px!important;padding:4px 8px!important;line-height:1.4!important}

/* Dropdowns/modals */
body.bk58-panel-shell .dropdown{border-radius:13px!important;border-color:#e1e7ef!important;box-shadow:0 18px 46px rgba(7,31,71,.14)!important}
body.bk58-panel-shell .modal-content,body.bk58-panel-shell .dialog,body.bk58-panel-shell [role="dialog"]{border-radius:16px!important}

/* ---------- responsive ---------- */
@media (max-width:1280px){
  :root{--bk82-sidebar:232px}
  .container{width:calc(100% - 38px)!important}
  .bk80-home-hero-grid{grid-template-columns:minmax(350px,.9fr) minmax(520px,1.1fr)!important;gap:30px!important}
  .bk80-home-copy h1{font-size:38px!important}
  body.bk58-panel-shell .sidebar{width:232px!important}
  body.bk58-panel-shell .main{margin-right:232px!important;width:calc(100% - 232px)!important}
  body.bk58-panel-shell .content{padding-inline:18px!important}
}
@media (max-width:1080px){
  .bk80-home-hero-grid{grid-template-columns:1fr!important;gap:24px!important;min-height:0!important}
  .bk80-home-copy{max-width:740px!important;margin-inline:auto!important;text-align:center!important}
  .bk80-home-copy h1,.bk80-home-copy>p,.bk80-home-checks{margin-inline:auto!important}
  .bk80-feature-cards{max-width:900px!important;margin-inline:auto!important}
}
@media (max-width:980px){
  .bk47-desktop-nav{display:none!important}.bk47-menu-button{display:grid!important}
  .bk47-brand{width:145px!important;min-width:145px!important;height:44px!important}.bk47-brand img{height:29px!important;max-width:122px!important}
  body.bk58-panel-shell .sidebar{width:270px!important;transform:translateX(105%)!important;box-shadow:-14px 0 40px rgba(5,25,60,.2)!important}
  body.bk58-panel-shell .sidebar.open{transform:translateX(0)!important}
  body.bk58-panel-shell .main{margin-right:0!important;width:100%!important}
  body.bk58-panel-shell .app>.main>.header{grid-template-columns:auto 1fr auto!important;padding-inline:14px!important;gap:8px!important}
  body.bk58-panel-shell .bk55-global-search{width:min(340px,40vw)!important}
  body.bk58-panel-shell .content{padding:17px 14px 86px!important}
  .bk80-insurance-grid{grid-template-columns:repeat(3,1fr)!important}
}
@media (max-width:760px){
  body{font-size:13px}
  .container{width:calc(100% - 24px)!important}
  .bk47-header,.bk47-header .bk47-nav{height:64px!important}
  .bk47-header .bk47-nav{gap:7px!important}
  .bk47-brand{width:124px!important;min-width:124px!important;height:40px!important;padding:6px 9px!important}.bk47-brand img{height:27px!important;max-width:106px!important}
  .bk58-login{height:36px!important;min-width:64px!important;padding-inline:10px!important;font-size:9.5px!important}
  .bk58-search-trigger,.bk47-menu-button{width:36px!important;height:36px!important}
  .bk80-home-hero{padding:20px 0 13px!important}
  .bk80-home-copy{text-align:right!important;padding:5px 0!important}
  .bk80-home-copy h1{font-size:29px!important;line-height:1.52!important;max-width:none!important;margin-bottom:9px!important}
  .bk80-home-copy>p{font-size:10.5px!important;line-height:2!important}
  .bk80-home-checks{grid-template-columns:1fr 1fr!important;gap:7px 9px!important;margin-top:11px!important}.bk80-home-checks span{font-size:8.7px!important;white-space:normal!important}
  .bk80-feature-cards{grid-template-columns:1fr!important;gap:9px!important}
  .bk80-feature-card{min-height:150px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 116px!important;grid-template-rows:auto 1fr 34px!important;column-gap:10px!important;padding:12px 13px!important;border-radius:14px!important}
  .bk80-feature-card h3{font-size:13px!important}.bk80-feature-card p{font-size:8.2px!important;min-height:0!important}
  .bk80-feature-visual{grid-column:2!important;grid-row:1/4!important;height:122px!important;margin:0!important}.bk80-feature-visual:before{width:88px!important;height:88px!important}.bk80-feature-visual img{width:73px!important;height:73px!important}
  .bk80-feature-card>a{grid-column:1!important;grid-row:3!important;height:32px!important}
  .bk80-section{padding:23px 0!important}.bk80-section-head{align-items:flex-start!important}.bk80-section-head h2{font-size:16px!important}.bk80-section-head p{font-size:8.7px!important}.bk80-section-head>a{font-size:8.7px!important}
  .bk80-insurance-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.bk80-insurance-card{min-height:86px!important;font-size:9px!important}.bk80-insurance-card img{width:38px!important;height:38px!important}
  .bk80-home-split{grid-template-columns:1fr!important}.bk80-home-banner{min-height:142px!important}
  .bk80-app-card{grid-template-columns:1fr!important;padding:20px!important}.bk80-phone{display:none!important}.bk80-app-copy{text-align:right!important}
  .bk80-trust-strip{grid-template-columns:1fr!important}.bk80-trust-item{min-height:64px!important;border-left:0!important;border-bottom:1px solid var(--bk82-line)!important;justify-content:flex-start!important;padding-inline:16px!important}.bk80-trust-item:last-child{border-bottom:0!important}
  .footer-grid{grid-template-columns:1fr 1fr!important;gap:20px 15px!important}.bk47-footer .footer-brand:before{width:140px!important;height:44px!important}.bk47-footer .footer-brand img{max-width:116px!important;height:28px!important}
  .form-grid-2,.health-form-grid{grid-template-columns:1fr!important}
  .auth-layout{display:block!important}.auth-visual{padding:24px 18px!important;min-height:190px!important}.auth-card-wrap{padding:18px 12px 92px!important}.auth-card{padding:18px!important}

  body.bk58-panel-shell .app>.main>.header{height:62px!important;min-height:62px!important;display:flex!important;justify-content:space-between!important;background:linear-gradient(135deg,#06245a,#083777)!important;border-bottom:0!important;padding:0 12px!important;direction:rtl!important;box-shadow:0 5px 18px rgba(4,27,67,.13)!important}
  body.bk58-panel-shell .bk55-global-search{display:none!important}
  body.bk58-panel-shell .bk81-mobile-admin-brand{display:flex!important;align-items:center!important;justify-content:center!important;width:124px!important;height:40px!important;order:1!important}
  body.bk58-panel-shell .bk81-mobile-admin-brand img{width:116px!important;max-height:35px!important}
  body.bk58-panel-shell .header-context{display:flex!important;order:3!important;margin-right:auto!important}
  body.bk58-panel-shell .app>.main>.header .header-context .menu-toggle{width:40px!important;height:40px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:10px!important;background:rgba(255,255,255,.055)!important;color:#fff!important}
  body.bk58-panel-shell .header-left{order:2!important;margin:0!important;gap:1px!important}
  body.bk58-panel-shell .header-left>a.header-action-btn,body.bk58-panel-shell .header-left>.bk55-global-search,body.bk58-panel-shell .header-left>.user-menu{display:none!important}
  body.bk58-panel-shell .app>.main>.header .header-action-btn,body.bk58-panel-shell .app>.main>.header .notif-btn{width:36px!important;height:36px!important;color:#fff!important;background:transparent!important}
  body.bk58-panel-shell .content{padding:15px 12px calc(92px + env(safe-area-inset-bottom))!important}
  .bk80-dashboard{gap:10px!important}
  .bk80-dashboard-head{display:block!important;min-height:0!important;margin-bottom:1px!important}.bk80-dashboard-welcome{align-items:flex-start!important}.bk80-dashboard-welcome .wave{font-size:28px!important}.bk80-dashboard-welcome h1{font-size:18px!important}.bk80-dashboard-welcome p{font-size:8.8px!important}.bk80-date-chip{margin-top:9px!important;height:39px!important;width:max-content!important;font-size:9px!important}
  .bk80-kpis{grid-template-columns:1fr 1fr!important;gap:8px!important}.bk80-kpi{min-height:124px!important;padding:13px 13px 38px!important}.bk80-kpi-value{font-size:24px!important}.bk80-kpi-title{font-size:10px!important}.bk80-kpi-icon{width:34px!important;height:34px!important}.bk80-kpi:nth-child(5){grid-column:1/-1!important}
  .bk80-dashboard-grid,.bk80-dashboard-tables{display:block!important}.bk80-dashboard-grid>* ,.bk80-dashboard-tables>*{margin-bottom:9px!important}
  .bk80-chart-wrap{height:200px!important}
  .bk80-quick-grid{grid-template-columns:1fr 1fr!important}
  body.bk58-panel-shell table{min-width:max-content!important}
  body.bk58-panel-shell .table-wrapper,body.bk58-panel-shell .table-container,body.bk58-panel-shell .bk71-table-scroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  body.bk58-panel-shell thead th{font-size:9.5px!important}body.bk58-panel-shell tbody td{font-size:10px!important}
  .bk80-mobile-bottom{padding-bottom:env(safe-area-inset-bottom)!important}
}
@media (max-width:430px){
  .container{width:calc(100% - 20px)!important}
  .bk80-home-copy h1{font-size:27px!important}
  .bk80-home-checks{grid-template-columns:1fr!important}
  .bk80-kpis{grid-template-columns:1fr!important}.bk80-kpi:nth-child(5){grid-column:auto!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child{min-height:136px!important;background:linear-gradient(145deg,#126bf7 0%,#0753cd 100%)!important;border-color:transparent!important;color:#fff!important;box-shadow:0 12px 26px rgba(10,91,221,.2)!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child:before{display:none!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child .bk80-kpi-title,body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child .bk80-kpi-value,body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child .bk80-kpi-meta{color:#fff!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child .bk80-kpi-meta{opacity:.78!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child .bk80-kpi-icon{background:rgba(255,255,255,.14)!important;color:#fff!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child .bk80-kpi-link{background:rgba(255,255,255,.11)!important;border-color:rgba(255,255,255,.18)!important;color:#fff!important}
  body.bk58-tab-dashboard .bk80-kpis .bk80-kpi:first-child:after{content:"";position:absolute;left:18px;right:18px;bottom:40px;height:20px;opacity:.42;background:linear-gradient(169deg,transparent 43%,rgba(255,255,255,.85) 45% 48%,transparent 50%) no-repeat;background-size:100% 100%;pointer-events:none}
  .footer-grid{grid-template-columns:1fr!important}
}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ---------- cross-module harmonization ---------- */
body.bk58-panel-shell .content>*{min-width:0}
body.bk58-panel-shell .content :where(.form-row,.form-grid,.bk54-filter-grid,.bk54-metrics,.bk65-grid,.bk65-form,.bk65-kpis,.bkcc-grid,.bkcc-metrics,.v14-module-grid)>*{min-width:0}
body.bk58-panel-shell .content :where(.bk54-card,.bk65-card,.bk79-panel,.bkcc-panel,.panel,.panel-card,.content-card,.tool-card,.claim-table-card){border-radius:14px!important;border-color:#e1e7ef!important;box-shadow:0 4px 18px rgba(8,34,74,.03)!important;background:#fff!important}
body.bk58-panel-shell .content :where(.bk54-card,.bk65-card,.bk79-panel,.panel,.panel-card,.content-card){padding:15px!important}
body.bk58-panel-shell .content :where(.bk54-page-head,.bk65-page-head,.page-header){margin-bottom:13px!important}
body.bk58-panel-shell .content :where(.bk54-page-head h1,.bk54-page-head h2,.bk65-page-head h1,.page-header h1){font-size:18px!important;line-height:1.55!important;color:#172741!important;letter-spacing:-.1px!important}
body.bk58-panel-shell .content :where(.bk54-page-head p,.bk65-page-head p,.page-header p){font-size:10.5px!important;line-height:1.85!important;color:#7e8a9d!important}
body.bk58-panel-shell .content :where(.bk54-metrics,.bk65-kpis,.bkcc-metrics){gap:10px!important}
body.bk58-panel-shell .content :where(.bk54-metric,.bk65-kpi,.bkcc-metric,.stat-card){border:1px solid #e2e8f1!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;padding:13px!important}
body.bk58-panel-shell .content :where(.bk54-metric strong,.bk65-kpi strong,.bkcc-metric strong,.stat-value){font-size:20px!important;line-height:1.35!important;color:#172844!important}
body.bk58-panel-shell .content :where(.bk54-metric span,.bk65-muted,.bkcc-metric span,.stat-label){font-size:9.5px!important;color:#7c899c!important}
body.bk58-panel-shell .content :where(.form-row,.bk54-filter-grid,.bk65-form,.bkcc-grid){gap:11px!important}
body.bk58-panel-shell .content :where(.form-group,.form-field,.bk54-field,.bkcc-field,.bkvs-field){gap:6px!important}
body.bk58-panel-shell .content :where(.form-label,.form-group>label,.form-field>label,.bk54-field>label,.bkcc-field>label,.bkvs-field>label){font-size:10.5px!important;font-weight:760!important;color:#526077!important}
body.bk58-panel-shell .content :where(.btn,.bkcc-btn){min-height:38px!important;border-radius:9px!important;padding-inline:12px!important;font-size:10.5px!important;font-weight:780!important;box-shadow:none!important}
body.bk58-panel-shell .content :where(.btn-sm,.btn-xs){min-height:32px!important;padding-inline:9px!important;font-size:9.5px!important}
body.bk58-panel-shell .content :where(.alert,.bk54-callout,.bkcc-alert,.bk65-warning,.bk65-danger,.bk65-ok){border-radius:11px!important;box-shadow:none!important;font-size:10.5px!important;line-height:1.8!important}

/* Legacy module landing pages now use the same calm enterprise hierarchy. */
body.bk58-panel-shell .v14-page{gap:14px!important}
body.bk58-panel-shell .v14-page-hero{min-height:auto!important;padding:20px 21px!important;border:1px solid #e1e7ef!important;border-radius:15px!important;background:#fff!important;color:#172741!important;box-shadow:0 4px 18px rgba(8,34,74,.03)!important}
body.bk58-panel-shell .v14-page-hero:after{width:160px!important;height:160px!important;border:28px solid #f1f6ff!important;right:auto!important;left:-52px!important;bottom:-88px!important;opacity:.72!important}
body.bk58-panel-shell .v14-page-hero span{font-size:9.5px!important;color:#75849a!important;opacity:1!important}
body.bk58-panel-shell .v14-page-hero h1{font-size:22px!important;line-height:1.5!important;color:#172741!important}
body.bk58-panel-shell .v14-page-hero p{font-size:10.5px!important;line-height:1.9!important;color:#6f7d91!important;margin-top:6px!important}
body.bk58-panel-shell .v14-workspace{min-width:185px!important;padding:12px 13px!important;border-radius:11px!important;background:#f5f8fc!important;border:1px solid #e0e8f2!important;color:#34506f!important}
body.bk58-panel-shell .v14-workspace i{font-size:18px!important;color:var(--bk82-blue)!important}
body.bk58-panel-shell .v14-workspace strong{font-size:10.5px!important}
body.bk58-panel-shell .v14-workspace span{font-size:8.5px!important;color:#7c899c!important}
body.bk58-panel-shell .v14-module-grid{gap:11px!important}
body.bk58-panel-shell .v14-module-card{min-height:112px!important;padding:15px!important;gap:12px!important;border-radius:13px!important;border-color:#e2e8f1!important;background:#fff!important;box-shadow:0 3px 15px rgba(8,34,74,.025)!important}
body.bk58-panel-shell .v14-module-card:hover{transform:translateY(-1px)!important;border-color:#cbdaf0!important;box-shadow:0 9px 24px rgba(8,34,74,.055)!important}
body.bk58-panel-shell .v14-module-icon{width:43px!important;height:43px!important;flex-basis:43px!important;border-radius:11px!important;font-size:17px!important;background:#eef5ff!important;color:var(--bk82-blue)!important}
body.bk58-panel-shell .v14-module-card h3{font-size:12px!important;margin-bottom:4px!important;color:#25354e!important}
body.bk58-panel-shell .v14-module-card p{font-size:9.5px!important;line-height:1.75!important;color:#7b879a!important}
body.bk58-panel-shell .v14-module-arrow{left:13px!important;bottom:12px!important;font-size:9px!important;color:#9caabd!important}

/* Control-center family */
body.bk58-panel-shell .bkcc-main{gap:12px!important}
body.bk58-panel-shell .bkcc-panel-head{padding:15px 17px!important;gap:12px!important;border-bottom-color:#e9eef4!important}
body.bk58-panel-shell .bkcc-panel-head h2{font-size:15px!important}.bkcc-panel-head h3{font-size:13px!important}
body.bk58-panel-shell .bkcc-panel-head p{font-size:10px!important;line-height:1.8!important}
body.bk58-panel-shell .bkcc-panel-body{padding:16px!important}
body.bk58-panel-shell .bkcc-panel-foot{padding:12px 16px!important;background:#fbfcfe!important;border-top-color:#e9eef4!important}

/* Mobile module harmonization */
@media(max-width:760px){
  body.bk58-panel-shell .content :where(.bk54-card,.bk65-card,.bk79-panel,.bkcc-panel,.panel,.panel-card,.content-card){padding:12px!important;border-radius:12px!important}
  body.bk58-panel-shell .v14-page-hero{display:block!important;padding:16px!important}
  body.bk58-panel-shell .v14-page-hero h1{font-size:18px!important}
  body.bk58-panel-shell .v14-workspace{margin-top:12px!important;width:100%!important;min-width:0!important}
  body.bk58-panel-shell .v14-module-grid{grid-template-columns:1fr!important}
  body.bk58-panel-shell .v14-module-card{min-height:96px!important}
  body.bk58-panel-shell .bkcc-panel-head,body.bk58-panel-shell .bkcc-panel-body{padding:13px!important}
}
