/* assets/css/app.css */
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17212b;background:var(--bts-bg)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}img{max-width:100%}[hidden]{display:none!important}.bts-skip{position:fixed;left:12px;top:-60px;z-index:10000;background:#fff;color:#000;padding:10px}.bts-skip:focus{top:12px}.bts-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);grid-template-areas:"top top" "side main"}.bts-topbar{grid-area:top;position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:16px;padding:10px 20px;color:var(--bts-sidebar-text);background:var(--bts-sidebar);box-shadow:0 2px 12px #0002}.bts-brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-weight:800;min-width:0}.bts-brand img{display:block;width:auto;height:auto;max-width:220px;max-height:52px;transform:scale(var(--bts-app-logo-scale));transform-origin:left center}.bts-brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--bts-primary);font-size:14px}.bts-topbar-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.bts-icon-button{width:46px;height:46px;border:0;border-radius:10px;background:#fff1;color:inherit;font-size:24px}.bts-sidebar{grid-area:side;position:sticky;top:72px;height:calc(100vh - 72px);overflow:auto;background:var(--bts-sidebar);color:var(--bts-sidebar-text);padding:14px}.bts-nav-link{display:flex;min-height:48px;align-items:center;padding:10px 14px;margin:4px 0;border-radius:10px;color:inherit;text-decoration:none;font-weight:650}.bts-nav-link:hover,.bts-nav-link:focus{background:#fff1;outline:none}.bts-main{grid-area:main;position:relative;min-width:0;width:100%;max-width:1600px;margin:0 auto;padding:24px}.bts-route-loading{position:fixed;inset:72px 0 0 260px;z-index:80;display:flex;gap:10px;align-items:center;justify-content:center;background:#f4f6f9d9;backdrop-filter:blur(3px)}.bts-spinner{width:30px;height:30px;border:3px solid #b7c0cb;border-top-color:var(--bts-primary);border-radius:50%;animation:bts-spin .8s linear infinite}@keyframes bts-spin{to{transform:rotate(360deg)}}.bts-notices{position:fixed;top:84px;right:20px;z-index:100;display:grid;gap:8px;max-width:min(420px,calc(100vw - 32px))}.bts-notice{padding:14px 18px;border-radius:10px;color:#fff;box-shadow:0 8px 30px #0003}.bts-notice-success{background:var(--bts-success)}.bts-notice-error{background:var(--bts-danger)}.bts-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}.bts-page-header h1{font-size:clamp(24px,3vw,36px);margin:0 0 6px}.bts-page-header p{margin:0;color:#5c6875}.bts-card{background:var(--bts-card);border:1px solid #dfe5ec;border-radius:16px;padding:20px;box-shadow:0 4px 18px #15273b0d}.bts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.bts-dashboard-card{display:flex;min-height:140px;flex-direction:column;justify-content:space-between;color:inherit;text-decoration:none}.bts-dashboard-card strong{font-size:20px}.bts-stat{font-size:32px;font-weight:800;color:var(--bts-primary)}.bts-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid transparent;border-radius:10px;background:var(--bts-primary);color:#fff;text-decoration:none;font-weight:700}.bts-button:hover{filter:brightness(.93)}.bts-button:disabled{opacity:.55;cursor:not-allowed}.bts-button-ghost{background:transparent;border-color:#ffffff55;color:inherit}.bts-button-danger{background:var(--bts-danger)}.bts-button-cart{background:var(--bts-cart)}.bts-field{display:grid;gap:7px;margin-bottom:14px}.bts-field>span,.bts-field>label{font-weight:700}.bts-field input,.bts-field select,.bts-field textarea,.bts-toolbar input,.bts-toolbar select{width:100%;min-height:46px;border:1px solid #bcc7d3;border-radius:10px;padding:9px 12px;background:#fff;color:#17212b}.bts-field input:focus,.bts-field select:focus,.bts-toolbar input:focus,.bts-toolbar select:focus{outline:3px solid color-mix(in srgb,var(--bts-primary) 25%,transparent);border-color:var(--bts-primary)}.bts-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.bts-toolbar>*{flex:1;min-width:180px}.bts-toolbar .bts-button{flex:0 0 auto;min-width:120px}.bts-table-wrap{overflow:auto;border-radius:14px;border:1px solid #dfe5ec;background:var(--bts-card)}.bts-table{width:100%;border-collapse:collapse;min-width:720px}.bts-table th,.bts-table td{padding:13px 14px;border-bottom:1px solid #e5e9ef;text-align:left;vertical-align:middle}.bts-table th{position:sticky;top:0;background:#edf1f5;z-index:1;font-size:13px}.bts-table tr:last-child td{border-bottom:0}.bts-pagination{display:flex;gap:8px;align-items:center;justify-content:center;margin-top:18px;flex-wrap:wrap}.bts-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:14px}.bts-product-card{display:flex;flex-direction:column;min-height:420px}.bts-product-image{height:190px;display:grid;place-items:center;background:#f7f8fa;border-radius:12px;overflow:hidden;margin-bottom:12px}.bts-product-image img{width:100%;height:100%;object-fit:contain}.bts-product-card h3{font-size:16px;line-height:1.3;margin:0 0 8px}.bts-product-meta{display:grid;gap:4px;color:#5c6875;font-size:13px;margin-bottom:12px}.bts-product-actions{margin-top:auto;display:grid;gap:8px}.bts-qty-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.bts-cart-backdrop{position:fixed;inset:0;z-index:170;border:0;background:rgba(15,23,42,.18);-webkit-appearance:none;appearance:none}.bts-cart-drawer{position:fixed;inset:72px 0 0 auto;z-index:171;width:min(520px,100vw);padding:18px;overflow:auto;background:var(--bts-card);box-shadow:-10px 0 40px #0003;transform:translateX(105%);transition:transform .25s ease}.bts-cart-drawer.is-open{transform:none}.bts-cart-head{position:sticky;top:-18px;z-index:2;margin:-18px -18px 8px;padding:18px;background:var(--bts-card);border-bottom:1px solid #e2e8f0}.bts-cart-open{overflow:hidden}.bts-cart-toggle{position:fixed;right:24px;bottom:24px;z-index:75;min-width:64px;height:64px;border:0;border-radius:50%;background:var(--bts-cart);color:#fff;font-weight:800;box-shadow:0 8px 25px #0003}.bts-cart-list{display:grid;gap:10px;margin:16px 0}.bts-cart-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;background:#f4f6f9;border-radius:10px}.bts-cart-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bts-cart-total{font-size:22px;font-weight:800;text-align:right}.bts-empty{text-align:center;padding:clamp(40px,8vw,100px) 20px}.bts-empty h1{font-size:32px}.bts-login-screen{min-height:calc(100vh - 120px);display:grid;place-items:center;background:var(--bts-login-bg);border-radius:18px;padding:20px}.bts-login-card{width:min(460px,100%);background:var(--bts-login-card);border-radius:18px;padding:clamp(22px,5vw,42px);box-shadow:0 14px 45px #13263d1f}.bts-login-logo{display:flex;justify-content:center;margin:0 auto 24px}.bts-login-logo img{max-width:260px;max-height:96px;transform:scale(var(--bts-login-logo-scale))}.bts-login-card h1{text-align:center;margin:0 0 22px}.bts-login-error{min-height:24px;color:var(--bts-danger);font-weight:650}.bts-skeleton-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.bts-skeleton{height:160px;border-radius:14px;background:linear-gradient(90deg,#e6ebf0 25%,#f5f7f9 50%,#e6ebf0 75%);background-size:200% 100%;animation:bts-shimmer 1.2s infinite}@keyframes bts-shimmer{to{background-position:-200% 0}}.bts-badge{display:inline-flex;padding:4px 8px;border-radius:999px;background:#e5edf6;color:#29435f;font-size:12px;font-weight:750}.bts-modal{position:fixed;inset:0;z-index:190;display:grid;place-items:center;padding:20px;background:#101820aa}.bts-modal-card{width:min(900px,100%);max-height:90vh;overflow:auto;background:var(--bts-card);border-radius:16px;padding:20px}.bts-modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.bts-muted{color:#677482}.bts-layout-header .bts-shell{grid-template-columns:1fr;grid-template-rows:72px auto minmax(0,1fr);grid-template-areas:"top" "side" "main"}.bts-layout-header .bts-sidebar{position:sticky;top:72px;height:auto;overflow:auto;padding:8px 20px}.bts-layout-header #bts-nav{display:flex;gap:6px}.bts-layout-header .bts-nav-link{white-space:nowrap}.bts-layout-header .bts-route-loading{left:0;top:128px}.bts-layout-header .bts-icon-button{display:none}@media(max-width:900px){.bts-shell,.bts-layout-header .bts-shell{grid-template-columns:1fr;grid-template-rows:64px minmax(0,1fr);grid-template-areas:"top" "main"}.bts-topbar{height:64px;padding:8px 12px}.bts-sidebar,.bts-layout-header .bts-sidebar{position:fixed;top:64px;bottom:0;left:0;width:min(300px,86vw);height:auto;z-index:60;transform:translateX(-105%);transition:transform .22s ease;box-shadow:12px 0 30px #0004}.bts-nav-open .bts-sidebar{transform:none}.bts-layout-header .bts-icon-button{display:block}.bts-main{padding:18px 14px}.bts-route-loading,.bts-layout-header .bts-route-loading{inset:64px 0 0 0}.bts-brand img{max-width:150px;max-height:44px}.bts-topbar-actions #bts-user-name{display:none}.bts-table{min-width:0}.bts-table thead{display:none}.bts-table,.bts-table tbody,.bts-table tr,.bts-table td{display:block;width:100%}.bts-table tr{padding:10px;border-bottom:1px solid #dfe5ec}.bts-table td{display:grid;grid-template-columns:minmax(100px,38%) minmax(0,1fr);border:0;padding:7px 8px;text-align:right}.bts-table td::before{content:attr(data-label);font-weight:750;text-align:left}.bts-cart-drawer{inset:64px 0 0 auto}.bts-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.bts-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bts-page-header{display:block}.bts-toolbar{display:grid}.bts-toolbar>*{min-width:0}.bts-cart-summary{grid-template-columns:1fr}.bts-login-screen{padding:8px}.bts-main{padding:12px}.bts-card{padding:14px}}
/* assets/css/layout.css */
.bts-topbar{color:var(--bts-header-text);background:var(--bts-header)}
.bts-nav-link.is-active{background:var(--bts-nav-active);color:#fff;box-shadow:0 5px 16px #0002}
.bts-layout-header .bts-sidebar{background:var(--bts-header-nav);color:var(--bts-header-nav-text);border-top:1px solid #ffffff20}
.bts-layout-header .bts-nav-link.is-active{background:var(--bts-nav-active)}
@media(max-width:900px){
  .bts-layout-header .bts-sidebar{background:var(--bts-sidebar);color:var(--bts-sidebar-text)}
  .bts-layout-header #bts-nav{display:block}
}
/* assets/css/modules/apple.css */
.bts-app{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;text-size-adjust:100%;font-size:clamp(14px,calc(8px + .45vw),16px)}.bts-shell{min-height:100vh;min-height:100dvh}.bts-sidebar,.bts-cart-drawer,.bts-modal-card{-webkit-overflow-scrolling:touch}.bts-button,.bts-icon-button,.bts-cart-toggle,.bts-nav-link,button{-webkit-tap-highlight-color:transparent}.bts-main{padding-bottom:max(24px,env(safe-area-inset-bottom))}@supports(padding:max(0px)){.bts-topbar{padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}.bts-sidebar{padding-left:max(14px,env(safe-area-inset-left))}}@media(max-width:900px){.bts-field input,.bts-field select,.bts-field textarea,.bts-toolbar input,.bts-toolbar select{font-size:16px}.bts-button,.bts-icon-button,.bts-nav-link{min-height:44px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
/* assets/css/modules/custom-card.css */
.bts-custom-card-content{min-width:0;overflow-wrap:anywhere}.bts-custom-card-content>*:first-child{margin-top:0}.bts-custom-card-content>*:last-child{margin-bottom:0}.bts-custom-card-content img{height:auto}.bts-custom-card-content table{max-width:100%}.bts-custom-card-content iframe{width:100%;max-width:100%;border:0}.bts-custom-card-content input,.bts-custom-card-content select,.bts-custom-card-content textarea,.bts-custom-card-content button{max-width:100%}@media(max-width:900px){.bts-custom-card-content input,.bts-custom-card-content select,.bts-custom-card-content textarea{font-size:16px}}
/* assets/css/modules/customer-select.css */
.bts-select-card{cursor:pointer}.bts-select-card:hover{border-color:var(--bts-primary)}
/* assets/css/modules/customer-status.css */
.bts-balance-positive{color:var(--bts-danger);font-weight:750}.bts-balance-negative{color:var(--bts-primary);font-weight:750}.bts-statement-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.bts-statement-head h2,.bts-statement-head p{margin:0 0 5px}.bts-statement-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.bts-statement-actions .bts-cart-total{margin-right:8px}.bts-statement-table{min-width:1180px}.bts-statement-table tfoot{background:#eef2f6;font-weight:800}.bts-statement-docs{display:flex;gap:5px}.bts-button-compact{min-height:36px;padding:6px 9px;font-size:12px}.bts-statement-detail{width:min(1050px,100%)}.bts-modal pre{overflow:auto;padding:12px;background:#f1f4f7;border-radius:10px;white-space:pre-wrap}@media(max-width:900px){.bts-statement-head{align-items:stretch;flex-direction:column}.bts-statement-actions{justify-content:flex-start}.bts-statement-table{min-width:0}.bts-statement-docs{justify-content:flex-end}}
/* assets/css/modules/customers.css */
.bts-customer-name{font-weight:750;color:var(--bts-primary)}
.bts-statement-index-status{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 18px;padding:12px 16px}.bts-statement-index-status span{color:#677482;text-align:right}.bts-statement-index-status strong{color:#24364a}@media(max-width:700px){.bts-statement-index-status{align-items:flex-start;flex-direction:column}.bts-statement-index-status span{text-align:left}}
.bts-customer-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.bts-customer-actions .bts-select-customer{min-height:36px;padding:6px 12px}.bts-badge-warning{background:#fff1d6;color:#7a4b00}@media(max-width:900px){.bts-customer-actions{justify-content:flex-end}}
/* assets/css/modules/dashboard.css */
.bts-dashboard-panel{width:min(1180px,100%);margin:0 auto;padding:clamp(18px,3vw,42px);border:1px solid #e6eaf0;border-radius:28px;background:#f9fafb;box-shadow:0 24px 70px rgba(15,23,42,.07)}.bts-dashboard-hero{display:flex;flex-direction:column;align-items:center;
/*padding:clamp(12px,2vw,26px) 12px clamp(24px,4vw,44px);*/

text-align:center;border-bottom:1px solid #e3e7ed}.bts-sales-logo{display:block;width:auto;height:auto;max-width:min(280px,72vw);max-height:90px;margin:0 auto 1px;object-fit:scale-down;transform:scale(var(--bts-sales-logo-scale));transform-origin:center}.bts-dashboard-brand{margin-bottom:24px;font-size:clamp(24px,4vw,42px);font-weight:900;letter-spacing:.08em;color:var(--bts-primary)}.bts-dashboard-eyebrow{margin-bottom:8px;color:#697586;font-size:clamp(12px,1.2vw,14px);font-weight:700;text-transform:uppercase;letter-spacing:.08em}.bts-dashboard-hero h1{margin:0;color:#152438;font-size:clamp(26px,3vw,40px);letter-spacing:-.03em}.bts-dashboard-hero p{margin:9px 0 0;color:#697586;font-size:clamp(14px,1.2vw,17px)}.bts-dashboard-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.4vw,18px);padding:clamp(24px,4vw,25px) 0}.bts-dashboard-card{display:flex;min-width:0;min-height:158px;flex-direction:column;align-items:center;justify-content:center;gap:13px;padding:22px 16px;border:1px solid #dfe4ea;border-radius:17px;background:#fff;color:#1f2937;text-align:center;text-decoration:none;box-shadow:0 5px 18px rgba(15,23,42,.04);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.bts-dashboard-card:hover,.bts-dashboard-card:focus-visible{transform:translateY(-4px);border-color:var(--bts-primary);box-shadow:0 16px 34px rgba(15,23,42,.1);outline:none}.bts-dashboard-card-icon{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:#f1f5f9;color:var(--bts-primary)}.bts-dashboard-card-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bts-dashboard-card strong{font-size:clamp(14px,1.1vw,17px)}.bts-dashboard-card>span:last-child{color:#7b8794;font-size:13px}.bts-dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:24px;border-top:1px solid #e3e7ed}.bts-dashboard-stat{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:13px;background:#fff}.bts-dashboard-stat span{color:#697586;font-size:13px}.bts-dashboard-stat strong{color:#152438;font-size:clamp(17px,1.7vw,24px);white-space:nowrap}@media(max-width:850px){.bts-dashboard-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.bts-dashboard-summary{grid-template-columns:1fr}}@media(max-width:520px){.bts-dashboard-panel{padding:14px;border-radius:20px}.bts-dashboard-actions{gap:9px;padding:9px 0}.bts-dashboard-card{min-height:130px;padding:15px 8px}.bts-dashboard-card-icon{width:42px;height:42px}.bts-dashboard-card>span:last-child{display:none}}
/* assets/css/modules/login.css */
.bts-login-card .bts-button{width:100%}.bts-route-login .bts-topbar,.bts-route-login .bts-sidebar{display:none}.bts-route-login .bts-shell{display:block}.bts-route-login .bts-main{max-width:none;padding:0}.bts-route-login .bts-login-screen{min-height:100vh;border-radius:0}.bts-check{display:flex;align-items:center;gap:9px;margin:12px 0 18px}.bts-check input{width:20px;height:20px}.bts-password-control{position:relative;display:block}.bts-password-control>input{width:100%;padding-right:52px}.bts-password-toggle{position:absolute;top:50%;right:5px;display:grid;width:40px;height:40px;place-items:center;padding:0;transform:translateY(-50%);border:0;border-radius:9px;background:transparent;color:#536273;cursor:pointer}.bts-password-toggle:hover,.bts-password-toggle:focus-visible{background:#edf2f7;color:var(--bts-primary)}.bts-password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.bts-password-toggle[aria-pressed="true"]{color:var(--bts-primary)}
/* assets/css/modules/management.css */
.bts-health-list{display:grid;gap:8px;padding:0;list-style:none}
.bts-global-discount{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.bts-global-discount h2{margin:0 0 6px}.bts-global-discount p{max-width:760px;margin:0}.bts-management-action{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.bts-management-action input,.bts-management-action select{min-width:150px;min-height:42px;padding:8px 10px;border:1px solid #bcc7d3;border-radius:10px;background:#fff;color:#17212b}.bts-global-discount .bts-management-action input{width:180px}.bts-user-management-table{min-width:980px}.bts-user-management-table th:nth-child(1){width:16%}.bts-user-management-table th:nth-child(2){width:22%}.bts-user-management-table th:nth-child(3){width:27%}.bts-user-management-table th:nth-child(4){width:35%}.bts-user-management-table small{display:block;margin-top:5px;color:#677482}.bts-button-ghost-dark{border-color:#b8c3cf;background:#fff;color:#24364a;box-shadow:none}.bts-manager-form{max-width:900px}.bts-management-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.bts-manager-form>p{margin:5px 0 18px}
@media(max-width:900px){.bts-global-discount{align-items:stretch;flex-direction:column}.bts-user-management-table{min-width:0}.bts-user-management-table td .bts-management-action{justify-content:flex-end}.bts-management-grid{grid-template-columns:1fr}}
@media(max-width:600px){.bts-management-action{display:grid;grid-template-columns:minmax(0,1fr) auto}.bts-management-action input,.bts-management-action select{min-width:0;width:100%}.bts-management-action [data-save-password]{grid-column:1/-1}.bts-user-management-table td .bts-management-action{justify-content:stretch}.bts-global-discount .bts-management-action input{width:100%}}
.bts-region-toolbar{align-items:end}.bts-region-toolbar .bts-field{margin:0}.bts-region-toolbar input{min-width:min(320px,100%)}.bts-region-table{min-width:1050px}.bts-region-table.is-customers{min-width:760px}.bts-region-table th:nth-child(1){width:22%}.bts-region-table th:nth-child(2){width:20%}.bts-region-table th:nth-child(3){width:26%}.bts-region-table th:nth-child(4){width:20%}.bts-region-table th:nth-child(5){width:12%}.bts-region-table.is-customers th:nth-child(1){width:31%}.bts-region-table.is-customers th:nth-child(2){width:31%}.bts-region-table.is-customers th:nth-child(3){width:25%}.bts-region-table.is-customers th:nth-child(4){width:13%}.bts-region-table small{display:block;margin-top:4px;color:#677482}.bts-region-input{width:100%;min-height:42px;padding:8px 10px;border:1px solid #bcc7d3;border-radius:10px;background:#fff;color:#17212b}.bts-customer-created{display:grid;gap:4px;margin-top:16px;padding:14px;border:1px solid #9fd4b5;border-radius:12px;background:#effaf3}.bts-customer-created code{user-select:all}@media(max-width:900px){.bts-region-table,.bts-region-table.is-customers{min-width:0}.bts-region-input{font-size:16px}}@media(max-width:600px){.bts-region-toolbar{align-items:stretch}.bts-region-toolbar .bts-button{width:100%}}
.bts-region-bulk-actions{position:sticky;z-index:4;bottom:max(10px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;padding:12px 16px;box-shadow:0 10px 30px rgba(15,23,42,.12)}.bts-region-bulk-actions[hidden]{display:none}@media(max-width:600px){.bts-region-bulk-actions{align-items:stretch;flex-direction:column}.bts-region-bulk-actions .bts-button{width:100%}}
/* assets/css/modules/modern.css */
.bts-main{background-image:radial-gradient(circle at 90% 0,rgba(23,105,170,.055),transparent 34rem)}.bts-card{border-color:#e5eaf0;border-radius:18px;box-shadow:0 7px 24px rgba(15,23,42,.045)}.bts-page-header{padding:4px 2px}.bts-page-header h1{color:#142338;letter-spacing:-.035em}.bts-toolbar{padding:12px;border:1px solid #e5eaf0;border-radius:16px;background:rgba(255,255,255,.86);box-shadow:0 5px 18px rgba(15,23,42,.035);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.bts-field input,.bts-field select,.bts-field textarea,.bts-toolbar input,.bts-toolbar select{border-color:#cfd8e3;border-radius:12px;box-shadow:inset 0 1px 2px rgba(15,23,42,.025)}.bts-button{border-radius:12px;box-shadow:0 4px 12px rgba(15,23,42,.08);transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}.bts-button:hover{transform:translateY(-1px);box-shadow:0 7px 17px rgba(15,23,42,.12)}.bts-button:active{transform:translateY(0)}.bts-table-wrap{border-color:#e5eaf0;border-radius:17px;box-shadow:0 7px 24px rgba(15,23,42,.04)}.bts-table th{background:#f5f7fa;color:#475569}.bts-modal-card{border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 30px 90px rgba(0,0,0,.3)}@media(max-width:600px){.bts-toolbar{padding:9px;border-radius:13px}.bts-card{border-radius:14px}.bts-page-header h1{font-size:clamp(23px,7vw,30px)}}
/* assets/css/modules/not-found.css */
.bts-empty code{background:#e8edf2;padding:3px 6px;border-radius:5px}
/* assets/css/modules/order-create.css */
.bts-order-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.bts-customer-chip{display:flex;justify-content:space-between;align-items:center;gap:12px}.bts-selected-customer{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:14px;margin-bottom:18px}.bts-selected-customer-info{display:flex;min-width:0;flex:1 1 280px;flex-wrap:wrap;align-items:center;gap:10px}.bts-selected-customer strong{font-size:20px}.bts-customer-discount-field{width:min(190px,100%);margin:0}.bts-product-price{display:flex;min-height:28px;align-items:baseline;gap:8px;flex-wrap:wrap}.bts-product-price strong{font-size:18px;color:var(--bts-primary)}.bts-product-price del{color:#7b8794;font-size:14px;text-decoration-thickness:2px}.bts-product-price-compare:not(.has-discount) del{display:none}.bts-customer-choice{display:flex;width:100%;min-height:58px;flex-direction:column;align-items:flex-start;gap:3px;margin:7px 0;padding:10px 14px;border:1px solid #d5dde6;border-radius:10px;background:#fff;text-align:left}.bts-customer-choice:hover{border-color:var(--bts-primary);background:#f6f9fc}.bts-cart-information{display:grid;gap:10px;margin:14px 0}.bts-cart-information .bts-field{margin:0}.bts-cart-information textarea{min-height:76px;resize:vertical}.bts-cart-item-detailed{grid-template-columns:minmax(0,1fr) auto;align-items:start}.bts-cart-item-detailed.has-image{grid-template-columns:64px minmax(0,1fr) auto}.bts-cart-item-image{display:block;width:64px;height:64px;padding:2px;border:1px solid #e1e7ee;border-radius:10px;background:transparent;object-fit:scale-down}.bts-cart-item-main{display:grid;min-width:0;gap:7px}.bts-cart-item-main>strong{overflow-wrap:anywhere}.bts-cart-line-total{display:flex;align-items:center;justify-content:space-between;gap:10px}.bts-cart-line-total span{color:#667482;font-size:12px}.bts-cart-detail-toggle{justify-self:start;padding:2px 0;border:0;background:transparent;color:var(--bts-primary);font-size:12px;font-weight:750;text-decoration:underline;text-underline-offset:3px}.bts-cart-remove{min-width:58px;min-height:40px;padding:7px 10px}.bts-cart-breakdown,.bts-cart-totals{display:grid;gap:5px;margin:10px 0 0}.bts-cart-breakdown div,.bts-cart-totals div{display:flex;justify-content:space-between;gap:16px}.bts-cart-breakdown dt,.bts-cart-totals dt{color:#667482}.bts-cart-breakdown dd,.bts-cart-totals dd{margin:0;font-weight:700;text-align:right}.bts-cart-totals{padding:16px;border:1px solid #dce3eb;border-radius:12px;background:#f8fafc}.bts-cart-totals .bts-grand-total{margin-top:7px;padding-top:10px;border-top:2px solid #cbd5e1;font-size:20px}.bts-report-actions{margin:12px 0}

.bts-cart-toggle{right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));display:grid;width:64px;min-width:64px;height:64px;place-items:center;padding:0;overflow:visible}
.bts-cart-toggle-icon{display:grid;width:32px;height:32px;place-items:center;pointer-events:none}
.bts-cart-toggle-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bts-cart-count{position:absolute;top:-5px;right:-5px;display:grid;min-width:25px;height:25px;place-items:center;padding:0 6px;border:2px solid var(--bts-cart);border-radius:999px;background:#fff;color:var(--bts-cart);font-size:12px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums;box-shadow:0 3px 10px #0003;pointer-events:none}

@media(max-width:600px){.bts-cart-summary{grid-template-columns:1fr}.bts-cart-item-detailed.has-image{grid-template-columns:54px minmax(0,1fr) auto}.bts-cart-item-image{width:54px;height:54px}.bts-cart-breakdown div{font-size:13px}.bts-cart-toggle{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:58px;min-width:58px;height:58px}.bts-cart-toggle-icon{width:29px;height:29px}}

.bts-product-grid.bts-order-product-grid{grid-template-columns:repeat(var(--bts-order-columns,4),minmax(0,1fr))}.bts-page-jump{display:flex;align-items:end;gap:7px;margin-left:6px}.bts-page-jump label{display:grid;gap:3px;color:#667482;font-size:12px}.bts-page-jump input{width:86px;min-height:44px;padding:7px 9px;border:1px solid #bcc7d3;border-radius:10px;background:#fff}.bts-page-jump .bts-button{min-width:52px;padding-inline:10px}.bts-created-order-summary{display:grid;gap:22px;max-width:980px;margin:0 auto}.bts-created-order-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bts-created-order-grid>div{display:grid;gap:6px;padding:16px;border-radius:14px;background:#f5f7fa}.bts-created-order-grid span{color:#667482;font-size:12px}.bts-created-order-grid strong{font-size:clamp(16px,1.5vw,22px);overflow-wrap:anywhere}@media(max-width:1279px){.bts-product-grid.bts-order-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.bts-product-grid.bts-order-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bts-created-order-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.bts-page-jump{width:100%;justify-content:center;margin-left:0}.bts-created-order-grid{grid-template-columns:1fr}}
.bts-qty-grid.is-single{grid-template-columns:minmax(0,1fr)}
/* assets/css/modules/order-summary.css */
/* Sipariş sonrası ve geçmiş sipariş özetleri. */
.bts-created-order-summary {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.bts-order-summary-modal {
  width: min(980px, 100%);
}

.bts-order-summary-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bts-order-summary-meta > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  background: #f6f8fa;
}

.bts-order-summary-meta span,
.bts-order-summary-value span {
  color: #667482;
  font-size: 12px;
}

.bts-order-summary-meta strong,
.bts-order-summary-product strong {
  overflow-wrap: anywhere;
}

.bts-order-summary-list {
  display: grid;
  gap: 8px;
}

.bts-order-summary-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) minmax(70px, auto) minmax(112px, auto);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  background: #fff;
}

.bts-order-summary-image {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 9px;
  background: #f5f7fa;
  color: #7b8794;
  font-size: 10px;
  text-align: center;
}

.bts-order-summary-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}

.bts-order-summary-product {
  min-width: 0;
}

.bts-order-summary-value {
  display: grid;
  gap: 3px;
  text-align: right;
}

.bts-order-summary-totals {
  display: grid;
  gap: 0;
  width: min(430px, 100%);
  margin: 0 0 0 auto;
  padding: 0;
}

.bts-order-summary-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 2px;
  border-bottom: 1px solid #e1e7ee;
}

.bts-order-summary-totals dt,
.bts-order-summary-totals dd {
  margin: 0;
}

.bts-order-summary-totals dd {
  font-weight: 750;
  white-space: nowrap;
}

.bts-order-summary-totals .bts-grand-total {
  padding-top: 13px;
  border: 0;
  font-size: 18px;
}

.bts-order-summary-totals .bts-grand-total dt {
  display: grid;
  gap: 3px;
}

.bts-order-summary-totals .bts-grand-total small {
  color: #667482;
  font-size: 11px;
  font-weight: 500;
}

.bts-created-order-summary .bts-report-actions {
  margin-top: 0;
}

@media (max-width: 700px) {
  .bts-order-summary-meta {
    grid-template-columns: 1fr;
  }

  .bts-order-summary-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 8px;
  }

  .bts-order-summary-image {
    width: 50px;
    height: 50px;
  }

  .bts-order-summary-price {
    grid-column: 2 / 4;
    text-align: left;
  }

  .bts-order-summary-value:not(.bts-order-summary-price) {
    grid-column: 3;
    grid-row: 1 / 2;
  }

  .bts-order-summary-totals {
    width: 100%;
  }
}
/* assets/css/modules/orders.css */
.bts-order-total{font-weight:800}
/* assets/css/modules/product-images.css */
.bts-product-image-list{display:grid;gap:10px}.bts-product-image-row{display:grid;grid-template-columns:120px minmax(0,1fr) minmax(150px,auto);align-items:center;gap:clamp(10px,1.5vw,18px);padding:clamp(10px,1.4vw,16px)}.bts-product-image-current{display:grid;width:120px;height:100px;place-items:center;overflow:hidden;padding:1px;border:1px solid #dfe5ec;border-radius:12px;background:transparent}.bts-product-image-current:disabled{cursor:default}.bts-product-image-current img{display:block;width:100%;height:100%;object-fit:scale-down;object-position:center}.bts-product-image-copy{min-width:0}.bts-product-image-copy h2{margin:0 0 7px;font-size:clamp(14px,1.3vw,18px);line-height:1.35;overflow-wrap:anywhere}.bts-product-image-copy p{margin:0;color:#667482;font-size:13px}.bts-product-images-toolbar input{min-width:min(360px,100%)}.bts-image-confirm{position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:20px;background:rgba(7,18,31,.72)}.bts-image-confirm-dialog{display:grid;width:min(520px,100%);max-height:calc(100dvh - 40px);overflow:auto;gap:12px;text-align:center}.bts-image-confirm-dialog h2,.bts-image-confirm-dialog p{margin:0}.bts-image-confirm-preview{display:grid;width:100%;height:min(45dvh,340px);place-items:center;overflow:hidden;border:1px solid #dfe5ec;border-radius:14px;background:transparent}.bts-image-confirm-preview img{display:block;width:100%;height:100%;object-fit:scale-down;object-position:center}.bts-image-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.bts-product-image-bulk{position:sticky;z-index:4;top:76px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:12px 16px;box-shadow:0 10px 30px rgba(15,23,42,.1)}.bts-product-image-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.bts-product-image-row.has-pending{border-color:var(--bts-primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--bts-primary) 18%,transparent)}.bts-product-image-pending{display:block;margin-top:7px;color:var(--bts-primary);font-weight:750}.bts-image-source-dialog{display:grid;width:min(430px,100%);gap:12px;text-align:center}.bts-image-source-dialog h2,.bts-image-source-dialog p{margin:0}.bts-image-source-dialog .bts-button{width:100%}
@media(max-width:700px){.bts-product-image-bulk{top:68px;align-items:stretch;flex-direction:column}.bts-product-image-bulk .bts-button{width:100%}.bts-product-image-row{grid-template-columns:88px minmax(0,1fr)}.bts-product-image-current{width:88px;height:88px}.bts-product-image-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr}.bts-product-image-actions .bts-button{width:100%}.bts-image-confirm-actions{display:grid;grid-template-columns:1fr 1fr}.bts-image-confirm-actions .bts-button{width:100%}}
@media(max-width:420px){.bts-product-image-row{grid-template-columns:72px minmax(0,1fr);padding:9px}.bts-product-image-current{width:72px;height:72px}.bts-image-confirm{padding:10px}.bts-image-confirm-dialog{max-height:calc(100dvh - 20px)}}
/* assets/css/modules/product-visibility.css */
.bts-product-visibility-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
	width: 100%;
}

.bts-visibility-card {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr) minmax(116px, auto);
	align-items: center;
	gap: clamp(10px, 1.5vw, 18px);
	min-width: 0;
	padding: clamp(10px, 1.4vw, 16px);
}

.bts-visibility-card.is-hidden {
	border-color: #f0b4b4;
	background: #fff7f7;
	background: color-mix(in srgb, var(--bts-card) 92%, #ffeaea);
}

.bts-visibility-image {
	display: grid;
	width: 120px;
	height: 100px;
	place-items: center;
	overflow: hidden;
	padding: 1px;
	border: 1px solid #dfe5ec;
	border-radius: 12px;
	background: transparent;
}

.bts-visibility-image:disabled { cursor: default; }
.bts-visibility-image img { display: block; width: 100%; height: 100%; object-fit: scale-down; object-position: center; }
.bts-visibility-content { display: grid; min-width: 0; align-content: center; gap: 8px; }
.bts-visibility-heading { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bts-visibility-heading h2 { min-width: 0; margin: 0; font-size: clamp(14px, 1.3vw, 18px); line-height: 1.35; overflow-wrap: anywhere; }
.bts-visibility-meta { display: flex; flex-wrap: wrap; gap: 5px clamp(12px, 2vw, 24px); }
.bts-visibility-meta p { margin: 0; color: #667482; font-size: clamp(11px, 1vw, 13px); }
.bts-visibility-action { display: flex; justify-content: flex-end; }
.bts-visibility-action .bts-button { min-width: 116px; }
.bts-product-visibility-toolbar input { min-width: min(340px, 100%); }

@media (max-width: 700px) {
	.bts-visibility-card { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; }
	.bts-visibility-image { width: 88px; height: 88px; }
	.bts-visibility-heading { display: grid; gap: 6px; }
	.bts-visibility-heading .bts-badge { justify-self: start; }
	.bts-visibility-meta { display: grid; gap: 3px; }
	.bts-visibility-action { grid-column: 1 / -1; }
	.bts-visibility-action .bts-button { width: 100%; }
}

@media (max-width: 420px) {
	.bts-visibility-card { grid-template-columns: 72px minmax(0, 1fr); padding: 9px; }
	.bts-visibility-image { width: 72px; height: 72px; }
}
/* assets/css/modules/products.css */
.bts-stock-out{color:var(--bts-danger);font-weight:700}.bts-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(9px,1vw,16px)}.bts-product-card{min-width:0;min-height:390px;padding:clamp(12px,1.2vw,19px);border-radius:17px;transition:transform .18s ease,box-shadow .18s ease}.bts-product-card:hover{transform:translateY(-2px);box-shadow:0 13px 28px rgba(15,23,42,.09)}.bts-product-image{width:100%;height:clamp(145px,13vw,210px);padding:8px;border:0;background:#f7f8fa;cursor:zoom-in;-webkit-appearance:none;appearance:none}.bts-product-image img,.bts-detail-image img{width:100%;height:100%;object-fit:scale-down}.bts-product-card h3{display:-webkit-box;min-height:2.65em;overflow:hidden;font-size:clamp(13px,1vw,16px);-webkit-box-orient:vertical;-webkit-line-clamp:2}.bts-product-meta{font-size:clamp(11px,.8vw,13px)}.bts-detail-image{display:block;width:100%;height:min(55vh,520px);padding:10px;border:0;border-radius:14px;background:#f7f8fa;cursor:zoom-in;-webkit-appearance:none;appearance:none}.bts-modal-open{overflow:hidden}.bts-gallery-modal{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(5,12,24,.88);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}.bts-gallery-dialog{display:grid;width:min(1100px,100%);height:min(92vh,900px);height:min(92dvh,900px);grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(255,255,255,.18);border-radius:22px;background:#111827;box-shadow:0 32px 100px rgba(0,0,0,.45)}.bts-gallery-head,.bts-gallery-footer{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;color:#fff}.bts-gallery-head h2{min-width:0;margin:0;overflow:hidden;font-size:clamp(15px,1.5vw,20px);text-overflow:ellipsis;white-space:nowrap}.bts-gallery-close,.bts-gallery-arrow{display:grid;flex:0 0 auto;width:46px;height:46px;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:32px;line-height:1;-webkit-appearance:none;appearance:none}.bts-gallery-stage{position:relative;display:grid;min-height:0;place-items:center;overflow:hidden;padding:8px 64px;background:#080d16;touch-action:pan-y;user-select:none;-webkit-user-select:none}.bts-gallery-stage img{display:block;width:100%;height:100%;object-fit:scale-down;-webkit-user-drag:none}.bts-gallery-arrow{position:absolute;top:50%;z-index:2;transform:translateY(-50%)}.bts-gallery-prev{left:12px}.bts-gallery-next{right:12px}.bts-gallery-footer{justify-content:center;min-height:58px}.bts-gallery-dots{display:flex;max-width:min(70vw,620px);gap:8px;overflow-x:auto;padding:8px;-webkit-overflow-scrolling:touch}.bts-gallery-dots button{width:10px;height:10px;flex:0 0 10px;padding:0;border:0;border-radius:50%;background:#64748b;-webkit-appearance:none;appearance:none}.bts-gallery-dots button.is-active{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.15)}.bts-gallery-modal.is-single .bts-gallery-arrow,.bts-gallery-modal.is-single .bts-gallery-dots{display:none}@media(min-width:2048px){.bts-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1279px){.bts-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.bts-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bts-product-card{min-height:350px}.bts-product-image{height:clamp(125px,25vw,190px)}.bts-gallery-stage{padding:6px 52px}}@media(max-width:520px){.bts-product-grid{gap:8px}.bts-product-card{min-height:330px;padding:10px;border-radius:13px}.bts-product-card h3{font-size:12px}.bts-product-meta{font-size:10.5px}.bts-product-actions .bts-button{padding-inline:8px;font-size:12px}.bts-gallery-dialog{border-radius:16px}.bts-gallery-stage{padding:4px 42px}.bts-gallery-arrow{width:40px;height:40px}.bts-gallery-prev{left:4px}.bts-gallery-next{right:4px}}

/* 2.0.0 shared gallery: contain at 100%, explicit viewport for pan/pinch. */
.bts-gallery-modal{z-index:10000;box-sizing:border-box;right:auto;bottom:auto;width:100vw;height:100vh;height:100dvh;overflow:hidden;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
.bts-gallery-modal .bts-gallery-dialog{width:min(1100px,100%);max-width:100%;height:min(900px,100%);max-height:100%;min-width:0;min-height:0;grid-template-rows:auto minmax(0,1fr) auto}
.bts-gallery-modal .bts-gallery-stage{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;padding:0;touch-action:none}
.bts-gallery-modal .bts-gallery-viewport{position:absolute;inset:8px 56px;min-width:0;min-height:0;overflow:hidden;touch-action:none;cursor:zoom-in}
.bts-gallery-modal .bts-gallery-stage .bts-gallery-viewport>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;transform-origin:center;transition:none;-webkit-user-drag:none;user-select:none;pointer-events:none}
.bts-gallery-modal .bts-gallery-viewport.is-zoomed{cursor:grab}.bts-gallery-modal .bts-gallery-viewport.is-zoomed:active{cursor:grabbing}
.bts-gallery-modal [data-gallery-error]{position:absolute;inset:0;display:grid;place-items:center;color:white;background:#111827}
.bts-gallery-modal .bts-gallery-footer{display:flex;flex-direction:column;gap:4px;min-height:0;padding:8px 12px}
.bts-gallery-tools,.bts-gallery-position{display:flex;align-items:center;justify-content:center;gap:8px;max-width:100%;min-width:0}
.bts-gallery-tools button{min-width:40px;min-height:40px;padding:6px 10px;border:1px solid #ffffff55;border-radius:9px;background:#ffffff14;color:#fff;font-size:16px;white-space:nowrap}
.bts-gallery-tools button:disabled{opacity:.4;cursor:default}.bts-gallery-tools output{min-width:48px;text-align:center;font-size:13px}.bts-gallery-position{font-size:12px}.bts-gallery-position .bts-gallery-dots{max-width:min(65vw,600px);padding:6px}
.bts-gallery-modal button:focus-visible{outline:3px solid #82c7ff;outline-offset:2px}
.bts-gallery-modal.is-single .bts-gallery-viewport{inset:8px}
.bts-product-detail-modal{z-index:9000;padding:12px;overflow:hidden}.bts-product-detail-modal .bts-modal-card{width:min(900px,100%);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);min-width:0;overflow:auto;overscroll-behavior:contain}
.bts-product-detail-modal .bts-modal-head h2{min-width:0;font-size:clamp(18px,2vw,26px);overflow-wrap:anywhere}.bts-product-detail-modal .bts-modal-head button{flex-shrink:0}
.bts-product-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid #e2e8f0}.bts-product-detail-nav button{min-width:48px;font-size:22px}.bts-product-detail-nav span{text-align:center;font-size:13px}
.bts-product-detail-modal .bts-detail-image{height:min(50vh,440px);height:min(50dvh,440px);min-height:0;overflow:hidden}.bts-product-detail-modal .bts-detail-image img{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
@media(max-width:600px){.bts-gallery-modal .bts-gallery-dialog{border-radius:12px}.bts-gallery-modal .bts-gallery-head{padding:8px 10px;gap:8px}.bts-gallery-modal .bts-gallery-close{width:40px;height:40px}.bts-gallery-modal .bts-gallery-viewport{inset:4px 44px}.bts-gallery-modal.is-single .bts-gallery-viewport{inset:4px}.bts-product-detail-modal .bts-grid{grid-template-columns:minmax(0,1fr)}.bts-product-detail-modal .bts-detail-image{height:35vh;height:35dvh}}

/* Optional order actions inside the enlarged image; other galleries keep their controls. */
.bts-gallery-toolbar{display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:10px 20px;width:100%;min-width:0}
.bts-gallery-purchase{flex:1 1 300px;max-width:470px;min-width:0}
.bts-gallery-order-form{display:grid;grid-template-columns:minmax(60px,.7fr) minmax(78px,1fr) minmax(104px,1.3fr);align-items:end;gap:5px 8px;margin:0;min-width:0}
.bts-gallery-field{display:grid;gap:4px;min-width:0;margin:0;color:#f1f5f9;font-size:12px;text-align:left}
.bts-gallery-field>input{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font:16px/1.25 system-ui,sans-serif}
.bts-gallery-field>output{display:flex;align-items:center;min-height:40px;overflow-wrap:anywhere;font-size:14px;font-weight:700;color:#fff}
.bts-gallery-order-form>.bts-button{min-width:0;min-height:40px;padding:8px 10px;white-space:normal;font-size:13px;line-height:1.25}
.bts-gallery-pack-note{grid-column:1/-1;color:#cbd5e1;font-size:11px;text-align:left}
.bts-gallery-status{width:100%;margin:2px 0 0;color:#bbf7d0;font-size:12px;line-height:1.35;text-align:center;overflow-wrap:anywhere}
.bts-gallery-status.is-error{color:#fecaca}
.bts-gallery-modal .bts-gallery-footer{max-height:min(48dvh,220px);overflow-y:auto;overscroll-behavior:contain}
.bts-gallery-toolbar .bts-gallery-tools{flex-wrap:wrap}
@media(max-width:680px){.bts-gallery-purchase{flex-basis:100%;max-width:none}.bts-gallery-toolbar{gap:8px}.bts-gallery-modal .bts-gallery-footer{padding:6px 8px}}

.bts-gallery-position{flex-wrap:wrap;gap:4px 10px}.bts-gallery-product-counter{font-weight:600;color:#e2e8f0;white-space:nowrap}.bts-gallery-modal[aria-busy="true"] .bts-gallery-stage{cursor:progress}

/* Independent metadata label/value styles; defaults inherit the existing card. */
.bts-product-meta .bts-meta-row{display:block;min-width:0}.bts-meta-label,.bts-meta-value{overflow-wrap:anywhere}
.bts-linear-barcode{display:block;width:min(var(--bts-linear-width,320px),100%);max-width:100%;margin:12px 0 0;padding:9px 12px 8px;border:1px solid #d7dce2;border-radius:8px;background:#fff;color:#111;box-sizing:border-box;font-family:Arial,Helvetica,sans-serif}
.bts-linear-barcode figcaption{margin:0 0 6px;color:#222;font-size:10px;font-weight:700;line-height:1.2;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bts-linear-barcode-svg{display:block;width:100%;height:var(--bts-linear-height,60px);background:#fff}
.bts-linear-barcode-number{margin-top:5px;color:#111;font-size:var(--bts-linear-text,13px);font-weight:700;line-height:1.3;letter-spacing:1px;text-align:center;overflow-wrap:anywhere}
.bts-gallery-modal.has-linear-barcode .bts-gallery-footer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,min(var(--bts-linear-width,320px),38vw));grid-template-areas:"toolbar barcode" "position barcode" "status status";align-items:center;column-gap:16px;max-height:min(45dvh,320px);overflow-y:auto;overscroll-behavior:contain}
.bts-gallery-modal.has-linear-barcode .bts-gallery-toolbar{grid-area:toolbar;min-width:0;flex-wrap:wrap}
.bts-gallery-modal.has-linear-barcode .bts-gallery-position{grid-area:position}.bts-gallery-modal.has-linear-barcode .bts-gallery-status{grid-area:status}
.bts-gallery-barcode{grid-area:barcode;min-width:0;max-width:100%}.bts-gallery-barcode .bts-linear-barcode{margin:0 auto}
@media(max-width:699px){.bts-gallery-modal.has-linear-barcode .bts-gallery-footer{grid-template-columns:minmax(0,1fr);grid-template-areas:"barcode" "toolbar" "position" "status";gap:6px}.bts-gallery-barcode{justify-self:center;width:min(var(--bts-linear-width,320px),100%)}}
@media(min-width:520px) and (max-height:520px){.bts-gallery-modal.has-linear-barcode .bts-gallery-footer{grid-template-columns:minmax(0,1fr) minmax(0,min(var(--bts-linear-width,320px),36vw));grid-template-areas:"toolbar barcode" "position barcode" "status status";padding:6px 10px}.bts-gallery-barcode .bts-linear-barcode{padding:5px 8px}.bts-gallery-barcode figcaption{margin-bottom:3px}.bts-gallery-tools{flex-wrap:wrap;gap:4px}}
/* assets/css/modules/proforma.css */
.bts-proforma-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.65fr);gap:20px;align-items:start}.bts-proforma-products{min-width:0}.bts-proforma-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 12px}.bts-proforma-product-list{display:grid;gap:8px}.bts-proforma-product-row{display:grid;grid-template-columns:26px 72px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px;border:1px solid #dfe5ec;border-radius:13px;background:#fff;cursor:pointer}.bts-proforma-product-row:has(input:checked){border-color:var(--bts-primary);background:#f4f8fc}.bts-proforma-product-row>input{width:20px;height:20px}.bts-proforma-thumb{display:grid;width:72px;height:62px;place-items:center;overflow:hidden;border-radius:9px;background:transparent;color:#778391;font-size:10px;text-align:center}.bts-proforma-thumb img{width:100%;height:100%;object-fit:scale-down}.bts-proforma-product-info{display:grid;min-width:0;gap:4px}.bts-proforma-product-info strong{overflow-wrap:anywhere}.bts-proforma-product-info small{color:#667482}.bts-proforma-price{white-space:nowrap}.bts-proforma-confirm{position:sticky;top:92px;display:grid;gap:12px}.bts-proforma-confirm h2{margin:0}.bts-proforma-selected-count{display:flex;align-items:center;justify-content:space-between;padding:12px;border-radius:12px;background:#f4f7fa}.bts-proforma-selected-count strong{font-size:24px}.bts-proforma-selected{display:grid;gap:7px;max-height:310px;overflow:auto}.bts-proforma-selected-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #e0e6ed;border-radius:10px}.bts-proforma-selected-item span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bts-proforma-selected-item button{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border:0;border-radius:50%;background:#eef2f6;color:#334155;font-size:20px}.bts-proforma-confirm>.bts-button{width:100%}@media(max-width:980px){.bts-proforma-layout{grid-template-columns:1fr}.bts-proforma-confirm{position:static}.bts-proforma-selected{max-height:220px}}@media(max-width:600px){.bts-proforma-product-row{grid-template-columns:24px 56px minmax(0,1fr)}.bts-proforma-thumb{width:56px;height:54px}.bts-proforma-price{grid-column:3}.bts-proforma-list-head{align-items:stretch;flex-direction:column}.bts-proforma-list-head .bts-button{width:100%}}
.bts-proforma-export-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bts-proforma-export-group .bts-button{display:inline-flex!important;width:100%;justify-content:center}@media(max-width:420px){.bts-proforma-export-group{grid-template-columns:1fr}}
/* assets/css/modules/reports.css */
.bts-report-actions{display:flex;gap:8px;flex-wrap:wrap}.bts-report-card{display:flex;flex-direction:column}.bts-report-card .bts-report-actions{margin-top:auto}.bts-analytics{margin-bottom:24px}.bts-analysis-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}@media(max-width:900px){.bts-analysis-tables{grid-template-columns:1fr}}
.bts-staff-sales{display:grid;gap:16px;margin-bottom:24px}.bts-staff-sales .bts-modal-head h2,.bts-staff-sales .bts-modal-head p{margin:0 0 5px}.bts-staff-sales .bts-modal-head select{min-height:44px;padding:8px 12px;border:1px solid #bcc7d3;border-radius:10px;background:#fff}.bts-staff-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 14px;padding:12px;border:1px solid #e1e7ee;border-radius:14px;background:#f8fafc}.bts-staff-option{margin:0;padding:8px;border-radius:10px;background:#fff}.bts-staff-option span{display:grid;gap:2px}.bts-staff-option small{color:#677482}.bts-staff-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:4px 0 16px}.bts-staff-summary .bts-dashboard-stat{min-height:105px}.bts-staff-summary small{color:#677482}@media(max-width:600px){.bts-staff-sales .bts-modal-head{align-items:stretch;flex-direction:column}.bts-staff-option-grid{grid-template-columns:1fr}}
.bts-app .bts-report-actions .bts-button,.bts-app .bts-statement-actions .bts-button,.bts-app [data-statement-export],.bts-app [data-cart-export],.bts-app [data-order-export],.bts-app [data-format]{display:inline-flex!important;visibility:visible;align-items:center;justify-content:center}
/* assets/css/modules/settings.css */
.bts-settings-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.bts-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}#bts-runtime-settings{display:grid;gap:18px}#bts-runtime-settings>.bts-button{justify-self:start}#bts-runtime-settings .bts-table th,#bts-runtime-settings .bts-table td{text-align:center;min-width:130px}#bts-runtime-settings .bts-table th:first-child{text-align:left;min-width:210px;position:sticky;left:0;background:var(--bts-card);z-index:1}#bts-runtime-settings input[type=checkbox]{width:20px;height:20px}
/* assets/css/modules/zz-product-sizing.css */
.bts-product-card .bts-product-image {
  width: 230px;
  max-width: 100%;
  height: 185px;
  flex: 0 0 185px;
  margin-right: auto;
  margin-left: auto;
  padding: 1px;
  background: transparent;
  background: #f7000000;
}

.bts-product-card .bts-product-image img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
}
.bts-order-product-grid [data-order-product-detail] { cursor: pointer; }

/* Order list: zero/negative stock value. */
.bts-product-meta .bts-order-stock-empty{color:#b42318;font-weight:700}
