/* Hardware Saarthi AI – BVite integration layer */
:root{--hs-ai:#6f42c1;--hs-ai-2:#8b5cf6;--hs-green:#16a085;--hs-danger:#dc3545;--hs-warning:#f59e0b;--hs-radius:18px}
html,body{min-height:100%}body{overflow-x:hidden}.hs-brand-text{font-weight:800;letter-spacing:-.02em}.hs-brand-sub{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--bs-secondary-color)}
.hs-logo{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,var(--primary-color),var(--hs-ai));display:grid;place-items:center;color:#fff;box-shadow:0 8px 24px rgba(111,66,193,.24)}
.hs-company-chip{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hs-page-title{font-weight:800;letter-spacing:-.025em}.hs-page-subtitle{color:var(--bs-secondary-color);font-size:.9rem}.page-body{padding-bottom:90px!important}
.menu-list>li>a{border-radius:12px;transition:.18s ease}.menu-list>li>a:hover,.menu-list>li>a.active{background:var(--bs-tertiary-bg);color:var(--primary-color)}.menu-list .collapse a{border-radius:10px}.menu-list .collapse a.active{color:var(--primary-color);font-weight:700;background:color-mix(in srgb,var(--primary-color) 10%,transparent)}
.hs-ai-nav>a{background:linear-gradient(135deg,color-mix(in srgb,var(--hs-ai) 15%,transparent),color-mix(in srgb,var(--primary-color) 12%,transparent))!important;border:1px solid color-mix(in srgb,var(--hs-ai) 22%,transparent);font-weight:800}.hs-ai-nav>a .hs-ai-pulse{width:8px;height:8px;border-radius:50%;background:#9b75ff;box-shadow:0 0 0 0 rgba(139,92,246,.55);animation:hsPulse 1.8s infinite}@keyframes hsPulse{70%{box-shadow:0 0 0 8px rgba(139,92,246,0)}100%{box-shadow:0 0 0 0 rgba(139,92,246,0)}}
.hs-ai-hero{position:relative;overflow:hidden;border:0!important;background:linear-gradient(135deg,#201f3b 0%,#3a2c72 55%,#5c3cb8 100%);color:#fff;min-height:190px}.hs-ai-hero:before{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:-70px;top:-90px;background:rgba(255,255,255,.08)}.hs-ai-hero:after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;right:100px;bottom:-110px;background:rgba(255,255,255,.07)}.hs-ai-hero>*{position:relative;z-index:1}.hs-ai-hero .btn-light{box-shadow:0 9px 26px rgba(0,0,0,.15)}
.hs-stat-card{border:1px solid var(--bs-border-color);border-radius:var(--hs-radius);height:100%;transition:.2s ease}.hs-stat-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(25,35,58,.08)}.hs-stat-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:var(--bs-tertiary-bg);color:var(--primary-color)}.hs-stat-value{font-weight:800;font-size:1.55rem;letter-spacing:-.02em}.hs-stat-label{color:var(--bs-secondary-color);font-size:.82rem}
.hs-section-card{border-radius:var(--hs-radius)!important}.hs-table-card{border:1px solid var(--bs-border-color);border-radius:var(--hs-radius);overflow:hidden}.hs-table-card .table{margin-bottom:0}.hs-table-card .table>:not(caption)>*>*{padding:.8rem .9rem}.hs-empty{padding:32px;text-align:center;color:var(--bs-secondary-color)}
.hs-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}.hs-quick-action{padding:14px;border:1px solid var(--bs-border-color);border-radius:14px;background:var(--bs-body-bg);text-decoration:none;color:inherit;transition:.18s}.hs-quick-action:hover{border-color:color-mix(in srgb,var(--primary-color) 40%,var(--bs-border-color));transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.05)}.hs-quick-action small{display:block;color:var(--bs-secondary-color);margin-top:4px}
.hs-subscription{border-left:4px solid var(--primary-color)}.hs-expiring{border-left-color:var(--hs-warning)}.hs-expired{border-left-color:var(--hs-danger)}
.hs-floating-ai{position:fixed;right:26px;bottom:26px;z-index:1040;display:flex;align-items:center;gap:8px}.hs-ai-orb{width:58px;height:58px;border:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--hs-ai),var(--hs-ai-2));color:white;box-shadow:0 14px 38px rgba(111,66,193,.38);transition:.2s}.hs-ai-orb:hover{transform:scale(1.05)}.hs-ai-mic{width:42px;height:42px;border-radius:50%;border:1px solid rgba(111,66,193,.24);background:var(--bs-body-bg);color:var(--hs-ai);box-shadow:0 8px 22px rgba(0,0,0,.12)}.hs-ai-mic.listening{animation:hsMic 1s infinite;background:#fee2e2;color:#dc2626}@keyframes hsMic{50%{transform:scale(1.09)}}
.hs-ai-modal .modal-content{border:0;border-radius:22px;overflow:hidden}.hs-ai-modal-head{background:linear-gradient(135deg,#251e4d,#6040be);color:#fff}.hs-voice-wave{display:none;gap:3px;align-items:end;height:22px}.hs-voice-wave.active{display:inline-flex}.hs-voice-wave i{display:block;width:3px;background:currentColor;border-radius:3px;animation:hsWave .7s ease-in-out infinite}.hs-voice-wave i:nth-child(2){animation-delay:.1s}.hs-voice-wave i:nth-child(3){animation-delay:.2s}.hs-voice-wave i:nth-child(4){animation-delay:.3s}@keyframes hsWave{0%,100%{height:5px}50%{height:20px}}
.hs-sound-toggle.is-off{opacity:.45}.hs-notification-dot{position:absolute;right:0;top:1px;width:8px;height:8px;border-radius:50%;background:#ef4444;border:2px solid var(--bs-body-bg)}.hs-notification-item{white-space:normal}.hs-notification-item p{font-size:.84rem}.hs-notification-menu{width:min(390px,92vw)}
.hs-status{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:.75rem;font-weight:700}.hs-status.active,.hs-status.paid,.hs-status.completed{background:#dcfce7;color:#166534}.hs-status.expiring,.hs-status.pending,.hs-status.open{background:#fef3c7;color:#92400e}.hs-status.expired,.hs-status.inactive,.hs-status.failed{background:#fee2e2;color:#991b1b}
.hs-admin-kpi{height:100%;border:1px solid var(--bs-border-color);border-radius:18px;padding:17px;background:var(--bs-body-bg)}.hs-admin-kpi .kpi{font-size:1.7rem;font-weight:850}.hs-admin-kpi .trend{font-size:.78rem;color:var(--bs-secondary-color)}.hs-investigation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.hs-company-header{background:linear-gradient(135deg,color-mix(in srgb,var(--primary-color) 10%,var(--bs-body-bg)),var(--bs-body-bg));border:1px solid var(--bs-border-color);border-radius:20px}
.hs-progress{height:7px;background:var(--bs-tertiary-bg);border-radius:999px;overflow:hidden}.hs-progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--primary-color),var(--hs-ai));border-radius:999px}
/* Compatibility layer for the original application views */
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.page-head h1{font-size:1.65rem;font-weight:800;margin:0}.muted{color:var(--bs-secondary-color)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.grid>.card,.split>.card,.card{border-color:var(--bs-border-color);border-radius:16px}.stat .label{font-size:.8rem;color:var(--bs-secondary-color)}.stat .value{font-size:1.45rem;font-weight:800;margin-top:6px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn.primary{background:var(--primary-color);border-color:var(--primary-color);color:white}.btn.success{background:#dcfce7;color:#166534;border-color:#bbf7d0}.btn.warn{background:#fef3c7;color:#92400e;border-color:#fde68a}.btn.danger{background:#fee2e2;color:#991b1b;border-color:#fecaca}.btn.small{padding:.35rem .65rem;font-size:.78rem}.table-wrap{overflow:auto;border:1px solid var(--bs-border-color);border-radius:14px;background:var(--bs-body-bg)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:.82rem;font-weight:700}.input,.field input,.field select,.field textarea{width:100%;border:1px solid var(--bs-border-color);border-radius:10px;padding:.65rem .75rem;background:var(--bs-body-bg);color:var(--bs-body-color)}.field textarea{min-height:100px}.alert.success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.alert.error{background:#fef2f2;border-color:#fecaca;color:#991b1b}.split{display:grid;grid-template-columns:1.25fr .75fr;gap:16px}.badge.ok{background:#dcfce7;color:#166534}.badge.warn{background:#fef3c7;color:#92400e}.chat{display:flex;flex-direction:column;gap:11px;max-height:520px;overflow:auto;padding:8px}.bubble{max-width:86%;padding:11px 14px;border-radius:16px;white-space:pre-wrap}.bubble.user{align-self:flex-end;background:linear-gradient(135deg,var(--primary-color),#3d66c5);color:#fff;border-bottom-right-radius:5px}.bubble.assistant{align-self:flex-start;background:var(--bs-tertiary-bg);border-bottom-left-radius:5px}.compact{font-size:.78rem}.print-label{display:inline-block;border:1px solid #111;padding:10px;margin:6px;min-width:220px;text-align:center;background:#fff}.sku-bars{font-family:monospace;font-size:20px;letter-spacing:4px;border-top:8px double #111;border-bottom:8px double #111;padding:8px 0;margin:6px 0}
.auth-main .auth-box{max-width:470px}.hs-login-card{border-radius:24px!important;box-shadow:0 20px 70px rgba(23,31,56,.12)}.hs-login-ai{background:linear-gradient(135deg,#201f3b,#5c3cb8);color:#fff;border-radius:22px;padding:22px}.hs-login-language a{font-size:.78rem}
@media(max-width:1199px){.hs-company-chip{max-width:130px}.page-body{min-height:calc(100vh - 160px)}}
@media(max-width:991px){.grid{grid-template-columns:repeat(2,1fr)}.split,.hs-investigation-grid{grid-template-columns:1fr}.hs-floating-ai{right:16px;bottom:16px}}
@media(max-width:640px){.grid,.form-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.hs-ai-orb{width:52px;height:52px}.hs-ai-mic{width:38px;height:38px}}
@media print{.brand,.sidebar,header,.hs-floating-ai,.no-print{display:none!important}.page-body{height:auto!important;overflow:visible!important}.card{box-shadow:none!important}}
/* Legacy module markup -> unified theme */
.page-body>.card:not(.hs-section-card):not(.hs-ai-hero),.split>.card:not(.hs-section-card),.grid>.card:not(.hs-stat-card){padding:1rem}.table-wrap table{width:100%;border-collapse:collapse}.table-wrap th,.table-wrap td{padding:.8rem .9rem;border-bottom:1px solid var(--bs-border-color);vertical-align:middle}.table-wrap th{font-size:.76rem;text-transform:uppercase;letter-spacing:.035em;color:var(--bs-secondary-color);background:var(--bs-tertiary-bg)}.table-wrap tr:last-child td{border-bottom:0}.page-body input:not([type=checkbox]):not([type=radio]):not(.form-control),.page-body select:not(.form-select),.page-body textarea:not(.form-control){border:1px solid var(--bs-border-color);border-radius:10px;padding:.6rem .7rem;background:var(--bs-body-bg);color:var(--bs-body-color)}
/* v1.2 Update Center */
.hs-update-drop{cursor:pointer;background:linear-gradient(135deg,var(--bs-tertiary-bg),rgba(83,109,254,.06));transition:.2s ease}.hs-update-drop:hover{border-color:var(--primary-color)!important;transform:translateY(-1px)}.hs-update-steps{display:grid;gap:12px}.hs-update-steps>div{display:flex;gap:12px;align-items:center;padding:10px 12px;background:var(--bs-tertiary-bg);border-radius:12px}.hs-update-steps b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--primary-color);color:#fff;flex:0 0 auto}.border-dashed{border-style:dashed!important}

/* Hardware Saarthi v1.2.1 — desktop sidebar visibility hotfix
   BVite uses Bootstrap offcanvas for mobile navigation. On desktop the
   nested offcanvas must be made static/visible inside the sidebar grid. */
@media (min-width:1200px){
  main .sidebar > .offcanvas{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    visibility:visible!important;
    transform:none!important;
    transition:none!important;
    background:transparent!important;
    border:0!important;
    z-index:auto!important;
    display:block!important;
  }
  main .sidebar > .offcanvas .offcanvas-header{display:none!important}
  main .sidebar > .offcanvas .offcanvas-body{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:100%!important;
    padding:0!important;
    overflow:visible!important;
    visibility:visible!important;
  }
  main .sidebar #hsMainMenu,
  main .sidebar .menu-list{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }
  main .sidebar .menu-list>li,
  main .sidebar .menu-list>li>a{
    visibility:visible!important;
    opacity:1!important;
  }
}

/* v1.3.0 — Hey Sarthi wake voice */
.hs-wake-toggle{position:relative}.hs-wake-toggle .hs-wake-dot,.hs-wake-status .hs-wake-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#94a3b8;box-shadow:none}.hs-wake-toggle.active{background:linear-gradient(135deg,color-mix(in srgb,var(--hs-ai) 14%,transparent),color-mix(in srgb,var(--primary-color) 10%,transparent));border-color:var(--hs-ai)!important;color:var(--hs-ai)!important}.hs-wake-toggle.active .hs-wake-dot,.hs-wake-status .hs-wake-dot{background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.45);animation:hsWakePulse 1.5s infinite}@keyframes hsWakePulse{70%{box-shadow:0 0 0 8px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.hs-wake-status{position:fixed;right:24px;bottom:96px;z-index:1039;display:flex;align-items:center;gap:9px;padding:8px 13px;border-radius:999px;background:color-mix(in srgb,var(--bs-body-bg) 92%,transparent);border:1px solid var(--bs-border-color);box-shadow:0 9px 28px rgba(0,0,0,.13);font-size:.78rem;font-weight:700;backdrop-filter:blur(12px)}.hs-wake-status[hidden]{display:none!important}
.hs-wake-card{border:1px solid color-mix(in srgb,var(--hs-ai) 22%,var(--bs-border-color))!important;background:linear-gradient(135deg,color-mix(in srgb,var(--hs-ai) 6%,var(--bs-body-bg)),var(--bs-body-bg));border-radius:20px!important}.hs-wake-orb{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,var(--hs-ai),var(--hs-ai-2));box-shadow:0 12px 30px rgba(111,66,193,.25);flex:0 0 auto}.hs-wake-orb span{width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 0 0 0 rgba(255,255,255,.5);animation:hsWakeWhite 1.7s infinite}@keyframes hsWakeWhite{70%{box-shadow:0 0 0 13px rgba(255,255,255,0)}100%{box-shadow:0 0 0 0 rgba(255,255,255,0)}}
.hs-ai-live-answer{border:1px solid color-mix(in srgb,var(--hs-ai) 18%,var(--bs-border-color));border-radius:14px;padding:13px 14px;background:color-mix(in srgb,var(--hs-ai) 5%,var(--bs-body-bg));white-space:pre-wrap;max-height:240px;overflow:auto}.hs-ai-live-answer[hidden]{display:none!important}
@media(max-width:767px){.hs-wake-status{left:12px;right:auto;bottom:82px;max-width:calc(100vw - 92px)}.hs-wake-card .form-check{margin-bottom:0}}

/* v1.3.2 — recognized question + deterministic answer UI */
.hs-ai-recognized{padding:10px 12px;border-radius:12px;background:var(--bs-tertiary-bg);border:1px dashed var(--bs-border-color);white-space:pre-wrap}.hs-ai-recognized [data-ai-question-text]{font-weight:700}.hs-ai-answer-badge{display:inline-flex;align-items:center;gap:5px}

/* v1.5.0 Responsive UX hardening ------------------------------------------------ */
:root{--hs-mobile-nav-h:68px;--hs-page-max:1680px;--hs-touch:44px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{min-width:320px}
img,svg,video,canvas{max-width:100%}
.page-body{width:100%;max-width:var(--hs-page-max);margin-inline:auto}
.page-body>.row{min-width:0}.page-body .col,.page-body [class*="col-"]{min-width:0}
.card,.hs-section-card,.hs-stat-card,.hs-admin-kpi{min-width:0}
.table-wrap,.table-responsive,.hs-table-card{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap table,.table-responsive table,.hs-table-card table{min-width:680px}
.table td,.table th{vertical-align:middle}
.form-control,.form-select,.input,.field input,.field select,.field textarea{min-height:42px}
.btn,.form-check-input,a[role="button"]{touch-action:manipulation}
.btn:not(.btn-sm):not(.btn-close){min-height:42px}
.hs-ai-live-answer{border:1px solid var(--bs-border-color);background:var(--bs-tertiary-bg);border-radius:16px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.hs-ai-recognized{padding-bottom:12px;border-bottom:1px dashed var(--bs-border-color)}
.hs-ai-response-loading{position:relative;overflow:hidden}
.hs-ai-response-loading:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.06),transparent);animation:hsShimmer 1.2s infinite}
@keyframes hsShimmer{100%{transform:translateX(100%)}}
.hs-wake-status{position:fixed;right:22px;bottom:94px;z-index:1039;display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:var(--bs-body-bg);border:1px solid var(--bs-border-color);box-shadow:0 8px 24px rgba(0,0,0,.1);font-size:.75rem;max-width:min(320px,calc(100vw - 32px))}
.hs-wake-status[hidden]{display:none!important}.hs-wake-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;display:inline-block;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.hs-wake-toggle.active{border-color:#22c55e!important;color:#15803d!important}.hs-wake-toggle.needs-resume{border-color:#f59e0b!important;color:#b45309!important}
.hs-command-list{border:1px solid var(--bs-border-color);border-radius:16px;background:var(--bs-body-bg);max-height:300px;overflow:auto}
.hs-command-list[hidden]{display:none!important}.hs-command-group{padding:12px 14px;border-bottom:1px solid var(--bs-border-color)}.hs-command-group:last-child{border-bottom:0}.hs-command-group strong{display:block;font-size:.78rem;color:var(--primary-color);margin-bottom:5px}.hs-command-example{font-size:.82rem;line-height:1.45;color:var(--bs-secondary-color)}
.hs-mobile-nav{display:none}
.hs-mobile-search{display:none}

@media (min-width:1200px){
  .sidebar .offcanvas{visibility:visible!important;transform:none!important;position:static!important;border:0!important;width:auto!important;height:100%!important;background:transparent!important}
  .sidebar .offcanvas-body{overflow:visible!important;padding:0!important}
  .page-header{min-height:52px}
}

@media (min-width:768px) and (max-width:1199.98px){
  .page-body{padding-left:18px!important;padding-right:18px!important}
  .page-header{padding-left:18px!important;padding-right:18px!important}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hs-investigation-grid{grid-template-columns:1fr}
  .offcanvas{--bs-offcanvas-width:min(360px,88vw)}
  .hs-ai-modal .modal-dialog{max-width:min(720px,92vw)}
}

@media (max-width:767.98px){
  body{padding-bottom:calc(var(--hs-mobile-nav-h) + env(safe-area-inset-bottom))}
  .brand{min-height:58px;padding-inline:14px!important;position:sticky;top:0;z-index:1028;background:var(--bs-body-bg);border-bottom:1px solid var(--bs-border-color)}
  header{padding-inline:12px!important;position:sticky;top:58px;z-index:1027;background:var(--bs-body-bg);border-bottom:1px solid var(--bs-border-color)}
  header .header-menu{gap:0!important;display:flex;align-items:center}
  header .header-menu>li{margin-inline:0!important;padding-inline:3px!important}
  .page-header{padding:9px 12px!important;min-height:46px;position:relative}
  .page-header .breadcrumb{font-size:.78rem;max-width:65vw;overflow:hidden;white-space:nowrap}
  .page-header .breadcrumb-item{overflow:hidden;text-overflow:ellipsis}
  .page-header .action{gap:6px}.page-header .action .btn{font-size:.72rem;padding:.35rem .55rem;white-space:nowrap}
  .page-body{padding:14px 12px calc(var(--hs-mobile-nav-h) + 22px)!important;min-height:auto!important}
  .page-head{gap:10px;margin-bottom:14px}.page-head h1{font-size:1.35rem}.hs-page-title{font-size:1.45rem!important}.hs-page-subtitle{font-size:.82rem}
  .grid,.form-grid,.split,.hs-investigation-grid{grid-template-columns:1fr!important;gap:11px}
  .hs-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hs-quick-action{padding:12px}
  .hs-stat-card,.hs-admin-kpi,.card{border-radius:14px}
  .card-body{padding:14px}
  .actions{gap:7px}.actions>.btn{flex:1 1 auto}
  .table-wrap,.table-responsive,.hs-table-card{margin-inline:0;border-radius:12px}
  .table-wrap table,.table-responsive table,.hs-table-card table{min-width:620px;font-size:.82rem}
  .table-wrap:before,.table-responsive:before,.hs-table-card:before{content:"Swipe table ↔";display:block;position:sticky;left:0;padding:5px 10px;font-size:.67rem;color:var(--bs-secondary-color);background:var(--bs-tertiary-bg);z-index:2}
  .form-control,.form-select,.input,.field input,.field select,.field textarea{font-size:16px!important;min-height:44px}
  .btn:not(.btn-sm):not(.btn-close){min-height:44px}
  .modal-dialog{margin:8px}.hs-ai-modal .modal-dialog{margin:0;min-height:100%;display:flex;align-items:flex-end}.hs-ai-modal .modal-content{border-radius:22px 22px 0 0;max-height:94vh;overflow:auto}.hs-ai-modal-head{padding:18px!important}.hs-ai-modal form{padding:16px!important}
  .hs-floating-ai{right:14px;bottom:calc(var(--hs-mobile-nav-h) + 16px + env(safe-area-inset-bottom))}.hs-floating-ai .hs-ai-mic{display:none}.hs-ai-orb{width:50px;height:50px}
  .hs-wake-status{right:12px;bottom:calc(var(--hs-mobile-nav-h) + 74px + env(safe-area-inset-bottom));font-size:.69rem}
  .hs-mobile-nav{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:1045;height:calc(var(--hs-mobile-nav-h) + env(safe-area-inset-bottom));padding:6px 8px env(safe-area-inset-bottom);background:color-mix(in srgb,var(--bs-body-bg) 94%,transparent);backdrop-filter:blur(14px);border-top:1px solid var(--bs-border-color);box-shadow:0 -8px 24px rgba(0,0,0,.08)}
  .hs-mobile-nav a,.hs-mobile-nav button{border:0;background:transparent;color:var(--bs-secondary-color);text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.65rem;min-width:0;border-radius:12px}
  .hs-mobile-nav a.active,.hs-mobile-nav button.active{color:var(--primary-color);background:color-mix(in srgb,var(--primary-color) 9%,transparent)}
  .hs-mobile-nav svg{width:21px;height:21px}.hs-mobile-nav .hs-mobile-ai{color:var(--hs-ai);font-weight:800}
  .offcanvas{--bs-offcanvas-width:min(340px,88vw)}.offcanvas-body{padding-bottom:90px!important}
  .hs-notification-menu{position:fixed!important;left:10px!important;right:10px!important;top:118px!important;width:auto!important;transform:none!important;max-height:65vh;overflow:auto}
  .hs-login-card{border-radius:18px!important}.auth-main{padding:14px!important}
}

@media (max-width:420px){
  .hs-brand-text{font-size:.88rem}.hs-logo{width:32px;height:32px}
  .page-header .action li:first-child:not(:last-child){display:none}
  .hs-quick-grid{grid-template-columns:1fr 1fr}
  .hs-ai-modal .row>.col-7,.hs-ai-modal .row>.col-5{width:100%}
}

@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
.hs-auto-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:12px}
@media(max-width:767.98px){.hs-auto-table-wrap table{min-width:620px}.hs-auto-table-wrap:before{content:"Swipe table ↔";display:block;position:sticky;left:0;padding:5px 10px;font-size:.67rem;color:var(--bs-secondary-color);background:var(--bs-tertiary-bg);z-index:2}}

/* v1.6.0 — Clean Glass UI ---------------------------------------------------- */
:root{
  --hs-glass-bg:color-mix(in srgb,var(--bs-body-bg) 78%,transparent);
  --hs-glass-strong:color-mix(in srgb,var(--bs-body-bg) 91%,transparent);
  --hs-glass-line:color-mix(in srgb,var(--bs-border-color) 72%,transparent);
  --hs-glass-shadow:0 18px 48px rgba(6,12,28,.10);
  --hs-spring:cubic-bezier(.22,1,.36,1);
  --hs-mobile-top-h:58px;
  --hs-mobile-dock-h:64px;
}
body{background:
  radial-gradient(900px 480px at 12% -10%,color-mix(in srgb,var(--primary-color) 10%,transparent),transparent 64%),
  radial-gradient(760px 420px at 92% 8%,color-mix(in srgb,var(--hs-ai) 9%,transparent),transparent 60%),
  var(--bs-body-bg)}
.hs-app-shell{background:transparent!important}
.min-w-0{min-width:0!important}

/* Softer, cleaner surfaces */
.card,.hs-section-card,.hs-stat-card,.hs-admin-kpi,.hs-table-card,.hs-company-header{
  background:var(--hs-glass-bg)!important;
  border:1px solid var(--hs-glass-line)!important;
  box-shadow:0 8px 28px rgba(6,12,28,.045);
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
}
.card,.hs-quick-action,.btn,.menu-list>li>a,.form-control,.form-select,.input,.field input,.field select,.field textarea{
  transition:transform .24s var(--hs-spring),box-shadow .24s var(--hs-spring),border-color .24s ease,background-color .24s ease,opacity .24s ease;
}
.card:hover{border-color:color-mix(in srgb,var(--primary-color) 18%,var(--hs-glass-line))!important}
.btn{border-radius:12px}
.btn:active{transform:scale(.975)}
.form-control,.form-select,.input,.field input,.field select,.field textarea{
  border-color:color-mix(in srgb,var(--bs-border-color) 80%,transparent);
  background:color-mix(in srgb,var(--bs-body-bg) 88%,transparent)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)
}
.form-control:focus,.form-select:focus,.input:focus,.field input:focus,.field select:focus,.field textarea:focus{
  border-color:color-mix(in srgb,var(--primary-color) 62%,var(--bs-border-color));
  box-shadow:0 0 0 4px color-mix(in srgb,var(--primary-color) 11%,transparent)
}
.table-wrap,.table-responsive,.hs-table-card,.hs-auto-table-wrap{background:var(--hs-glass-bg)!important;border-color:var(--hs-glass-line)!important}
.table>:not(caption)>*>*{background:transparent!important}
.table thead th{background:color-mix(in srgb,var(--bs-tertiary-bg) 62%,transparent)!important;border-bottom-color:var(--hs-glass-line)!important}
.table tbody tr{transition:background-color .18s ease}
.table tbody tr:hover{background:color-mix(in srgb,var(--primary-color) 5%,transparent)}

/* Desktop / tablet header glass */
.hs-topbar{background:var(--hs-glass-strong)!important;backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%)}
.page-header{background:color-mix(in srgb,var(--bs-body-bg) 88%,transparent)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.sidebar .offcanvas-body{scrollbar-width:thin}
.menu-list>li>a{margin-bottom:3px}
.menu-list>li>a:hover{transform:translateX(2px)}
.menu-list>li>a.active{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary-color) 12%,transparent)}

/* Subtle iOS-like motion */
@keyframes hsPageIn{from{opacity:0;transform:translateY(8px) scale(.997)}to{opacity:1;transform:none}}
@keyframes hsGlassPop{0%{opacity:0;transform:translateY(14px) scale(.97)}100%{opacity:1;transform:none}}
@keyframes hsDockIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes hsSoftPulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,#22c55e 24%,transparent)}50%{box-shadow:0 0 0 7px transparent}}
.page-body>*{animation:hsPageIn .34s var(--hs-spring) both}
.page-body>*:nth-child(2){animation-delay:.025s}.page-body>*:nth-child(3){animation-delay:.05s}
.modal.show .modal-content{animation:hsGlassPop .32s var(--hs-spring) both}
.dropdown-menu.show{animation:hsGlassPop .22s var(--hs-spring) both;transform-origin:top right}
.dropdown-menu{background:var(--hs-glass-strong);border:1px solid var(--hs-glass-line);backdrop-filter:blur(24px) saturate(165%);-webkit-backdrop-filter:blur(24px) saturate(165%)}
.offcanvas{transition:transform .38s var(--hs-spring)!important}

/* AI: cleaner chat instead of stacked control cards */
.hs-ai-page .hs-ai-page-header{margin-bottom:14px!important}
.hs-ai-page .hs-ai-page-header h2{font-size:clamp(1.45rem,2.2vw,2rem)}
.hs-ai-page .hs-ai-voice-control{box-shadow:none!important;background:color-mix(in srgb,var(--hs-ai) 4%,var(--hs-glass-bg))!important}
.hs-ai-page .hs-ai-chat-card{min-height:610px}
.hs-ai-page .chat{max-height:520px;padding:10px 6px 16px;scroll-behavior:smooth}
.hs-ai-page .bubble{max-width:min(82%,720px);padding:12px 15px;line-height:1.55;border:1px solid transparent;box-shadow:0 5px 16px rgba(0,0,0,.035)}
.hs-ai-page .bubble.assistant{background:color-mix(in srgb,var(--bs-tertiary-bg) 72%,transparent);border-color:var(--hs-glass-line);border-radius:18px 18px 18px 6px}
.hs-ai-page .bubble.user{background:linear-gradient(135deg,color-mix(in srgb,var(--primary-color) 88%,#1e90ff),color-mix(in srgb,var(--hs-ai) 72%,#2ea3ff));border-radius:18px 18px 6px 18px;box-shadow:0 8px 22px color-mix(in srgb,var(--primary-color) 18%,transparent)}
.hs-ai-page .hs-ai-composer{position:sticky;bottom:0;z-index:2;padding-top:10px;background:linear-gradient(180deg,transparent 0%,color-mix(in srgb,var(--bs-body-bg) 90%,transparent) 22%)}
.hs-ai-page .hs-ai-composer .input-group{padding:5px;border:1px solid var(--hs-glass-line);border-radius:18px;background:var(--hs-glass-strong);box-shadow:0 12px 30px rgba(6,12,28,.08);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.hs-ai-page .hs-ai-composer textarea{border:0!important;box-shadow:none!important;background:transparent!important;min-height:54px;max-height:150px;resize:none}
.hs-ai-page .hs-ai-composer .btn{border-radius:14px!important;margin:1px}
.hs-ai-page .hs-ai-suggestions-card .ai-suggestion{border-color:var(--hs-glass-line);background:color-mix(in srgb,var(--bs-body-bg) 78%,transparent)}
.hs-ai-page .hs-ai-suggestions-card .ai-suggestion:hover{transform:translateX(3px);border-color:color-mix(in srgb,var(--primary-color) 36%,var(--hs-glass-line))}
.hs-wake-status .hs-wake-dot{animation:hsSoftPulse 1.7s ease-in-out infinite}

/* Cleaner floating AI on larger screens */
.hs-floating-ai{filter:drop-shadow(0 14px 26px rgba(45,25,110,.14))}
.hs-ai-orb{box-shadow:0 14px 34px color-mix(in srgb,var(--hs-ai) 28%,transparent);transition:transform .26s var(--hs-spring),box-shadow .26s ease}
.hs-ai-orb:hover{transform:translateY(-2px) scale(1.035)}
.hs-ai-modal .modal-content{background:var(--hs-glass-strong);border:1px solid var(--hs-glass-line)!important;backdrop-filter:blur(28px) saturate(170%);-webkit-backdrop-filter:blur(28px) saturate(170%)}
.hs-ai-modal-head{background:linear-gradient(135deg,color-mix(in srgb,#241a50 92%,transparent),color-mix(in srgb,#6740c8 90%,transparent))}

/* Mobile: one clean top bar. Fixes the 120px BVite brand grid overlap. */
@media (max-width:767.98px){
  :root{--hs-mobile-nav-h:82px}
  body{padding-bottom:calc(var(--hs-mobile-nav-h) + 10px + env(safe-area-inset-bottom));background:
    radial-gradient(540px 280px at 10% -5%,color-mix(in srgb,var(--primary-color) 10%,transparent),transparent 66%),
    var(--bs-body-bg)}
  .hs-app-shell{display:grid!important;grid-template-areas:"head" "wrapper"!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;min-height:100dvh}
  .hs-app-shell>.brand{display:none!important}
  .hs-app-shell>.page-header{display:none!important}
  .hs-app-shell>.sidebar{grid-area:unset!important;position:fixed!important;inset:0 auto auto 0!important;width:0!important;height:0!important;overflow:visible!important;padding:0!important;border:0!important;background:transparent!important;z-index:1090!important}
  .hs-app-shell>.sidebar>.offcanvas{--bs-offcanvas-width:min(332px,88vw);border-radius:0 24px 24px 0;border-right:1px solid var(--hs-glass-line)!important;background:var(--hs-glass-strong)!important;backdrop-filter:blur(26px) saturate(165%);-webkit-backdrop-filter:blur(26px) saturate(165%)}
  .hs-app-shell>.sidebar .offcanvas-header{padding-top:calc(18px + env(safe-area-inset-top));padding-inline:18px}
  .hs-app-shell>.sidebar .offcanvas-body{padding:8px 14px calc(92px + env(safe-area-inset-bottom))!important}

  .hs-topbar{grid-area:head!important;position:sticky!important;top:0!important;z-index:1070!important;min-height:calc(var(--hs-mobile-top-h) + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0!important;border-bottom:1px solid var(--hs-glass-line)!important;background:var(--hs-glass-strong)!important;box-shadow:0 8px 28px rgba(6,12,28,.055)}
  .hs-topbar>div{height:var(--hs-mobile-top-h);padding:0!important;gap:8px}
  .hs-mobile-header-brand{flex:1 1 auto;overflow:hidden}
  .hs-mobile-menu-btn{width:36px;height:36px;min-height:36px!important;border-radius:12px!important;color:var(--bs-body-color);background:color-mix(in srgb,var(--bs-tertiary-bg) 72%,transparent)!important}
  .hs-logo-mobile{width:34px!important;height:34px!important;border-radius:11px!important;flex:0 0 auto;font-size:.8rem}
  .hs-brand-text-mobile{font-size:.96rem!important;line-height:1.1;max-width:145px}
  .hs-topbar .header-menu{flex:0 0 auto!important;margin-left:auto!important;gap:2px!important}
  .hs-topbar .header-menu>li{padding-inline:1px!important}
  .hs-topbar .header-menu .avatar{width:34px!important;height:34px!important;min-width:34px!important}
  .hs-topbar .header-menu .dropdown-toggle{min-height:38px;display:grid!important;place-items:center}
  .hs-notification-menu{top:calc(var(--hs-mobile-top-h) + env(safe-area-inset-top) + 6px)!important;left:10px!important;right:10px!important;border-radius:20px!important}

  .page-body{grid-area:wrapper!important;height:auto!important;overflow:visible!important;padding:14px 12px calc(var(--hs-mobile-nav-h) + 22px + env(safe-area-inset-bottom))!important;min-height:0!important}
  .page-body>*{animation-duration:.28s}
  .page-head{margin-bottom:12px!important}.page-head h1,.hs-page-title{font-size:1.32rem!important;line-height:1.2}.hs-page-subtitle{font-size:.78rem;line-height:1.45}
  .card,.hs-section-card,.hs-stat-card,.hs-admin-kpi,.hs-table-card{border-radius:18px!important;box-shadow:0 8px 24px rgba(6,12,28,.045)}
  .card-body{padding:14px!important}
  .grid,.form-grid,.split,.hs-investigation-grid{gap:10px!important}

  /* iOS-like floating dock: no extra floating AI orb on mobile */
  .hs-floating-ai{display:none!important}
  .hs-mobile-nav{display:grid!important;grid-auto-flow:column;grid-auto-columns:1fr;left:10px!important;right:10px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;height:64px!important;padding:6px!important;border:1px solid var(--hs-glass-line)!important;border-radius:22px!important;background:color-mix(in srgb,var(--bs-body-bg) 76%,transparent)!important;backdrop-filter:blur(28px) saturate(180%)!important;-webkit-backdrop-filter:blur(28px) saturate(180%)!important;box-shadow:0 14px 42px rgba(6,12,28,.16)!important;animation:hsDockIn .4s var(--hs-spring) both}
  .hs-mobile-nav a,.hs-mobile-nav button{height:52px;border-radius:16px!important;gap:2px!important;font-size:.64rem!important;transition:transform .24s var(--hs-spring),background-color .24s ease,color .24s ease!important}
  .hs-mobile-nav a:active,.hs-mobile-nav button:active{transform:scale(.92)}
  .hs-mobile-nav a.active,.hs-mobile-nav button.active{background:color-mix(in srgb,var(--primary-color) 11%,transparent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary-color) 10%,transparent)}
  .hs-mobile-nav svg{width:20px!important;height:20px!important}
  .hs-mobile-nav .hs-mobile-ai{color:var(--hs-ai)!important}
  .hs-wake-status{left:14px!important;right:14px!important;bottom:calc(82px + env(safe-area-inset-bottom))!important;max-width:none!important;justify-content:center;border-radius:16px!important;background:var(--hs-glass-strong)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 10px 28px rgba(6,12,28,.12)!important;padding:8px 12px!important}

  /* Mobile AI becomes a clean bottom sheet */
  .hs-ai-modal .modal-dialog{margin:0!important;min-height:100dvh!important;align-items:flex-end!important}
  .hs-ai-modal .modal-content{max-height:92dvh!important;border-radius:26px 26px 0 0!important;border-bottom:0!important;box-shadow:0 -18px 50px rgba(0,0,0,.18)!important;position:relative}
  .hs-ai-modal .modal-content:before{content:"";position:absolute;top:8px;left:50%;width:42px;height:5px;border-radius:999px;transform:translateX(-50%);background:color-mix(in srgb,var(--bs-secondary-color) 30%,transparent);z-index:3}
  .hs-ai-modal-head{padding:22px 16px 15px!important;border-radius:26px 26px 0 0}
  .hs-ai-modal-head h4{font-size:1.1rem}
  .hs-ai-modal form{padding:14px 14px calc(18px + env(safe-area-inset-bottom))!important}

  /* AI page: remove the crowded stack seen in the mobile screenshot */
  .hs-ai-page .hs-ai-page-header{gap:10px!important;margin-bottom:10px!important}
  .hs-ai-page .hs-ai-page-header>div:first-child{width:100%}
  .hs-ai-page .hs-ai-page-header>div:last-child{width:100%;display:flex!important;gap:6px!important;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:2px;scrollbar-width:none}
  .hs-ai-page .hs-ai-page-header>div:last-child::-webkit-scrollbar{display:none}
  .hs-ai-page .hs-ai-page-header .btn{white-space:nowrap;min-height:38px!important;padding:.42rem .7rem;font-size:.75rem}
  .hs-ai-page .hs-ai-voice-control .card-body{padding:10px 12px!important}
  .hs-ai-page .hs-ai-voice-control .col-lg-7{display:none!important}
  .hs-ai-page .hs-ai-voice-control .col-lg-5{width:100%!important}
  .hs-ai-page .hs-ai-voice-control label.small{font-size:.68rem}
  .hs-ai-page .hs-ai-voice-control .form-select{min-height:40px!important;font-size:.78rem!important}
  .hs-ai-page .hs-ai-workspace{gap:10px!important}
  .hs-ai-page .hs-ai-chat-card{min-height:calc(100dvh - 260px)!important}
  .hs-ai-page .hs-ai-modal-head{padding:14px!important;border-radius:0}
  .hs-ai-page .hs-ai-modal-head .small,.hs-ai-page .hs-ai-modal-head small{font-size:.67rem!important;line-height:1.4;display:block}
  .hs-ai-page .hs-ai-modal-head h4{font-size:1.05rem;margin-top:2px}
  .hs-ai-page .chat{max-height:52dvh!important;padding:8px 2px 12px!important;gap:9px!important}
  .hs-ai-page .bubble{max-width:88%!important;padding:10px 12px!important;font-size:.9rem!important;line-height:1.48!important;border-radius:16px!important}
  .hs-ai-page .bubble.user{border-bottom-right-radius:5px!important}.hs-ai-page .bubble.assistant{border-bottom-left-radius:5px!important}
  .hs-ai-page .hs-ai-composer{margin-top:8px!important;padding-top:8px!important}
  .hs-ai-page .hs-ai-composer .input-group{border-radius:17px!important;padding:4px!important}
  .hs-ai-page .hs-ai-composer textarea{font-size:16px!important;min-height:50px!important;padding:.65rem!important}
  .hs-ai-page .hs-ai-composer .btn{min-width:44px!important;min-height:44px!important;padding:.55rem .7rem!important}
  .hs-ai-page .hs-ai-composer .btn-primary{font-size:0!important;width:46px;flex:0 0 46px}
  .hs-ai-page .hs-ai-composer .btn-primary:after{content:"↑";font-size:1.15rem;font-weight:800}
  .hs-ai-page .hs-ai-composer .d-flex.justify-content-between{display:none!important}
  .hs-ai-page .hs-ai-side-col{margin-top:0!important}
  .hs-ai-page .hs-ai-side-col .card:nth-child(2){display:none!important}
  .hs-ai-page .hs-ai-suggestions-card .card-body{padding:10px!important}
  .hs-ai-page .hs-ai-suggestions-card h5{font-size:.82rem;margin:0 0 8px}
  .hs-ai-page #aiSuggestions{display:flex!important;overflow-x:auto;gap:7px!important;padding-bottom:2px;scrollbar-width:none}
  .hs-ai-page #aiSuggestions::-webkit-scrollbar{display:none}
  .hs-ai-page #aiSuggestions .ai-suggestion{flex:0 0 auto;width:auto!important;white-space:nowrap;padding:.45rem .7rem;font-size:.72rem;border-radius:999px!important}
}

@media (min-width:768px) and (max-width:1199.98px){
  .hs-topbar,.page-header{backdrop-filter:blur(18px) saturate(150%);-webkit-backdrop-filter:blur(18px) saturate(150%)}
  .hs-ai-page .hs-ai-chat-card{min-height:560px}
}

@media (prefers-reduced-motion:reduce){
  .page-body>*,.hs-mobile-nav,.modal.show .modal-content,.dropdown-menu.show{animation:none!important}
}


/* v1.6.1 — Performance UI Fix -----------------------------------------------
   Keep the clean look, but avoid expensive blur/animation on large scrolling
   surfaces. Glass is now reserved for compact overlays/navigation only. */
:root{
  --hs-surface:var(--bs-body-bg);
  --hs-surface-soft:color-mix(in srgb,var(--bs-body-bg) 97%,var(--bs-tertiary-bg));
  --hs-border-soft:color-mix(in srgb,var(--bs-border-color) 86%,transparent);
  --hs-shadow-soft:0 5px 18px rgba(6,12,28,.045);
}
html{scroll-behavior:auto!important}
body{background:var(--bs-body-bg)!important}

/* Large scrolling surfaces: no backdrop blur = much smoother scrolling. */
.card,.hs-section-card,.hs-stat-card,.hs-admin-kpi,.hs-table-card,.hs-company-header,
.table-wrap,.table-responsive,.hs-auto-table-wrap{
  background:var(--hs-surface)!important;
  border-color:var(--hs-border-soft)!important;
  box-shadow:var(--hs-shadow-soft)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.card:hover,.hs-stat-card:hover{transform:none!important;box-shadow:0 7px 22px rgba(6,12,28,.055)!important}
.page-body>*{animation:none!important}
.table tbody tr,.card,.hs-quick-action,.menu-list>li>a{transition:border-color .14s ease,background-color .14s ease,color .14s ease!important}
.menu-list>li>a:hover,.hs-ai-page .hs-ai-suggestions-card .ai-suggestion:hover{transform:none!important}
.offcanvas{transition:transform .22s ease!important}
.dropdown-menu.show,.modal.show .modal-content{animation:none!important}

/* Restore AI hero: v1.6 generic .card !important had overridden its dark
   gradient, making white hero text/buttons look missing in light mode. */
.card.hs-ai-hero{
  background:linear-gradient(135deg,#201f3b 0%,#3a2c72 55%,#5c3cb8 100%)!important;
  color:#fff!important;
  border:0!important;
  box-shadow:0 10px 28px rgba(58,44,114,.18)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.hs-ai-hero .btn-light{
  background:#fff!important;color:#241f49!important;border-color:#fff!important;
  opacity:1!important;font-weight:750;box-shadow:0 7px 18px rgba(0,0,0,.13)!important
}
.hs-ai-hero .btn-outline-light{
  color:#fff!important;border-color:rgba(255,255,255,.72)!important;background:rgba(255,255,255,.08)!important;opacity:1!important;font-weight:700
}
.hs-ai-hero .btn-outline-light:hover{background:#fff!important;color:#241f49!important}

/* Cleaner controls and consistent action visibility. */
.btn{box-shadow:none!important;font-weight:650}
.btn-primary{box-shadow:0 4px 12px color-mix(in srgb,var(--primary-color) 18%,transparent)!important}
.hs-dashboard-head{gap:14px!important}
.hs-dashboard-actions{justify-content:flex-end}
.hs-dashboard-actions .btn{min-width:104px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.hs-quick-action{background:var(--hs-surface-soft)!important;min-height:76px;display:flex;flex-direction:column;justify-content:center}
.hs-stat-card{min-height:80px}
.hs-stat-icon{box-shadow:none!important}

/* Keep glass only on compact UI, at a modest blur strength. */
.hs-topbar,.dropdown-menu,.hs-ai-modal .modal-content{
  background:color-mix(in srgb,var(--bs-body-bg) 96%,transparent)!important;
  backdrop-filter:blur(8px) saturate(115%)!important;
  -webkit-backdrop-filter:blur(8px) saturate(115%)!important;
}
.page-header{background:var(--bs-body-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.hs-topbar{box-shadow:0 2px 10px rgba(6,12,28,.035)!important}
.hs-topbar-mic{width:34px;height:34px;padding:0!important;display:inline-grid!important;place-items:center}

/* Avoid multiple floating controls fighting for space. */
.hs-floating-ai{gap:6px}
.hs-ai-orb{width:52px;height:52px;box-shadow:0 8px 22px color-mix(in srgb,var(--hs-ai) 20%,transparent)!important}
.hs-ai-mic{box-shadow:0 4px 14px rgba(0,0,0,.08)!important}
.hs-wake-status{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--bs-body-bg)!important}

/* Tablet / smaller desktop: actions wrap instead of clipping. */
@media (max-width:1199.98px){
  .hs-dashboard-head{align-items:flex-start!important}
  .hs-dashboard-actions{width:100%;justify-content:flex-start}
  .hs-dashboard-actions .btn{flex:0 1 auto;min-width:0}
  .hs-topbar .header-menu{flex-wrap:nowrap!important}
}

/* Mobile: compact, opaque surfaces and single AI entry point in bottom dock. */
@media (max-width:767.98px){
  body{background:var(--bs-body-bg)!important}
  .hs-topbar{background:var(--bs-body-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 1px 0 var(--hs-border-soft)!important}
  .hs-mobile-nav{background:color-mix(in srgb,var(--bs-body-bg) 98%,var(--bs-tertiary-bg))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 8px 28px rgba(6,12,28,.12)!important;animation:none!important}
  .hs-app-shell>.sidebar>.offcanvas{background:var(--bs-body-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .hs-floating-ai{display:none!important}
  .hs-dashboard-head{margin-bottom:14px!important}
  .hs-dashboard-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px!important}
  .hs-dashboard-actions .btn{width:100%;min-height:40px!important;padding:.42rem .45rem!important;font-size:.72rem!important}
  .card.hs-ai-hero{min-height:160px!important}
  .hs-ai-hero .card-body{padding:18px!important}
  .hs-ai-hero h3{font-size:1.25rem!important;line-height:1.28}
  .hs-ai-hero p{font-size:.83rem;margin-bottom:12px!important}
  .hs-ai-hero .btn{min-height:40px!important;padding:.45rem .75rem!important;font-size:.75rem!important}
  .hs-quick-action{min-height:70px;padding:10px!important}
  .hs-stat-card{min-height:74px}
  .hs-stat-value{font-size:1.25rem}
  .hs-stat-icon{width:38px;height:38px;border-radius:12px}
  .hs-ai-modal .modal-content{background:var(--bs-body-bg)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .dropdown-menu{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:var(--bs-body-bg)!important}
}

@media (max-width:420px){
  .hs-dashboard-actions{grid-template-columns:1fr 1fr!important}
  .hs-dashboard-actions .btn:last-child:nth-child(odd){grid-column:1/-1}
}

/* v1.7.0 - Easy UI + Mobile Login + Report-first Dashboard ---------------- */
:root{
  --hs-easy-radius:14px;
  --hs-easy-line:color-mix(in srgb,var(--bs-border-color) 82%,transparent);
  --hs-easy-soft:color-mix(in srgb,var(--bs-body-bg) 96%,var(--bs-tertiary-bg));
}
.hs-easy-ui .page-body{padding-top:18px!important}
.hs-easy-ui .card,.hs-easy-ui .hs-section-card,.hs-easy-ui .hs-stat-card,.hs-easy-ui .hs-admin-kpi{border-radius:var(--hs-easy-radius)!important;box-shadow:0 3px 14px rgba(15,23,42,.04)!important}
.hs-easy-ui .btn{min-height:38px;border-radius:10px!important}
.hs-easy-ui .form-control,.hs-easy-ui .form-select{min-height:42px;border-radius:10px!important}
.hs-easy-ui .table>:not(caption)>*>*{padding:.72rem .8rem}
.hs-easy-ui .table thead th{font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;color:var(--bs-secondary-color);font-weight:750}
.hs-easy-ui .menu-list>li>a{min-height:39px;border-radius:10px!important;padding:.48rem .65rem!important}
.hs-easy-ui .hs-page-title{letter-spacing:-.02em}

/* Login - desktop two-pane, mobile one clean card. */
body.auth{min-height:100dvh;overflow:auto!important;background:var(--bs-body-bg)!important}
.hs-login-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr);background:var(--bs-body-bg)}
.hs-login-brand-panel{padding:clamp(34px,5vw,76px);display:flex;align-items:center;background:linear-gradient(145deg,#171726 0%,#24213c 55%,#352b67 100%);color:#fff;position:relative;overflow:hidden}
.hs-login-brand-panel:before,.hs-login-brand-panel:after{content:"";position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}
.hs-login-brand-panel:before{width:420px;height:420px;right:-170px;top:-150px;background:radial-gradient(circle,rgba(88,196,255,.18),transparent 66%)}
.hs-login-brand-panel:after{width:360px;height:360px;left:-180px;bottom:-180px;background:radial-gradient(circle,rgba(126,87,255,.25),transparent 68%)}
.hs-login-brand-wrap{max-width:660px;position:relative;z-index:1}
.hs-login-logo{width:46px!important;height:46px!important;border-radius:14px!important}
.hs-login-brand-name{font-size:1.25rem;font-weight:800}.hs-login-brand-sub{font-size:.73rem;opacity:.62;margin-top:2px}
.hs-login-kicker{font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.78}
.hs-login-brand-panel h1{font-size:clamp(2rem,4.1vw,4.4rem);line-height:1.03;letter-spacing:-.045em;margin:18px 0 18px;font-weight:800}
.hs-login-brand-panel p{max-width:600px;font-size:clamp(.95rem,1.25vw,1.15rem);line-height:1.65;opacity:.76}
.hs-login-points{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin-top:28px;font-size:.88rem}.hs-login-points span{opacity:.9}
.hs-login-form-panel{display:flex;min-width:0;align-items:center;justify-content:center;flex-direction:column;padding:36px 28px;position:relative}
.hs-login-form{width:min(100%,440px)}
.hs-login-card-clean{background:var(--bs-body-bg);border:1px solid var(--hs-easy-line);border-radius:20px;padding:clamp(24px,4vw,40px);box-shadow:0 18px 52px rgba(15,23,42,.08)}
.hs-login-card-clean h2{font-size:2rem;letter-spacing:-.03em;margin:.35rem 0 .25rem;font-weight:800}
.hs-login-card-clean .form-control{font-size:1rem!important;min-height:50px!important}
.hs-password-group .btn{min-width:72px;border-color:var(--bs-border-color)}
.hs-login-help{font-size:.76rem;text-align:center;color:var(--bs-secondary-color)}
.hs-login-language a{font-size:.78rem;text-decoration:none;font-weight:650}
.hs-login-mobile-brand{width:min(100%,440px);align-items:center;gap:10px;margin-bottom:20px}.hs-login-mobile-brand small{display:block;color:var(--bs-secondary-color);font-size:.7rem;margin-top:1px}
.hs-login-footer{position:absolute;bottom:18px;font-size:.72rem;color:var(--bs-secondary-color);text-align:center}
@media(max-width:991.98px){
  body.auth{overflow:auto!important}.hs-login-shell{display:block;min-height:100dvh}.hs-login-brand-panel{display:none!important}.hs-login-form-panel{min-height:100dvh;padding:calc(22px + env(safe-area-inset-top)) 16px calc(50px + env(safe-area-inset-bottom));justify-content:flex-start}.hs-login-mobile-brand{display:flex!important;margin-top:8px}.hs-login-form{margin:auto 0}.hs-login-card-clean{border-radius:18px;padding:24px 18px;box-shadow:0 8px 28px rgba(15,23,42,.065)}.hs-login-card-clean h2{font-size:1.65rem}.hs-login-footer{position:static;margin-top:20px}.hs-login-language{margin-top:18px!important}
}
@media(max-width:480px){.hs-login-form-panel{padding-inline:12px}.hs-login-card-clean{padding:22px 16px}.hs-login-mobile-brand .hs-logo{width:38px!important;height:38px!important}.hs-login-mobile-brand strong{font-size:.95rem}.hs-password-group .btn{min-width:64px;padding-inline:10px;font-size:.78rem}}

/* Dashboard now starts with reports only. */
.hs-dashboard-report-first{max-width:1500px;margin:0 auto}
.hs-plan-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--hs-easy-line);border-radius:999px;background:var(--hs-easy-soft);font-size:.76rem;font-weight:700;color:var(--bs-secondary-color)}
.hs-plan-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.1)}
.hs-report-kpi{min-height:104px;padding:16px;border:1px solid var(--hs-easy-line);border-radius:14px;background:var(--bs-body-bg);display:flex;flex-direction:column;justify-content:space-between}
.hs-report-kpi-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:var(--bs-secondary-color);font-size:.76rem;font-weight:650}.hs-report-kpi strong{font-size:1.45rem;line-height:1.15;letter-spacing:-.025em;color:var(--bs-body-color)}
.hs-simple-metric{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--hs-easy-line)}.hs-simple-metric:last-child{border-bottom:0}.hs-simple-metric span{color:var(--bs-secondary-color);font-size:.87rem}.hs-simple-metric strong{font-size:.92rem}

/* Documentation */
.hs-manual-card{border-color:color-mix(in srgb,var(--primary-color) 28%,var(--hs-easy-line))!important;background:linear-gradient(135deg,color-mix(in srgb,var(--primary-color) 4%,var(--bs-body-bg)),var(--bs-body-bg))!important}
.hs-manual-icon{width:74px;height:74px;display:grid;place-items:center;border-radius:20px;background:color-mix(in srgb,var(--primary-color) 11%,transparent);color:var(--primary-color);flex:0 0 auto}.hs-simple-list{padding-left:1.1rem;margin:0}.hs-simple-list li{margin-bottom:.6rem;color:var(--bs-secondary-color)}

/* One clear AI entry point: bottom-right on desktop/tablet. */
.hs-floating-ai{right:22px!important;bottom:22px!important;z-index:1042!important;filter:none!important}
.hs-ai-bottom-button{width:auto!important;height:50px!important;min-width:118px!important;padding:0 17px!important;border-radius:16px!important;display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:center!important;gap:8px!important;background:linear-gradient(135deg,var(--hs-ai),var(--hs-ai-2))!important;box-shadow:0 10px 26px rgba(92,60,184,.22)!important;font-weight:750}
.hs-ai-bottom-button span{font-size:.83rem}.hs-ai-bottom-button:hover{transform:translateY(-1px)!important}
.hs-wake-status{right:22px!important;bottom:80px!important;padding:6px 10px!important;font-size:.68rem!important;box-shadow:0 4px 14px rgba(15,23,42,.08)!important}

@media(max-width:767.98px){
  .hs-dashboard-report-first{padding-bottom:4px}.hs-report-kpi{min-height:88px;padding:13px}.hs-report-kpi strong{font-size:1.22rem}.hs-report-kpi-top{font-size:.69rem}.hs-report-kpi .hs-stat-icon{width:34px;height:34px}.hs-plan-chip{padding:6px 9px;font-size:.68rem}.hs-floating-ai{display:none!important}.hs-documentation-page .hs-manual-icon{width:58px;height:58px;border-radius:16px}.hs-documentation-page .hs-manual-card .card-body{padding:18px!important}.hs-easy-ui .table>:not(caption)>*>*{padding:.65rem .7rem}.hs-easy-ui .page-body{padding-top:12px!important}
}

/* v1.7 mobile: one AI entry point at the lower-right, above the mobile dock. */
@media(max-width:767.98px){
  .hs-floating-ai{display:block!important;right:14px!important;bottom:calc(82px + env(safe-area-inset-bottom))!important}
  .hs-ai-bottom-button{display:grid!important;width:52px!important;height:52px!important;min-width:52px!important;padding:0!important;border-radius:17px!important}
  .hs-ai-bottom-button span{display:none!important}
  .hs-wake-status{right:14px!important;bottom:calc(142px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 28px)}
}

/* v1.8.1 - Simple UI Cleanup -------------------------------------------------
   Goal: stable, fast and easy-to-understand UI on mobile/tablet/desktop.
   This layer intentionally removes decorative blur, lift animations and clutter.
*/
:root{
  --hs-simple-radius:12px;
  --hs-simple-radius-sm:9px;
  --hs-simple-border:color-mix(in srgb,var(--bs-border-color) 90%,transparent);
  --hs-simple-bg:color-mix(in srgb,var(--bs-body-bg) 97%,var(--bs-tertiary-bg));
  --hs-simple-shadow:0 1px 3px rgba(15,23,42,.045);
}

html{scroll-behavior:auto!important}
body.hs-easy-ui{background:var(--hs-simple-bg)!important}
.hs-easy-ui *, .hs-easy-ui *:before, .hs-easy-ui *:after{animation-duration:.001ms!important;animation-iteration-count:1!important}
.hs-easy-ui .page-body>*{animation:none!important}
.hs-easy-ui .card,
.hs-easy-ui .hs-section-card,
.hs-easy-ui .hs-stat-card,
.hs-easy-ui .hs-admin-kpi,
.hs-easy-ui .hs-report-kpi,
.hs-easy-ui .hs-company-header{
  border:1px solid var(--hs-simple-border)!important;
  border-radius:var(--hs-simple-radius)!important;
  box-shadow:var(--hs-simple-shadow)!important;
  background:var(--bs-body-bg)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:none!important;
}
.hs-easy-ui .card:hover,.hs-easy-ui .hs-stat-card:hover,.hs-easy-ui .hs-quick-action:hover{transform:none!important;box-shadow:var(--hs-simple-shadow)!important}
.hs-easy-ui .card-header{background:transparent!important;border-bottom:1px solid var(--hs-simple-border)!important;padding:14px 16px!important}
.hs-easy-ui .card-body{padding:16px!important}
.hs-easy-ui h1,.hs-easy-ui h2,.hs-easy-ui h3,.hs-easy-ui h4,.hs-easy-ui h5{letter-spacing:-.015em}
.hs-easy-ui h2,.hs-easy-ui .hs-page-title{font-size:clamp(1.35rem,2vw,1.7rem)!important;font-weight:780!important}
.hs-easy-ui .hs-page-subtitle,.hs-easy-ui .text-muted{line-height:1.45}

/* Buttons: predictable size, visible contrast, no decorative motion. */
.hs-easy-ui .btn{
  border-radius:var(--hs-simple-radius-sm)!important;
  min-height:40px!important;
  padding:.48rem .8rem!important;
  font-weight:650!important;
  box-shadow:none!important;
  transform:none!important;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease!important;
}
.hs-easy-ui .btn-sm,.hs-easy-ui .btn.small{min-height:34px!important;padding:.32rem .65rem!important;font-size:.78rem!important}
.hs-easy-ui .btn-lg{min-height:48px!important}
.hs-easy-ui .btn:focus-visible{outline:3px solid color-mix(in srgb,var(--primary-color) 24%,transparent)!important;outline-offset:2px}

/* Forms */
.hs-easy-ui .form-control,.hs-easy-ui .form-select,.hs-easy-ui textarea,.hs-easy-ui input,.hs-easy-ui select{
  border-radius:var(--hs-simple-radius-sm)!important;
  min-height:42px;
  box-shadow:none!important;
}
.hs-easy-ui textarea{min-height:auto}
.hs-easy-ui .form-control:focus,.hs-easy-ui .form-select:focus{
  border-color:color-mix(in srgb,var(--primary-color) 55%,var(--bs-border-color))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--primary-color) 10%,transparent)!important;
}
.hs-easy-ui .form-label,.hs-easy-ui .field label{font-size:.82rem!important;font-weight:650!important;margin-bottom:6px!important}

/* Header and sidebar: solid surfaces, no blur. */
.hs-topbar,.page-header,.dropdown-menu,.hs-ai-modal .modal-content{
  background:var(--bs-body-bg)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.hs-topbar{border-bottom:1px solid var(--hs-simple-border)!important;box-shadow:none!important}
.page-header{border-bottom:1px solid var(--hs-simple-border)!important;box-shadow:none!important}
.sidebar .offcanvas,.hs-app-shell>.sidebar>.offcanvas{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.sidebar .offcanvas-body{scroll-behavior:auto!important}
.menu-list>li>a{
  min-height:40px!important;
  border-radius:9px!important;
  padding:.5rem .65rem!important;
  transition:background-color .12s ease,color .12s ease!important;
}
.menu-list>li>a:hover,.menu-list>li>a.active{transform:none!important}
.menu-list .collapse{padding-left:7px!important}
.menu-list .collapse a{padding:.42rem .65rem!important;font-size:.82rem!important}
.fl-title{font-size:.66rem!important;letter-spacing:.055em!important;margin-top:10px!important;margin-bottom:7px!important}
.hs-ai-nav>a{background:transparent!important;border:0!important;font-weight:700!important}
.hs-ai-nav>a.active{background:color-mix(in srgb,var(--primary-color) 10%,transparent)!important}
.hs-ai-pulse{display:none!important}

/* Content spacing */
.page-body{max-width:1540px;margin-inline:auto!important;padding-top:16px!important}
.page-head{margin-bottom:14px!important}
.actions{gap:7px!important}
.row.g-3{--bs-gutter-x:.85rem;--bs-gutter-y:.85rem}

/* Dashboard: report-first, lower visual weight. */
.hs-dashboard-report-first{max-width:1420px!important}
.hs-report-kpi{min-height:94px!important;padding:14px!important}
.hs-report-kpi-top{font-size:.73rem!important}
.hs-report-kpi strong{font-size:1.3rem!important}
.hs-stat-icon{width:36px!important;height:36px!important;border-radius:10px!important;background:var(--bs-tertiary-bg)!important}
.hs-plan-chip{border-radius:9px!important;padding:7px 10px!important;background:var(--bs-body-bg)!important}
.hs-simple-metric{padding:10px 0!important}
.hs-table-card,.table-responsive,.table-wrap{border-radius:10px!important}
.table-responsive,.table-wrap{scroll-behavior:auto!important;-webkit-overflow-scrolling:touch}
.hs-easy-ui .table{margin-bottom:0!important}
.hs-easy-ui .table>:not(caption)>*>*{padding:.68rem .72rem!important;vertical-align:middle}
.hs-easy-ui .table thead th{white-space:nowrap;font-size:.69rem!important;letter-spacing:.025em!important;background:var(--bs-tertiary-bg)!important}

/* Quick actions: plain, immediately readable. */
.hs-quick-grid{gap:8px!important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}
.hs-quick-action{min-height:66px!important;padding:11px 12px!important;border-radius:10px!important;box-shadow:none!important;transition:background-color .12s ease,border-color .12s ease!important}
.hs-quick-action:hover{background:var(--bs-tertiary-bg)!important}

/* Floating Sarthi: one clear entry point, restrained styling. */
.hs-floating-ai{right:18px!important;bottom:18px!important;filter:none!important}
.hs-ai-bottom-button{
  height:46px!important;min-width:104px!important;padding:0 14px!important;
  border-radius:12px!important;background:var(--primary-color)!important;
  box-shadow:0 4px 14px rgba(15,23,42,.15)!important;
}
.hs-ai-bottom-button:hover{transform:none!important}
.hs-wake-status{box-shadow:var(--hs-simple-shadow)!important;border:1px solid var(--hs-simple-border)!important;background:var(--bs-body-bg)!important}

/* LOGIN v1.8.1: simple, professional, mobile-safe. */
body.auth{background:#f7f8fb!important}
.hs-login-v181{background:#f7f8fb!important}
.hs-login-v181 .hs-login-brand-panel{
  background:#172033!important;
  padding:clamp(38px,5vw,72px)!important;
}
.hs-login-v181 .hs-login-brand-panel:before,.hs-login-v181 .hs-login-brand-panel:after{display:none!important}
.hs-login-v181 .hs-login-brand-wrap{width:min(100%,620px)!important}
.hs-login-v181 .hs-login-brand-lockup{display:flex;align-items:center;gap:14px;margin-bottom:clamp(54px,8vh,96px)}
.hs-login-v181 .hs-login-copy{max-width:560px}
.hs-login-v181 .hs-login-brand-panel h1{font-size:clamp(2rem,3.7vw,3.55rem)!important;line-height:1.08!important;letter-spacing:-.035em!important;margin:16px 0!important}
.hs-login-v181 .hs-login-brand-panel p{font-size:1rem!important;line-height:1.65!important;max-width:520px!important;opacity:.76!important}
.hs-login-v181 .hs-login-points{grid-template-columns:1fr!important;gap:9px!important;margin-top:26px!important;font-size:.86rem!important}
.hs-login-v181 .hs-login-form-panel{padding:32px 24px!important;background:#fff!important}
.hs-login-v181 .hs-login-form{width:min(100%,420px)!important}
.hs-login-v181 .hs-login-card-clean{
  padding:32px!important;border:1px solid #e5e7eb!important;border-radius:16px!important;
  box-shadow:none!important;background:#fff!important;
}
.hs-login-v181 .hs-login-card-clean h2{font-size:1.72rem!important;margin:.4rem 0 .3rem!important}
.hs-login-v181 .hs-login-card-clean .form-control{min-height:48px!important;border-radius:10px!important}
.hs-login-v181 .hs-password-group .btn{min-width:70px!important;border-radius:0 10px 10px 0!important;background:#fff!important}
.hs-login-v181 .hs-login-submit{min-height:48px!important;border-radius:10px!important}
.hs-login-v181 .hs-login-language{color:#98a2b3!important}
.hs-login-v181 .hs-login-language a{padding:3px 5px!important}
.hs-login-v181 .hs-login-footer{font-size:.7rem!important}

/* Tablet */
@media (min-width:768px) and (max-width:1199.98px){
  .hs-topbar{min-height:58px!important}
  .page-body{padding-inline:18px!important}
  .hs-app-shell>.sidebar>.offcanvas{background:var(--bs-body-bg)!important;border-right:1px solid var(--hs-simple-border)!important;border-radius:0!important}
  .hs-report-kpi{min-height:90px!important}
}

/* Mobile: no overlap, no glass, compact controls, stable scrolling. */
@media (max-width:767.98px){
  :root{--hs-mobile-nav-h:68px!important;--hs-mobile-top-h:56px!important}
  body.hs-easy-ui{padding-bottom:calc(var(--hs-mobile-nav-h) + 12px + env(safe-area-inset-bottom))!important}
  .hs-topbar{
    min-height:calc(56px + env(safe-area-inset-top))!important;
    padding:env(safe-area-inset-top) 10px 0!important;
    box-shadow:none!important;
  }
  .hs-topbar>div{height:56px!important;gap:4px!important}
  .hs-mobile-menu-btn{min-width:36px!important;min-height:36px!important;padding:0!important}
  .hs-logo-mobile{width:32px!important;height:32px!important;border-radius:9px!important}
  .hs-brand-text-mobile{font-size:.88rem!important;max-width:138px!important}
  .hs-topbar .header-menu .avatar{width:32px!important;height:32px!important;min-width:32px!important}
  .hs-topbar .header-menu .dropdown-toggle{min-height:36px!important;min-width:34px!important;padding:4px!important}
  .hs-notification-menu{width:min(340px,calc(100vw - 20px))!important}
  .hs-app-shell>.sidebar>.offcanvas{
    --bs-offcanvas-width:min(310px,88vw)!important;
    border-radius:0!important;background:var(--bs-body-bg)!important;
    border-right:1px solid var(--hs-simple-border)!important;
  }
  .hs-app-shell>.sidebar .offcanvas-header{padding:calc(14px + env(safe-area-inset-top)) 14px 12px!important}
  .hs-app-shell>.sidebar .offcanvas-body{padding:6px 12px calc(84px + env(safe-area-inset-bottom))!important}
  .page-body{
    padding:12px 10px calc(var(--hs-mobile-nav-h) + 20px + env(safe-area-inset-bottom))!important;
    overflow:visible!important;height:auto!important;
  }
  .hs-dashboard-report-first>.d-flex:first-child{gap:8px!important;margin-bottom:12px!important}
  .hs-page-subtitle{font-size:.76rem!important}
  .hs-plan-chip{font-size:.65rem!important;padding:6px 8px!important}
  .row.g-3{--bs-gutter-x:.62rem;--bs-gutter-y:.62rem}
  .hs-report-kpi{min-height:82px!important;padding:11px!important}
  .hs-report-kpi strong{font-size:1.12rem!important}
  .hs-report-kpi-top{font-size:.65rem!important;line-height:1.2!important}
  .hs-stat-icon{width:30px!important;height:30px!important;border-radius:8px!important}
  .hs-easy-ui .card-header{padding:12px 13px!important}
  .hs-easy-ui .card-body{padding:13px!important}
  .hs-easy-ui .table>:not(caption)>*>*{padding:.6rem .62rem!important}
  .page-head{gap:8px!important;margin-bottom:12px!important}
  .page-head h1{font-size:1.3rem!important}
  .page-head .actions,.page-head>.actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .page-head .actions .btn{width:100%!important}
  .form-grid{grid-template-columns:1fr!important;gap:11px!important}
  .split{grid-template-columns:1fr!important;gap:12px!important}
  .hs-mobile-nav{
    left:8px!important;right:8px!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;
    height:60px!important;padding:4px!important;border-radius:14px!important;
    background:var(--bs-body-bg)!important;border:1px solid var(--hs-simple-border)!important;
    box-shadow:0 4px 16px rgba(15,23,42,.11)!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;animation:none!important;
  }
  .hs-mobile-nav a,.hs-mobile-nav button{height:50px!important;border-radius:10px!important;font-size:.61rem!important;transition:background-color .12s ease,color .12s ease!important;transform:none!important}
  .hs-mobile-nav a:active,.hs-mobile-nav button:active{transform:none!important}
  .hs-mobile-nav a.active,.hs-mobile-nav button.active{background:var(--bs-tertiary-bg)!important;box-shadow:none!important}
  .hs-floating-ai{right:12px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important}
  .hs-ai-bottom-button{width:48px!important;height:48px!important;min-width:48px!important;border-radius:12px!important;padding:0!important;box-shadow:0 4px 14px rgba(15,23,42,.18)!important}
  .hs-wake-status{right:12px!important;bottom:calc(130px + env(safe-area-inset-bottom))!important;max-width:calc(100vw - 24px)!important}
  .hs-ai-modal .modal-dialog{margin:8px!important;align-items:flex-end!important;min-height:calc(100% - 16px)!important}
  .hs-ai-modal .modal-content{border-radius:16px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important}
  .hs-ai-modal-head{padding:16px!important;background:var(--bs-body-bg)!important;color:var(--bs-body-color)!important;border-bottom:1px solid var(--hs-simple-border)!important}
  .hs-ai-modal-head .btn-close{filter:none!important}
  .hs-login-v181 .hs-login-form-panel{
    min-height:100dvh!important;justify-content:center!important;
    padding:calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom))!important;
    background:#f7f8fb!important;
  }
  .hs-login-v181 .hs-login-mobile-brand{width:min(100%,390px)!important;margin:0 auto 14px!important;display:flex!important}
  .hs-login-v181 .hs-login-form{margin:0!important;width:min(100%,390px)!important}
  .hs-login-v181 .hs-login-card-clean{padding:22px 17px!important;border-radius:14px!important;background:#fff!important}
  .hs-login-v181 .hs-login-card-clean h2{font-size:1.5rem!important}
  .hs-login-v181 .hs-login-card-clean .form-control{font-size:16px!important;min-height:46px!important}
  .hs-login-v181 .hs-login-footer{position:static!important;margin-top:14px!important;max-width:360px!important}
}

@media (max-width:380px){
  .hs-brand-text-mobile{max-width:108px!important}
  .hs-topbar .header-menu>li:nth-child(1){display:none!important}
  .hs-login-v181 .hs-login-card-clean{padding:20px 14px!important}
}

/* Keep AI surfaces simple as well. */
.hs-ai-modal-head{
  background:var(--bs-body-bg)!important;
  color:var(--bs-body-color)!important;
  border-bottom:1px solid var(--hs-simple-border)!important;
}
.hs-ai-modal-head .opacity-75{color:var(--bs-secondary-color)!important;opacity:1!important}
.hs-ai-modal-head .btn-close{filter:none!important}
.hs-wake-card,.hs-ai-chat-card,.hs-ai-suggestions-card{background:var(--bs-body-bg)!important}
.hs-wake-orb{box-shadow:none!important;animation:none!important}
.bubble{box-shadow:none!important}
/* Respect explicit Bootstrap spacing utilities used by module pages. */
.hs-easy-ui .card-body.p-0{padding:0!important}
.hs-easy-ui .card-body.p-2{padding:.5rem!important}
.hs-easy-ui .card-body.p-3{padding:1rem!important}
.hs-easy-ui .card-body.p-4{padding:1.5rem!important}
.hs-easy-ui .card-header.p-0{padding:0!important}
.hs-easy-ui .card-header.p-2{padding:.5rem!important}
.hs-easy-ui .card-header.p-3{padding:1rem!important}
.hs-easy-ui .card-header.p-4{padding:1.5rem!important}

/* =========================================================
   Hardware Saarthi AI v1.8.2 — Login viewport repair
   Isolate the login screen from BVite's generic <main> grid.
   ========================================================= */
html:has(body.hs-auth-page), body.hs-auth-page{
  margin:0!important;
  min-height:100%!important;
  width:100%!important;
  background:#f5f7fa!important;
}
body.hs-auth-page{
  min-height:100dvh!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  display:block!important;
}
body.hs-auth-page .hs-login-shell.hs-login-v182{
  width:100%!important;
  min-height:100dvh!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.05fr) minmax(440px,.95fr)!important;
  grid-template-rows:minmax(100dvh,auto)!important;
  grid-template-areas:none!important;
  align-items:stretch!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  background:#f5f7fa!important;
}
body.hs-auth-page .hs-login-brand-panel,
body.hs-auth-page .hs-login-form-panel{
  min-height:100dvh!important;
  height:auto!important;
  min-width:0!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
}
body.hs-auth-page .hs-login-brand-panel{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(36px,5vw,72px)!important;
  overflow:hidden!important;
  background:#182237!important;
}
body.hs-auth-page .hs-login-brand-wrap{
  width:min(100%,620px)!important;
  max-width:620px!important;
  margin:0 auto!important;
}
body.hs-auth-page .hs-login-brand-lockup{
  margin:0 0 clamp(34px,6vh,64px)!important;
}
body.hs-auth-page .hs-login-copy h1{
  font-size:clamp(2.3rem,4vw,4rem)!important;
  line-height:1.04!important;
  letter-spacing:-.04em!important;
  margin:14px 0 18px!important;
  max-width:620px!important;
}
body.hs-auth-page .hs-login-form-panel{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  padding:clamp(28px,4vw,56px)!important;
  background:#f8fafc!important;
}
body.hs-auth-page .hs-login-form{
  width:min(100%,430px)!important;
  margin:0!important;
}
body.hs-auth-page .hs-login-card-clean{
  width:100%!important;
  margin:0!important;
  padding:32px!important;
  border:1px solid #e3e8ef!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 14px 38px rgba(15,23,42,.07)!important;
}
body.hs-auth-page .hs-login-card-clean .form-control{
  width:100%!important;
  min-height:50px!important;
  padding:.72rem .9rem!important;
  background:#fff!important;
}
body.hs-auth-page .hs-password-group{
  display:flex!important;
  flex-wrap:nowrap!important;
  width:100%!important;
}
body.hs-auth-page .hs-password-group .form-control{
  min-width:0!important;
  flex:1 1 auto!important;
  border-radius:10px 0 0 10px!important;
}
body.hs-auth-page .hs-password-group .btn{
  flex:0 0 auto!important;
  min-width:76px!important;
  border-radius:0 10px 10px 0!important;
  background:#fff!important;
}
body.hs-auth-page .hs-login-submit{
  min-height:50px!important;
  border-radius:10px!important;
  font-weight:700!important;
}
body.hs-auth-page .hs-login-footer{
  position:static!important;
  width:min(100%,430px)!important;
  margin:18px auto 0!important;
  text-align:center!important;
}
body.hs-auth-page .hs-login-mobile-brand{display:none!important}

@media (max-width:991.98px){
  body.hs-auth-page .hs-login-shell.hs-login-v182{
    display:flex!important;
    flex-direction:column!important;
    min-height:100dvh!important;
  }
  body.hs-auth-page .hs-login-brand-panel{display:none!important}
  body.hs-auth-page .hs-login-form-panel{
    flex:1 0 auto!important;
    min-height:100dvh!important;
    justify-content:center!important;
    padding:max(22px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom))!important;
  }
  body.hs-auth-page .hs-login-mobile-brand{
    display:flex!important;
    align-items:center!important;
    width:min(100%,420px)!important;
    margin:0 auto 16px!important;
    gap:10px!important;
  }
  body.hs-auth-page .hs-login-form{width:min(100%,420px)!important}
  body.hs-auth-page .hs-login-card-clean{padding:26px 22px!important}
  body.hs-auth-page .hs-login-footer{width:min(100%,420px)!important;margin-top:16px!important}
}

@media (max-width:575.98px){
  body.hs-auth-page{background:#fff!important}
  body.hs-auth-page .hs-login-form-panel{
    justify-content:flex-start!important;
    padding:calc(18px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom))!important;
    background:#fff!important;
  }
  body.hs-auth-page .hs-login-mobile-brand{margin-top:4px!important;margin-bottom:18px!important}
  body.hs-auth-page .hs-login-card-clean{
    padding:22px 16px!important;
    border-radius:16px!important;
    box-shadow:none!important;
  }
  body.hs-auth-page .hs-login-card-clean h2{font-size:1.55rem!important}
  body.hs-auth-page .hs-login-card-clean .form-control{font-size:16px!important;min-height:48px!important}
  body.hs-auth-page .hs-password-group .btn{min-width:68px!important;padding-inline:10px!important}
  body.hs-auth-page .hs-login-submit{min-height:48px!important}
  body.hs-auth-page .hs-login-language{gap:.35rem!important;flex-wrap:wrap!important}
  body.hs-auth-page .hs-login-footer{font-size:.68rem!important;margin-top:14px!important}
}

@media (max-height:700px) and (min-width:992px){
  body.hs-auth-page .hs-login-brand-panel,
  body.hs-auth-page .hs-login-form-panel{padding-top:24px!important;padding-bottom:24px!important}
  body.hs-auth-page .hs-login-brand-lockup{margin-bottom:24px!important}
  body.hs-auth-page .hs-login-copy h1{font-size:clamp(2rem,3.2vw,3rem)!important}
  body.hs-auth-page .hs-login-points{margin-top:18px!important;gap:6px!important}
  body.hs-auth-page .hs-login-card-clean{padding:24px 28px!important}
}

/* =========================================================
   Hardware Saarthi AI v1.9.0 — Responsive UI Hardening
   Mobile-first, stable layout overrides for the complete app.
   ========================================================= */
:root{
  --hs-v190-sidebar:208px;
  --hs-v190-header:62px;
  --hs-v190-pagehead:48px;
  --hs-v190-content-max:1540px;
  --hs-v190-mobile-nav:68px;
  --hs-v190-gap:14px;
}
html,body{max-width:100%;overflow-x:hidden!important}
body.hs-responsive-ui{min-width:320px}
body.hs-responsive-ui .hs-app-shell{width:100%;max-width:100%;min-width:0}
body.hs-responsive-ui .page-body,
body.hs-responsive-ui .page-header,
body.hs-responsive-ui .hs-topbar,
body.hs-responsive-ui .brand{min-width:0;max-width:100%}
body.hs-responsive-ui .page-body>*{min-width:0;max-width:100%}
body.hs-responsive-ui img,body.hs-responsive-ui video,body.hs-responsive-ui canvas,body.hs-responsive-ui svg{max-width:100%;height:auto}
body.hs-responsive-ui pre,body.hs-responsive-ui code{max-width:100%;overflow-wrap:anywhere}
body.hs-responsive-ui .text-truncate{min-width:0}

/* Consistent readable controls and surfaces */
body.hs-responsive-ui .card{overflow-wrap:anywhere}
body.hs-responsive-ui .card-header,body.hs-responsive-ui .card-body{min-width:0}
body.hs-responsive-ui .input-group{min-width:0;flex-wrap:nowrap}
body.hs-responsive-ui .input-group>.form-control,body.hs-responsive-ui .input-group>.form-select{min-width:0}
body.hs-responsive-ui .btn{white-space:normal;line-height:1.25}
body.hs-responsive-ui .badge,body.hs-responsive-ui .hs-status{max-width:100%;white-space:normal;text-align:center}
body.hs-responsive-ui .dropdown-menu{max-width:calc(100vw - 20px)}
body.hs-responsive-ui .modal-content{max-width:100%}
body.hs-responsive-ui .alert{overflow-wrap:anywhere}

/* Tables: never break the page width. */
body.hs-responsive-ui .table-responsive,
body.hs-responsive-ui .table-wrap,
body.hs-responsive-ui .hs-table-card,
body.hs-responsive-ui .hs-auto-table-wrap{
  width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden;
  -webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
}
body.hs-responsive-ui .table-responsive table,
body.hs-responsive-ui .table-wrap table,
body.hs-responsive-ui .hs-table-card table,
body.hs-responsive-ui .hs-auto-table-wrap table{width:100%;margin-bottom:0}
body.hs-responsive-ui .table th{white-space:nowrap}
body.hs-responsive-ui .table td{overflow-wrap:anywhere}

/* Desktop: own the BVite grid so pages cannot jump or clip. */
@media (min-width:1200px){
  body.hs-responsive-ui .hs-app-shell{
    display:grid!important;
    grid-template-columns:var(--hs-v190-sidebar) minmax(0,1fr)!important;
    grid-template-rows:var(--hs-v190-header) var(--hs-v190-pagehead) minmax(calc(100dvh - var(--hs-v190-header) - var(--hs-v190-pagehead)),auto)!important;
    grid-template-areas:"brand head" "sidebar pagehead" "sidebar wrapper"!important;
    min-height:100dvh!important;height:auto!important;
    align-items:stretch!important;
  }
  body.hs-responsive-ui .hs-app-shell>.brand{grid-area:brand!important;display:flex!important;height:var(--hs-v190-header)!important;padding:10px 14px!important;border-right:1px solid var(--hs-simple-border)!important;border-bottom:1px solid var(--hs-simple-border)!important;background:var(--bs-body-bg)!important}
  body.hs-responsive-ui .hs-app-shell>.hs-topbar{grid-area:head!important;height:var(--hs-v190-header)!important;padding:0 22px!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar{grid-area:sidebar!important;width:var(--hs-v190-sidebar)!important;min-width:0!important;padding:12px 10px!important;border-right:1px solid var(--hs-simple-border)!important;background:var(--bs-body-bg)!important;overflow:hidden!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar>.offcanvas{height:calc(100dvh - var(--hs-v190-header))!important;overflow:hidden!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar .offcanvas-body{height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 2px 18px!important}
  body.hs-responsive-ui .hs-app-shell>.page-header{grid-area:pagehead!important;min-height:var(--hs-v190-pagehead)!important;height:var(--hs-v190-pagehead)!important;padding:7px 22px!important}
  body.hs-responsive-ui .hs-app-shell>.page-body{grid-area:wrapper!important;width:100%!important;max-width:var(--hs-v190-content-max)!important;margin:0 auto!important;padding:18px 22px 90px!important;height:auto!important;overflow:visible!important}
  body.hs-responsive-ui .menu-list>li>a{font-size:.84rem!important}
  body.hs-responsive-ui .hs-brand-text{font-size:.92rem!important}
  body.hs-responsive-ui .hs-brand-sub{font-size:.57rem!important}
  body.hs-responsive-ui .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  body.hs-responsive-ui .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.hs-responsive-ui .split{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)}
  body.hs-responsive-ui .hs-investigation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Tablet: one-column app shell + off-canvas navigation. */
@media (min-width:768px) and (max-width:1199.98px){
  body.hs-responsive-ui .hs-app-shell{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:60px auto minmax(0,1fr)!important;
    grid-template-areas:"head" "pagehead" "wrapper"!important;
    min-height:100dvh!important;height:auto!important;
  }
  body.hs-responsive-ui .hs-app-shell>.brand{display:none!important}
  body.hs-responsive-ui .hs-mobile-header-brand{display:flex!important;flex:0 1 auto!important;min-width:190px}
  body.hs-responsive-ui .hs-mobile-header-brand .hs-brand-text-mobile{max-width:150px!important}
  body.hs-responsive-ui .hs-topbar{grid-area:head!important;position:sticky!important;top:0!important;z-index:1060!important;height:60px!important;padding:0 16px!important}
  body.hs-responsive-ui .hs-topbar>div{height:60px!important;gap:10px!important}
  body.hs-responsive-ui .hs-topbar form#globalSearch,body.hs-responsive-ui .hs-topbar form.dropdown{max-width:300px!important;margin-right:10px!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar{position:fixed!important;inset:0 auto auto 0!important;width:0!important;height:0!important;padding:0!important;z-index:1090!important;overflow:visible!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar>.offcanvas{--bs-offcanvas-width:min(330px,86vw)!important;background:var(--bs-body-bg)!important}
  body.hs-responsive-ui .hs-app-shell>.page-header{grid-area:pagehead!important;padding:8px 18px!important;min-height:48px!important}
  body.hs-responsive-ui .hs-app-shell>.page-body{grid-area:wrapper!important;width:100%!important;max-width:100%!important;padding:16px 18px 84px!important;height:auto!important;overflow:visible!important}
  body.hs-responsive-ui .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.hs-responsive-ui .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.hs-responsive-ui .split,body.hs-responsive-ui .hs-investigation-grid{grid-template-columns:1fr!important}
  body.hs-responsive-ui .row.g-3{--bs-gutter-x:.85rem;--bs-gutter-y:.85rem}
  body.hs-responsive-ui .hs-ai-modal .modal-dialog{width:min(760px,calc(100vw - 32px));max-width:none!important}
}

/* Narrow tablet: protect header actions from crowding. */
@media (min-width:768px) and (max-width:991.98px){
  body.hs-responsive-ui .hs-topbar form.dropdown{display:none!important}
  body.hs-responsive-ui .hs-mobile-header-brand{flex:1 1 auto!important}
  body.hs-responsive-ui .page-header .breadcrumb{max-width:55vw;overflow:hidden;white-space:nowrap}
  body.hs-responsive-ui .page-header .action .btn{font-size:.75rem;padding:.4rem .65rem!important}
}

/* Mobile: one header, one content stream, one bottom dock. */
@media (max-width:767.98px){
  :root{--hs-v190-mobile-nav:66px}
  body.hs-responsive-ui{padding-bottom:calc(var(--hs-v190-mobile-nav) + 14px + env(safe-area-inset-bottom))!important}
  body.hs-responsive-ui .hs-app-shell{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    grid-template-areas:"head" "wrapper"!important;
    min-height:100dvh!important;height:auto!important;
  }
  body.hs-responsive-ui .hs-app-shell>.brand,body.hs-responsive-ui .hs-app-shell>.page-header{display:none!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar{position:fixed!important;inset:0 auto auto 0!important;width:0!important;height:0!important;padding:0!important;z-index:1090!important;overflow:visible!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar>.offcanvas{--bs-offcanvas-width:min(310px,88vw)!important;background:var(--bs-body-bg)!important;border-right:1px solid var(--hs-simple-border)!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar .offcanvas-header{padding:calc(14px + env(safe-area-inset-top)) 14px 10px!important}
  body.hs-responsive-ui .hs-app-shell>.sidebar .offcanvas-body{padding:4px 10px calc(84px + env(safe-area-inset-bottom))!important;overflow-y:auto!important}
  body.hs-responsive-ui .hs-topbar{grid-area:head!important;position:sticky!important;top:0!important;z-index:1060!important;width:100%!important;min-height:calc(56px + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) 8px 0!important}
  body.hs-responsive-ui .hs-topbar>div{height:56px!important;padding:0!important;gap:2px!important;min-width:0}
  body.hs-responsive-ui .hs-mobile-header-brand{display:flex!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
  body.hs-responsive-ui .hs-mobile-menu-btn{width:38px!important;height:38px!important;min-width:38px!important;flex:0 0 38px!important}
  body.hs-responsive-ui .hs-logo-mobile{width:32px!important;height:32px!important;min-width:32px!important}
  body.hs-responsive-ui .hs-brand-text-mobile{max-width:132px!important;font-size:.86rem!important;line-height:1.05!important}
  body.hs-responsive-ui .hs-topbar .header-menu{display:flex!important;flex:0 0 auto!important;gap:0!important;min-width:0}
  body.hs-responsive-ui .hs-topbar .header-menu>li{padding-inline:0!important;margin:0!important}
  body.hs-responsive-ui .hs-topbar .header-menu .dropdown-toggle,body.hs-responsive-ui .hs-topbar .header-menu .btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:5px!important;display:grid!important;place-items:center!important}
  body.hs-responsive-ui .hs-topbar .header-menu .avatar{width:32px!important;height:32px!important;min-width:32px!important}
  body.hs-responsive-ui .hs-notification-menu{position:fixed!important;top:calc(60px + env(safe-area-inset-top))!important;left:8px!important;right:8px!important;width:auto!important;max-width:none!important;transform:none!important;max-height:70dvh!important;overflow:auto!important}
  body.hs-responsive-ui .page-body{grid-area:wrapper!important;width:100%!important;max-width:100%!important;margin:0!important;padding:12px 10px calc(var(--hs-v190-mobile-nav) + 26px + env(safe-area-inset-bottom))!important;height:auto!important;overflow:visible!important;min-width:0!important}
  body.hs-responsive-ui .page-body>.container,body.hs-responsive-ui .page-body>.container-fluid{padding-inline:0!important;max-width:100%!important}
  body.hs-responsive-ui .page-head{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;margin-bottom:12px!important}
  body.hs-responsive-ui .page-head h1,body.hs-responsive-ui .hs-page-title{font-size:1.28rem!important;line-height:1.2!important}
  body.hs-responsive-ui .hs-page-subtitle{font-size:.76rem!important}
  body.hs-responsive-ui .page-head .actions,body.hs-responsive-ui .page-head>.actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:7px!important}
  body.hs-responsive-ui .page-head .actions .btn,body.hs-responsive-ui .page-head>.actions .btn{width:100%!important;min-width:0!important}
  body.hs-responsive-ui .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.hs-responsive-ui .form-grid,body.hs-responsive-ui .split,body.hs-responsive-ui .hs-investigation-grid{grid-template-columns:1fr!important;gap:10px!important}
  body.hs-responsive-ui .field.full{grid-column:auto!important}
  body.hs-responsive-ui .row.g-3,body.hs-responsive-ui .row.g-2{--bs-gutter-x:.6rem;--bs-gutter-y:.6rem}
  body.hs-responsive-ui .card,body.hs-responsive-ui .hs-section-card,body.hs-responsive-ui .hs-stat-card,body.hs-responsive-ui .hs-admin-kpi{border-radius:11px!important}
  body.hs-responsive-ui .card-header{padding:11px 12px!important}
  body.hs-responsive-ui .card-body{padding:12px!important}
  body.hs-responsive-ui .hs-stat-value,body.hs-responsive-ui .stat .value{font-size:1.18rem!important}
  body.hs-responsive-ui .hs-stat-label,body.hs-responsive-ui .stat .label{font-size:.7rem!important}
  body.hs-responsive-ui .hs-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body.hs-responsive-ui .hs-quick-action{min-width:0!important;min-height:60px!important;padding:10px!important}
  body.hs-responsive-ui .actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important;width:100%}
  body.hs-responsive-ui .actions>.btn,body.hs-responsive-ui .actions>a.btn{flex:1 1 128px!important;min-width:0!important}
  body.hs-responsive-ui .form-control,body.hs-responsive-ui .form-select,body.hs-responsive-ui .input,body.hs-responsive-ui .field input,body.hs-responsive-ui .field select,body.hs-responsive-ui .field textarea{font-size:16px!important;min-height:44px!important}
  body.hs-responsive-ui .btn:not(.btn-sm):not(.btn-close){min-height:44px!important}
  body.hs-responsive-ui .table-responsive table,body.hs-responsive-ui .table-wrap table,body.hs-responsive-ui .hs-table-card table,body.hs-responsive-ui .hs-auto-table-wrap table{min-width:640px!important;font-size:.79rem!important}
  body.hs-responsive-ui .table>:not(caption)>*>*{padding:.58rem .6rem!important}
  body.hs-responsive-ui .hs-auto-table-wrap:before,body.hs-responsive-ui .table-wrap:before,body.hs-responsive-ui .table-responsive:before{content:"Swipe table ↔";display:block;position:sticky;left:0;z-index:2;padding:4px 8px;background:var(--bs-tertiary-bg);color:var(--bs-secondary-color);font-size:.65rem}
  body.hs-responsive-ui .hs-mobile-nav{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:minmax(0,1fr)!important;position:fixed!important;left:8px!important;right:8px!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;height:60px!important;padding:4px!important;border:1px solid var(--hs-simple-border)!important;border-radius:14px!important;background:var(--bs-body-bg)!important;box-shadow:0 5px 18px rgba(15,23,42,.12)!important;z-index:1050!important;overflow:hidden!important}
  body.hs-responsive-ui .hs-mobile-nav a,body.hs-responsive-ui .hs-mobile-nav button{min-width:0!important;height:50px!important;padding:4px 2px!important;border-radius:10px!important;font-size:.59rem!important;line-height:1.05!important;gap:2px!important;overflow:hidden!important}
  body.hs-responsive-ui .hs-mobile-nav span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.hs-responsive-ui .hs-mobile-nav svg{width:19px!important;height:19px!important;flex:0 0 19px}
  body.hs-responsive-ui .hs-floating-ai{display:block!important;right:12px!important;bottom:calc(76px + env(safe-area-inset-bottom))!important}
  body.hs-responsive-ui .hs-ai-bottom-button{width:48px!important;height:48px!important;min-width:48px!important;padding:0!important;border-radius:12px!important}
  body.hs-responsive-ui .hs-ai-bottom-button span{display:none!important}
  body.hs-responsive-ui .hs-wake-status{right:12px!important;left:12px!important;bottom:calc(130px + env(safe-area-inset-bottom))!important;max-width:none!important;justify-content:center!important;font-size:.67rem!important}
  body.hs-responsive-ui .modal-dialog{width:auto!important;max-width:none!important;margin:8px!important}
  body.hs-responsive-ui .hs-ai-modal .modal-dialog{margin:0!important;min-height:100dvh!important;align-items:flex-end!important}
  body.hs-responsive-ui .hs-ai-modal .modal-content{max-height:92dvh!important;border-radius:18px 18px 0 0!important;overflow:auto!important}
  body.hs-responsive-ui .hs-ai-modal-head{padding:16px!important}
  body.hs-responsive-ui .hs-ai-modal form{padding:14px!important}
  body.hs-responsive-ui .hs-ai-modal .row>.col-7,body.hs-responsive-ui .hs-ai-modal .row>.col-5{width:100%!important}
  body.hs-responsive-ui .dropdown-menu{font-size:.86rem}
}

/* Very small phones: single column metrics and even tighter header. */
@media (max-width:389.98px){
  body.hs-responsive-ui .hs-brand-text-mobile{max-width:104px!important;font-size:.8rem!important}
  body.hs-responsive-ui .hs-topbar .header-menu>li:nth-child(1){display:none!important}
  body.hs-responsive-ui .grid{grid-template-columns:1fr!important}
  body.hs-responsive-ui .hs-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.hs-responsive-ui .page-head .actions,body.hs-responsive-ui .page-head>.actions{grid-template-columns:1fr!important}
}

/* Short landscape/mobile screens: let content scroll; never center vertically. */
@media (max-height:520px) and (max-width:991.98px){
  body.hs-responsive-ui .hs-ai-modal .modal-content{max-height:96dvh!important}
  body.hs-auth-page .hs-login-form-panel{justify-content:flex-start!important}
}

@media (prefers-reduced-motion:reduce){
  body.hs-responsive-ui *,body.hs-responsive-ui *:before,body.hs-responsive-ui *:after{scroll-behavior:auto!important;animation:none!important;transition-duration:.001ms!important}
}

/* ================================================================
   Hardware Saarthi AI v1.9.1 — Sidebar Nested Menu Polish
   Fixes legacy BVite tree-line overlap and accent color shifts.
   ================================================================ */
body.hs-responsive-ui .sidebar .menu-list > li > a[data-bs-toggle="collapse"]{
  color:var(--bs-body-color)!important;
  background:transparent!important;
  border:1px solid transparent!important;
  font-weight:500!important;
  min-height:40px!important;
  align-items:center!important;
  padding:.55rem .7rem!important;
  transition:background-color .14s ease,border-color .14s ease!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > a[data-bs-toggle="collapse"]:hover,
body.hs-responsive-ui .sidebar .menu-list > li > a[data-bs-toggle="collapse"]:focus,
body.hs-responsive-ui .sidebar .menu-list > li > a[data-bs-toggle="collapse"][aria-expanded="true"]{
  color:var(--bs-body-color)!important;
  background:var(--bs-tertiary-bg)!important;
  border-color:var(--bs-border-color)!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > a[data-bs-toggle="collapse"] span{
  color:inherit!important;
}

/* Remove BVite's decorative vertical tree line: it crossed submenu text on
   narrow/responsive sidebars and changed to accent color on hover/active. */
body.hs-responsive-ui .sidebar .menu-list > li > ul,
body.hs-responsive-ui .sidebar .menu-list > li > ul.collapse,
body.hs-responsive-ui .sidebar .menu-list > li > ul.collapsing{
  position:relative!important;
  padding:4px 0 6px!important;
  margin:0!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul::after,
body.hs-responsive-ui .sidebar .menu-list > li > ul.collapse::after,
body.hs-responsive-ui .sidebar .menu-list > li > ul.collapsing::after{
  content:none!important;
  display:none!important;
  background:none!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li{
  margin:1px 0!important;
  padding:0!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li:first-child{
  margin-top:2px!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li:last-child{
  padding-bottom:2px!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a{
  display:flex!important;
  align-items:center!important;
  width:calc(100% - 12px)!important;
  min-height:34px!important;
  margin:1px 0 1px 12px!important;
  padding:.45rem .65rem .45rem .8rem!important;
  border-radius:9px!important;
  color:var(--bs-body-color)!important;
  background:transparent!important;
  font-size:.84rem!important;
  font-weight:400!important;
  line-height:1.25!important;
  text-decoration:none!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  transition:background-color .12s ease!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a::before,
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a.active::before,
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a:hover::before{
  content:none!important;
  display:none!important;
  width:0!important;
  background:none!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a:hover,
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a:focus{
  color:var(--bs-body-color)!important;
  background:var(--bs-tertiary-bg)!important;
}
body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a.active{
  color:var(--bs-body-color)!important;
  background:var(--bs-tertiary-bg)!important;
  font-weight:700!important;
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--bs-body-color) 20%,transparent)!important;
}

/* Keep submenu hierarchy readable on tablet/mobile without shrinking text. */
@media(max-width:1199.98px){
  body.hs-responsive-ui .sidebar .menu-list > li > ul > li > a{
    min-height:38px!important;
    margin-left:10px!important;
    width:calc(100% - 10px)!important;
    padding:.52rem .75rem!important;
    font-size:.88rem!important;
  }
}

/* ================================================================
   Hardware Saarthi v1.9.2 — Fixed Desktop Sidebar
   Keep the desktop navigation anchored to the viewport while the
   business page scrolls. The menu itself gets its own safe scroll.
   ================================================================ */
@media (min-width:1200px){
  body.hs-responsive-ui .hs-app-shell>.brand{
    position:fixed!important;
    top:0!important;
    left:0!important;
    width:var(--hs-v190-sidebar)!important;
    height:var(--hs-v190-header)!important;
    z-index:1032!important;
  }

  body.hs-responsive-ui .hs-app-shell>.sidebar,
  body.hs-responsive-ui.sidebar-hide .hs-app-shell>.sidebar{
    position:fixed!important;
    top:var(--hs-v190-header)!important;
    left:0!important;
    bottom:0!important;
    width:var(--hs-v190-sidebar)!important;
    height:calc(100dvh - var(--hs-v190-header))!important;
    min-height:0!important;
    z-index:1031!important;
    overflow:hidden!important;
    overscroll-behavior:contain!important;
    background:var(--bs-body-bg)!important;
  }

  body.hs-responsive-ui .hs-app-shell>.sidebar>.offcanvas,
  body.hs-responsive-ui.sidebar-hide .hs-app-shell>.sidebar>.offcanvas{
    position:static!important;
    inset:auto!important;
    width:100%!important;
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    visibility:visible!important;
    transform:none!important;
    overflow:hidden!important;
  }

  body.hs-responsive-ui .hs-app-shell>.sidebar .offcanvas-body,
  body.hs-responsive-ui.sidebar-hide .hs-app-shell>.sidebar .offcanvas-body{
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain!important;
    scrollbar-gutter:stable!important;
    -webkit-overflow-scrolling:touch;
    padding-bottom:24px!important;
  }

  /* The desktop sidebar is intentionally persistent; avoid accidental
     collapse from the legacy BVite sidebar-toggle class. */
  body.hs-responsive-ui .sidebar-toggle{display:none!important}
  body.hs-responsive-ui.sidebar-hide .hs-app-shell{
    grid-template-columns:var(--hs-v190-sidebar) minmax(0,1fr)!important;
    grid-template-areas:"brand head" "sidebar pagehead" "sidebar wrapper"!important;
  }

  /* Keep page content in the right column while fixed nav occupies left. */
  body.hs-responsive-ui .hs-app-shell>.hs-topbar,
  body.hs-responsive-ui .hs-app-shell>.page-header,
  body.hs-responsive-ui .hs-app-shell>.page-body{min-width:0!important}
}


/* ================================================================
   Hardware Saarthi AI v1.9.3 — More Operations Active Color Match
   Lower accordion titles/subtitles now use the same active accent as
   the primary sidebar, while hover/focus never changes text color.
   ================================================================ */
body.hs-responsive-ui .sidebar .hs-more-operations > li > a[data-bs-toggle="collapse"]{
  color:var(--bs-body-color)!important;
  background:transparent!important;
  border-color:transparent!important;
}
body.hs-responsive-ui .sidebar .hs-more-operations > li > a[data-bs-toggle="collapse"]:hover,
body.hs-responsive-ui .sidebar .hs-more-operations > li > a[data-bs-toggle="collapse"]:focus{
  color:var(--bs-body-color)!important;
  background:var(--bs-tertiary-bg)!important;
  border-color:var(--bs-border-color)!important;
}
body.hs-responsive-ui .sidebar .hs-more-operations > li.is-active > a[data-bs-toggle="collapse"],
body.hs-responsive-ui .sidebar .hs-more-operations > li > a[data-bs-toggle="collapse"].active,
body.hs-responsive-ui .sidebar .hs-more-operations > li > a[data-bs-toggle="collapse"].hs-group-active{
  color:var(--primary-color)!important;
  background:color-mix(in srgb,var(--primary-color) 10%,transparent)!important;
  border-color:color-mix(in srgb,var(--primary-color) 18%,var(--bs-border-color))!important;
  font-weight:600!important;
}
body.hs-responsive-ui .sidebar .hs-more-operations > li.is-active > a[data-bs-toggle="collapse"] span,
body.hs-responsive-ui .sidebar .hs-more-operations > li > a[data-bs-toggle="collapse"].active span{
  color:inherit!important;
}
body.hs-responsive-ui .sidebar .hs-more-operations > li > ul > li > a{
  color:var(--bs-body-color)!important;
}
body.hs-responsive-ui .sidebar .hs-more-operations > li > ul > li > a:hover,
body.hs-responsive-ui .sidebar .hs-more-operations > li > ul > li > a:focus{
  color:var(--bs-body-color)!important;
}
body.hs-responsive-ui .sidebar .hs-more-operations > li > ul > li > a.active{
  color:var(--primary-color)!important;
  background:color-mix(in srgb,var(--primary-color) 8%,transparent)!important;
  box-shadow:none!important;
  font-weight:600!important;
}


