/** BizTrack authenticated interface — tracked, build-free and legacy-compatible. */
:root {
    --bt-navy-950:#06101f; --bt-navy-900:#0a1d35; --bt-navy-850:#102945; --bt-brand-700:var(--theme-700,#155eef); --bt-brand-600:#2563eb; --bt-brand-100:#dbeafe;
    --bt-slate-950:#0f172a; --bt-slate-800:#1e293b; --bt-slate-700:#334155; --bt-slate-500:#64748b; --bt-slate-300:#cbd5e1; --bt-slate-200:#e2e8f0; --bt-slate-100:#f1f5f9; --bt-slate-50:#f8fafc; --bt-surface:#fff;
    --bt-success:#15803d; --bt-warning:#b45309; --bt-danger:#b91c1c; --bt-info:#0369a1;
    --bt-text-xs:.75rem; --bt-text-sm:.875rem; --bt-text-base:1rem; --bt-text-lg:1.125rem; --bt-text-xl:1.5rem; --bt-text-2xl:2rem;
    --bt-space-1:.25rem; --bt-space-2:.5rem; --bt-space-3:.75rem; --bt-space-4:1rem; --bt-space-5:1.25rem; --bt-space-6:1.5rem; --bt-space-8:2rem;
    --bt-radius-sm:.45rem; --bt-radius-md:.7rem; --bt-radius-lg:1rem; --bt-radius-xl:1.25rem; --bt-border:1px solid var(--bt-slate-200);
    --bt-focus:0 0 0 3px rgb(37 99 235/.32); --bt-shadow-sm:0 1px 2px rgb(15 23 42/.05); --bt-shadow-md:0 8px 24px rgb(15 23 42/.08); --bt-shadow-lg:0 24px 50px rgb(2 12 27/.22);
    --bt-sidebar-width:17.5rem; --bt-sidebar-collapsed:5.25rem; --bt-header-height:4.5rem;
}
.bt-auth-shell { background:var(--bt-slate-100); color:var(--bt-slate-950); }
.bt-auth-shell .thetop { min-height:100vh; }

