/* PanelAiBot v2.8.8 — fast dark shell / mobile menu / WhatsApp + Docs refresh */
:root{--p288-bg:#061225;--p288-bg2:#081a34;--p288-card:#0a1b35;--p288-card2:#0d2140;--p288-line:#18385f;--p288-line2:#244a77;--p288-text:#f4f7ff;--p288-muted:#8fa7cc;--p288-blue:#4e65ff;--p288-purple:#7b45ee;--p288-green:#24d576}

/* Performance first: remove the effects that were causing slow paint/repaint on shared-hosting clients. */
body.v280-shell *,body.v280-shell *::before,body.v280-shell *::after{animation:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;text-shadow:none!important}
body.v280-shell .floating-whatsapp-pulse{display:none!important}
body.v280-shell :where(.card,.panel,.stat-card,.module-hero,.dash-command-hero,.dash-metric,.dash-chart-card,.health-card,.v285-payment-method-card,.v285-payment-detail,.provider-list-card,.settings-control-hero,.v286-gateway-card){box-shadow:none!important}
body.v280-shell main>section,body.v280-shell main>article{content-visibility:auto;contain-intrinsic-size:220px}
body.v280-shell .v24-sidebar,body.v280-shell .v24-sidebar-overlay{content-visibility:visible;contain:none}

html[data-resolved-theme="dark"] body.v280-shell{background:var(--p288-bg)!important;color:var(--p288-text)!important}
html[data-resolved-theme="dark"] body.v280-shell .v24-main{background:linear-gradient(180deg,#061225,#07172d)!important;color:var(--p288-text)!important}
html[data-resolved-theme="dark"] body.v280-shell .card,html[data-resolved-theme="dark"] body.v280-shell .panel{background:var(--p288-card)!important;border-color:var(--p288-line)!important;color:var(--p288-text)!important}
html[data-resolved-theme="dark"] body.v280-shell :where(h1,h2,h3,h4,strong,b,label){color:var(--p288-text)}
html[data-resolved-theme="dark"] body.v280-shell :where(p,small,.muted){color:var(--p288-muted)}

/* One coherent app shell matching the WhatsApp reference. */
body.v280-shell .v24-sidebar{width:252px!important;padding:0 14px 14px!important;background:linear-gradient(180deg,#071630 0%,#082047 48%,#06162e 100%)!important;border-inline-end:1px solid #173a67!important;color:#edf4ff!important}
body.v280-shell .v24-brand-row{min-height:70px!important;border-bottom:1px solid #153355!important;padding:8px 2px!important}
body.v280-shell .v286-brand{gap:9px!important;min-width:0!important}
body.v280-shell .v286-brand-logo,body.v280-shell .v286-topbar-brand-logo{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:11px!important;background:linear-gradient(145deg,#6e31e7,#3558ff)!important;color:#fff!important;border:1px solid #6f72ff!important;overflow:hidden!important}
body.v280-shell .v286-brand-logo img,body.v280-shell .v286-topbar-brand-logo img{width:100%!important;height:100%!important;object-fit:cover!important}
body.v280-shell .v286-brand-copy strong{font-size:14px!important;color:#fff!important}body.v280-shell .v286-brand-copy small{font-size:10px!important;color:#9db1d5!important}
body.v280-shell .v24-context{background:#091a34!important;border:1px solid #183963!important;border-radius:12px!important;color:#fff!important;padding:12px!important}
body.v280-shell .v24-context strong{color:#fff!important}body.v280-shell .v24-context small{color:#90a9cf!important}
body.v280-shell .v24-nav{gap:10px!important}body.v280-shell .v24-nav-label{color:#6483b7!important;font-size:9px!important;padding-inline:9px!important;text-transform:none!important}
body.v280-shell .v24-nav-link{min-height:37px!important;margin:1px 0!important;padding:8px 10px!important;border:0!important;border-radius:8px!important;color:#d8e5f9!important;background:transparent!important;font-size:11px!important;gap:10px!important}
body.v280-shell .v24-nav-link:hover{background:#0d2a55!important;color:#fff!important}
body.v280-shell .v24-nav-link.active{background:linear-gradient(100deg,#4456e9,#5737bb)!important;color:#fff!important;border:0!important}
body.v280-shell .v24-nav-icon{color:#c3d6f4!important;box-shadow:none!important;background:transparent!important;border:0!important;width:19px!important;height:19px!important}
body.v280-shell .nav-soon-badge{margin-inline-start:auto!important;background:#5d46ec!important;color:#fff!important;border:0!important;box-shadow:none!important;font-size:9px!important;padding:3px 7px!important}
body.v280-shell .v24-sidebar-bottom{border-top:1px solid #17365c!important;background:#07162f!important}

body.v280-shell .v24-topbar{left:252px!important;height:68px!important;padding:0 20px!important;background:#061327!important;border-bottom:1px solid #17385f!important;box-shadow:none!important}
html[dir="rtl"] body.v280-shell .v24-topbar{left:252px!important;right:0!important}
body.v280-shell .v24-main{margin-left:252px!important;padding:88px 18px 56px!important}
html[dir="rtl"] body.v280-shell .v24-main{margin-left:252px!important;margin-right:0!important}
body.v280-shell .v286-topbar-brand{display:flex!important;align-items:center!important;gap:8px!important;color:#fff!important;text-decoration:none!important;min-width:max-content!important}
body.v280-shell .v286-topbar-brand b{font-size:14px!important;color:#fff!important}
body.v280-shell .v286-topbar-brand-logo{width:34px!important;height:34px!important;flex:0 0 34px!important}
body.v280-shell .v24-topbar-title>div:last-child{display:none!important}
body.v280-shell .v24-topbar-actions{gap:8px!important}
body.v280-shell .v24-icon-button,body.v280-shell .v282-theme-button{width:39px!important;height:39px!important;min-width:39px!important;border:1px solid #1c3c66!important;border-radius:10px!important;background:#091a33!important;color:#dce9ff!important;box-shadow:none!important}
body.v280-shell .v24-icon-button:hover,body.v280-shell .v282-theme-button:hover{background:#10274a!important;border-color:#315b92!important;color:#fff!important}
body.v280-shell .v24-select-form select{height:39px!important;background:#091a33!important;border-color:#1c3c66!important;color:#dce9ff!important}
body.v280-shell .v24-top-user{background:#091a33!important;border:1px solid #1c3c66!important;border-radius:10px!important;padding:6px 9px!important;margin:0!important}

/* Kashier settings are intentionally prominent and cannot be confused with the generic method editor. */
.v288-kashier-setup{border-color:#28598e!important}.v288-kashier-setup .card-head{align-items:flex-start!important}.v288-gateway-state{display:inline-flex;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:800}.v288-gateway-state.ready{background:#123a2b;color:#53e49b;border:1px solid #25684d}.v288-gateway-state.missing{background:#42261d;color:#ffc58f;border:1px solid #71442f}
.v288-gateway-toggle-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid #1a406c;border-radius:13px;background:#081a34}.v288-gateway-toggle-row small{display:block;margin-top:3px}.v288-kashier-mark{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#08a4e9,#3157f6);color:#fff;font-size:20px;font-weight:900}.v288-credential-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.v288-credential-grid label{display:grid;gap:5px}.v288-credential-grid label>span{font-weight:800;font-size:11px}.v288-credential-grid small{font-size:9px;color:#7f99bd}.v288-gateway-note{display:flex;gap:10px;align-items:center;padding:11px 12px;border:1px solid #1a3a61;border-radius:10px;background:#07172e;color:#8fa7cc;font-size:10px}.v288-gateway-note code{color:#8bb5ff}.v288-save-gateway{align-self:flex-start!important}

/* WhatsApp center */
.wa288-shell{display:grid;gap:16px}.wa288-top-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px}.wa288-status-stack{display:grid;gap:9px}.wa288-status-card,.wa288-mini-stat,.wa288-hero,.wa288-module-grid>a,.wa288-runtime-card{border:1px solid #183a63;border-radius:14px;background:#081a34;color:#fff}.wa288-status-card{padding:16px}.wa288-status-card small,.wa288-mini-stat small{display:block;color:#88a0c5;font-size:10px}.wa288-status-card strong{display:block;margin:4px 0 10px;font-size:21px;color:#32da83}.wa288-status-line{display:block;height:7px;border-radius:999px;background:#0a2742;overflow:hidden}.wa288-status-line i{display:block;height:100%;border-radius:inherit;background:#29d77f}.wa288-mini-stat{display:flex;align-items:center;justify-content:space-between;padding:12px 14px}.wa288-mini-stat>span{order:2;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#10294f;color:#8298ff}.wa288-mini-stat strong{display:block;margin-top:3px;font-size:18px}.wa288-hero{position:relative;min-height:280px;padding:32px;display:flex;align-items:center;justify-content:flex-end;overflow:hidden;background:linear-gradient(115deg,#2b205f 0%,#101c42 36%,#081a34 75%)!important}.wa288-hero:before{content:"";position:absolute;width:260px;height:260px;border-radius:50%;inset-inline-start:-80px;top:-80px;background:rgba(100,71,220,.13)}.wa288-hero-orb{display:none}.wa288-hero-copy{position:relative;max-width:720px;text-align:start}.wa288-hero-copy>small{font-size:15px;color:#a7b9d9}.wa288-hero-copy h2{font-size:34px;margin:7px 0 12px}.wa288-hero-copy p{font-size:14px;line-height:1.9;color:#a1b4d3;max-width:670px}.wa288-hero-copy .actions{margin-top:22px}.wa288-wa-button svg{color:#fff!important}.wa288-module-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.wa288-module-grid>a{min-height:88px;padding:13px;text-decoration:none;display:flex;align-items:center;gap:10px}.wa288-module-grid>a>span{width:42px;height:42px;flex:0 0 42px;border-radius:11px;display:grid;place-items:center;background:#312268;color:#a58cff}.wa288-module-grid strong{display:block;font-size:12px}.wa288-module-grid small{display:block;margin-top:4px;color:#8197bb;font-size:8px;line-height:1.5}.wa288-runtime-card{padding:16px}.wa288-runtime-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.wa288-runtime-grid>div{padding:12px;border:1px solid #17395e;border-radius:11px;background:#07172e}.wa288-runtime-grid small{display:block;color:#8299bd;font-size:9px}.wa288-runtime-grid strong{display:block;margin-top:4px;font-size:12px}

/* Docs / Guide */
.docs288-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}.docs288-main{display:grid;gap:14px}.docs288-hero{display:flex;align-items:center;gap:18px;padding:28px;border:1px solid #164b58;border-radius:15px;background:linear-gradient(100deg,#073a3c,#09233a 52%,#081a34);color:#fff}.docs288-hero-icon{width:55px;height:55px;flex:0 0 55px;border-radius:50%;display:grid;place-items:center;background:#25d878;color:#fff}.docs288-hero h2{margin:4px 0 5px;font-size:25px}.docs288-hero p{margin:0;color:#a8bdd6}.docs288-steps{display:grid;gap:8px;padding:14px;border:1px solid #17385f;border-radius:15px;background:#07172e}.docs288-step{border:1px solid #17385f;border-radius:12px;background:#081a34;overflow:hidden}.docs288-step summary{display:grid;grid-template-columns:45px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px;cursor:pointer;list-style:none}.docs288-step summary::-webkit-details-marker{display:none}.docs288-step-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#15265e;color:#8aa4ff}.docs288-step summary div small{display:block;color:#2bd682;font-weight:900}.docs288-step summary div strong{font-size:13px}.docs288-chevron{font-size:20px;color:#90a7c9}.docs288-step-body{padding:0 69px 14px;color:#8fa6ca}.docs288-step-body p{margin:0;font-size:11px}.docs288-complete{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #17385f;border-radius:12px;background:#081a34}.docs288-complete>span{color:#2bd682}.docs288-complete>div{flex:1}.docs288-complete p{margin:3px 0 0}.docs288-help{position:sticky;top:82px;display:grid;gap:10px;padding:15px;border:1px solid #17385f;border-radius:15px;background:#081a34}.docs288-help>div{text-align:center;padding:7px}.docs288-help h3{margin:7px 0 5px}.docs288-help nav{display:grid;gap:7px}.docs288-help nav a{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;text-decoration:none;color:#dce8fa;padding:10px;border:1px solid #17385f;border-radius:10px;background:#07172e}.docs288-help nav a.active{border-color:#654ae6;background:#152050}.docs288-help nav a>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#231653;color:#b290ff}.docs288-help nav strong{display:block;font-size:11px}.docs288-help nav small{display:block;margin-top:2px;font-size:8px;color:#7e96bb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.docs288-health{padding:12px;border:1px solid #164f3b;border-radius:10px;background:#09251f}.docs288-health small{display:block;color:#70b99a}.docs288-health strong{display:block;margin-top:5px;color:#31d681;font-size:11px}

/* Manual ticket editor */
.v288-ticket-template-manual .template-variable-pills{margin-bottom:3px}.v288-ticket-template-manual textarea{min-height:145px!important}

/* Compact cards and forms in dark mode. */
html[data-resolved-theme="dark"] body.v280-shell input:not([type=checkbox]):not([type=radio]),html[data-resolved-theme="dark"] body.v280-shell select,html[data-resolved-theme="dark"] body.v280-shell textarea{background:#07172e!important;border:1px solid #1a3d68!important;color:#eef5ff!important;box-shadow:none!important}
html[data-resolved-theme="dark"] body.v280-shell .button:not(.primary):not(.danger){background:#0a1d39!important;border-color:#20466f!important;color:#dfeaff!important}
body.v280-shell .section-icon{box-shadow:none!important;border:1px solid #244a77!important;background:#10264b!important;color:#8ba6ff!important}
body.v280-shell .lucide-whatsapp{filter:none!important;color:currentColor!important}
body.v280-shell .v24-nav-link:not(.active) .lucide-whatsapp{color:#39d98b!important}
body.v280-shell .floating-whatsapp{box-shadow:none!important}

/* Mobile menu: robust, no hidden transformed sidebar. */
@media(max-width:820px){
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body.v280-shell{--v24-topbar:60px!important}
  body.v280-shell .v24-topbar{position:fixed!important;z-index:900!important;inset:0 0 auto 0!important;left:0!important;right:0!important;width:100%!important;height:60px!important;padding:7px 9px!important;direction:ltr!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-radius:0!important}
  body.v280-shell .v24-topbar-title{order:2!important;display:flex!important;flex-direction:row-reverse!important;align-items:center!important;gap:7px!important;min-width:0!important;direction:ltr!important}
  body.v280-shell .v24-menu-button{display:flex!important;width:40px!important;height:40px!important;flex:0 0 40px!important;border:1px solid #264669!important;background:#0a1b35!important;border-radius:10px!important;flex-direction:column!important;gap:4px!important;align-items:center!important;justify-content:center!important;order:0!important}
  body.v280-shell .v24-menu-button span{display:block!important;width:18px!important;height:2px!important;background:#d9e7fb!important;border-radius:99px!important}
  body.v280-shell .v286-topbar-brand{display:flex!important;max-width:128px!important;gap:6px!important}.v286-topbar-brand b{max-width:82px!important;font-size:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.v286-topbar-brand-logo{width:31px!important;height:31px!important;flex-basis:31px!important}
  body.v280-shell .v24-topbar-actions{order:1!important;display:flex!important;gap:4px!important;direction:ltr!important;min-width:0!important}
  body.v280-shell .v24-topbar-actions .v24-icon-button,body.v280-shell .v24-topbar-actions .v282-theme-button{width:38px!important;height:38px!important;min-width:38px!important;background:#0a1b35!important;border-color:#264669!important;color:#d8e6fb!important}
  body.v280-shell .v24-topbar-actions .v24-top-user,body.v280-shell .v24-topbar-actions .v24-select-form,body.v280-shell .v282-locale-toggle,body.v280-shell .v24-topbar-actions>a[title*="Notifications"]{display:none!important}
  body.v280-shell .v24-main,html[dir="rtl"] body.v280-shell .v24-main{margin:0!important;width:100%!important;max-width:100%!important;padding:72px 9px 72px!important}

  body.v280-shell #main-sidebar{display:flex!important;visibility:hidden!important;opacity:0!important;position:fixed!important;z-index:1202!important;top:0!important;bottom:0!important;right:0!important;left:auto!important;width:min(286px,88vw)!important;max-width:88vw!important;transform:translate3d(105%,0,0)!important;transition:transform .16s ease,opacity .16s ease!important;contain:layout style!important}
  html[dir="ltr"] body.v280-shell #main-sidebar{left:0!important;right:auto!important;transform:translate3d(-105%,0,0)!important}
  body.v280-shell.sidebar-open #main-sidebar,body.sidebar-open #main-sidebar{visibility:visible!important;opacity:1!important;transform:translate3d(0,0,0)!important}
  body.v280-shell .v24-sidebar-overlay{display:block!important;position:fixed!important;z-index:1201!important;inset:0!important;background:rgba(0,8,20,.64)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transition:opacity .15s ease!important}
  body.sidebar-open .v24-sidebar-overlay{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
  body.sidebar-open{overflow:hidden!important}

  .wa288-top-grid{grid-template-columns:1fr!important}.wa288-status-stack{grid-template-columns:repeat(3,1fr)!important}.wa288-status-card{grid-column:1/-1}.wa288-hero{min-height:240px!important;padding:22px!important}.wa288-hero-copy h2{font-size:27px!important}.wa288-module-grid{grid-template-columns:1fr 1fr!important}.wa288-runtime-grid{grid-template-columns:1fr 1fr!important}
  .docs288-layout{grid-template-columns:1fr!important}.docs288-help{position:static!important;order:-1!important}.docs288-help nav{grid-template-columns:1fr 1fr!important}.docs288-hero{padding:18px!important}.docs288-step-body{padding:0 15px 13px!important}.docs288-complete{align-items:flex-start!important;flex-wrap:wrap!important}.docs288-complete .button{width:100%!important}
  .v288-credential-grid{grid-template-columns:1fr!important}.v288-gateway-toggle-row{grid-template-columns:42px minmax(0,1fr)!important}.v288-gateway-toggle-row .toggle{grid-column:1/-1!important;justify-self:start!important}.v288-gateway-note{align-items:flex-start!important;flex-direction:column!important}
  body.v280-shell main>section,body.v280-shell main>article{content-visibility:visible!important}
}
@media(max-width:520px){.wa288-status-stack{grid-template-columns:1fr!important}.wa288-status-card{grid-column:auto}.wa288-module-grid,.wa288-runtime-grid,.docs288-help nav{grid-template-columns:1fr!important}.wa288-hero-copy h2{font-size:24px!important}.wa288-hero-copy p{font-size:12px!important}.docs288-hero-icon{width:45px;height:45px;flex-basis:45px}.docs288-hero h2{font-size:20px}.v288-gateway-state{display:none}}