/* Distinctive navy navigation rail */
.bt-sidebar { width:var(--bt-sidebar-width)!important; background:linear-gradient(180deg,var(--bt-navy-950),var(--bt-navy-900) 55%,#0c2542)!important; border:0!important; box-shadow:10px 0 35px rgb(2 12 27/.13); z-index:45; transition:width .2s ease,transform .2s ease; }
.bt-brand { display:flex; align-items:center; gap:.75rem; min-height:var(--bt-header-height); padding:.75rem 1rem; color:white!important; border-bottom:1px solid rgb(255 255 255/.1); text-decoration:none!important; }
.bt-brand-mark { display:grid; place-items:center; width:2.7rem; height:2.7rem; flex:none; border-radius:.85rem; color:white; font-size:1.35rem; font-weight:800; background:linear-gradient(135deg,#3887ff,var(--bt-brand-700)); box-shadow:0 8px 20px rgb(21 94 239/.35),inset 0 1px rgb(255 255 255/.25); }
.bt-brand-copy { display:flex; min-width:0; flex:1; flex-direction:column; line-height:1.2; }
.bt-brand-copy strong { font-size:1.08rem; letter-spacing:.01em; }.bt-brand-copy small { margin-top:.2rem; color:#9fb2c9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bt-online-dot { width:.55rem; height:.55rem; flex:none; border-radius:50%; background:#4ade80; box-shadow:0 0 0 4px rgb(74 222 128/.12); }
.bt-sidebar #side-bar { padding:.75rem .65rem 1.25rem!important; border:0!important; scrollbar-color:#34506f transparent; }
.bt-sidebar #side-bar .bt-nav-group { margin:.8rem .65rem .3rem; padding:.6rem 0 .2rem!important; color:#6f8baa!important; font-size:.67rem!important; letter-spacing:.13em!important; }
.bt-sidebar #side-bar .bt-nav-item { position:relative; min-height:2.9rem; margin:.15rem 0; padding:.55rem .65rem!important; gap:.7rem!important; color:#b9c8d8!important; border:1px solid transparent; border-radius:.75rem!important; white-space:normal!important; }
.bt-sidebar #side-bar .bt-nav-item>svg,.bt-sidebar #side-bar .bt-nav-item>i { display:grid; place-items:center; width:2rem!important; height:2rem!important; padding:.35rem; flex:none; color:#88a3c0!important; border-radius:.55rem; background:rgb(255 255 255/.055); }
.bt-sidebar #side-bar .bt-nav-item:hover { color:white!important; background:rgb(255 255 255/.075)!important; border-color:rgb(255 255 255/.07); transform:translateX(2px); }
.bt-sidebar #side-bar .theme-sidebar-active { color:white!important; background:linear-gradient(100deg,rgb(37 99 235/.32),rgb(37 99 235/.11))!important; border-color:rgb(96 165 250/.24); box-shadow:inset 3px 0 #60a5fa; }
.bt-sidebar #side-bar .theme-sidebar-active>svg,.bt-sidebar #side-bar .theme-sidebar-active>i { color:white!important; background:var(--bt-brand-700); box-shadow:0 5px 12px rgb(21 94 239/.3); }
.bt-nav-label { min-width:0; line-height:1.25; overflow-wrap:anywhere; }.bt-nav-children { margin:.15rem 0 .5rem 2.75rem!important; padding:.3rem 0 .3rem .85rem!important; border-left:1px solid #29445f; }
.bt-nav-children>div:first-child { display:none; }.bt-sidebar .bt-nav-child { min-height:2.15rem; padding:.4rem .5rem!important; color:#91a8bf!important; border-radius:.5rem; white-space:normal!important; }
.bt-sidebar .bt-nav-child:hover,.bt-sidebar .theme-sidebar-child-active { color:white!important; background:rgb(255 255 255/.07); }
.bt-sidebar #sidebar-search { color:white!important; }.bt-sidebar #sidebar-search::placeholder { color:#7f97b0!important; }.bt-sidebar>div.tw-border-r { margin:.6rem .65rem .1rem; padding:0!important; border:0!important; }.bt-sidebar>div.tw-border-r>div { padding:.6rem .75rem!important; color:#91a8bf; background:rgb(255 255 255/.06)!important; border-color:rgb(255 255 255/.08)!important; }
.bt-sidebar-close { display:none; position:absolute; inset-block-start:1rem; inset-inline-end:.75rem; width:2.5rem; height:2.5rem; align-items:center; justify-content:center; color:white; border:1px solid rgb(255 255 255/.12); border-radius:var(--bt-radius-md); background:rgb(255 255 255/.08); }
body.sidebar-collapse .bt-sidebar { width:var(--bt-sidebar-collapsed)!important; }body.sidebar-collapse .bt-brand { justify-content:center; padding-inline:.75rem; }body.sidebar-collapse .bt-brand-copy,body.sidebar-collapse .bt-online-dot,body.sidebar-collapse #sidebar-search,body.sidebar-collapse #sidebar-search-clear,body.sidebar-collapse .bt-nav-label,body.sidebar-collapse .bt-nav-item>.svg,body.sidebar-collapse .bt-nav-children,body.sidebar-collapse .bt-nav-group { display:none!important; }body.sidebar-collapse .bt-sidebar #side-bar .bt-nav-item { justify-content:center; padding-inline:.4rem!important; }body.sidebar-collapse .bt-sidebar>div.tw-border-r>div { justify-content:center; }

/* Calm white workspace bar */
.bt-header { min-height:var(--bt-header-height); display:flex; align-items:center; background:rgb(255 255 255/.94)!important; color:var(--bt-slate-800); border-color:var(--bt-slate-200)!important; box-shadow:0 1px 0 rgb(15 23 42/.04),0 8px 24px rgb(15 23 42/.035); backdrop-filter:blur(12px); position:relative; z-index:35; }
.bt-header>div { width:100%; padding:.75rem 1.5rem!important; }.bt-header .theme-btn-bg { color:var(--bt-slate-700)!important; background:var(--bt-slate-50)!important; border:1px solid var(--bt-slate-200); box-shadow:none; }
.bt-header .theme-btn-bg:hover { color:var(--bt-brand-700)!important; background:#eff6ff!important; border-color:#bfdbfe; }.bt-workspace-context { display:flex; flex-direction:column; min-width:0; margin-right:auto; }.bt-workspace-context strong { max-width:22rem; overflow:hidden; color:var(--bt-slate-800); font-size:.95rem; text-overflow:ellipsis; white-space:nowrap; }.bt-workspace-eyebrow { color:var(--bt-slate-500); font-size:.67rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.bt-header details[open]>summary { color:var(--bt-brand-700)!important; background:#eff6ff!important; }.bt-header details ul { border:var(--bt-border); border-radius:var(--bt-radius-lg)!important; box-shadow:var(--bt-shadow-lg)!important; }

/* Shared canvas modernizes legacy pages without touching workflows */
.bt-main-content { background:radial-gradient(circle at 85% 0,rgb(219 234 254/.65),transparent 27rem),var(--bt-slate-100); scrollbar-gutter:stable; }
.bt-main-content>.content,.bt-main-content>section.content,.bt-page { width:100%; max-width:none!important; padding:1.5rem clamp(1rem,2vw,2rem)!important; }
.bt-main-content>.content-header,.bt-main-content>section.content-header { padding:1.5rem clamp(1rem,2vw,2rem) .25rem!important; }.bt-main-content .content-header h1 { color:var(--bt-slate-950); font-size:1.65rem; font-weight:750; letter-spacing:-.025em; }
.bt-main-content .box,.bt-card,.bt-filter-panel,.bt-form-section { background:var(--bt-surface); border:var(--bt-border)!important; border-radius:var(--bt-radius-lg)!important; box-shadow:var(--bt-shadow-sm)!important; overflow:visible; }.bt-main-content .box-header { padding:1.1rem 1.25rem; border-bottom:var(--bt-border); }.bt-main-content .box-body { padding:1.25rem; }
.bt-main-content .form-control,.bt-main-content .select2-selection { min-height:2.65rem; border-color:var(--bt-slate-300)!important; border-radius:var(--bt-radius-md)!important; box-shadow:none!important; }.bt-main-content .form-control:focus { border-color:var(--bt-brand-600)!important; box-shadow:var(--bt-focus)!important; }
.bt-main-content .btn { border-radius:var(--bt-radius-md)!important; font-weight:650; box-shadow:none; }.bt-main-content .btn-primary { background:var(--bt-brand-700)!important; border-color:var(--bt-brand-700)!important; }.bt-main-content .table-responsive,.bt-table-responsive { width:100%; max-width:100%; overflow-x:auto; border:0; -webkit-overflow-scrolling:touch; }.bt-main-content table.dataTable { width:100%!important; }.bt-main-content table.dataTable thead th { padding-block:.85rem; color:var(--bt-slate-700); background:var(--bt-slate-50); border-bottom-color:var(--bt-slate-200)!important; }
.bt-page-header { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--bt-space-4); margin-bottom:var(--bt-space-6); }.bt-page-title { margin:0; color:var(--bt-slate-950); font-size:var(--bt-text-xl); font-weight:750; letter-spacing:-.025em; }.bt-page-description { margin:.25rem 0 0; color:var(--bt-slate-500); }
.bt-action { display:inline-flex; min-height:2.6rem; align-items:center; justify-content:center; gap:.5rem; padding:.55rem 1rem; border:1px solid transparent; border-radius:var(--bt-radius-md); font-weight:650; }.bt-action--primary { color:white; background:var(--bt-brand-700); }.bt-action--secondary { color:var(--bt-slate-700); background:white; border-color:var(--bt-slate-200); }
.bt-action:focus-visible,.bt-icon-button:focus-visible,.bt-dropdown-item:focus-visible,.bt-sidebar-close:focus-visible,.bt-nav-item:focus-visible { outline:0; box-shadow:var(--bt-focus)!important; }.bt-card,.bt-filter-panel,.bt-form-section { padding:var(--bt-space-6); }.bt-stat-card { position:relative; background:white; border:var(--bt-border)!important; border-radius:var(--bt-radius-lg)!important; box-shadow:var(--bt-shadow-md)!important; overflow:hidden; }.bt-stat-card::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:linear-gradient(var(--bt-brand-600),#60a5fa); }.bt-stat-card:hover { transform:translateY(-3px); box-shadow:0 16px 30px rgb(15 23 42/.11)!important; }
.bt-filter-panel { display:flex; align-items:end; flex-wrap:wrap; gap:var(--bt-space-4); }.bt-status { display:inline-flex; align-items:center; gap:.375rem; padding:.25rem .625rem; border-radius:999px; font-size:var(--bt-text-xs); font-weight:700; }.bt-status::before { content:""; width:.4rem; height:.4rem; border-radius:50%; background:currentColor; }.bt-status--success { color:var(--bt-success); background:#dcfce7; }.bt-status--warning { color:var(--bt-warning); background:#fef3c7; }.bt-status--danger { color:var(--bt-danger); background:#fee2e2; }.bt-status--info { color:var(--bt-info); background:#e0f2fe; }.bt-empty-state { padding:var(--bt-space-8); color:var(--bt-slate-500); text-align:center; }.bt-dropdown-item { display:flex; min-height:2.5rem; align-items:center; gap:.625rem; padding:.5rem .75rem; color:var(--bt-slate-700); border-radius:var(--bt-radius-md); }.bt-dropdown-item:hover { color:var(--bt-slate-950); background:var(--bt-slate-100); }.bt-icon { display:inline-block; flex:none; }.bt-icon-button { display:inline-flex; width:2.5rem; height:2.5rem; align-items:center; justify-content:center; border-radius:var(--bt-radius-md); }

/* Dashboard is the reference implementation */
.bt-dashboard { background:transparent!important; padding:0 0 2rem!important; }.bt-dashboard>.tw-px-5 { padding:clamp(1.25rem,2.5vw,2.5rem)!important; background:linear-gradient(125deg,var(--bt-navy-950),#10365d 68%,var(--bt-brand-700)); }.bt-dashboard .bt-page-title { color:white!important; font-size:clamp(1.8rem,3vw,2.7rem)!important; text-shadow:0 2px 10px rgb(0 0 0/.16); }.bt-dashboard .bt-action--secondary { border-color:rgb(255 255 255/.22)!important; background:rgb(255 255 255/.12)!important; color:white!important; backdrop-filter:blur(8px); }.bt-dashboard .select2-container .select2-selection { border-color:rgb(255 255 255/.2)!important; }.bt-dashboard .bt-stat-card { min-height:6.9rem; border-color:rgb(255 255 255/.13)!important; }.bt-dashboard .bt-stat-card>div { padding:1.15rem!important; }.bt-dashboard .bt-stat-card [class*="rounded-full"] { border-radius:.8rem!important; }.bt-dashboard .tw-ring-gray-200 { --tw-ring-color:transparent!important; }
.bt-impersonation-banner { border:0; border-bottom:1px solid #f59e0b; color:#78350f; background:#fffbeb; }
.bt-impersonation-exit,.bt-impersonation-exit:visited { display:inline-flex; min-height:2.25rem; align-items:center; justify-content:center; padding:.4rem .8rem; color:#fff!important; background:var(--bt-danger)!important; border:1px solid #991b1b!important; border-radius:var(--bt-radius-md)!important; font-weight:750; line-height:1.2; box-shadow:var(--bt-shadow-sm); }
.bt-impersonation-exit:hover,.bt-impersonation-exit:active { color:#fff!important; background:#991b1b!important; border-color:#7f1d1d!important; }
.bt-impersonation-exit:focus,.bt-impersonation-exit:focus-visible { color:#fff!important; background:#991b1b!important; outline:0; box-shadow:0 0 0 3px rgb(185 28 28/.3)!important; }
.overlay { border:0; padding:0; cursor:pointer; }
[dir=rtl] .bt-sidebar { box-shadow:-10px 0 35px rgb(2 12 27/.13); }[dir=rtl] .bt-nav-children { border-right:1px solid #29445f; border-left:0; }
@media(max-width:1100px){.bt-workspace-context{display:none}.bt-header>div{padding-inline:1rem!important}}
@media(max-width:991px){.bt-sidebar{position:fixed!important; inset:0 auto 0 0; width:min(88vw,var(--bt-sidebar-width))!important; transform:translateX(-105%); box-shadow:var(--bt-shadow-lg); }.bt-sidebar.small-view-side-active{display:flex!important; transform:none; animation:bt-drawer-in .2s ease-out}.bt-sidebar-close{display:inline-flex}.bt-auth-shell.bt-drawer-open{overflow:hidden}.overlay{z-index:40!important;background:rgb(3 12 25/.7)!important;backdrop-filter:blur(2px)}.bt-main-content>.content,.bt-page{padding:1rem!important}[dir=rtl] .bt-sidebar{inset:0 0 0 auto;transform:translateX(105%)}[dir=rtl] .bt-sidebar.small-view-side-active{transform:none}}
@media(max-width:575px){.bt-page-header{flex-direction:column}.bt-card,.bt-filter-panel,.bt-form-section{padding:var(--bt-space-4)}.bt-header .tw-gap-3{gap:.35rem!important}.bt-dashboard>.tw-px-5{padding:1.25rem 1rem!important}.bt-dashboard .bt-page-title{margin-bottom:1.25rem!important}}
@keyframes bt-drawer-in{from{transform:translateX(-105%)}to{transform:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.bt-header,.bt-sidebar,.overlay,.scrolltop{display:none!important}.bt-main-content{height:auto!important;overflow:visible!important;background:white}.bt-main-content>.content{padding:0!important}}

/* Collapsed navigation discovery and flyouts. Native title attributes provide accessible hover/focus labels. */
@media(min-width:992px){
 body.sidebar-collapse .bt-nav-parent{position:static}
 body.sidebar-collapse .bt-nav-parent.bt-flyout-open>.bt-nav-children{display:block!important;position:fixed;inset-inline-start:var(--bt-sidebar-collapsed);inset-inline-end:auto;width:17rem;margin:0!important;padding:.65rem!important;overflow-y:auto;color:white;background:var(--bt-navy-900);border:1px solid rgb(148 163 184/.2);border-radius:0 var(--bt-radius-lg) var(--bt-radius-lg) 0;box-shadow:var(--bt-shadow-lg);z-index:80}
 body.sidebar-collapse .bt-nav-parent.bt-flyout-open>.bt-nav-children .bt-nav-child{display:flex!important}
 [dir=rtl] body.sidebar-collapse .bt-nav-parent.bt-flyout-open>.bt-nav-children{inset-inline-start:auto;inset-inline-end:var(--bt-sidebar-collapsed);border-radius:var(--bt-radius-lg) 0 0 var(--bt-radius-lg)}
 body.sidebar-collapse .bt-sidebar #side-bar{overflow-x:visible}
}
.bt-header>div>div{flex-wrap:nowrap}.bt-package-summary{display:inline-flex;min-height:2.55rem;align-items:center;gap:.4rem;flex:none;padding:.45rem .75rem;color:var(--bt-slate-700);white-space:nowrap;background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--bt-radius-md);font-size:var(--bt-text-sm)}.bt-package-name{color:var(--bt-brand-700);font-weight:750}.bt-package-remaining{font-weight:600}.bt-attendance-action{min-width:2.55rem;min-height:2.55rem;flex:none}.bt-header .popover{z-index:100}
.bt-dashboard-eyebrow{margin:0 0 .45rem;color:#93c5fd;font-size:.72rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.bt-dashboard-intro{margin:0;color:#cbd5e1;font-size:var(--bt-text-base)}
.bt-dashboard .bt-stat-card{background:linear-gradient(145deg,#102945,#163b63)!important;border-color:rgb(147 197 253/.18)!important}.bt-dashboard .bt-stat-card:nth-child(4n+2){background:linear-gradient(145deg,#102d3b,#164e63)!important}.bt-dashboard .bt-stat-card:nth-child(4n+3){background:linear-gradient(145deg,#242c40,#334155)!important}.bt-dashboard .bt-stat-card:nth-child(4n+4){background:linear-gradient(145deg,#172554,#1e3a8a)!important}.bt-dashboard .bt-stat-card p{color:#cbd5e1!important}.bt-dashboard .bt-stat-card p[class*="font-mono"]{color:white!important;font-size:1.35rem!important}.bt-dashboard .bt-stat-card [class*="rounded-full"]{color:#bfdbfe!important;background:rgb(255 255 255/.09)!important;border:1px solid rgb(191 219 254/.14)}
.tour-backdrop{z-index:1100!important}.tour-step-background{z-index:1101!important}.popover.tour,.popover[class*="tour-"]{z-index:1102!important}.tour-tour-element{position:relative;z-index:1101!important}
.bt-operational-layout .bt-pos-product-toolbar .input-group{display:flex;width:100%;align-items:stretch;min-height:2.75rem}.bt-operational-layout .bt-pos-product-toolbar .input-group-btn{display:flex;width:auto;flex:0 0 auto;align-items:stretch}.bt-operational-layout .bt-pos-product-toolbar .input-group-btn>.btn,.bt-operational-layout .bt-pos-product-toolbar #search_product{height:2.75rem!important}.bt-operational-layout .bt-pos-product-toolbar #search_product{width:1%;min-width:0;flex:1 1 auto;padding:.55rem .8rem;border-radius:0!important}.bt-operational-layout .bt-pos-product-toolbar .btn{display:inline-flex;width:2.75rem;min-width:2.75rem;flex:0 0 2.75rem;align-items:center;justify-content:center;padding:.5rem;border-radius:0!important}.bt-operational-layout .bt-pos-product-toolbar .btn>i{margin:auto}.bt-operational-layout .bt-pos-product-toolbar .input-group-btn:first-child>.btn{border-radius:var(--bt-radius-md) 0 0 var(--bt-radius-md)!important}.bt-operational-layout .bt-pos-product-toolbar .input-group-btn:last-child>.btn:last-child{border-radius:0 var(--bt-radius-md) var(--bt-radius-md) 0!important}
@media(max-width:1250px){.bt-header>div>div{gap:.55rem!important}.bt-package-summary{font-size:.78rem;padding-inline:.55rem}.bt-header .tw-flex-wrap{gap:.4rem!important}}
@media(max-width:991px){.bt-package-summary{min-width:0;max-width:14rem;flex:1 1 8rem;overflow:hidden}.bt-package-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bt-operational-layout .bt-pos-product-toolbar{width:100%}.bt-operational-layout .bt-pos-product-toolbar .input-group{width:100%}}
@media(max-width:575px){.bt-package-summary{max-width:none}.bt-package-summary>span[aria-hidden],.bt-package-remaining{display:none}}
.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-group{display:flex;width:100%;min-width:0;align-items:stretch;min-height:2.75rem}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-icon{display:flex;width:2.75rem;min-width:2.75rem;height:2.75rem;flex:0 0 2.75rem;align-items:center;justify-content:center;padding:.5rem;border-radius:var(--bt-radius-md) 0 0 var(--bt-radius-md)}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-control,.bt-operational-layout .bt-pos-customer-toolbar .select2-container{width:1%!important;min-width:0;max-width:100%;height:2.75rem;flex:1 1 auto}.bt-operational-layout .bt-pos-customer-toolbar .select2-container .select2-selection{height:2.75rem!important;min-height:2.75rem;border-radius:0!important}.bt-operational-layout .bt-pos-customer-toolbar .select2-container .select2-selection__rendered{height:2.75rem;line-height:2.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:2rem}.bt-operational-layout .bt-pos-customer-toolbar .select2-container .select2-selection__arrow{height:2.75rem;top:0}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-actions{display:flex;width:auto;min-width:0;flex:0 0 auto;align-items:stretch}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-actions>.btn{display:inline-flex;width:2.75rem;min-width:2.75rem;height:2.75rem!important;flex:0 0 2.75rem;align-items:center;justify-content:center;padding:.5rem;border-radius:0!important}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-actions>.btn>i{margin:auto}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-actions>.btn:last-child{border-radius:0 var(--bt-radius-md) var(--bt-radius-md) 0!important}
[dir=rtl] .bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-icon{border-radius:0 var(--bt-radius-md) var(--bt-radius-md) 0}[dir=rtl] .bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-actions>.btn:last-child{border-radius:var(--bt-radius-md) 0 0 var(--bt-radius-md)!important}
@media(max-width:991px){.bt-operational-layout .bt-pos-customer-toolbar{width:100%}.bt-operational-layout .bt-pos-customer-toolbar .bt-pos-customer-group{width:100%}}

/* Phase 2: shared treatment for Products, Purchases, Sales, Contacts and Expenses. */
.bt-core-operations .content-header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--bt-space-4);padding-bottom:.75rem!important}
.bt-core-operations .content-header h1{margin:0;color:var(--bt-slate-950)!important;font-size:var(--bt-text-xl)!important;font-weight:750!important;letter-spacing:-.025em}
.bt-core-operations .content-header h1 small,.bt-core-operations .content-header h1>span{display:block;margin:.35rem 0 0;color:var(--bt-slate-500)!important;font-size:var(--bt-text-sm)!important;font-weight:500!important;letter-spacing:0}
.bt-core-operations .bt-filter-card{border:var(--bt-border);border-radius:var(--bt-radius-lg)!important;box-shadow:var(--bt-shadow-sm)!important}
.bt-core-operations .bt-filter-panel{display:block;padding:var(--bt-space-5)!important}
.bt-core-operations .bt-filter-panel::after{display:table;clear:both;content:""}
.bt-core-operations .bt-filter-panel .form-group{margin-bottom:var(--bt-space-4)}
.bt-core-operations .bt-filter-panel label,.bt-core-operations .bt-form-section label{margin-bottom:.4rem;color:var(--bt-slate-700);font-size:var(--bt-text-sm);font-weight:650}
.bt-core-operations .bt-card{padding:0!important;overflow:hidden}
.bt-core-operations .bt-card>.tw-p-2{padding:var(--bt-space-5)!important}
.bt-core-operations .box-header{display:flex;min-height:3.5rem;align-items:center;justify-content:space-between;gap:var(--bt-space-4)}
.bt-core-operations .box-title{color:var(--bt-slate-950);font-size:var(--bt-text-lg);font-weight:750}
.bt-core-operations .box-tools{margin-inline-start:auto}.bt-core-operations .pull-right{float:inline-end}
.bt-core-operations :is(.bt-button,.btn,.tw-dw-btn){display:inline-flex;min-height:2.5rem;align-items:center;justify-content:center;gap:.4rem;border:1px solid transparent!important;border-radius:var(--bt-radius-md)!important;font-weight:650;line-height:1.2;box-shadow:none!important;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
.bt-core-operations :is(.bt-button,.btn,.tw-dw-btn):focus-visible{outline:0;box-shadow:var(--bt-focus)!important}.bt-core-operations :is(.bt-button,.btn,.tw-dw-btn):disabled,.bt-core-operations :is(.bt-button,.btn,.tw-dw-btn).disabled{cursor:not-allowed;opacity:.55;box-shadow:none!important}
.bt-core-operations :is(.bt-button--primary,.btn-primary,.tw-dw-btn-primary){color:#fff!important;background:var(--bt-brand-700)!important;border-color:var(--bt-brand-700)!important}.bt-core-operations :is(.bt-button--primary,.btn-primary,.tw-dw-btn-primary):hover{color:#fff!important;background:#164fc4!important;border-color:#164fc4!important}
.bt-core-operations :is(.bt-button--secondary,.btn-default,.tw-dw-btn-neutral),.bt-core-operations .modal-footer [data-dismiss="modal"]{color:var(--bt-slate-700)!important;background:var(--bt-slate-50)!important;border-color:var(--bt-slate-300)!important}.bt-core-operations :is(.bt-button--secondary,.btn-default,.tw-dw-btn-neutral):hover,.bt-core-operations .modal-footer [data-dismiss="modal"]:hover{color:var(--bt-slate-950)!important;background:var(--bt-slate-100)!important;border-color:var(--bt-slate-500)!important}
.bt-core-operations :is(.bt-button--danger,.btn-danger,.tw-dw-btn-error){color:#fff!important;background:var(--bt-danger)!important;border-color:var(--bt-danger)!important}.bt-core-operations :is(.bt-button--danger,.btn-danger,.tw-dw-btn-error):hover{background:#991b1b!important;border-color:#991b1b!important}
.bt-core-operations :is(.bt-button--success,.btn-success,.tw-dw-btn-success){color:#fff!important;background:var(--bt-success)!important;border-color:var(--bt-success)!important}.bt-core-operations :is(.bt-button--warning,.btn-warning,.tw-dw-btn-warning){color:#78350f!important;background:#fef3c7!important;border-color:#f59e0b!important}.bt-core-operations :is(.bt-button--info,.btn-info,.tw-dw-btn-info,.tw-dw-btn-accent){color:#075985!important;background:#e0f2fe!important;border-color:#7dd3fc!important}
.bt-core-operations .box-tools>a{padding:.55rem 1rem!important}
.bt-core-operations .bt-table-responsive{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bt-core-operations .dataTables_wrapper{min-width:100%}.bt-core-operations table.dataTable{margin-top:.75rem!important;margin-bottom:.75rem!important}
.bt-core-operations .dataTables_wrapper>.row:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin-inline:0}.bt-core-operations .dataTables_wrapper>.row:first-child>[class*="col-"]{width:auto;min-width:0;float:none;padding-inline:0}.bt-core-operations .dataTables_filter{display:flex;min-width:15rem;flex:0 1 18rem;justify-content:flex-end;text-align:end}.bt-core-operations .dataTables_filter label{display:flex;width:100%;align-items:center;justify-content:flex-end;gap:.5rem;margin:0;white-space:nowrap}.bt-core-operations .dataTables_filter input{width:clamp(13.75rem,22vw,17.5rem)!important;min-width:13.75rem;max-width:100%;margin:0!important}.bt-core-operations .dt-buttons{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin:0!important}.bt-core-operations .dt-buttons :is(.btn,.dt-button){min-height:2.25rem;padding:.4rem .65rem!important;color:var(--bt-slate-700)!important;background:#f8fafc!important;border:1px solid var(--bt-slate-300)!important;border-radius:var(--bt-radius-sm)!important;box-shadow:0 1px 2px rgb(15 23 42/.06)!important;font-size:var(--bt-text-xs)!important;font-weight:650;line-height:1.1}.bt-core-operations .dt-buttons :is(.btn,.dt-button):hover{color:var(--bt-brand-700)!important;background:#eff6ff!important;border-color:#93c5fd!important}.bt-core-operations .dt-buttons :is(.btn,.dt-button):active{color:#1d4ed8!important;background:#dbeafe!important;border-color:#60a5fa!important;box-shadow:inset 0 1px 2px rgb(30 64 175/.12)!important}.bt-core-operations .dt-buttons :is(.btn,.dt-button):focus-visible{outline:0;box-shadow:var(--bt-focus)!important}.bt-core-operations .dt-buttons :is(.btn,.dt-button):disabled,.bt-core-operations .dt-buttons :is(.btn,.dt-button).disabled{cursor:not-allowed;opacity:.5;box-shadow:none!important}.bt-core-operations .dt-buttons :is(.btn,.dt-button)>i{margin-inline-end:.25rem}
.bt-core-operations table.dataTable tbody td{padding:.75rem;color:var(--bt-slate-700);vertical-align:middle;border-color:var(--bt-slate-200)}
.bt-core-operations table.dataTable tbody :is(.btn,.tw-dw-btn){min-width:2.25rem;min-height:2.25rem;padding:.35rem .55rem!important;color:var(--bt-slate-700);background:#fff;border-color:var(--bt-slate-300)!important;border-radius:var(--bt-radius-sm)!important;font-size:var(--bt-text-xs)}.bt-core-operations table.dataTable tbody :is(.btn,.tw-dw-btn):hover{color:var(--bt-brand-700);background:#eff6ff;border-color:#93c5fd!important}.bt-core-operations table.dataTable tbody .dropdown-toggle{gap:.3rem;white-space:nowrap}.bt-core-operations table.dataTable tbody :is(.btn-danger,.tw-dw-btn-error){color:var(--bt-danger)!important;background:#fff!important;border-color:#fecaca!important}.bt-core-operations table.dataTable tbody :is(.btn-danger,.tw-dw-btn-error):hover{color:#fff!important;background:var(--bt-danger)!important;border-color:var(--bt-danger)!important}
.bt-core-operations table.dataTable tbody tr:hover{background:#f8fbff}.bt-core-operations table.dataTable .dataTables_empty{padding:3rem 1rem!important;color:var(--bt-slate-500);text-align:center;background:var(--bt-slate-50)}
.bt-core-operations .label-success{color:#166534;background:#dcfce7}.bt-core-operations .label-warning{color:#92400e;background:#fef3c7}.bt-core-operations .label-danger,.bt-core-operations .label-important{color:#991b1b;background:#fee2e2}.bt-core-operations .label-info,.bt-core-operations .label-primary{color:#075985;background:#e0f2fe}
.bt-core-operations .label{display:inline-flex;align-items:center;padding:.3rem .65rem;border-radius:999px;font-size:var(--bt-text-xs);font-weight:700}
.bt-core-operations .has-error .form-control,.bt-core-operations .form-control.error{border-color:var(--bt-danger)!important}.bt-core-operations .help-block,.bt-core-operations label.error{color:var(--bt-danger);font-size:var(--bt-text-xs)}
.bt-core-operations .modal-content{border:0;border-radius:var(--bt-radius-lg);box-shadow:var(--bt-shadow-lg)}.bt-core-operations .modal-header,.bt-core-operations .modal-footer{border-color:var(--bt-slate-200)}.bt-core-operations .modal-footer{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.5rem}.bt-core-operations .modal-footer :is(.btn,.tw-dw-btn){margin:0!important;padding:.55rem 1rem!important}
.bt-core-operations .bt-bulk-actions{display:flex;width:100%;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem;padding:.65rem 0}.bt-core-operations .bt-bulk-actions form{display:inline-flex;flex:0 1 auto;margin:0}.bt-core-operations .bt-bulk-actions :is(.btn,.tw-dw-btn,input[type="submit"]){width:auto;min-width:0;max-width:100%;min-height:2.35rem;margin:0!important;padding:.45rem .75rem!important;white-space:normal}.bt-core-operations .bt-bulk-actions>.tooltip{flex:0 0 auto}
[dir=rtl] .bt-core-operations .box-tools{margin-right:auto;margin-left:0}[dir=rtl] .bt-core-operations .pull-right{float:left!important}[dir=rtl] .bt-core-operations .modal-footer{justify-content:flex-start}[dir=rtl] .bt-core-operations .bt-bulk-actions{justify-content:flex-start}[dir=rtl] .bt-core-operations .dataTables_filter{justify-content:flex-start;text-align:start}[dir=rtl] .bt-core-operations .dataTables_filter label{justify-content:flex-start}
@media(max-width:991px){.bt-core-operations .content-header,.bt-core-operations .content{padding-inline:1rem!important}.bt-core-operations .dataTables_length{float:none!important;text-align:start!important}.bt-core-operations .dataTables_wrapper>.row:first-child>[class*="col-"]{flex:1 1 12rem}.bt-core-operations .dataTables_filter{min-width:15rem;flex:0 1 18rem}.bt-core-operations .dt-buttons{justify-content:flex-start}}
@media(max-width:575px){.bt-core-operations .content-header{flex-direction:column}.bt-core-operations .content-header h1{font-size:1.4rem!important}.bt-core-operations .bt-filter-panel,.bt-core-operations .bt-card>.tw-p-2{padding:var(--bt-space-4)!important}.bt-core-operations .box-header{align-items:flex-start;flex-direction:column}.bt-core-operations .box-tools{width:auto;margin-inline-start:0}.bt-core-operations .box-tools>a{width:auto;margin:0}.bt-core-operations .dataTables_wrapper>.row:first-child>[class*="col-"]{flex-basis:100%}.bt-core-operations .dt-buttons{width:100%}.bt-core-operations .dataTables_filter{width:100%;min-width:0;max-width:none;flex:1 1 100%;justify-content:flex-start}.bt-core-operations .dataTables_filter label{justify-content:flex-start;white-space:normal}.bt-core-operations .dataTables_filter input{width:100%!important;min-width:0;max-width:100%;flex:1 1 auto}.bt-core-operations .dataTables_paginate{white-space:normal!important}.bt-core-operations .bt-bulk-actions>*{flex:0 1 auto}.bt-core-operations .bt-bulk-actions :is(.btn,.tw-dw-btn,input[type="submit"]){width:auto}}

/* Product list structure: only the DataTables scroll body owns horizontal overflow. */
.bt-core-operations .bt-product-page-actions{display:flex!important;width:fit-content;max-width:100%;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.625rem;margin:0 0 1rem;margin-inline-start:auto!important;padding:.25rem 0}
.bt-core-operations .bt-product-page-actions .bt-button{width:auto;max-width:100%;min-height:2.5rem;margin:0!important;padding:.5rem .875rem!important;white-space:normal}
.bt-core-operations .bt-product-table-region{width:100%;min-width:0;max-width:100%;overflow:visible}
.bt-core-operations .bt-product-table-region .dataTables_wrapper{width:100%;min-width:0;max-width:100%;overflow:visible}
.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:.625rem;margin:0 0 1.25rem}.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>.col-sm-1{flex:0 0 auto}.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>.col-sm-8{flex:1 1 25rem}.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>.col-sm-3{flex:0 1 20rem;margin-inline-start:auto}
.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>[class*="col-"]{width:auto;min-width:0;max-width:none;float:none;padding:0}
.bt-core-operations .bt-product-table-region .dataTables_length{justify-self:start;margin:0;text-align:start}
.bt-core-operations .bt-product-table-region .dataTables_length label{display:flex;align-items:center;gap:.4rem;margin:0;white-space:nowrap}
.bt-core-operations .bt-product-table-region .dt-buttons{display:flex;width:100%;min-width:0;align-items:center;justify-content:center;flex-wrap:wrap;gap:.5rem;margin:0!important}
.bt-core-operations .bt-product-table-region .dataTables_filter{width:100%;min-width:15rem;max-width:20rem;justify-self:end;margin:0}
.bt-core-operations .bt-product-table-region .dataTables_filter label{display:flex;width:100%;align-items:center;margin:0}
.bt-core-operations .bt-product-table-region .dataTables_filter input{width:100%!important;min-width:15rem;max-width:20rem;min-height:2.5rem;margin:0!important}
.bt-core-operations .bt-product-table-region .dataTables_scroll{width:100%;max-width:100%;overflow:visible}
.bt-core-operations .bt-product-table-region .dataTables_scrollHead,.bt-core-operations .bt-product-table-region .dataTables_scrollBody,.bt-core-operations .bt-product-table-region .dataTables_scrollFoot{max-width:100%}
.bt-core-operations .bt-product-table-region .dataTables_scrollBody{overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
.bt-core-operations .bt-product-table-region .dataTables_scroll table.dataTable{margin:0!important}
.bt-core-operations .bt-product-table-region .dataTables_info{max-width:100%;padding-top:.85rem;white-space:normal}
.bt-core-operations .bt-product-table-region .dataTables_paginate{max-width:100%;padding-top:.65rem;white-space:normal}
.bt-core-operations .bt-product-table-region .pagination{display:flex;max-width:100%;justify-content:flex-end;flex-wrap:wrap;gap:.2rem;margin:.25rem 0 0}
.bt-core-operations .bt-product-bulk-actions{width:100%;max-width:100%;margin-top:.75rem;padding:.75rem 0 0;border-top:var(--bt-border);overflow:visible}
.bt-core-operations .bt-product-bulk-actions>*{flex:0 1 auto;max-width:100%}
.bt-core-operations .bt-product-bulk-actions :is(.btn,.tw-dw-btn,input[type="submit"]){width:auto;max-width:100%;overflow-wrap:anywhere}
[dir=rtl] .bt-core-operations .bt-product-table-region .dataTables_filter{justify-self:start}
[dir=rtl] .bt-core-operations .bt-product-table-region .pagination{justify-content:flex-start}
@media(max-width:900px) and (min-width:576px){.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>.col-sm-8{flex:1 1 calc(100% - 10rem)}.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>.col-sm-3{flex:0 1 20rem;margin-inline-start:auto}.bt-core-operations .bt-product-table-region .dataTables_filter{justify-self:auto}}
@media(max-width:575px){.bt-core-operations .bt-product-page-actions{width:100%;justify-content:flex-start;margin-top:.25rem;margin-inline-start:0!important}.bt-core-operations .bt-product-page-actions .bt-button{flex:0 1 auto}.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child{display:grid;grid-template-columns:minmax(0,1fr);gap:.625rem;margin-bottom:1rem}.bt-core-operations .bt-product-table-region .dataTables_wrapper>.row:first-child>[class*="col-"]{width:100%;max-width:100%}.bt-core-operations .bt-product-table-region .dt-buttons{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem}.bt-core-operations .bt-product-table-region .dt-buttons>:is(button,a,input){width:max-content!important;max-width:100%}.bt-core-operations .bt-product-table-region .dataTables_filter{grid-column:auto;width:100%;min-width:0;max-width:100%;justify-self:stretch}.bt-core-operations .bt-product-table-region .dataTables_filter input{width:100%!important;min-width:0;max-width:100%}.bt-core-operations .bt-product-table-region .dataTables_info{float:none!important;width:100%;text-align:center}.bt-core-operations .bt-product-table-region .dataTables_paginate{float:none!important;width:100%;overflow-x:auto;text-align:center}.bt-core-operations .bt-product-table-region .pagination{justify-content:center;min-width:max-content}.bt-core-operations .bt-product-bulk-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:.5rem}.bt-core-operations .bt-product-bulk-actions>*{width:auto;min-width:0}.bt-core-operations .bt-product-bulk-actions form{display:inline-flex;width:auto}.bt-core-operations .bt-product-bulk-actions :is(.btn,.tw-dw-btn,input[type="submit"]){width:max-content;max-width:100%;min-width:0}}
/* Stock report adopts the approved Product DataTable structure without changing its hooks. */
.bt-core-operations .bt-stock-report-table-region .dataTables_scrollHeadInner,.bt-core-operations .bt-stock-report-table-region .dataTables_scrollFootInner{max-width:none}
.bt-core-operations .bt-stock-report-table-region table.dataTable thead th{height:auto!important;min-height:0!important;padding:.55rem .65rem!important;line-height:1.25;vertical-align:middle;white-space:normal}
.bt-core-operations .bt-stock-report-table-region table.dataTable tfoot td{height:auto!important;min-height:0!important;padding:.55rem .65rem!important;line-height:1.25;vertical-align:middle}
.bt-core-operations .bt-stock-report-table-region .footer-total{height:auto!important;min-height:0!important}

/* Globally reusable role-based controls; page layout remains scoped separately. */
.dt-buttons .bt-datatable-utility{box-sizing:border-box!important;display:inline-flex!important;width:max-content!important;max-width:100%;height:auto!important;min-width:0!important;min-height:2rem!important;align-items:center;justify-content:center;gap:.3rem;margin:0!important;padding:.2rem .5rem!important;color:var(--bt-slate-700)!important;font-size:var(--bt-text-xs)!important;font-weight:650;line-height:1.2;text-decoration:none!important;text-shadow:none!important;white-space:normal;background:var(--bt-slate-50)!important;background-image:none!important;border:1px solid var(--bt-slate-300)!important;border-radius:var(--bt-radius-sm)!important;box-shadow:var(--bt-shadow-sm)!important;cursor:pointer!important;appearance:none!important}
.dt-buttons .bt-datatable-utility:hover{color:var(--bt-brand-700)!important;background:#eff6ff!important;border-color:#93c5fd!important}.dt-buttons .bt-datatable-utility:active{color:#1d4ed8!important;background:#dbeafe!important;border-color:#60a5fa!important;box-shadow:inset 0 1px 2px rgb(30 64 175/.12)!important}.dt-buttons .bt-datatable-utility:focus-visible{outline:0!important;box-shadow:var(--bt-focus)!important}.dt-buttons .bt-datatable-utility:is(:disabled,[disabled],.disabled){cursor:not-allowed!important;opacity:.5!important;box-shadow:none!important}
.bt-table-action{box-sizing:border-box!important;display:inline-flex!important;width:max-content!important;max-width:100%;height:auto!important;min-width:0!important;min-height:2rem!important;align-items:center;justify-content:center;gap:.3rem;margin:0!important;padding:.2rem .5rem!important;white-space:nowrap;color:var(--bt-slate-700)!important;background:var(--bt-slate-50)!important;border:1px solid var(--bt-slate-300)!important;border-radius:var(--bt-radius-sm)!important;font-size:var(--bt-text-xs)!important;font-weight:650;line-height:1.2;text-decoration:none!important;box-shadow:var(--bt-shadow-sm)!important}
.bt-table-action:hover{color:var(--bt-brand-700)!important;background:#eff6ff!important;border-color:#93c5fd!important}.bt-table-action:focus-visible{outline:0!important;box-shadow:var(--bt-focus)!important}
.bt-bulk-action{box-sizing:border-box!important;width:max-content!important;max-width:100%;height:auto!important;min-height:2rem!important;margin:0!important;padding:.2rem .5rem!important;border-radius:var(--bt-radius-md)!important;font-size:var(--bt-text-xs)!important;font-weight:650;line-height:1.2}.bt-bulk-action:focus-visible{outline:0!important;box-shadow:var(--bt-focus)!important}
.dataTables_length select,.dataTables_filter input{box-sizing:border-box!important;height:2.5rem!important;min-height:2.5rem!important;padding-block:0!important}
@media(max-width:575px){.dt-buttons .bt-datatable-utility,.bt-table-action,.bt-bulk-action{width:max-content!important;max-width:100%;height:auto!important;min-height:2.25rem!important;padding:.2rem .5rem!important}.dataTables_length select,.dataTables_filter input{height:2.75rem!important;min-height:2.75rem!important}}
