:root{--bms-orange:#e07b35;--bms-orange-dark:#c96525;--bms-cream:#fff8f2;--bms-ink:#25170f;--bms-line:#eadfd6;--bms-muted:#7a6d64;--bms-bg:#faf8f6}body{background:var(--bms-bg)}.bms-workspace{max-width:1240px;margin:36px auto 70px;display:flex;min-height:680px;background:#fff;border:1px solid var(--bms-line);border-radius:22px;overflow:hidden;box-shadow:0 18px 55px rgba(53,32,20,.08)}.bms-side{width:238px;flex:0 0 238px;border-right:1px solid var(--bms-line);padding:18px 12px;background:#fff}.bms-side-brand{display:flex;gap:10px;align-items:center;padding:8px 8px 20px}.bms-side-brand img{width:42px;height:42px;border-radius:12px;object-fit:cover}.bms-side-brand b{display:block;color:var(--bms-ink);font-size:13px}.bms-side-brand small{display:block;color:var(--bms-muted);font-size:9px;margin-top:2px}.bms-side>a{display:flex;gap:9px;align-items:center;text-decoration:none;color:#6e625b;padding:11px 10px;border-radius:10px;font-size:12px;font-weight:750;margin-bottom:4px}.bms-side>a span{width:18px;text-align:center}.bms-side>a:hover,.bms-side>a.active{background:#fff0e5;color:var(--bms-orange-dark)}.bms-main{flex:1;min-width:0;padding:34px;background:#fff}.bms-top{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:26px}.bms-top small{font-size:9px;letter-spacing:2px;color:#b38b71;font-weight:900}.bms-top h1{margin:5px 0 0;font-size:30px;letter-spacing:-.7px;color:var(--bms-ink)}.bms-user{border:1px solid var(--bms-line);padding:9px 12px;border-radius:99px;font-size:10px;font-weight:800}.bms-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.bms-stats>div{padding:20px;border:1px solid var(--bms-line);border-radius:15px;background:var(--bms-cream)}.bms-stats b{display:block;font-size:26px;color:var(--bms-ink)}.bms-stats span{font-size:10px;color:var(--bms-muted)}.bms-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.bms-quick a,.bms-btn{background:var(--bms-orange);color:#fff!important;text-decoration:none;border:0;border-radius:10px;padding:13px 15px;font-weight:850;font-size:11px;text-align:center;cursor:pointer}.bms-quick a:nth-child(n+2){background:#fff;color:var(--bms-ink)!important;border:1px solid var(--bms-line)}.bms-info,.bms-card{margin-top:18px;border:1px solid var(--bms-line);border-radius:17px;background:#fff;padding:20px}.bms-info{background:linear-gradient(135deg,#fff8f2,#fff)}.bms-info h3{margin:0 0 5px;color:var(--bms-ink)}.bms-info p{margin:0;color:var(--bms-muted);font-size:12px;line-height:1.7}.bms-order-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:16px}.bms-card h2{font-size:16px;color:var(--bms-ink);margin:0 0 16px}.bms-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bms-fields .wide{grid-column:1/-1}.bms-card label{display:block;font-size:10px;font-weight:850;color:#5e5149}.bms-card input,.bms-card textarea,.bms-card select{display:block;width:100%;box-sizing:border-box;margin-top:6px;padding:11px 12px;border:1px solid var(--bms-line);border-radius:9px;background:#fff;font-size:12px;color:var(--bms-ink)}.bms-results{margin-top:8px;display:grid;gap:6px}.bms-result{display:flex;gap:9px;align-items:center;width:100%;text-align:left;border:1px solid var(--bms-line);background:#fff;border-radius:9px;padding:8px;cursor:pointer}.bms-result img{width:40px;height:40px;object-fit:contain;background:#faf8f6;border-radius:7px}.bms-result b,.bms-result small{display:block}.bms-result b{font-size:11px;color:var(--bms-ink)}.bms-result small{font-size:9px;color:var(--bms-muted);margin-top:3px}.bms-mt{margin-top:22px!important}.bms-cart{margin-top:12px;border-top:1px solid #f0e8e1}.bms-cart-line{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #f0e8e1}.bms-cart-line b{font-size:11px;color:var(--bms-ink)}.bms-cart-line small{display:block;color:var(--bms-muted);font-size:9px;margin-top:3px}.bms-cart-line button{margin-left:8px;border:0;background:#fff0e5;color:#b64f16;border-radius:50%;width:24px;height:24px;cursor:pointer}.bms-empty{padding:16px;text-align:center;color:#9b8d84;font-size:11px}.bms-total{display:flex;justify-content:space-between;margin-top:15px;padding-top:15px;border-top:1px solid var(--bms-line);color:var(--bms-ink)}.bms-profit{display:grid;grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr;gap:7px;margin:13px 0;font-size:9px;color:var(--bms-muted)}.bms-profit b{color:var(--bms-ink)}.bms-success,.bms-error{margin-top:10px;padding:10px;border-radius:9px;font-size:11px}.bms-success{background:#edf8f1;color:#167443}.bms-error{background:#fff0f0;color:#a62b22}.bms-table-wrap{overflow:auto}.bms-table{width:100%;border-collapse:collapse;font-size:11px}.bms-table th{text-align:left;color:#9a8b81;font-size:9px;text-transform:uppercase;letter-spacing:.5px}.bms-table th,.bms-table td{padding:13px 9px;border-bottom:1px solid #f0e8e1;vertical-align:top}.bms-table td small{display:block;color:#9a8b81;font-size:9px;margin-top:3px}.bms-channel-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.bms-channel{border:1px solid var(--bms-line);border-radius:13px;padding:15px;background:#fff8f2}.bms-channel b,.bms-channel span{display:block}.bms-channel b{color:var(--bms-ink)}.bms-channel span{font-size:10px;color:var(--bms-muted);margin:5px 0 10px}.bms-channel-form{display:flex;gap:8px;margin-top:16px}.bms-channel-form input{padding:10px;border:1px solid var(--bms-line);border-radius:8px}.bms-support{display:grid;grid-template-columns:280px 1fr;min-height:520px;border:1px solid var(--bms-line);border-radius:16px;overflow:hidden}.bms-support-list{border-right:1px solid var(--bms-line);background:#fffaf7}.bms-support-head{display:flex;justify-content:space-between;padding:15px;border-bottom:1px solid var(--bms-line)}.bms-support-head button{border:0;background:var(--bms-orange);color:#fff;border-radius:7px;padding:7px;font-size:9px}.bms-thread{display:block;width:100%;border:0;border-bottom:1px solid var(--bms-line);background:transparent;text-align:left;padding:13px;cursor:pointer}.bms-thread b,.bms-thread small{display:block}.bms-thread b{font-size:11px;color:var(--bms-ink)}.bms-thread small{font-size:9px;color:var(--bms-muted);margin-top:4px}.bms-chat{display:flex;flex-direction:column;background:#fff}.bms-chat>div:first-child{padding:15px;border-bottom:1px solid var(--bms-line);font-weight:850;color:var(--bms-ink)}#bms-messages{flex:1;overflow:auto;padding:15px;background:#fffdfb}.bms-msg{max-width:70%;padding:9px 11px;background:#f4eee9;border-radius:12px;margin-bottom:9px}.bms-msg.mine{margin-left:auto;background:#fff0e5}.bms-msg b{font-size:9px}.bms-msg p{font-size:11px;margin:3px 0}.bms-msg small{font-size:8px;color:#9b8d84}.bms-chat form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--bms-line)}.bms-chat textarea{flex:1;border:1px solid var(--bms-line);border-radius:9px;padding:10px;resize:none}.bms-login-card{max-width:500px;margin:60px auto;padding:30px;border:1px solid var(--bms-line);border-radius:18px;text-align:center;background:#fff}.bms-login-card .bms-btn{display:inline-block;margin-top:10px}@media(max-width:900px){.bms-workspace{margin:15px 10px;display:block}.bms-side{width:auto;border-right:0;border-bottom:1px solid var(--bms-line);display:flex;overflow:auto;gap:4px}.bms-side-brand{display:none}.bms-side>a{flex:0 0 auto}.bms-main{padding:20px 15px}.bms-stats{grid-template-columns:1fr 1fr}.bms-order-grid{grid-template-columns:1fr}.bms-channel-grid{grid-template-columns:1fr 1fr}.bms-support{grid-template-columns:1fr}.bms-support-list{border-right:0;border-bottom:1px solid var(--bms-line)}}@media(max-width:600px){.bms-stats,.bms-quick,.bms-channel-grid{grid-template-columns:1fr}.bms-fields{grid-template-columns:1fr}.bms-fields .wide{grid-column:auto}.bms-profit{grid-template-columns:1fr 1fr 1fr 1fr}.bms-top h1{font-size:24px}.bms-user{display:none}.bms-chat form{display:block}.bms-chat form .bms-btn{width:100%;margin-top:7px}}
.bms-product-form{margin-top:16px;padding:18px;border:1px solid var(--bms-line);border-radius:14px;background:#fffaf7}.bms-product-form .wide{grid-column:1/-1}.bms-product-form button:not(.bms-btn),#bms-cat-cancel{border:1px solid var(--bms-line);background:#fff;color:var(--bms-ink);border-radius:9px;padding:11px 14px;font-weight:800;cursor:pointer}.bms-stats-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.bms-stats-filter label{font-size:10px;font-weight:850;color:#5e5149}.bms-stats-filter input{display:block;margin-top:6px;padding:10px 12px;border:1px solid var(--bms-line);border-radius:9px}.bms-card .button{border:1px solid var(--bms-line);background:#fff;color:var(--bms-ink);border-radius:8px;padding:7px 10px;cursor:pointer}.bms-card .button:hover{border-color:var(--bms-orange);color:var(--bms-orange-dark)}
.bms-muted{color:var(--bms-muted);font-size:11px;line-height:1.7}.bms-permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.bms-permission-grid>div{border:1px solid var(--bms-line);border-radius:12px;background:#fffaf7;padding:14px}.bms-permission-grid b,.bms-permission-grid span{display:block}.bms-permission-grid span{margin-top:6px;color:var(--bms-muted);font-size:10px;line-height:1.6}.bms-channel-form .bms-btn{border:0}.bms-channel-form input{flex:1;min-width:0}@media(max-width:600px){.bms-permission-grid{grid-template-columns:1fr}.bms-channel-form{flex-wrap:wrap}.bms-channel-form input{width:100%}}
.bms-product-cell{display:flex;align-items:center;gap:9px;min-width:190px}.bms-product-cell>img{width:42px;height:42px;object-fit:contain;background:#faf8f6;border:1px solid var(--bms-line);border-radius:8px;padding:3px}.bms-image-field small{display:block;margin-top:6px;color:var(--bms-muted);font-size:9px;font-weight:500}.bms-image-field input[type=file]{padding:8px;background:#fff}.bms-image-field img{display:block;width:90px;height:90px;object-fit:contain;margin-top:9px;border:1px solid var(--bms-line);border-radius:10px;background:#faf8f6}.bms-channel{display:flex;flex-direction:column;gap:10px}.bms-channel-image img{display:block;width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid var(--bms-line);border-radius:12px;padding:4px}.bms-channel-actions{margin-top:auto}.bms-channel-form{align-items:end;flex-wrap:wrap}.bms-channel-field{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:850;color:#5e5149;min-width:180px;flex:1}.bms-channel-field input{width:100%;box-sizing:border-box}.bms-channel-image-field img{display:block;width:58px;height:58px;object-fit:contain;border:1px solid var(--bms-line);border-radius:9px;background:#faf8f6;padding:3px;margin-top:3px}.bms-channel-image-field input[type=file]{padding:7px;background:#fff}.bms-channel-form>.bms-btn,.bms-channel-form>#bms-channel-cancel{align-self:flex-end;height:40px;box-sizing:border-box}
@media(max-width:600px){.bms-channel-form{align-items:stretch}.bms-channel-field{width:100%;min-width:100%}.bms-channel-form>.bms-btn,.bms-channel-form>#bms-channel-cancel{width:100%}}

/* Boutique Manager 2.2.7 — quantities + elegant order modal */
.bms-qty-wrap{display:flex;align-items:center;gap:5px;white-space:nowrap}
.bms-qty-btn{width:27px;height:27px;border:1px solid var(--bms-line);background:#fff;border-radius:8px;color:var(--bms-ink);font-size:16px;line-height:1;cursor:pointer}
.bms-qty-btn:hover{border-color:var(--bms-orange);color:var(--bms-orange-dark);background:#fff8f2}
.bms-qty-input{width:52px!important;height:27px!important;margin:0!important;padding:4px 6px!important;text-align:center;border-radius:8px!important;font-size:11px!important}
.bms-remove-line{border:0;background:#fff0e5;color:#b64f16;border-radius:50%;width:27px;height:27px;cursor:pointer;font-size:16px;line-height:1}
.bms-modal{display:none;position:fixed;inset:0;z-index:999999}
.bms-modal.open{display:block}
.bms-modal-backdrop{position:absolute;inset:0;background:rgba(31,24,20,.46);backdrop-filter:blur(5px)}
.bms-modal-dialog{position:relative;width:min(760px,calc(100vw - 28px));max-height:calc(100vh - 40px);overflow:auto;margin:20px auto;background:#fff;border:1px solid #eadfd6;border-radius:22px;box-shadow:0 24px 70px rgba(39,28,20,.22);padding:26px;animation:bmsModalIn .18s ease-out}
@keyframes bmsModalIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.bms-modal-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:#fff4ec;color:#9a542c;font-size:22px;cursor:pointer}
.bms-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding-right:35px;border-bottom:1px solid var(--bms-line);padding-bottom:18px;margin-bottom:20px}
.bms-modal-head small{display:block;color:#b38b71;font-size:9px;letter-spacing:2px;font-weight:900}
.bms-modal-head h2{margin:5px 0 0;font-size:24px;color:var(--bms-ink)}
.bms-order-status{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;background:#fff4ec;color:#a85a2b;font-size:10px;font-weight:850}
.bms-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.bms-modal-grid>div{border:1px solid var(--bms-line);border-radius:14px;padding:15px;background:#fffaf7}
.bms-modal-grid h3,.bms-modal-dialog>div>h3{margin:0 0 12px;font-size:13px;color:var(--bms-ink)}
.bms-modal-grid label{display:block;font-size:10px;font-weight:850;color:#5e5149;margin-bottom:9px}
.bms-modal-grid input,.bms-modal-grid textarea,.bms-modal-grid select{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:10px;border:1px solid var(--bms-line);border-radius:8px;background:#fff;font-size:11px}
.bms-modal-grid textarea{min-height:70px;resize:vertical}
.bms-modal-grid p{font-size:11px;line-height:1.8;color:var(--bms-muted);margin:0}
.bms-edit-lines{border:1px solid var(--bms-line);border-radius:14px;overflow:hidden}
.bms-edit-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;border-bottom:1px solid #f0e8e1}
.bms-edit-line:last-child{border-bottom:0}
.bms-edit-line b{display:block;font-size:11px;color:var(--bms-ink)}
.bms-edit-line small{display:block;font-size:9px;color:var(--bms-muted);margin-top:4px}
.bms-edit-line>span{font-size:10px;color:var(--bms-muted);white-space:nowrap}
.bo-qty{width:70px!important;margin:0!important;padding:8px!important;text-align:center;border:1px solid var(--bms-line);border-radius:8px!important}
.bms-modal-total{display:flex;justify-content:space-between;align-items:center;padding:17px 4px;border-bottom:1px solid var(--bms-line);font-size:13px;color:var(--bms-ink)}
.bms-modal-total b{font-size:19px}
.bms-modal-loading{text-align:center;padding:60px 10px;color:var(--bms-muted);font-size:12px}
.bms-modal-dialog .bms-save-order{margin-top:16px;width:100%}
@media(max-width:700px){.bms-modal-dialog{margin:10px auto;max-height:calc(100vh - 20px);padding:20px;border-radius:18px}.bms-modal-grid{grid-template-columns:1fr;gap:10px}.bms-edit-line{align-items:flex-start}.bms-qty-wrap{flex-wrap:wrap;justify-content:flex-end}.bms-table td:last-child{white-space:nowrap}}
@media(max-width:500px){.bms-cart-line{display:block}.bms-qty-wrap{margin-top:8px;justify-content:flex-start}.bms-modal-head{display:block}.bms-order-status{margin-top:10px}.bms-edit-line{display:grid;grid-template-columns:1fr auto}}

/* Boutique Manager 2.2.9 — professional customer files */
.bms-customer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px}.bms-customer-toolbar h2{margin:0 0 4px;font-size:18px}.bms-customer-search{display:flex;align-items:center;gap:8px;width:min(330px,100%);border:1px solid var(--bms-line);background:#fffaf7;border-radius:11px;padding:0 11px}.bms-customer-search span{color:#a88672;font-size:18px}.bms-customer-search input{border:0!important;outline:0!important;background:transparent!important;padding:11px 4px!important;width:100%;font-size:11px}.bms-customer-table td small{display:block;color:var(--bms-muted);font-size:8px;margin-top:4px}.bms-customer-dialog{width:min(900px,calc(100vw - 28px))}.bms-customer-profile-head{display:flex;align-items:center;gap:15px;padding-bottom:18px;border-bottom:1px solid var(--bms-line);margin-bottom:18px}.bms-customer-avatar{width:54px;height:54px;border-radius:16px;background:#fff0e5;color:var(--bms-orange-dark);display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;flex:0 0 auto}.bms-customer-profile-head small{display:block;color:#b38b71;font-size:9px;letter-spacing:2px;font-weight:900}.bms-customer-profile-head h2{margin:5px 0 3px;font-size:24px}.bms-customer-profile-head p{margin:0;color:var(--bms-muted);font-size:10px}.bms-customer-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:12px}.bms-customer-kpis>div{padding:13px 10px;border:1px solid var(--bms-line);border-radius:12px;background:#fffaf7}.bms-customer-kpis span,.bms-customer-insight span{display:block;color:var(--bms-muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}.bms-customer-kpis b{display:block;margin-top:5px;font-size:13px;color:var(--bms-ink)}.bms-customer-kpis .highlight{background:#fff0e5;border-color:#f0cdb6}.bms-customer-kpis .highlight b{color:var(--bms-orange-dark);font-size:15px}.bms-customer-insight{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:20px}.bms-customer-insight>div{padding:11px 12px;border-radius:11px;background:#f9f5f2}.bms-customer-insight b{display:block;margin-top:4px;font-size:10px;color:var(--bms-ink)}.bms-customer-orders-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}.bms-customer-orders-title h3{margin:0;font-size:14px}.bms-customer-orders-title span{font-size:9px;color:var(--bms-muted)}.bms-customer-order-list{border:1px solid var(--bms-line);border-radius:14px;overflow:hidden}.bms-customer-order-row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid #f0e8e1}.bms-customer-order-row:last-child{border-bottom:0}.bms-customer-order-row>div:first-child b{font-size:11px}.bms-customer-order-row small{display:block;color:var(--bms-muted);font-size:8px;margin-top:4px}.bms-customer-order-row>div:nth-child(2){text-align:right;font-size:10px}.bms-customer-order-row>div:nth-child(2)>span{display:block;font-weight:850}.bms-customer-order-row .profit{display:block;color:#167443;font-size:8px;margin-top:3px}.bms-customer-order-row .button{white-space:nowrap}.bms-customer-back{border:1px solid var(--bms-line);background:#fff;border-radius:9px;padding:8px 11px;color:var(--bms-ink);font-size:10px;font-weight:850;cursor:pointer;margin-bottom:14px}.bms-customer-back:hover{border-color:var(--bms-orange);color:var(--bms-orange-dark)}.bms-empty{text-align:center;padding:35px 15px;color:var(--bms-muted);font-size:11px}
@media(max-width:950px){.bms-customer-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.bms-customer-toolbar{display:block}.bms-customer-search{margin-top:12px;width:100%;box-sizing:border-box}.bms-customer-kpis{grid-template-columns:1fr 1fr}.bms-customer-insight{grid-template-columns:1fr}.bms-customer-order-row{grid-template-columns:1fr auto}.bms-customer-order-row .button{grid-column:1/-1;width:100%}.bms-customer-profile-head{align-items:flex-start}.bms-customer-profile-head h2{font-size:20px}}

/* Boutique Manager 2.3.0 — professional sales filters & dashboard */
.bms-orders-filter{display:flex;flex-direction:column;gap:15px}
.bms-periods{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bms-filter-label{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:1px;color:#8b7567;margin-right:3px}
.bms-filter-chip{border:1px solid var(--bms-line);background:#fff;border-radius:999px;padding:8px 12px;color:var(--bms-muted);font-size:10px;font-weight:850;cursor:pointer;transition:.15s}
.bms-filter-chip:hover,.bms-filter-chip.active{border-color:#efb991;background:#fff0e5;color:var(--bms-orange-dark)}
.bms-filter-grid{display:grid;grid-template-columns:1.05fr 1.5fr 1.1fr .9fr .9fr auto auto;gap:10px;align-items:end}
.bms-filter-grid label{display:block;font-size:9px;font-weight:850;color:#6c5b50}
.bms-filter-grid input,.bms-filter-grid select{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:10px 11px;border:1px solid var(--bms-line);border-radius:9px;background:#fff;font-size:10px;min-height:38px}
.bms-filter-grid .bms-btn,.bms-filter-grid .button{min-height:38px;white-space:nowrap}
@media(max-width:1100px){.bms-filter-grid{grid-template-columns:repeat(3,1fr)}.bms-filter-grid .bms-btn,.bms-filter-grid .button{width:100%}}
@media(max-width:650px){.bms-filter-grid{grid-template-columns:1fr}.bms-periods{align-items:flex-start}.bms-filter-chip{font-size:9px;padding:7px 10px}}

/* Boutique Manager 2.3.1 — refined professional sales dashboard */
.bms-sales-control{padding:22px!important;margin-bottom:14px!important;background:linear-gradient(135deg,#fffdfa 0%,#fff8f2 100%);border-color:#eadfd6!important;box-shadow:0 8px 28px rgba(58,40,28,.055)}
.bms-sales-control-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.bms-section-kicker{display:block;font-size:9px;line-height:1;letter-spacing:2px;font-weight:900;color:#b27a58;margin-bottom:7px}
.bms-sales-control-head h2,.bms-card-headline h2{margin:0;font-size:18px;letter-spacing:-.2px;color:#211914}
.bms-sales-control-head p{margin:6px 0 0;color:#8c7b70;font-size:10px;line-height:1.55}
.bms-results-count{display:flex;flex-direction:column;align-items:flex-end;min-width:82px;padding:9px 13px;border:1px solid #eadfd6;background:#fff;border-radius:12px}
.bms-results-count strong{font-size:20px;line-height:1;color:#211914}.bms-results-count span{margin-top:4px;font-size:8px;text-transform:uppercase;letter-spacing:1px;color:#9a887d;font-weight:850}
.bms-periods{display:flex!important;align-items:center!important;gap:10px!important;padding-bottom:15px;border-bottom:1px solid #eee5df}
.bms-period-options{display:flex;gap:6px;flex-wrap:wrap}
.bms-filter-chip{appearance:none!important;-webkit-appearance:none!important;border:1px solid #e5d8ce!important;background:#fff!important;border-radius:9px!important;padding:8px 12px!important;color:#806f63!important;font-size:9px!important;font-weight:800!important;line-height:1!important;cursor:pointer!important;box-shadow:0 1px 1px rgba(0,0,0,.02)!important;transition:all .16s ease!important}
.bms-filter-chip:hover{border-color:#e9a978!important;color:#ad5c2b!important;background:#fff8f3!important;transform:translateY(-1px)}
.bms-filter-chip.active{background:#e77d31!important;border-color:#e77d31!important;color:#fff!important;box-shadow:0 5px 13px rgba(231,125,49,.2)!important}
.bms-filter-grid{grid-template-columns:1.05fr 1.65fr 1.15fr .85fr .85fr auto!important;gap:10px!important;margin-top:16px}
.bms-filter-grid label>span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.6px;color:#76665b;font-weight:900}
.bms-filter-grid input,.bms-filter-grid select{margin-top:6px!important;border-color:#e5d9d0!important;background:#fff!important;height:40px!important;min-height:40px!important;border-radius:9px!important;font-size:10px!important;box-shadow:none!important}
.bms-filter-grid input:focus,.bms-filter-grid select:focus{border-color:#e7a06f!important;box-shadow:0 0 0 3px rgba(231,125,49,.09)!important;outline:none!important}
.bms-input-icon{position:relative}.bms-input-icon>span{position:absolute;left:11px;top:50%;transform:translateY(-50%);font-size:16px;color:#b08e79;pointer-events:none}.bms-input-icon input{padding-left:30px!important}
.bms-filter-actions{display:flex;align-items:center;gap:7px;height:40px}.bms-filter-actions .bms-btn{height:40px;min-height:40px!important;padding:0 15px!important;font-size:9px!important;border-radius:9px!important;white-space:nowrap}.bms-reset-btn{height:40px;display:flex;align-items:center;padding:0 11px;border:1px solid #e5d9d0;border-radius:9px;background:#fff;color:#7c6b60;font-size:9px;font-weight:800;text-decoration:none;white-space:nowrap}.bms-reset-btn:hover{border-color:#e7a06f;color:#ad5c2b;background:#fff8f3}
.bms-sales-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 14px}
.bms-sales-kpi{display:flex;align-items:center;gap:12px;padding:17px 16px;border:1px solid #eadfd6;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(58,40,28,.035);min-width:0}
.bms-sales-kpi .kpi-icon{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;font-size:14px;font-weight:900;background:#fff0e5;color:#bd642d}
.bms-sales-kpi span{display:block;color:#806f63;font-size:8px;text-transform:uppercase;letter-spacing:.5px;font-weight:900;white-space:nowrap}.bms-sales-kpi b{display:block;margin-top:4px;font-size:19px;line-height:1.1;letter-spacing:-.3px;color:#201914}.bms-sales-kpi small{display:block;margin-top:5px;color:#a18f83;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bms-sales-kpi.kpi-profit .kpi-icon{background:#eef8f2;color:#24734a}.bms-sales-kpi.kpi-profit b{color:#24734a}.bms-sales-kpi.kpi-commission .kpi-icon{background:#fff7df;color:#a66d10}.bms-sales-kpi.kpi-orders .kpi-icon{background:#f2f0ff;color:#6254a2}
.bms-daily-card{padding:20px!important}.bms-card-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.bms-muted-pill{border:1px solid #eadfd6;background:#fffaf7;color:#927e70;border-radius:999px;padding:6px 9px;font-size:8px;font-weight:850}.bms-number-badge{display:inline-flex;min-width:23px;height:23px;align-items:center;justify-content:center;border-radius:7px;background:#fff0e5;color:#a95b2b;font-size:9px;font-weight:900}.bms-profit-text{color:#24734a!important}.bms-daily-table th{font-size:8px!important;color:#967f70!important}.bms-daily-table td{font-size:9px!important}
@media(max-width:1100px){.bms-filter-grid{grid-template-columns:repeat(3,1fr)!important}.bms-filter-actions{grid-column:span 3}.bms-sales-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.bms-sales-control{padding:16px!important}.bms-sales-control-head{display:block}.bms-results-count{display:inline-flex;align-items:flex-start;margin-top:12px}.bms-periods{display:block!important}.bms-filter-label{display:block;margin:0 0 8px}.bms-filter-grid{grid-template-columns:1fr!important}.bms-filter-actions{grid-column:auto}.bms-filter-actions .bms-btn,.bms-reset-btn{flex:1;justify-content:center}.bms-sales-kpis{grid-template-columns:1fr}.bms-sales-kpi b{font-size:17px}}

/* Boutique Manager 2.4.0 — advanced dashboard, analytics and stock traceability */
.bms-dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px;border:1px solid var(--bms-line);border-radius:18px;background:linear-gradient(135deg,#fffaf5,#fff);box-shadow:0 8px 28px rgba(58,40,28,.045)}
.bms-dashboard-hero h2{margin:2px 0 5px;font-size:23px;color:var(--bms-ink)}.bms-dashboard-hero p{margin:0;color:var(--bms-muted);font-size:11px;line-height:1.6}.bms-dashboard-actions{display:flex;gap:8px;flex-wrap:wrap}.bms-outline-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid var(--bms-line);background:#fff;color:var(--bms-ink);border-radius:10px;padding:12px 15px;font-size:10px;font-weight:850}.bms-outline-btn:hover{border-color:#e7a06f;color:var(--bms-orange-dark)}
.bms-dashboard-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.bms-dash-kpi{padding:18px;border:1px solid var(--bms-line);border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(58,40,28,.035)}.bms-dash-kpi span,.bms-health-grid span{display:block;text-transform:uppercase;letter-spacing:.6px;font-size:8px;color:#8d7b70;font-weight:900}.bms-dash-kpi b{display:block;margin-top:7px;font-size:22px;color:var(--bms-ink)}.bms-dash-kpi small{display:block;margin-top:5px;color:#9a8b81;font-size:9px}.bms-dash-kpi.profit b{color:#24734a}
.bms-dashboard-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:14px;margin-top:14px}.bms-health-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.bms-health-grid>div{padding:13px;border:1px solid #efe5df;border-radius:11px;background:#fffaf7}.bms-health-grid b{display:block;font-size:18px;color:var(--bms-ink);margin-bottom:5px}.bms-health-grid .warn{background:#fff6e7;border-color:#f1d5a6}.bms-health-grid .warn b{color:#a66d10}.bms-top-products{display:grid;gap:11px}.bms-top-product>div:first-child{display:grid;grid-template-columns:25px 1fr auto;gap:8px;align-items:center}.bms-top-product strong{width:23px;height:23px;border-radius:7px;background:#fff0e5;color:#b35f2b;display:flex;align-items:center;justify-content:center;font-size:9px}.bms-top-product span{font-size:10px;font-weight:850;color:var(--bms-ink)}.bms-top-product small{font-size:8px;color:var(--bms-muted);text-align:right}.bms-progress{height:7px;background:#f2ebe5;border-radius:99px;margin:7px 0 0 33px;overflow:hidden}.bms-progress i{display:block;height:100%;border-radius:99px;background:var(--bms-orange)}.bms-quick-pro{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.bms-quick-pro a{padding:13px 12px;border:1px solid var(--bms-line);border-radius:11px;background:#fff;text-decoration:none;color:var(--bms-ink);font-size:10px;font-weight:850;text-align:center}.bms-quick-pro a:hover{border-color:#e7a06f;background:#fff8f2}.bms-quick-pro em{display:block;margin-top:4px;color:#a66d10;font-size:8px;font-style:normal}
.bms-stats-hero{display:flex;justify-content:space-between;align-items:center;gap:15px;background:linear-gradient(135deg,#fffaf5,#fff)}.bms-stats-hero h2{margin:2px 0 5px;font-size:21px}.bms-stats-actions{display:flex;gap:8px}.bms-insight-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}.bms-insight-grid>div{padding:13px 14px;border:1px solid var(--bms-line);border-radius:12px;background:#fffaf7}.bms-insight-grid span{display:block;font-size:8px;text-transform:uppercase;letter-spacing:.6px;color:#8e7b70;font-weight:900}.bms-insight-grid b{display:block;margin-top:6px;font-size:15px;color:var(--bms-ink)}.bms-advanced-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:14px;margin-top:14px}.bms-bar-chart{display:grid;gap:10px}.bms-bar-row{display:grid;grid-template-columns:44px 1fr 90px;gap:8px;align-items:center}.bms-bar-row>span{font-size:8px;color:#8d7b70}.bms-bar-row>div{height:9px;border-radius:99px;background:#f2ebe5;overflow:hidden}.bms-bar-row i{display:block;height:100%;border-radius:99px;background:var(--bms-orange)}.bms-bar-row>strong{font-size:8px;text-align:right;color:var(--bms-ink)}.bms-mini-list{display:grid;gap:7px}.bms-mini-list>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #f0e8e1}.bms-mini-list>div:last-child{border-bottom:0}.bms-mini-list span{font-size:10px;font-weight:850;color:var(--bms-ink)}.bms-mini-list small{display:block;font-size:8px;color:var(--bms-muted);margin-top:3px;font-weight:500}.bms-mini-list b{font-size:10px;color:#24734a;white-space:nowrap}.bms-stock-in{color:#24734a}.bms-stock-out{color:#a62b22}.bms-stock-history-card{margin-top:14px}.bms-stock-history-card .bms-table td{font-size:9px}.bms-stock-history-card .bms-table th{font-size:8px}
@media(max-width:1000px){.bms-dashboard-kpis{grid-template-columns:repeat(2,1fr)}.bms-dashboard-grid,.bms-advanced-grid{grid-template-columns:1fr}.bms-quick-pro{grid-template-columns:repeat(2,1fr)}.bms-insight-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.bms-dashboard-hero,.bms-stats-hero{display:block}.bms-dashboard-actions,.bms-stats-actions{margin-top:12px}.bms-dashboard-actions>*{flex:1}.bms-dashboard-kpis,.bms-health-grid,.bms-quick-pro,.bms-insight-grid{grid-template-columns:1fr}.bms-health-grid{grid-template-columns:1fr 1fr}.bms-bar-row{grid-template-columns:38px 1fr 72px}}

/* Boutique Manager 2.4.1 — discounts and stock alerts */
.bms-discount-box{margin:14px 0 6px;padding:13px 14px;border:1px solid #eadfd6;border-radius:12px;background:#fffaf7}.bms-discount-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.bms-discount-title span{font-size:10px;font-weight:900;color:var(--bms-ink);text-transform:uppercase;letter-spacing:.4px}.bms-discount-title small{font-size:8px;color:#9b887c}.bms-discount-fields{display:grid;grid-template-columns:1.3fr .8fr;gap:8px}.bms-discount-fields select,.bms-discount-fields input{width:100%!important}.bms-discount-box>small{display:block;margin-top:7px;color:#9b887c;font-size:8px}.bms-stock-low-row{background:#fff9e9!important}.bms-stock-low-row td:first-child{border-left:3px solid #e4a52a}.bms-stock-low-row td:nth-child(5){color:#a66d10;font-weight:900}.bms-stock-out-row{background:#fff0f0!important}.bms-stock-out-row td:first-child{border-left:3px solid #d94b43}.bms-stock-out-row td:nth-child(5){color:#b52f2a;font-weight:900}.bms-stock-level-low{color:#a66d10}.bms-stock-alert-badge{display:inline-flex;align-items:center;margin-left:6px;padding:3px 6px;border-radius:999px;background:#fff0c9;color:#9a6810;font-size:7px;font-weight:900}
@media(max-width:900px){.bms-discount-fields{grid-template-columns:1fr}.bms-stock-filters>div:first-child{grid-template-columns:1fr!important}}

/* Boutique Manager 2.4.2 — quick order status workflow */
.bms-status-cell{display:flex;align-items:center;gap:6px;margin-top:6px;min-width:145px}
.bms-quick-status{appearance:none;-webkit-appearance:none;width:100%;max-width:150px;min-height:30px;padding:6px 28px 6px 10px;border-radius:999px;border:1px solid transparent;font-size:9px;font-weight:900;line-height:1.2;cursor:pointer;outline:none;transition:all .16s ease;background-position:right 9px center;background-repeat:no-repeat;background-size:9px}
.bms-quick-status:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(40,25,15,.08)}
.bms-quick-status:focus{box-shadow:0 0 0 3px rgba(231,125,49,.14)}
.bms-quick-status:disabled{opacity:.65;cursor:wait;transform:none}
.bms-quick-status.status-pending{background:#fff7df;border-color:#efd79a;color:#8f6509}
.bms-quick-status.status-processing{background:#eef5ff;border-color:#bfd4f2;color:#28629d}
.bms-quick-status.status-on-hold{background:#f5f1ff;border-color:#d8c9f2;color:#65479a}
.bms-quick-status.status-completed{background:#eaf8ef;border-color:#bfe5cb;color:#24734a}
.bms-quick-status.status-cancelled{background:#fff0f0;border-color:#efc1bd;color:#b52f2a}
.bms-quick-status.status-refunded{background:#fff2e8;border-color:#efc9ad;color:#a85a2b}
.bms-quick-status.status-failed{background:#f7eeee;border-color:#dfc1c1;color:#8e3333}
.bms-status-saving{display:none;font-size:11px;font-weight:900;color:#a27d67;animation:bmsStatusPulse 1s infinite}
.bms-status-saving.show{display:inline-block}
@keyframes bmsStatusPulse{0%,100%{opacity:.35}50%{opacity:1}}
.bms-table td .bms-quick-status{vertical-align:middle}
@media(max-width:850px){.bms-status-cell{min-width:125px}.bms-quick-status{max-width:125px;font-size:8px}}
@media(max-width:650px){.bms-status-cell{min-width:110px}.bms-quick-status{max-width:110px;padding-left:8px;padding-right:20px}.bms-table td:last-child{white-space:nowrap}}


/* Boutique Manager 2.4.3 — order attribution & audit history */
.bms-history-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#fffaf5,#fff)}
.bms-history-hero h2{margin:2px 0 5px;font-size:22px}.bms-history-hero p{max-width:720px;margin:0;line-height:1.6}
.bms-history-action{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:8px;font-weight:900;border:1px solid #eadfd6;white-space:nowrap}
.bms-history-action.action-created{background:#eaf8ef;border-color:#bfe5cb;color:#24734a}.bms-history-action.action-status_change{background:#eef5ff;border-color:#bfd4f2;color:#28629d}.bms-history-action.action-updated{background:#fff2e8;border-color:#efc9ad;color:#a85a2b}
.bms-table td small{display:block;margin-top:3px;color:#9b887c;font-size:8px}
@media(max-width:700px){.bms-history-hero{display:block}.bms-history-hero .bms-btn{margin-top:12px;width:100%}}
/* v2.4.4 admin controls */
.bms-delete-order{color:#b42318!important;border-color:#f2c5c0!important;background:#fff8f7!important}
.bms-delete-order:hover{background:#fff0ee!important;border-color:#e59b93!important}
.bms-category-cell{display:flex;align-items:center;gap:12px;min-width:220px}
.bms-category-cell img{width:46px;height:46px;border-radius:12px;object-fit:cover;border:1px solid #eadfd6;background:#faf7f3}
.bms-category-cell span{display:flex;flex-direction:column;gap:3px}
.bms-category-cell small{color:#8b7c72;font-size:11px;max-width:280px}
.bms-category-image-preview-wrap{display:flex;align-items:center;gap:12px;margin-top:8px}
.bms-category-image-preview-wrap img{width:82px;height:82px;border-radius:14px;object-fit:cover;border:1px solid #eadfd6;background:#faf7f3}
.bms-category-image-preview-wrap .button{font-size:12px}
.bms-category-editor-head{margin-bottom:12px}
.bms-category-table td{vertical-align:middle}
@media(max-width:700px){.bms-category-cell small{max-width:160px}.bms-category-image-preview-wrap{align-items:flex-start;flex-direction:column}}

/* Boutique Manager 2.4.6 — Advanced POS */
.bms-pos-shell{margin-top:4px}.bms-pos-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}.bms-pos-head h2{margin:2px 0 5px;font-size:24px;color:var(--bms-ink)}.bms-pos-head p{margin:0;color:var(--bms-muted);font-size:10px;line-height:1.5}.bms-pos-head-actions{display:flex;align-items:center;gap:8px}.bms-pos-live{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #cde8d6;background:#f1fbf4;color:#267249;border-radius:999px;font-size:9px;font-weight:900}.bms-pos-live i{width:7px;height:7px;border-radius:50%;background:#36a45d;box-shadow:0 0 0 4px #dff3e5}.bms-pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:14px;align-items:start}.bms-pos-catalog,.bms-pos-cart{background:#fff;border:1px solid var(--bms-line);border-radius:18px;box-shadow:0 7px 24px rgba(58,40,28,.035)}.bms-pos-catalog{padding:16px}.bms-pos-toolbar{display:flex;gap:10px;align-items:center}.bms-pos-search{position:relative;flex:1}.bms-pos-search span{position:absolute;left:14px;top:50%;transform:translateY(-52%);font-size:19px;color:#a88c7b}.bms-pos-search input{width:100%!important;height:45px!important;padding:0 14px 0 40px!important;border:1px solid #e4d8cf!important;border-radius:12px!important;background:#fffaf7!important;font-size:11px!important;box-shadow:none!important}.bms-pos-search input:focus{outline:none!important;border-color:#e7a06f!important;box-shadow:0 0 0 3px rgba(231,125,49,.09)!important}.bms-pos-result-count{padding:0 12px;height:45px;display:flex;align-items:center;border:1px solid var(--bms-line);border-radius:12px;color:#8e7b70;font-size:9px;font-weight:850;white-space:nowrap}.bms-pos-cats{display:flex;gap:7px;overflow:auto;padding:12px 0 4px;scrollbar-width:thin}.bms-pos-cat{border:1px solid #e5d9d0;background:#fff;border-radius:999px;padding:8px 12px;color:#7e6d62;font-size:9px;font-weight:850;white-space:nowrap;cursor:pointer}.bms-pos-cat.active{background:#e77d31;border-color:#e77d31;color:#fff}.bms-pos-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.bms-pos-product{appearance:none;text-align:left;border:1px solid #eee3dc;background:#fff;border-radius:14px;padding:8px;cursor:pointer;min-width:0;transition:.16s ease}.bms-pos-product:hover{border-color:#e9b28d;transform:translateY(-2px);box-shadow:0 7px 18px rgba(58,40,28,.08)}.bms-pos-product.is-out{opacity:.55}.bms-pos-thumb{position:relative;height:135px;border-radius:10px;background:#faf7f3;overflow:hidden}.bms-pos-thumb img{width:100%;height:100%;object-fit:contain}.bms-pos-add{position:absolute;right:7px;bottom:7px;width:28px;height:28px;border-radius:50%;background:#e77d31;color:#fff;display:flex;align-items:center;justify-content:center;font-size:19px;box-shadow:0 4px 10px rgba(231,125,49,.3)}.bms-pos-product-info{padding:8px 3px 2px}.bms-pos-product-info b{display:block;font-size:10px;line-height:1.3;color:var(--bms-ink);min-height:27px}.bms-pos-product-info small{display:block;color:#9b887c;font-size:7px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-pos-product-info strong{display:block;margin-top:6px;color:#bd642d;font-size:12px}.bms-pos-product-info em{display:block;margin-top:4px;font-style:normal;color:#7f7067;font-size:7px}.bms-pos-product-info em.low{color:#a66d10;font-weight:900}.bms-pos-cart{padding:16px;position:sticky;top:15px}.bms-pos-cart-head{display:flex;justify-content:space-between;align-items:flex-start}.bms-pos-cart-head h3{margin:0;font-size:18px}.bms-pos-clear{border:0;background:transparent;color:#a62b22;font-size:9px;font-weight:850;cursor:pointer}.bms-pos-cart-lines{max-height:300px;overflow:auto;margin:10px 0;border-top:1px solid #f0e7e1;border-bottom:1px solid #f0e7e1}.bms-pos-cart-line{display:flex;gap:9px;padding:10px 0;border-bottom:1px solid #f1e9e3}.bms-pos-cart-line:last-child{border-bottom:0}.bms-pos-cart-line>img{width:48px;height:48px;border-radius:9px;object-fit:contain;background:#faf7f3;flex:0 0 auto}.bms-pos-line-main{min-width:0;flex:1}.bms-pos-line-main>b{display:block;font-size:9px;line-height:1.3}.bms-pos-line-main>small{display:block;color:#9b887c;font-size:8px;margin-top:2px}.bms-pos-line-actions{display:flex;align-items:center;gap:4px;margin-top:7px}.bms-pos-line-actions button{width:25px;height:25px;border:1px solid #e4d8cf;background:#fff;border-radius:7px;cursor:pointer;font-weight:900}.bms-pos-line-actions button.remove{color:#b52f2a}.bms-pos-line-actions input{width:38px!important;height:25px!important;padding:0 3px!important;text-align:center;border:1px solid #e4d8cf!important;border-radius:7px!important;font-size:9px!important}.bms-pos-line-actions strong{margin-left:auto;font-size:9px}.bms-pos-empty{padding:30px 10px;text-align:center;color:#9a887d}.bms-pos-empty span{display:block;font-size:25px;margin-bottom:6px}.bms-pos-empty b{display:block;font-size:10px;color:#5f5048}.bms-pos-empty small{display:block;margin-top:4px;font-size:8px}.bms-pos-customer,.bms-pos-options{padding:11px 0;border-bottom:1px solid #eee5df}.bms-pos-subtitle{font-size:8px;letter-spacing:1px;color:#907b6e;font-weight:900;margin-bottom:7px}.bms-pos-customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.bms-pos-customer-grid input,.bms-pos-customer-grid textarea,.bms-pos-options select,.bms-pos-discount input{width:100%!important;border:1px solid #e4d8cf!important;border-radius:9px!important;background:#fff!important;font-size:9px!important;box-shadow:none!important}.bms-pos-customer-grid input{height:34px!important;padding:0 9px!important}.bms-pos-customer-grid textarea{grid-column:1/-1;padding:8px 9px!important}.bms-pos-customer-grid input:focus,.bms-pos-customer-grid textarea:focus,.bms-pos-options select:focus,.bms-pos-discount input:focus{outline:none!important;border-color:#e7a06f!important}.bms-pos-options label{display:block;font-size:8px;color:#78675d;font-weight:850}.bms-pos-options select{margin-top:5px;height:34px!important;padding:0 8px!important}.bms-pos-discount{margin-top:10px}.bms-pos-discount>div:last-child{display:grid;grid-template-columns:1fr 90px;gap:7px}.bms-pos-discount input{height:34px!important;padding:0 8px!important}.bms-pos-summary{padding:12px 0}.bms-pos-summary>div{display:flex;justify-content:space-between;padding:4px 0;font-size:9px}.bms-pos-summary span{color:#8f7c70}.bms-pos-summary b{color:var(--bms-ink)}.bms-pos-summary .total{margin-top:6px;padding:12px;border-radius:10px;background:#fff5ee}.bms-pos-summary .total span{font-weight:900;color:#5f4c41}.bms-pos-summary .total b{font-size:17px;color:#b85d27}.bms-pos-profit{border-top:1px dashed #eadfd6;margin-top:5px;padding-top:8px!important}.bms-pos-profit b{color:#24734a}.bms-pos-submit{width:100%;height:46px;border:0;border-radius:11px;background:#e77d31;color:#fff;font-size:11px;font-weight:900;cursor:pointer;box-shadow:0 7px 16px rgba(231,125,49,.22)}.bms-pos-submit:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.bms-pos-submit.loading{opacity:.7}.bms-pos-customer-result,.bms-pos-no-results{display:block;width:100%;padding:9px;border:1px solid #eadfd6;background:#fffaf7;border-radius:8px;margin-top:6px;text-align:left}.bms-pos-customer-result b{display:block;font-size:9px}.bms-pos-customer-result small{font-size:8px;color:#8d7b70}.bms-pos-no-results{text-align:center;color:#9b887c;font-size:10px;padding:35px}.bms-pos-cart .bms-success,.bms-pos-cart .bms-error{margin-top:9px;font-size:9px}@media(max-width:1100px){.bms-pos-layout{grid-template-columns:minmax(0,1fr) 350px}.bms-pos-products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.bms-pos-head{display:block}.bms-pos-head-actions{margin-top:10px}.bms-pos-layout{grid-template-columns:1fr}.bms-pos-cart{position:static}.bms-pos-products{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.bms-pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.bms-pos-thumb{height:115px}.bms-pos-toolbar{display:block}.bms-pos-result-count{margin-top:7px;display:inline-flex}.bms-pos-customer-grid{grid-template-columns:1fr}.bms-pos-customer-grid textarea{grid-column:auto}.bms-pos-head-actions{flex-wrap:wrap}.bms-pos-head-actions>*{flex:1;justify-content:center}}
/* POS visual channel + discount selectors */
.bms-pos-channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:7px}.bms-pos-channel-card,.bms-pos-discount-card{appearance:none;width:100%;border:1px solid #e7ddd6;background:#fff;border-radius:12px;padding:8px 6px;cursor:pointer;text-align:center;transition:.16s ease;min-width:0}.bms-pos-channel-card:hover,.bms-pos-discount-card:hover{border-color:#e7a06f;transform:translateY(-1px);box-shadow:0 5px 12px rgba(58,40,28,.06)}.bms-pos-channel-card.active,.bms-pos-discount-card.active{border-color:#e77d31;background:#fff6ef;box-shadow:0 0 0 2px rgba(231,125,49,.10)}.bms-pos-channel-logo{width:38px;height:38px;border-radius:10px;background:#faf4ef;display:flex;align-items:center;justify-content:center;margin:0 auto 5px;overflow:hidden;color:#e77d31;font-weight:900;font-size:15px}.bms-pos-channel-logo img{width:100%;height:100%;object-fit:contain}.bms-direct-logo{background:#fff0e5}.bms-pos-channel-name{display:block;font-size:8px;font-weight:900;color:#4f413a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-pos-channel-card small,.bms-pos-discount-card small{display:block;margin-top:3px;font-size:6.5px;color:#9a877b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-pos-discount{margin-top:13px}.bms-pos-discount-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:7px}.bms-pos-discount-card{padding:8px 5px}.bms-pos-discount-card span{width:25px;height:25px;border-radius:8px;display:flex;align-items:center;justify-content:center;margin:0 auto 5px;background:#f8eee8;color:#b96530;font-size:8px;font-weight:950}.bms-pos-discount-card b{display:block;font-size:7.5px;color:#4f413a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-pos-discount-entry{margin-top:8px}.bms-pos-discount-entry label{display:block;font-size:7px;color:#88766b;margin-bottom:4px}.bms-pos-discount-input-wrap{position:relative}.bms-pos-discount-input-wrap input{padding-right:30px!important}.bms-pos-discount-input-wrap span{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:8px;font-weight:900;color:#9a877b;pointer-events:none}.bms-pos-discount-entry:has(input:disabled){opacity:.65}.bms-pos-options{padding-bottom:13px}.bms-pos-channel-grid + .bms-pos-discount{border-top:1px solid #eee5df;padding-top:11px}@media(max-width:1050px){.bms-pos-channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.bms-pos-channel-grid,.bms-pos-discount-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bms-pos-channel-card:last-child:nth-child(odd){grid-column:span 2}}


/* Boutique Manager 2.4.8 — POS premium visual redesign */
.bms-pos-shell{--pos-accent:#e77d31;--pos-accent-dark:#c96520;--pos-ink:#211914;--pos-muted:#8b776b;--pos-line:#eadfd7;--pos-soft:#fff8f3;--pos-green:#23804e;font-family:inherit}
.bms-pos-shell *{box-sizing:border-box}
.bms-pos-shell .bms-pos-head{padding:4px 2px 18px!important;margin:0!important;align-items:flex-end!important}
.bms-pos-shell .bms-pos-head h2{font-size:30px!important;line-height:1.05!important;letter-spacing:-.6px!important;margin:4px 0 7px!important}
.bms-pos-shell .bms-pos-head p{font-size:12px!important;max-width:620px!important;color:var(--pos-muted)!important}
.bms-pos-shell .bms-pos-layout{grid-template-columns:minmax(0,1fr) 430px!important;gap:18px!important;align-items:start!important}
.bms-pos-shell .bms-pos-catalog,.bms-pos-shell .bms-pos-cart{border:1px solid var(--pos-line)!important;border-radius:22px!important;box-shadow:0 14px 40px rgba(54,35,23,.055)!important;background:#fff!important}
.bms-pos-shell .bms-pos-catalog{padding:20px!important}
.bms-pos-shell .bms-pos-cart{padding:20px!important;top:20px!important}
.bms-pos-shell .bms-pos-toolbar{gap:12px!important}
.bms-pos-shell .bms-pos-search input{height:52px!important;border-radius:15px!important;background:#fcfaf8!important;font-size:13px!important;border-color:#dfd2c9!important}
.bms-pos-shell .bms-pos-search span{left:17px!important;font-size:21px!important}
.bms-pos-shell .bms-pos-result-count{height:52px!important;border-radius:15px!important;padding:0 16px!important;font-size:11px!important;background:#fff!important;color:#66564d!important}
.bms-pos-shell .bms-pos-cats{display:flex!important;gap:9px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:14px 2px 7px!important;scrollbar-width:thin!important}
.bms-pos-shell .bms-pos-cat{display:flex!important;align-items:center!important;gap:8px!important;min-width:max-content!important;height:52px!important;padding:5px 12px 5px 6px!important;font-size:10px!important;border-radius:14px!important;background:#fff!important;border:1px solid #e5d9d0!important;color:#6f5e54!important;box-shadow:0 2px 8px rgba(54,35,23,.025)!important;cursor:pointer!important}
.bms-pos-shell .bms-pos-cat:hover{border-color:#e9b28d!important;background:#fffaf7!important}
.bms-pos-shell .bms-pos-cat.active{background:#fff4eb!important;border-color:var(--pos-accent)!important;color:#a95020!important;box-shadow:0 0 0 2px rgba(231,125,49,.08)!important}
.bms-pos-shell .bms-pos-cat-thumb{width:40px!important;height:40px!important;flex:0 0 40px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#faf6f2!important;border:1px solid #eee4dc!important;color:#e77d31!important;font-size:17px!important;font-weight:900!important}
.bms-pos-shell .bms-pos-cat-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.bms-pos-shell .bms-pos-cat-all{background:#fff0e5!important;border-color:#f1d1bc!important}
.bms-pos-shell .bms-pos-cat-label{display:block!important;max-width:105px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-weight:850!important}
.bms-pos-shell .bms-pos-cat.active .bms-pos-cat-thumb{border-color:#f1c19f!important}
.bms-pos-shell .bms-pos-cat.active .bms-pos-cat-all{background:#e77d31!important;color:#fff!important;border-color:#e77d31!important}
.bms-pos-shell .bms-pos-products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-top:14px!important}
.bms-pos-shell .bms-pos-product{display:block!important;width:100%!important;min-height:250px!important;padding:10px!important;border:1px solid #ece2db!important;border-radius:17px!important;background:#fff!important;color:var(--pos-ink)!important;box-shadow:none!important;transform:none!important}
.bms-pos-shell .bms-pos-product:hover{border-color:#efb48c!important;box-shadow:0 12px 25px rgba(48,31,21,.09)!important;transform:translateY(-3px)!important}
.bms-pos-shell .bms-pos-thumb{height:155px!important;border-radius:13px!important;background:#faf7f4!important}
.bms-pos-shell .bms-pos-add{width:34px!important;height:34px!important;right:9px!important;bottom:9px!important;background:var(--pos-accent)!important;font-size:22px!important}
.bms-pos-shell .bms-pos-product-info{padding:10px 4px 3px!important}
.bms-pos-shell .bms-pos-product-info b{font-size:12px!important;min-height:31px!important}
.bms-pos-shell .bms-pos-product-info small{font-size:8px!important;margin-top:4px!important;color:#9c897d!important}
.bms-pos-shell .bms-pos-product-info strong{font-size:15px!important;margin-top:7px!important;color:var(--pos-accent-dark)!important}
.bms-pos-shell .bms-pos-product-info em{font-size:8px!important;margin-top:5px!important}
.bms-pos-shell .bms-pos-cart-head{padding-bottom:13px!important;border-bottom:1px solid #eee5df!important}
.bms-pos-shell .bms-pos-cart-head h3{font-size:22px!important;letter-spacing:-.3px!important;margin-top:2px!important}
.bms-pos-shell .bms-pos-clear{font-size:10px!important;color:#b3261e!important;padding:5px 2px!important}
.bms-pos-shell .bms-pos-cart-lines{max-height:290px!important;margin:0!important;padding:4px 0!important;border-top:0!important}
.bms-pos-shell .bms-pos-cart-line{padding:12px 0!important;gap:10px!important}
.bms-pos-shell .bms-pos-cart-line>img{width:58px!important;height:58px!important;border-radius:12px!important}
.bms-pos-shell .bms-pos-line-main>b{font-size:10px!important}
.bms-pos-shell .bms-pos-line-main>small{font-size:8px!important}
.bms-pos-shell .bms-pos-line-actions button{width:29px!important;height:29px!important;border-radius:8px!important}
.bms-pos-shell .bms-pos-line-actions input{width:42px!important;height:29px!important;font-size:10px!important}
.bms-pos-shell .bms-pos-line-actions strong{font-size:10px!important}
.bms-pos-shell .bms-pos-customer,.bms-pos-shell .bms-pos-options{padding:15px 0!important}
.bms-pos-shell .bms-pos-subtitle{font-size:9px!important;letter-spacing:1.3px!important;color:#79665a!important;margin-bottom:9px!important}
.bms-pos-shell .bms-pos-customer-grid{gap:9px!important}
.bms-pos-shell .bms-pos-customer-grid input{height:40px!important;padding:0 11px!important;border-radius:11px!important;font-size:10px!important}
.bms-pos-shell .bms-pos-customer-grid textarea{padding:10px 11px!important;border-radius:11px!important;font-size:10px!important}

/* Visual channels: robust against theme/button CSS */
.bms-pos-shell .bms-pos-channel-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin-top:0!important}
.bms-pos-shell button.bms-pos-channel-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;width:100%!important;min-height:82px!important;padding:7px 6px!important;margin:0!important;border:1px solid #e4d8d0!important;border-radius:15px!important;background:#fff!important;color:#3c302a!important;box-shadow:none!important;appearance:none!important;-webkit-appearance:none!important;text-decoration:none!important;line-height:1.15!important;font-family:inherit!important;cursor:pointer!important}
.bms-pos-shell button.bms-pos-channel-card:hover{border-color:#e6a477!important;background:#fffaf7!important;transform:translateY(-2px)!important;box-shadow:0 8px 18px rgba(52,34,23,.08)!important}
.bms-pos-shell button.bms-pos-channel-card.active{border:2px solid var(--pos-accent)!important;background:#fff5ed!important;box-shadow:0 0 0 3px rgba(231,125,49,.09)!important;color:#4b3021!important}
.bms-pos-shell .bms-pos-channel-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;flex:0 0 40px!important;margin:0 auto 5px!important;border-radius:13px!important;background:#f8f2ed!important;overflow:hidden!important;color:var(--pos-accent)!important;font-size:20px!important;font-weight:900!important}
.bms-pos-shell .bms-pos-channel-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important}
.bms-pos-shell .bms-pos-channel-name{display:block!important;width:100%!important;font-size:9px!important;font-weight:900!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:inherit!important}
.bms-pos-shell .bms-pos-channel-card small{display:block!important;width:100%!important;margin:3px 0 0!important;font-size:7px!important;font-weight:700!important;text-align:center!important;color:#98847a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bms-pos-shell .bms-direct-logo{background:#fff0e5!important}

/* Visual discount cards */
.bms-pos-shell .bms-pos-discount{margin-top:16px!important;padding-top:15px!important;border-top:1px solid #eee5df!important}
.bms-pos-shell .bms-pos-discount-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;margin-top:0!important}
.bms-pos-shell button.bms-pos-discount-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-height:62px!important;width:100%!important;padding:6px 4px!important;margin:0!important;border:1px solid #e4d8d0!important;border-radius:13px!important;background:#fff!important;color:#44352e!important;appearance:none!important;-webkit-appearance:none!important;box-shadow:none!important;font-family:inherit!important;cursor:pointer!important;line-height:1.1!important}
.bms-pos-shell button.bms-pos-discount-card:hover{border-color:#e6a477!important;background:#fffaf7!important}
.bms-pos-shell button.bms-pos-discount-card.active{border:2px solid var(--pos-accent)!important;background:#fff5ed!important;box-shadow:0 0 0 3px rgba(231,125,49,.08)!important}
.bms-pos-shell .bms-pos-discount-card span{display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;height:24px!important;margin:0 auto 4px!important;border-radius:9px!important;background:#f8eee8!important;color:var(--pos-accent-dark)!important;font-size:9px!important;font-weight:950!important}
.bms-pos-shell .bms-pos-discount-card b{display:block!important;width:100%!important;font-size:8px!important;font-weight:900!important;text-align:center!important;color:inherit!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bms-pos-shell .bms-pos-discount-card small{display:block!important;width:100%!important;margin-top:2px!important;font-size:6.5px!important;text-align:center!important;color:#9a877b!important}
.bms-pos-shell .bms-pos-discount-entry{margin-top:10px!important}
.bms-pos-shell .bms-pos-discount-entry label{font-size:8px!important;margin-bottom:5px!important;color:#88766b!important}
.bms-pos-shell .bms-pos-discount-input-wrap input{height:40px!important;border-radius:11px!important;font-size:11px!important}
.bms-pos-shell .bms-pos-discount-input-wrap span{font-size:9px!important}

.bms-pos-shell .bms-pos-summary{padding:15px 0!important}
.bms-pos-shell .bms-pos-summary>div{font-size:10px!important;padding:5px 0!important}
.bms-pos-shell .bms-pos-summary .total{margin-top:8px!important;padding:15px!important;border-radius:13px!important;background:linear-gradient(135deg,#fff4eb,#fff9f5)!important;border:1px solid #f0ddd0!important}
.bms-pos-shell .bms-pos-summary .total b{font-size:22px!important;color:var(--pos-accent-dark)!important}
.bms-pos-shell .bms-pos-profit{font-size:9px!important}
.bms-pos-shell .bms-pos-submit{height:52px!important;border-radius:13px!important;font-size:12px!important;background:linear-gradient(135deg,#e77d31,#cf6721)!important;box-shadow:0 10px 20px rgba(207,103,33,.20)!important}
.bms-pos-shell .bms-pos-submit:not(:disabled):hover{filter:brightness(1.03)!important;transform:translateY(-1px)!important}
.bms-pos-shell .bms-pos-result-count{font-variant-numeric:tabular-nums}
@media(max-width:1150px){.bms-pos-shell .bms-pos-layout{grid-template-columns:minmax(0,1fr) 390px!important}.bms-pos-shell .bms-pos-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){.bms-pos-shell .bms-pos-layout{grid-template-columns:1fr!important}.bms-pos-shell .bms-pos-cart{position:static!important}.bms-pos-shell .bms-pos-products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){.bms-pos-shell .bms-pos-head{display:block!important}.bms-pos-shell .bms-pos-head-actions{margin-top:12px!important;flex-wrap:wrap!important}.bms-pos-shell .bms-pos-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bms-pos-shell .bms-pos-thumb{height:130px!important}.bms-pos-shell .bms-pos-channel-grid,.bms-pos-shell .bms-pos-discount-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bms-pos-shell .bms-pos-channel-card:last-child:nth-child(odd),.bms-pos-shell .bms-pos-discount-card:last-child:nth-child(odd){grid-column:auto!important}}

/* Categories editor — product-style collapsible form */
.bms-category-topbar{align-items:center!important}
.bms-category-topbar .bms-btn{white-space:nowrap!important}
.bms-category-editor-panel{margin-top:14px!important;padding:20px!important;border:1px solid #eadfd6!important;border-radius:18px!important;background:#fffaf7!important;box-shadow:0 10px 30px rgba(54,35,23,.045)!important}
.bms-category-editor-panel .bms-category-editor-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;margin-bottom:14px!important;padding-bottom:14px!important;border-bottom:1px solid #eee3dc!important}
.bms-category-editor-panel .bms-category-editor-head h2{margin:3px 0 5px!important;font-size:20px!important}
.bms-category-editor-panel .bms-category-editor-head p{margin:0!important}
.bms-category-close{border:1px solid #e5d8d0!important;background:#fff!important;border-radius:10px!important;padding:9px 14px!important;font-weight:700!important;cursor:pointer!important}
.bms-category-editor-panel .bms-fields{margin-top:0!important}
.bms-category-editor-panel .bms-fields label{font-size:11px!important;font-weight:700!important;color:#5e4d43!important}
.bms-category-editor-panel .bms-fields input,.bms-category-editor-panel .bms-fields select,.bms-category-editor-panel .bms-fields textarea{border-radius:11px!important;border-color:#dfd2c9!important;background:#fff!important}
.bms-category-editor-panel .bms-category-image-preview-wrap{display:flex!important;align-items:center!important;gap:10px!important;margin-top:8px!important}
.bms-category-editor-panel #bms-cat-image-preview{width:82px!important;height:82px!important;object-fit:cover!important;border-radius:13px!important;border:1px solid #e5d9d0!important;background:#fff!important}
@media(max-width:650px){.bms-category-topbar{align-items:flex-start!important;flex-direction:column!important}.bms-category-topbar .bms-btn{width:100%!important}.bms-category-editor-panel{padding:14px!important}.bms-category-editor-panel .bms-category-editor-head{flex-direction:column!important}.bms-category-close{width:100%!important}}

/* v2.4.11 — Categories editor opens like the Product editor */
.bms-category-topbar{align-items:center!important}
.bms-category-topbar .bms-btn{white-space:nowrap!important}
.bms-category-editor-panel{margin-top:14px!important;padding:20px!important;border:1px solid #eadfd6!important;border-radius:18px!important;background:#fffaf7!important;box-shadow:0 10px 30px rgba(54,35,23,.045)!important}
.bms-category-editor-panel .bms-category-editor-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;margin-bottom:14px!important;padding-bottom:14px!important;border-bottom:1px solid #eee3dc!important}
.bms-category-editor-panel .bms-category-editor-head h2{margin:3px 0 5px!important;font-size:20px!important}
.bms-category-editor-panel .bms-category-editor-head p{margin:0!important}
.bms-category-close{border:1px solid #e5d8d0!important;background:#fff!important;border-radius:10px!important;padding:9px 14px!important;font-weight:700!important;cursor:pointer!important}
.bms-category-editor-panel .bms-fields{margin-top:0!important}
.bms-category-editor-panel .bms-fields label{font-size:11px!important;font-weight:700!important;color:#5e4d43!important}
.bms-category-editor-panel .bms-fields input,.bms-category-editor-panel .bms-fields select,.bms-category-editor-panel .bms-fields textarea{border-radius:11px!important;border-color:#dfd2c9!important;background:#fff!important}
.bms-category-editor-panel .bms-category-image-preview-wrap{display:flex!important;align-items:center!important;gap:10px!important;margin-top:8px!important}
.bms-category-editor-panel #bms-cat-image-preview{width:82px!important;height:82px!important;object-fit:cover!important;border-radius:13px!important;border:1px solid #e5d9d0!important;background:#fff!important}
@media(max-width:650px){.bms-category-topbar{align-items:flex-start!important;flex-direction:column!important}.bms-category-topbar .bms-btn{width:100%!important}.bms-category-editor-panel{padding:14px!important}.bms-category-editor-panel .bms-category-editor-head{flex-direction:column!important}.bms-category-close{width:100%!important}}

/* v2.4.12 — Professional internal product catalogue */
.bms-catalog-shell{display:flex;flex-direction:column;gap:18px}
.bms-catalog-hero{display:flex;justify-content:space-between;gap:24px;align-items:stretch;padding:24px;border:1px solid #eadfd6;border-radius:20px;background:linear-gradient(135deg,#fffaf7,#fff);box-shadow:0 12px 32px rgba(55,38,28,.045)}
.bms-catalog-hero h2{margin:4px 0 7px;font-size:30px;letter-spacing:-.02em}.bms-catalog-hero p{margin:0;color:#806e63;max-width:620px}
.bms-catalog-hero-kpis{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:10px;min-width:360px}.bms-catalog-hero-kpis div{border:1px solid #eee1d8;border-radius:15px;background:#fff;padding:14px 16px;display:flex;flex-direction:column;justify-content:center}.bms-catalog-hero-kpis b{font-size:22px;color:#2f2119}.bms-catalog-hero-kpis span{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#947f73;margin-top:3px}
.bms-catalog-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 180px 180px;gap:10px;align-items:center}.bms-catalog-search{height:50px;border:1px solid #e3d6ce;border-radius:14px;background:#fff;display:flex;align-items:center;padding:0 12px;box-shadow:0 5px 18px rgba(55,38,28,.03)}.bms-catalog-search span{font-size:22px;color:#a58e80;margin-right:9px}.bms-catalog-search input{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;width:100%;height:100%;font-size:13px!important}.bms-catalog-search button{border:0;background:#f7eee9;color:#9b6e53;border-radius:8px;width:28px;height:28px;cursor:pointer;font-size:18px;line-height:1}.bms-catalog-toolbar select{height:50px;border:1px solid #e3d6ce;border-radius:14px;background:#fff;padding:0 12px;font-size:11px;color:#4e3c32;outline:none}
.bms-catalog-categories,.bms-catalog-results{border:1px solid #eadfd6;border-radius:20px;background:#fff;padding:22px;box-shadow:0 10px 28px rgba(55,38,28,.035)}.bms-catalog-section-head,.bms-catalog-results-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.bms-catalog-section-head h3,.bms-catalog-results-head h3{margin:3px 0 0;font-size:19px}.bms-catalog-reset,.bms-catalog-sub-head button{border:1px solid #e5d7ce;background:#fff;border-radius:10px;padding:8px 12px;color:#704f3e;font-weight:700;font-size:11px;cursor:pointer}.bms-catalog-reset:hover,.bms-catalog-sub-head button:hover{border-color:#e77d31;color:#d66c26}
.bms-catalog-category-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:10px}.bms-catalog-category{display:flex;align-items:center;gap:10px;text-align:left;padding:10px;border:1px solid #e9ddd5;border-radius:15px;background:#fff;cursor:pointer;min-height:72px;transition:.18s ease;font-family:inherit}.bms-catalog-category:hover{border-color:#e9a16e;transform:translateY(-1px);box-shadow:0 7px 18px rgba(55,38,28,.06)}.bms-catalog-category.active{border:2px solid #e77d31;background:#fff6ef;box-shadow:0 0 0 3px rgba(231,125,49,.08)}.bms-catalog-category-image{width:48px;height:48px;border-radius:11px;overflow:hidden;background:#f7f0eb;display:flex;align-items:center;justify-content:center;flex:0 0 48px}.bms-catalog-category-image img{width:100%;height:100%;object-fit:cover}.bms-catalog-category b{display:block;font-size:11px;color:#3f3028;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-catalog-category small{display:block;color:#99867b;font-size:9px;margin-top:4px}
.bms-catalog-sub-wrap{margin-top:14px;padding-top:14px;border-top:1px solid #eee3dc}.bms-catalog-sub-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.bms-catalog-sub-head div{display:flex;flex-direction:column}.bms-catalog-sub-head div b{font-size:12px}.bms-catalog-sub-head div span{font-size:9px;color:#9b877b;margin-top:2px}.bms-catalog-sub-grid{display:flex;flex-wrap:wrap;gap:8px}.bms-catalog-subcat{display:flex;align-items:center;gap:7px;border:1px solid #e7dbd3;border-radius:12px;background:#fff;padding:6px 9px;cursor:pointer;font-family:inherit}.bms-catalog-subcat:hover,.bms-catalog-subcat.active{border-color:#e77d31;background:#fff5ed}.bms-catalog-subcat span{width:30px;height:30px;border-radius:8px;overflow:hidden;background:#f7f0eb;display:block}.bms-catalog-subcat img{width:100%;height:100%;object-fit:cover}.bms-catalog-subcat b{font-size:10px}.bms-catalog-subcat small{font-size:8px;color:#9b877b}
.bms-catalog-results-head{margin-bottom:17px}.bms-catalog-result-count{font-size:10px;font-weight:800;color:#8d7669;background:#fff5ed;border:1px solid #f0d7c5;padding:7px 10px;border-radius:999px}.bms-catalog-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bms-catalog-product{border:1px solid #eadfd6;border-radius:17px;background:#fff;overflow:hidden;transition:.18s ease;min-width:0}.bms-catalog-product:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(55,38,28,.07);border-color:#e4cfc0}.bms-catalog-product-image{height:205px;background:#f8f4f0;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.bms-catalog-product-image img{width:100%;height:100%;object-fit:contain;padding:12px}.bms-catalog-stock-badge{position:absolute;top:10px;right:10px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;background:#fff;border:1px solid #e2d7d0;box-shadow:0 4px 10px rgba(40,25,15,.06)}.bms-catalog-stock-badge.ok{color:#27764b;background:#f2fbf6;border-color:#ccebd9}.bms-catalog-stock-badge.low{color:#a86219;background:#fff8ec;border-color:#f0d6ad}.bms-catalog-stock-badge.out{color:#a6342a;background:#fff2f1;border-color:#efc7c2}.bms-catalog-product-body{padding:13px}.bms-catalog-product-title{font-size:13px;font-weight:900;color:#2f2119;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-catalog-product-sku{font-size:9px;color:#9a867b;margin-top:5px;min-height:14px}.bms-catalog-product-meta{display:flex;align-items:baseline;gap:7px;margin-top:10px}.bms-catalog-product-meta strong{font-size:17px;color:#df6f27}.bms-catalog-product-meta del{font-size:9px;color:#a9968b}.bms-catalog-product-status{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:9px;color:#756257}.bms-catalog-product-status .dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#36a368}.bms-catalog-product-status .dot.low{background:#e39a38}.bms-catalog-product-status .dot.out{background:#d84b40}.bms-catalog-empty{text-align:center;padding:55px 20px;color:#8f7b70}.bms-catalog-empty>div{font-size:35px;margin-bottom:7px}.bms-catalog-empty h3{margin:0 0 5px;color:#403128}.bms-catalog-empty p{margin:0;font-size:12px}
@media(max-width:1050px){.bms-catalog-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bms-catalog-hero{display:block}.bms-catalog-hero-kpis{margin-top:15px;min-width:0}}@media(max-width:760px){.bms-catalog-toolbar{grid-template-columns:1fr}.bms-catalog-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bms-catalog-hero-kpis{grid-template-columns:repeat(3,1fr)}.bms-catalog-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.bms-catalog-product-grid{grid-template-columns:1fr}.bms-catalog-category-grid{grid-template-columns:1fr}.bms-catalog-hero-kpis{grid-template-columns:1fr}.bms-catalog-section-head,.bms-catalog-results-head{align-items:flex-start;flex-direction:column}.bms-catalog-reset{width:100%}}

/* v2.4.13 — Private Shop / storefront-style internal catalogue */
.bms-private-shop-shell{max-width:1500px;margin:28px auto;padding:0 24px 60px;color:#241b16;font-family:inherit}
.bms-private-shop-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}
.bms-private-shop-head h1{font-size:42px;line-height:1.05;margin:7px 0 8px;font-weight:900;letter-spacing:-1.5px}
.bms-private-shop-head p{margin:0;color:#796a61;font-size:13px;max-width:700px}
.bms-private-shop-head-kpis{display:flex;gap:10px}
.bms-private-shop-head-kpis div{min-width:120px;padding:14px 16px;border:1px solid #eaded5;border-radius:16px;background:#fffaf7;text-align:center}
.bms-private-shop-head-kpis b{display:block;font-size:22px;font-weight:900;color:#e77d31}
.bms-private-shop-head-kpis span{display:block;margin-top:3px;font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#8c7a70;font-weight:800}
.bms-private-shop-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 190px 190px;gap:10px;padding:12px;border:1px solid #eadfd7;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(48,31,20,.045);margin-bottom:18px}
.bms-private-shop-search{height:50px;display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid #e5d8cf;border-radius:13px;background:#fffaf7}
.bms-private-shop-search span{font-size:20px;color:#e77d31}
.bms-private-shop-search input{border:0!important;outline:0!important;background:transparent!important;width:100%;height:100%;font-size:13px!important;box-shadow:none!important}
.bms-private-shop-toolbar select{height:50px!important;border:1px solid #e5d8cf!important;border-radius:13px!important;background:#fff!important;font-size:12px!important;padding:0 12px!important}
.bms-private-shop-categories,.bms-private-shop-products{border:1px solid #eadfd7;border-radius:20px;background:#fff;padding:20px;margin-bottom:18px;box-shadow:0 10px 30px rgba(48,31,20,.035)}
.bms-private-shop-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:14px}
.bms-private-shop-section-head h2{margin:4px 0 0;font-size:21px;font-weight:900}
.bms-private-shop-count{font-size:11px;font-weight:800;color:#8b786d;background:#fff8f3;border:1px solid #eee0d6;padding:7px 10px;border-radius:999px}
.bms-private-shop-cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.bms-private-shop-cat{border:1px solid #e8dcd3!important;background:#fff!important;border-radius:15px!important;min-height:118px!important;padding:10px 8px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;cursor:pointer!important;box-shadow:none!important;color:#3e3029!important;transition:.18s ease!important}
.bms-private-shop-cat:hover{transform:translateY(-2px);border-color:#e6a274!important;background:#fffaf7!important}
.bms-private-shop-cat.active{border:2px solid #e77d31!important;background:#fff5ed!important;box-shadow:0 0 0 3px rgba(231,125,49,.08)!important}
.bms-private-shop-cat-icon{width:48px;height:48px;border-radius:13px;background:#f8eee8;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#e77d31;font-size:20px;margin-bottom:7px}
.bms-private-shop-cat-icon img{width:100%;height:100%;object-fit:cover}
.bms-private-shop-cat b{font-size:11px;font-weight:900;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bms-private-shop-cat small{font-size:8px;color:#927f74;margin-top:3px}
.bms-private-shop-subcats{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid #f0e5de}
.bms-private-shop-subcat{border:1px solid #e6d9d1!important;background:#fff!important;border-radius:999px!important;padding:7px 11px!important;font-size:10px!important;font-weight:800!important;color:#6b5a50!important;cursor:pointer!important}
.bms-private-shop-subcat.active{background:#e77d31!important;border-color:#e77d31!important;color:#fff!important}
.bms-private-shop-subcat small{margin-left:4px;opacity:.75}
.bms-private-shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:13px}
.bms-private-shop-card{border:1px solid #e8ddd5;border-radius:17px;background:#fff;overflow:hidden;transition:.18s ease;min-width:0}
.bms-private-shop-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(53,35,23,.09);border-color:#e3cfc2}
.bms-private-shop-image{height:190px;background:#f8f4f1;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}
.bms-private-shop-image img{width:100%;height:100%;object-fit:contain;padding:8px}
.bms-private-shop-badge{position:absolute;top:9px;left:9px;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:900;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.bms-private-shop-badge.low{color:#9a5c00;border:1px solid #f0d49e;background:#fff7e8}
.bms-private-shop-badge.out{color:#a72b22;border:1px solid #f0c1bb;background:#fff0ee}
.bms-private-shop-card-body{padding:12px}
.bms-private-shop-name{font-size:13px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bms-private-shop-sku{font-size:9px;color:#968278;margin-top:5px}
.bms-private-shop-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:11px}
.bms-private-shop-meta>b{font-size:15px;color:#e16f25;font-weight:900}
.bms-private-shop-stock{font-size:8px;font-weight:900;padding:5px 7px;border-radius:999px;white-space:nowrap}
.bms-private-shop-stock.ok{color:#167443;background:#eefaf2}.bms-private-shop-stock.low{color:#9a5c00;background:#fff5df}.bms-private-shop-stock.out{color:#a72b22;background:#fff0ee}
.bms-private-shop-empty{text-align:center;padding:55px 20px;color:#89786f}.bms-private-shop-empty div{font-size:34px;color:#e77d31}.bms-private-shop-empty h3{margin:8px 0 5px;color:#3e3029}
@media(max-width:900px){.bms-private-shop-toolbar{grid-template-columns:1fr}.bms-private-shop-head{display:block}.bms-private-shop-head-kpis{margin-top:15px}.bms-private-shop-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.bms-private-shop-shell{padding:0 12px 40px}.bms-private-shop-head h1{font-size:32px}.bms-private-shop-head-kpis{display:grid;grid-template-columns:1fr 1fr}.bms-private-shop-cat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bms-private-shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bms-private-shop-image{height:150px}.bms-private-shop-section-head{align-items:flex-start;display:block}.bms-private-shop-count{display:inline-block;margin-top:8px}}


/* v2.4.14 — product detail + catalogue actions */
.bms-private-shop-clickable,.bms-catalog-product-clickable{cursor:pointer}
.bms-private-shop-view{display:block;margin-top:9px;font-size:9px;font-weight:900;color:#d86e2a}
.bms-private-shop-clickable:focus,.bms-catalog-product-clickable:focus{outline:0;border-color:#e77d31;box-shadow:0 0 0 3px rgba(231,125,49,.10)}
.bms-product-detail-dialog{width:min(820px,calc(100vw - 28px))}
.bms-product-detail-head{display:grid;grid-template-columns:220px 1fr;gap:24px;align-items:center;padding-right:36px}
.bms-product-detail-image{height:220px;border:1px solid #eadfd6;border-radius:18px;background:#faf7f4;display:flex;align-items:center;justify-content:center;overflow:hidden}
.bms-product-detail-image img{width:100%;height:100%;object-fit:contain;padding:12px}
.bms-product-detail-head h2{margin:7px 0 6px;font-size:26px;color:var(--bms-ink)}
.bms-product-detail-head p{margin:0;color:#8f7d72;font-size:11px}
.bms-product-detail-price{margin-top:16px;color:#df6f27;font-size:23px;font-weight:900}
.bms-product-detail-price del{font-size:11px;color:#a89488;margin-left:7px;font-weight:600}
.bms-product-detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}
.bms-product-detail-grid>div{border:1px solid var(--bms-line);border-radius:14px;background:#fffaf7;padding:14px}
.bms-product-detail-grid span{display:block;font-size:9px;color:#907c70;text-transform:uppercase;letter-spacing:.08em;font-weight:800}
.bms-product-detail-grid b{display:block;margin-top:6px;font-size:12px;color:var(--bms-ink)}
.bms-product-detail-note{margin-top:16px;padding:12px 14px;border-radius:12px;background:#fff5ed;color:#806c60;font-size:10px}
.bms-catalog-top-action{display:flex;justify-content:flex-end;margin-bottom:12px}
.bms-catalog-top-action .bms-btn{min-width:160px}
#bms-catalog-product-editor{margin-bottom:18px}
@media(max-width:650px){.bms-product-detail-head{grid-template-columns:1fr;gap:14px}.bms-product-detail-image{height:190px}.bms-product-detail-grid{grid-template-columns:1fr}.bms-catalog-top-action{justify-content:stretch}.bms-catalog-top-action .bms-btn{width:100%}}
.bms-catalog-top-action{display:flex;justify-content:flex-end;margin-bottom:12px}
.bms-catalog-top-action .bms-btn{min-width:170px}
#bms-catalog-product-editor{margin-bottom:18px}
.bms-catalog-editor-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:15px;padding-bottom:13px;border-bottom:1px solid var(--bms-line)}
.bms-catalog-editor-head h3{margin:4px 0 3px;font-size:20px;color:var(--bms-ink)}
.bms-catalog-editor-head p{margin:0;font-size:11px}
.bms-catalog-editor-close{width:34px;height:34px;border:1px solid #e7d9d0;background:#fff;border-radius:10px;font-size:22px;line-height:1;cursor:pointer;color:#7d685d}
.bms-catalog-editor-close:hover{border-color:#e77d31;color:#d86e2a;background:#fff8f3}
@media(max-width:650px){.bms-catalog-top-action{justify-content:stretch}.bms-catalog-top-action .bms-btn{width:100%}}

/* v2.4.17 — product editor form alignment and polished fields */
.bms-catalog-product-dialog .bms-product-form label{display:block!important;width:100%!important;box-sizing:border-box!important;line-height:1.35!important;color:#5e5149!important;font-size:10px!important;font-weight:850!important}
.bms-catalog-product-dialog .bms-product-form label input,
.bms-catalog-product-dialog .bms-product-form label select,
.bms-catalog-product-dialog .bms-product-form label textarea{display:block!important;width:100%!important;box-sizing:border-box!important;margin:7px 0 0!important;min-height:44px!important;padding:11px 13px!important;border:1px solid #e6d8cf!important;border-radius:11px!important;background:#fff!important;color:var(--bms-ink)!important;font-size:12px!important;line-height:1.2!important;box-shadow:inset 0 1px 2px rgba(45,28,18,.025)!important;outline:none!important}
.bms-catalog-product-dialog .bms-product-form label input:focus,
.bms-catalog-product-dialog .bms-product-form label select:focus,
.bms-catalog-product-dialog .bms-product-form label textarea:focus{border-color:#e77d31!important;box-shadow:0 0 0 3px rgba(231,125,49,.10)!important}
.bms-catalog-product-dialog .bms-product-form .bms-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important}
.bms-catalog-product-dialog .bms-product-form .bms-fields>.wide{grid-column:1/-1!important}
.bms-catalog-product-dialog .bms-product-form .bms-image-field{padding:14px!important;border:1px dashed #e2d3c9!important;border-radius:13px!important;background:#fffaf7!important}
.bms-catalog-product-dialog .bms-product-form .bms-image-field input[type=file]{min-height:auto!important;padding:9px!important;background:#fff!important}
.bms-catalog-product-dialog .bms-product-form .bms-image-field small{display:block!important;margin-top:7px!important;color:#9b887c!important;font-size:9px!important}
.bms-catalog-product-dialog .bms-product-form .bms-image-field img{display:block!important;width:110px!important;height:110px!important;margin-top:10px!important;object-fit:contain!important;border:1px solid #eadfd6!important;border-radius:12px!important;background:#fff!important}
.bms-catalog-product-dialog .bms-product-form .bms-btn{height:44px!important;min-width:175px!important}
.bms-catalog-product-dialog .bms-product-form .bms-cancel-product{height:44px!important;padding:0 18px!important}

/* v2.4.16 — cleaner navigation + professional product editor modal */
.bms-side>a{position:relative}
.bms-catalog-top-action{align-items:center;margin:0 0 16px;padding:0}
.bms-catalog-top-action .bms-btn{min-width:178px;height:42px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;box-shadow:0 8px 18px rgba(224,123,53,.18)}
.bms-catalog-top-action .bms-btn:hover{background:var(--bms-orange-dark);transform:translateY(-1px)}
#bms-catalog-product-editor{display:none;margin:0}
#bms-catalog-product-editor.open{display:block}
.bms-catalog-product-dialog{width:min(900px,calc(100vw - 34px));padding:0;overflow:auto;max-height:calc(100vh - 34px)}
.bms-catalog-product-dialog .bms-catalog-editor-head{padding:24px 28px 18px;margin:0;border-bottom:1px solid var(--bms-line);background:linear-gradient(135deg,#fffaf7,#fff);position:sticky;top:0;z-index:2}
.bms-catalog-editor-head h3{font-size:22px;margin:5px 0 4px}
.bms-catalog-editor-head p{font-size:11px;max-width:560px}
.bms-catalog-editor-close{position:absolute;right:18px;top:16px;width:38px;height:38px;border-radius:50%;font-size:21px;background:#fff4ec;color:#a35b31;border:1px solid #f0ded1;z-index:3}
.bms-catalog-editor-close:hover{background:#e77d31;color:#fff;border-color:#e77d31}
.bms-catalog-product-dialog .bms-product-form{margin:0;border:0;border-radius:0;background:#fff;padding:24px 28px 28px}
.bms-catalog-product-dialog .bms-fields{gap:14px}
.bms-catalog-product-dialog .bms-card input,.bms-catalog-product-dialog .bms-card select{min-height:44px}
.bms-catalog-product-dialog .bms-product-form label{font-size:10px}
.bms-catalog-product-dialog .bms-image-field img{width:110px;height:110px;border-radius:12px}
.bms-catalog-product-dialog .bms-product-form>div:last-of-type{margin-top:20px!important;padding-top:16px;border-top:1px solid #f0e5de}
.bms-catalog-product-dialog .bms-product-form .bms-btn{min-width:170px;height:42px}
.bms-catalog-product-dialog .bms-product-form .bms-cancel-product{height:42px;border:1px solid var(--bms-line);background:#fff;color:var(--bms-ink);border-radius:10px;padding:0 16px;font-weight:800;cursor:pointer}
@media(max-width:650px){.bms-catalog-product-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.bms-catalog-product-dialog .bms-catalog-editor-head,.bms-catalog-product-dialog .bms-product-form{padding-left:18px;padding-right:18px}.bms-catalog-product-dialog .bms-fields{grid-template-columns:1fr}.bms-catalog-product-dialog .bms-fields .wide{grid-column:auto}.bms-catalog-top-action .bms-btn{width:auto;min-width:0;padding:0 16px}}

/* Boutique Manager 2.4.18 — Full-width POS navigation */
.bms-pos-workspace{max-width:1500px;margin:22px auto 60px;background:#fff;border:1px solid var(--bms-line);border-radius:22px;overflow:hidden;box-shadow:0 18px 55px rgba(53,32,20,.08)}
.bms-pos-nav{min-height:68px;padding:10px 18px;display:flex;align-items:center;gap:18px;border-bottom:1px solid var(--bms-line);background:rgba(255,255,255,.98);position:sticky;top:0;z-index:30}
.bms-pos-nav-brand{display:flex;align-items:center;gap:9px;flex:0 0 auto;min-width:185px}.bms-pos-nav-mark{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#e77d31,#c96525);color:#fff;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:950}.bms-pos-nav-brand b{display:block;font-size:12px;color:var(--bms-ink)}.bms-pos-nav-brand small{display:block;margin-top:2px;font-size:8px;color:var(--bms-muted);letter-spacing:.4px}
.bms-pos-nav-links{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin}.bms-pos-nav-links a{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;text-decoration:none;color:#6e625b;padding:10px 9px;border-radius:10px;font-size:10px;font-weight:800}.bms-pos-nav-links a span{font-size:11px}.bms-pos-nav-links a:hover,.bms-pos-nav-links a.active{background:#fff0e5;color:var(--bms-orange-dark)}
.bms-pos-nav-user{display:flex;align-items:center;gap:8px;flex:0 0 auto}.bms-pos-nav-user>span{border:1px solid var(--bms-line);padding:8px 11px;border-radius:999px;font-size:9px;font-weight:850;color:var(--bms-ink)}.bms-pos-nav-user a{border:1px solid var(--bms-line);border-radius:10px;padding:9px 11px;color:var(--bms-ink);font-size:9px;font-weight:850;text-decoration:none}.bms-pos-nav-user a:hover{border-color:#e7a06f;background:#fff8f2}
.bms-pos-main{padding:22px 26px 36px;min-width:0}.bms-pos-pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:16px}.bms-pos-pagehead small{font-size:9px;letter-spacing:2px;color:#b38b71;font-weight:900}.bms-pos-pagehead h1{margin:5px 0 0;font-size:28px;letter-spacing:-.6px;color:var(--bms-ink)}
.bms-pos-main .bms-pos-shell{margin-top:0}.bms-pos-main .bms-pos-shell>.bms-pos-head{display:none!important}
@media(max-width:1100px){.bms-pos-nav{align-items:flex-start;flex-wrap:wrap}.bms-pos-nav-brand{min-width:170px}.bms-pos-nav-links{order:3;flex-basis:100%;width:100%;padding-top:2px}.bms-pos-main{padding:18px}.bms-pos-main .bms-pos-layout{grid-template-columns:minmax(0,1fr) 390px!important}}
@media(max-width:850px){.bms-pos-workspace{margin:0;border-radius:0;border-left:0;border-right:0}.bms-pos-nav{position:relative}.bms-pos-nav-user{margin-left:auto}.bms-pos-main .bms-pos-layout{grid-template-columns:1fr!important}.bms-pos-main .bms-pos-cart{position:static!important}}
@media(max-width:600px){.bms-pos-nav{padding:9px 12px}.bms-pos-nav-brand{min-width:auto}.bms-pos-nav-brand b{font-size:11px}.bms-pos-nav-user>span{display:none}.bms-pos-nav-user a{padding:8px}.bms-pos-main{padding:14px 12px 28px}.bms-pos-pagehead h1{font-size:24px}.bms-pos-main .bms-pos-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v2.4.19 — POS premium top navigation, no horizontal scrolling */
.bms-pos-workspace{max-width:1540px;margin:20px auto 56px;background:#fff;border:1px solid #eadfd7;border-radius:24px;overflow:hidden;box-shadow:0 22px 65px rgba(47,29,18,.08)}
.bms-pos-nav{display:block;padding:0;border:0;background:#fff;position:sticky;top:0;z-index:40}
.bms-pos-nav-top{min-height:74px;padding:12px 20px;display:grid;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);align-items:center;gap:18px;border-bottom:1px solid #f0e6df;background:linear-gradient(180deg,#fff,#fffdfc)}
.bms-pos-nav-brand{display:flex;align-items:center;gap:11px;min-width:0}
.bms-pos-nav-mark{width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#ed8338,#ce6727);box-shadow:0 7px 18px rgba(218,112,46,.18);font-size:20px}
.bms-pos-nav-brand b{font-size:13px;letter-spacing:-.1px}.bms-pos-nav-brand small{font-size:8px;letter-spacing:.5px;color:#9a867a}
.bms-pos-context{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}
.bms-pos-live{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #cdebd9;border-radius:999px;background:#f1fbf5;color:#247345;font-size:9px;font-weight:900}
.bms-pos-live i{width:7px;height:7px;border-radius:50%;background:#39a965;box-shadow:0 0 0 4px rgba(57,169,101,.10)}
.bms-pos-context-text{font-size:9px;font-weight:800;color:#9a887e;text-transform:uppercase;letter-spacing:1.2px}
.bms-pos-nav-user{justify-self:end;display:flex;align-items:center;gap:8px;flex:0 0 auto}
.bms-pos-nav-user>span{border:1px solid #eadfd7;background:#fff;border-radius:999px;padding:9px 13px;font-size:9px;font-weight:850;color:#30251f}
.bms-pos-nav-user a{border:1px solid #eadfd7;border-radius:11px;padding:9px 13px;color:#30251f;background:#fff;font-size:9px;font-weight:850;text-decoration:none;transition:.18s ease}
.bms-pos-nav-user a:hover{border-color:#e79b6b;background:#fff7f1;color:#c96225}
.bms-pos-nav-links{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;overflow:visible;padding:9px 18px 10px;background:#fff;border-bottom:1px solid #eadfd7}
.bms-pos-nav-links a{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;text-decoration:none;color:#685b53;padding:9px 12px;border-radius:11px;font-size:10px;font-weight:850;line-height:1;transition:background .18s ease,color .18s ease,transform .18s ease}
.bms-pos-nav-links a span{font-size:11px;opacity:.9}
.bms-pos-nav-links a:hover{background:#fff5ee;color:#d86d2a;transform:translateY(-1px)}
.bms-pos-nav-links a.active{background:#fff0e5;color:#d86d2a;box-shadow:inset 0 0 0 1px #f4c7a9}
.bms-pos-main{padding:24px 30px 38px}
.bms-pos-pagehead{margin-bottom:18px}
@media(max-width:1050px){.bms-pos-nav-top{grid-template-columns:1fr auto;grid-template-areas:'brand user' 'context context';gap:8px 14px;padding:11px 16px}.bms-pos-nav-brand{grid-area:brand}.bms-pos-nav-user{grid-area:user}.bms-pos-context{grid-area:context;justify-content:flex-start;padding-left:53px}.bms-pos-nav-links{justify-content:flex-start;padding:8px 14px}.bms-pos-main{padding:20px}}
@media(max-width:650px){.bms-pos-nav-top{grid-template-columns:1fr auto;grid-template-areas:'brand user';padding:10px 12px}.bms-pos-context{display:none}.bms-pos-nav-brand b{font-size:11px}.bms-pos-nav-brand small{display:none}.bms-pos-nav-mark{width:38px;height:38px}.bms-pos-nav-user>span{display:none}.bms-pos-nav-user a{padding:8px 10px}.bms-pos-nav-links{justify-content:flex-start;gap:3px;overflow:visible;padding:7px 10px}.bms-pos-nav-links a{font-size:9px;padding:8px 9px}.bms-pos-main{padding:15px 12px 28px}}

/* ==========================================================
   Boutique Manager 2.4.20 — POS MENU FIXE / SANS SCROLL
   Objectif : menu simple, fixe, entièrement visible sur desktop.
   Aucun menu déroulant et aucun overflow horizontal.
   ========================================================== */
.bms-pos-workspace .bms-pos-nav{
    position:sticky!important;
    top:0!important;
    z-index:100!important;
    display:block!important;
    padding:0!important;
    overflow:visible!important;
    background:#fff!important;
}
.bms-pos-workspace .bms-pos-nav-top{
    min-height:68px!important;
    padding:10px 20px!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    align-items:center!important;
    gap:20px!important;
    border-bottom:1px solid #eee3db!important;
}
.bms-pos-workspace .bms-pos-nav-brand{min-width:0!important}
.bms-pos-workspace .bms-pos-nav-context{
    display:none!important;
}
.bms-pos-workspace .bms-pos-nav-user{
    justify-self:end!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
}
.bms-pos-workspace .bms-pos-nav-links{
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding:8px 18px!important;
    background:#fff!important;
    border-bottom:1px solid #eadfd7!important;
}
.bms-pos-workspace .bms-pos-nav-links a{
    flex:0 0 auto!important;
    min-height:36px!important;
    padding:9px 12px!important;
    font-size:10px!important;
    line-height:1!important;
    border-radius:10px!important;
    white-space:nowrap!important;
}
.bms-pos-workspace .bms-pos-nav-links a span{font-size:11px!important}
.bms-pos-workspace .bms-pos-nav-links a.active{
    background:#fff0e5!important;
    color:#d86d2a!important;
    box-shadow:inset 0 0 0 1px #f3c3a1!important;
}
.bms-pos-workspace .bms-pos-nav-links a:hover{
    background:#fff7f1!important;
    color:#d86d2a!important;
    transform:none!important;
}
@media (max-width:1100px){
    .bms-pos-workspace .bms-pos-nav-links{justify-content:flex-start!important}
    .bms-pos-workspace .bms-pos-nav-links a{padding-left:10px!important;padding-right:10px!important}
}
@media (max-width:700px){
    .bms-pos-workspace .bms-pos-nav-top{grid-template-columns:1fr!important;gap:8px!important}
    .bms-pos-workspace .bms-pos-nav-user{justify-self:start!important}
    .bms-pos-workspace .bms-pos-nav-links{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
    .bms-pos-workspace .bms-pos-nav-links a{width:100%!important}
}

/* v2.4.22 — POS catégories compactes / miniatures fines */
.bms-pos-shell .bms-pos-cats{display:flex!important;align-items:center!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:10px 1px 5px!important;min-height:40px!important;scrollbar-width:none!important}
.bms-pos-shell .bms-pos-cats::-webkit-scrollbar{display:none!important}
.bms-pos-shell .bms-pos-cat{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:145px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:4px 10px 4px 5px!important;border:1px solid #e8ddd5!important;border-radius:18px!important;background:#fff!important;color:#6f625b!important;font-size:9px!important;font-weight:800!important;line-height:1!important;box-shadow:none!important;transform:none!important}
.bms-pos-shell .bms-pos-cat:hover{border-color:#efb48d!important;background:#fffaf7!important;box-shadow:0 2px 8px rgba(54,35,23,.05)!important}
.bms-pos-shell .bms-pos-cat.active{background:#fff5ed!important;border-color:#e77d31!important;color:#b45b26!important;box-shadow:0 0 0 2px rgba(231,125,49,.07)!important}
.bms-pos-shell .bms-pos-cat-thumb{width:27px!important;height:27px!important;min-width:27px!important;flex:0 0 27px!important;border-radius:8px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#f8f3ef!important;border:1px solid #eee3db!important;color:#d96f2c!important;font-size:12px!important;font-weight:900!important}
.bms-pos-shell .bms-pos-cat-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:cover!important}
.bms-pos-shell .bms-pos-cat-all{background:#fff0e5!important;border-color:#f2d0b9!important}
.bms-pos-shell .bms-pos-cat.active .bms-pos-cat-all{background:#e77d31!important;color:#fff!important;border-color:#e77d31!important}
.bms-pos-shell .bms-pos-cat-label{display:block!important;max-width:95px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:1!important;font-weight:850!important}
@media(max-width:600px){.bms-pos-shell .bms-pos-cats{gap:5px!important;padding-top:8px!important}.bms-pos-shell .bms-pos-cat{height:34px!important;min-height:34px!important;padding-right:8px!important}.bms-pos-shell .bms-pos-cat-thumb{width:25px!important;height:25px!important;min-width:25px!important;flex-basis:25px!important}.bms-pos-shell .bms-pos-cat-label{font-size:8px!important;max-width:80px!important}}

/* v2.5.0 thermal invoice */
.bms-sale-success{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bms-invoice-print-btn,.bms-invoice-link{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;text-decoration:none!important}.bms-invoice-print-btn{padding:8px 12px!important;font-size:12px!important}.bms-invoice-link{min-width:38px}.bms-invoice-settings-form .bms-fields{margin-top:12px}

/* Modern KPI cards — distinct visual identity */
.bms-stats-modern{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
.bms-stat-kpi{position:relative;overflow:hidden;min-height:112px;padding:18px 18px 16px!important;border-radius:18px!important;border:1px solid transparent!important;box-shadow:0 12px 30px rgba(48,31,21,.06)!important}
.bms-stat-kpi:after{content:"";position:absolute;right:-24px;top:-28px;width:88px;height:88px;border-radius:50%;background:rgba(255,255,255,.42);pointer-events:none}
.bms-stat-kpi b{font-size:23px!important;line-height:1.15!important;position:relative;z-index:1}.bms-stat-kpi span{display:block!important;margin-top:9px;font-size:9px!important;font-weight:950!important;text-transform:uppercase;letter-spacing:.65px;position:relative;z-index:1}.bms-stat-kpi small{display:block!important;margin-top:6px;font-size:8px!important;color:#705f56!important;position:relative;z-index:1}
.bms-stat-kpi.stat-sales{background:linear-gradient(145deg,#fff4e9,#fffaf6)!important;border-color:#f2d4bd!important}.bms-stat-kpi.stat-sales b{color:#c96325!important}.bms-stat-kpi.stat-sales span{color:#9c5b32!important}
.bms-stat-kpi.stat-commission{background:linear-gradient(145deg,#fff9df,#fffdf3)!important;border-color:#f0e2aa!important}.bms-stat-kpi.stat-commission b{color:#a77600!important}.bms-stat-kpi.stat-commission span{color:#8f761e!important}
.bms-stat-kpi.stat-profit{background:linear-gradient(145deg,#eaf8f0,#f8fcfa)!important;border-color:#cce7d8!important}.bms-stat-kpi.stat-profit b{color:#197347!important}.bms-stat-kpi.stat-profit span{color:#357a58!important}
.bms-stat-kpi.stat-orders{background:linear-gradient(145deg,#eef0ff,#fafaff)!important;border-color:#d8dcfa!important}.bms-stat-kpi.stat-orders b{color:#4d55a8!important}.bms-stat-kpi.stat-orders span{color:#6268a2!important}
.bms-stat-kpi.stat-channel{background:linear-gradient(145deg,#f3edff,#fbf9ff)!important;border-color:#ddd1f4!important}.bms-stat-kpi.stat-channel b{color:#6d49a6!important;font-size:18px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-stat-kpi.stat-channel span{color:#765c99!important}
.bms-kpis-modern{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}.bms-kpis-modern .bms-dash-kpi{position:relative;overflow:hidden;min-height:104px;border-radius:18px!important;box-shadow:0 12px 30px rgba(48,31,21,.06)!important}.bms-kpis-modern .bms-dash-kpi:after{content:"";position:absolute;right:-22px;top:-22px;width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,.38)}
.bms-kpis-modern .kpi-sales{background:linear-gradient(145deg,#fff4e9,#fffaf6);border-color:#f2d4bd}.bms-kpis-modern .kpi-sales b{color:#c96325}.bms-kpis-modern .kpi-commission{background:linear-gradient(145deg,#fff9df,#fffdf3);border-color:#f0e2aa}.bms-kpis-modern .kpi-commission b{color:#a77600}.bms-kpis-modern .kpi-profit{background:linear-gradient(145deg,#eaf8f0,#f8fcfa);border-color:#cce7d8}.bms-kpis-modern .kpi-profit b{color:#197347}.bms-kpis-modern .kpi-orders{background:linear-gradient(145deg,#eef0ff,#fafaff);border-color:#d8dcfa}.bms-kpis-modern .kpi-orders b{color:#4d55a8}.bms-kpis-modern .kpi-channel{background:linear-gradient(145deg,#f3edff,#fbf9ff);border-color:#ddd1f4}.bms-kpis-modern .kpi-channel b{color:#6d49a6;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bms-kpi-channel-name{max-width:100%;position:relative;z-index:1}
@media(max-width:1100px){.bms-stats-modern,.bms-kpis-modern{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:800px){.bms-stats-modern,.bms-kpis-modern{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:520px){.bms-stats-modern,.bms-kpis-modern{grid-template-columns:1fr!important}}


/* v2.6.2 — professional status control */
.bms-status-cell{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-width:172px;height:40px;padding:0 4px;border-radius:12px;background:#fff;border:1px solid #eadfd7;box-sizing:border-box}
.bms-status-cell .bms-status-dot{width:8px;height:8px;min-width:8px;border-radius:50%;background:#9a8f88;box-shadow:0 0 0 3px rgba(154,143,136,.10);transition:.18s ease}
.bms-status-cell.status-pending .bms-status-dot{background:#d79b19;box-shadow:0 0 0 3px rgba(215,155,25,.12)}
.bms-status-cell.status-processing .bms-status-dot{background:#3d7fc4;box-shadow:0 0 0 3px rgba(61,127,196,.12)}
.bms-status-cell.status-on-hold .bms-status-dot{background:#7d5bb2;box-shadow:0 0 0 3px rgba(125,91,178,.12)}
.bms-status-cell.status-completed .bms-status-dot{background:#26955b;box-shadow:0 0 0 3px rgba(38,149,91,.12)}
.bms-status-cell.status-cancelled .bms-status-dot{background:#d34c45;box-shadow:0 0 0 3px rgba(211,76,69,.12)}
.bms-status-cell.status-refunded .bms-status-dot{background:#c87338;box-shadow:0 0 0 3px rgba(200,115,56,.12)}
.bms-status-cell.status-failed .bms-status-dot{background:#9d3c3c;box-shadow:0 0 0 3px rgba(157,60,60,.12)}
.bms-quick-status{appearance:none!important;-webkit-appearance:none!important;width:132px!important;max-width:none!important;min-height:32px!important;height:32px!important;padding:5px 28px 5px 10px!important;border:0!important;border-radius:9px!important;background-color:transparent!important;color:#3d3029!important;font-size:11px!important;font-weight:800!important;line-height:1.2!important;box-shadow:none!important;background-image:linear-gradient(45deg,transparent 50%,#8f7d70 50%),linear-gradient(135deg,#8f7d70 50%,transparent 50%)!important;background-position:calc(100% - 13px) 13px,calc(100% - 9px) 13px!important;background-size:4px 4px,4px 4px!important;background-repeat:no-repeat!important;cursor:pointer!important}
.bms-quick-status:hover{background-color:#faf7f4!important;transform:none!important;box-shadow:none!important}
.bms-quick-status:focus{outline:none!important;box-shadow:0 0 0 3px rgba(231,125,49,.13)!important}
.bms-status-cell.status-pending{background:#fffaf0;border-color:#f0dfb3}.bms-status-cell.status-processing{background:#f3f8ff;border-color:#cbdcf2}.bms-status-cell.status-on-hold{background:#f8f5ff;border-color:#ddd2f1}.bms-status-cell.status-completed{background:#f1faf5;border-color:#c9e7d5}.bms-status-cell.status-cancelled{background:#fff5f4;border-color:#f0cfcc}.bms-status-cell.status-refunded{background:#fff8f2;border-color:#efd8c3}.bms-status-cell.status-failed{background:#fff5f5;border-color:#e7cccc}
.bms-status-cell .bms-status-saving{position:absolute;right:7px;top:-7px;display:none;width:16px;height:16px;border-radius:50%;background:#fff;border:1px solid #eadfd7;align-items:center;justify-content:center;font-size:10px;line-height:1;color:#e87827}.bms-status-cell .bms-status-saving.show{display:flex}
.bms-table td{vertical-align:middle!important}.bms-table td:last-child{white-space:nowrap}.bms-table td:nth-child(7){min-width:190px}
@media(max-width:850px){.bms-status-cell{min-width:150px}.bms-quick-status{width:112px!important;font-size:10px!important}}
html[dir="rtl"] .bms-quick-status{padding-left:28px!important;padding-right:10px!important;background-position:9px 13px,13px 13px!important}
html[dir="rtl"] .bms-status-cell{direction:rtl}

/* Boutique Manager — ventes / commandes : compact PRO layout */
.bms-orders-table{table-layout:fixed;border-spacing:0 5px;border-collapse:separate;font-size:11px}
.bms-orders-table th{padding:9px 8px;font-size:8px;letter-spacing:.8px;white-space:nowrap}
.bms-orders-table td{padding:10px 8px;background:#fff;border-top:1px solid #efe5dd;border-bottom:1px solid #efe5dd;vertical-align:middle}
.bms-orders-table td:first-child{border-left:1px solid #efe5dd;border-radius:10px 0 0 10px}
.bms-orders-table td:last-child{border-right:1px solid #efe5dd;border-radius:0 10px 10px 0}
.bms-orders-table tbody tr{transition:transform .16s ease,box-shadow .16s ease}
.bms-orders-table tbody tr:hover{transform:translateY(-1px)}
.bms-orders-table .bms-order-id{width:55px;color:#6f625b}
.bms-orders-table .bms-order-customer{width:145px}
.bms-orders-table .bms-order-channel{width:105px;color:#62564f;font-weight:700}
.bms-orders-table .bms-order-total{width:92px}
.bms-orders-table .bms-order-profit{width:92px}
.bms-orders-table .bms-order-creator{width:105px}
.bms-orders-table .bms-order-status-col{width:150px}
.bms-orders-table .bms-order-actions{width:185px}
.bms-order-customer b,.bms-order-creator b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.bms-order-customer small{display:block;margin-top:3px;color:#a3948b;font-size:8px}
.bms-order-date{font-size:8px;color:#9b8d84;margin:0 0 5px 2px;white-space:nowrap}
.bms-status-cell{position:relative;display:inline-flex!important;align-items:center;justify-content:flex-start;gap:6px;min-width:112px!important;width:112px!important;height:31px!important;padding:0 7px!important;border-radius:9px!important;box-sizing:border-box}
.bms-status-cell .bms-status-dot{width:6px!important;height:6px!important;min-width:6px!important;box-shadow:none!important}
.bms-quick-status{appearance:none!important;-webkit-appearance:none!important;width:100%!important;max-width:none!important;height:27px!important;padding:0 18px 0 0!important;margin:0!important;border:0!important;background:transparent!important;font-size:9px!important;font-weight:850!important;color:#3f3530!important;cursor:pointer!important;outline:none!important}
.bms-status-cell:after{content:'⌄';position:absolute;right:7px;top:7px;font-size:9px;color:#8d7e75;pointer-events:none}
.bms-status-cell .bms-status-saving{right:-6px!important;top:-6px!important;width:14px!important;height:14px!important;font-size:8px!important}
.bms-action-group{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:nowrap}
.bms-orders-table .bms-action-group .button{margin:0!important;min-width:0!important;height:31px!important;padding:0 9px!important;border:1px solid #e7dcd4!important;border-radius:8px!important;background:#fff!important;color:#4b403a!important;font-size:9px!important;font-weight:800!important;line-height:29px!important;text-decoration:none!important;white-space:nowrap}
.bms-orders-table .bms-action-group .bms-invoice-link{width:31px!important;padding:0!important;text-align:center!important;font-size:12px!important}
.bms-orders-table .bms-action-group .bms-delete-order{border-color:#efc8c3!important;color:#bd3e35!important;background:#fff8f7!important}
.bms-orders-table .bms-action-group .button:hover{border-color:#e87827!important;color:#e26d1d!important;background:#fffaf6!important}
.bms-orders-table .bms-order-profit b{color:#167b51}
.bms-orders-table .status-completed .bms-quick-status{color:#167b51!important}
.bms-orders-table .status-cancelled .bms-quick-status,.bms-orders-table .status-failed .bms-quick-status{color:#bd3e35!important}
.bms-orders-table .status-processing .bms-quick-status{color:#2f6eae!important}
.bms-orders-table .status-pending .bms-quick-status{color:#a46b0b!important}
.bms-orders-table .status-on-hold .bms-quick-status{color:#7252a3!important}
.bms-orders-table .status-refunded .bms-quick-status{color:#a95f28!important}
@media(max-width:1100px){.bms-orders-table{min-width:920px}.bms-orders-table .bms-order-actions{width:165px}.bms-orders-table .bms-action-group .button{padding:0 7px!important}}
@media(max-width:700px){.bms-orders-table{min-width:760px}.bms-orders-table .bms-order-creator{display:none}.bms-orders-table th:nth-child(6),.bms-orders-table td:nth-child(6){display:none}.bms-status-cell{min-width:104px!important;width:104px!important}.bms-orders-table .bms-order-status-col{width:140px}}
html[dir="rtl"] .bms-orders-table td:first-child{border-left:0;border-right:1px solid #efe5dd;border-radius:0 10px 10px 0}
html[dir="rtl"] .bms-orders-table td:last-child{border-right:0;border-left:1px solid #efe5dd;border-radius:10px 0 0 10px}
html[dir="rtl"] .bms-action-group{justify-content:flex-start}
html[dir="rtl"] .bms-quick-status{padding:0 0 0 18px!important}
html[dir="rtl"] .bms-status-cell:after{right:auto;left:7px}


/* Boutique Manager 2.6.8 — commandes : mise en page PRO, sans débordement desktop */
.bms-orders-table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-spacing:0 7px!important;border-collapse:separate!important}
.bms-orders-table th{padding:8px 7px!important;color:#9a887c!important;font-size:8px!important;letter-spacing:.7px!important;text-transform:uppercase!important;white-space:nowrap!important;font-weight:900!important;border-bottom:1px solid #eee5df!important}
.bms-orders-table td{padding:11px 7px!important;background:#fff!important;border-top:1px solid #eee5df!important;border-bottom:1px solid #eee5df!important;vertical-align:middle!important;overflow:hidden!important}
.bms-orders-table th:nth-child(1),.bms-orders-table td:nth-child(1){width:5%!important}
.bms-orders-table th:nth-child(2),.bms-orders-table td:nth-child(2){width:17%!important}
.bms-orders-table th:nth-child(3),.bms-orders-table td:nth-child(3){width:12%!important}
.bms-orders-table th:nth-child(4),.bms-orders-table td:nth-child(4){width:11%!important}
.bms-orders-table th:nth-child(5),.bms-orders-table td:nth-child(5){width:11%!important}
.bms-orders-table th:nth-child(6),.bms-orders-table td:nth-child(6){width:12%!important}
.bms-orders-table th:nth-child(7),.bms-orders-table td:nth-child(7){width:16%!important;min-width:0!important}
.bms-orders-table th:nth-child(8),.bms-orders-table td:nth-child(8){width:16%!important}
.bms-orders-table td:first-child{border-left:1px solid #eee5df!important;border-radius:12px 0 0 12px!important}
.bms-orders-table td:last-child{border-right:1px solid #eee5df!important;border-radius:0 12px 12px 0!important}
.bms-orders-table tbody tr{transition:transform .16s ease,box-shadow .16s ease!important}
.bms-orders-table tbody tr:hover{transform:translateY(-1px)!important;box-shadow:0 8px 22px rgba(48,31,21,.055)!important}
.bms-orders-table .bms-order-id{color:#75685f!important;white-space:nowrap!important}
.bms-orders-table .bms-order-customer b,.bms-orders-table .bms-order-creator b{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;color:#2b211c!important}
.bms-orders-table .bms-order-customer small{display:block!important;margin-top:4px!important;color:#a39389!important;font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bms-orders-table .bms-order-channel{font-size:9px!important;color:#665950!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bms-orders-table .bms-order-total b,.bms-orders-table .bms-order-profit b{font-size:10px!important;white-space:nowrap!important}
.bms-orders-table .bms-order-profit b{color:#167b51!important}
.bms-order-date{font-size:8px!important;color:#9a8b82!important;margin:0 0 5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bms-orders-table .bms-status-cell{display:flex!important;width:100%!important;min-width:0!important;max-width:132px!important;height:30px!important;padding:0 7px!important;margin:0!important;border-radius:9px!important;gap:5px!important}
.bms-orders-table .bms-status-cell .bms-status-dot{width:6px!important;height:6px!important;min-width:6px!important}
.bms-orders-table .bms-quick-status{width:100%!important;min-width:0!important;height:26px!important;padding:0 16px 0 0!important;font-size:8.5px!important;font-weight:850!important;overflow:hidden!important;text-overflow:ellipsis!important}
.bms-orders-table .bms-status-cell:after{right:6px!important;top:7px!important;font-size:8px!important}
.bms-orders-table .bms-action-group{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;flex-wrap:nowrap!important;width:100%!important}
.bms-orders-table .bms-action-group .button{height:30px!important;min-width:0!important;padding:0 8px!important;border-radius:8px!important;font-size:8.5px!important;line-height:28px!important;flex:0 1 auto!important}
.bms-orders-table .bms-action-group .bms-invoice-link{width:30px!important;flex:0 0 30px!important;padding:0!important;font-size:12px!important}
.bms-orders-table .bms-action-group .bms-delete-order{color:#bd3e35!important;background:#fff8f7!important;border-color:#efc8c3!important}
.bms-orders-table .bms-action-group .button:hover{transform:translateY(-1px)!important;box-shadow:0 4px 10px rgba(48,31,21,.06)!important}
.bms-orders-table-wrap{overflow:visible!important}
.bms-orders-table td:nth-child(4),.bms-orders-table td:nth-child(5){white-space:nowrap!important}
@media(max-width:1180px){
 .bms-orders-table th:nth-child(6),.bms-orders-table td:nth-child(6){width:10%!important}
 .bms-orders-table th:nth-child(7),.bms-orders-table td:nth-child(7){width:17%!important}
 .bms-orders-table th:nth-child(8),.bms-orders-table td:nth-child(8){width:18%!important}
 .bms-orders-table .bms-action-group{gap:3px!important}
 .bms-orders-table .bms-action-group .button{padding:0 6px!important;font-size:8px!important}
}
@media(max-width:900px){
 .bms-orders-table{min-width:900px!important}
 .bms-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
}
@media(max-width:700px){
 .bms-orders-table{min-width:820px!important}
 .bms-orders-table th:nth-child(6),.bms-orders-table td:nth-child(6){display:none!important}
 .bms-orders-table th:nth-child(1),.bms-orders-table td:nth-child(1){width:6%!important}
 .bms-orders-table th:nth-child(2),.bms-orders-table td:nth-child(2){width:19%!important}
 .bms-orders-table th:nth-child(3),.bms-orders-table td:nth-child(3){width:13%!important}
 .bms-orders-table th:nth-child(4),.bms-orders-table td:nth-child(4){width:12%!important}
 .bms-orders-table th:nth-child(5),.bms-orders-table td:nth-child(5){width:12%!important}
 .bms-orders-table th:nth-child(7),.bms-orders-table td:nth-child(7){width:17%!important}
 .bms-orders-table th:nth-child(8),.bms-orders-table td:nth-child(8){width:21%!important}
}
html[dir="rtl"] .bms-orders-table td:first-child{border-left:0!important;border-right:1px solid #eee5df!important;border-radius:0 12px 12px 0!important}
html[dir="rtl"] .bms-orders-table td:last-child{border-right:0!important;border-left:1px solid #eee5df!important;border-radius:12px 0 0 12px!important}
html[dir="rtl"] .bms-orders-table .bms-quick-status{padding:0 0 0 16px!important}
html[dir="rtl"] .bms-orders-table .bms-status-cell:after{right:auto!important;left:6px!important}

/* v2.6.9 — Single account/language header: the public site header is the only place
   that shows the user, language and logout controls. Keep the internal POS/Ventes
   navigation focused on navigation and workspace context. */
.bms-pos-nav-top{grid-template-columns:minmax(220px,1fr) auto!important;gap:20px!important}
.bms-pos-nav-context{justify-self:end!important}
.bms-pos-nav-user{display:none!important}
.bms-pos-pagehead,.bms-top{justify-content:flex-start!important}
.bms-pos-pagehead>div:first-child,.bms-top>div:first-child{min-width:0}
@media(max-width:1050px){
  .bms-pos-nav-top{grid-template-columns:1fr auto!important;grid-template-areas:none!important}
  .bms-pos-nav-brand{grid-area:auto!important}
  .bms-pos-nav-context{grid-area:auto!important;justify-self:end!important}
}
@media(max-width:650px){
  .bms-pos-nav-top{grid-template-columns:1fr auto!important;grid-template-areas:none!important}
  .bms-pos-nav-context{display:none!important}
}

/* v2.6.9 readability improvement — Orders / Sales table */
.bms-orders-table th{
  font-size:10px!important;
  letter-spacing:.75px!important;
  font-weight:900!important;
  padding:11px 9px!important;
}
.bms-orders-table td{
  font-size:12px!important;
  padding:13px 9px!important;
}
.bms-orders-table .bms-order-id{
  font-size:12px!important;
  font-weight:800!important;
}
.bms-orders-table .bms-order-customer b,
.bms-orders-table .bms-order-creator b{
  font-size:12px!important;
  line-height:1.35!important;
}
.bms-orders-table .bms-order-customer small{
  font-size:10px!important;
  line-height:1.3!important;
}
.bms-orders-table .bms-order-channel{
  font-size:11px!important;
}
.bms-orders-table .bms-order-total b,
.bms-orders-table .bms-order-profit b{
  font-size:12px!important;
}
.bms-orders-table .bms-order-date{
  font-size:10px!important;
  line-height:1.3!important;
  margin-bottom:6px!important;
}
.bms-orders-table .bms-status-cell{
  max-width:145px!important;
  min-height:34px!important;
  height:34px!important;
  border-radius:10px!important;
  padding:0 9px!important;
}
.bms-orders-table .bms-quick-status{
  height:30px!important;
  font-size:11px!important;
  font-weight:850!important;
  padding-right:18px!important;
}
.bms-orders-table .bms-status-cell:after{
  right:8px!important;
  top:9px!important;
  font-size:10px!important;
}
.bms-orders-table .bms-action-group .button{
  height:34px!important;
  line-height:32px!important;
  padding:0 10px!important;
  border-radius:9px!important;
  font-size:10.5px!important;
  font-weight:850!important;
}
.bms-orders-table .bms-action-group .bms-invoice-link{
  width:34px!important;
  flex-basis:34px!important;
  font-size:13px!important;
}
@media(max-width:700px){
  .bms-orders-table th{font-size:9px!important}
  .bms-orders-table td{font-size:11px!important}
  .bms-orders-table .bms-order-customer b,
  .bms-orders-table .bms-order-creator b{font-size:11px!important}
}
html[dir="rtl"] .bms-orders-table .bms-quick-status{padding-right:0!important;padding-left:18px!important}
html[dir="rtl"] .bms-orders-table .bms-status-cell:after{right:auto!important;left:8px!important}


/* v2.6.10 — Branded front-end login / private workspace gate */
.bms-auth-page{max-width:620px;margin:55px auto 85px;padding:0 18px;box-sizing:border-box}
.bms-auth-card{position:relative;overflow:hidden;padding:38px 42px 30px;border:1px solid var(--bms-line);border-radius:24px;background:linear-gradient(180deg,#fff 0%,#fffdfa 100%);box-shadow:0 24px 65px rgba(53,32,20,.10);text-align:center}
.bms-auth-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#e07b35,#f2a66f,#e07b35)}
.bms-auth-brand{width:58px;height:58px;margin:0 auto 15px;border-radius:17px;background:#fff4eb;border:1px solid #f0d7c5;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(224,123,53,.10);overflow:hidden}
.bms-auth-brand img{width:100%;height:100%;object-fit:cover}
.bms-auth-brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:13px;background:var(--bms-orange);color:#fff;font-size:25px;font-weight:950}
.bms-auth-kicker{display:block;color:#b47b59;font-size:9px;font-weight:950;letter-spacing:2.5px;margin-bottom:8px}
.bms-auth-card h2{margin:0;color:var(--bms-ink);font-size:29px;letter-spacing:-.6px}
.bms-auth-subtitle{max-width:420px;margin:9px auto 25px;color:var(--bms-muted);font-size:12px;line-height:1.65}
.bms-auth-form{text-align:left}
.bms-auth-form label>span{display:block;margin:0 0 7px;color:#59483f;font-size:11px;font-weight:850}
.bms-auth-form label+label{margin-top:16px}
.bms-auth-input-wrap{position:relative}
.bms-auth-input-wrap input{display:block!important;width:100%!important;height:48px!important;box-sizing:border-box!important;margin:0!important;padding:0 45px 0 43px!important;border:1px solid #e3d5cc!important;border-radius:12px!important;background:#fff!important;color:var(--bms-ink)!important;font-size:13px!important;outline:none!important;box-shadow:none!important;transition:border-color .18s,box-shadow .18s!important}
.bms-auth-input-wrap input:focus{border-color:#e07b35!important;box-shadow:0 0 0 4px rgba(224,123,53,.10)!important}
.bms-auth-input-icon{position:absolute!important;left:15px!important;top:50%!important;transform:translateY(-50%)!important;width:18px!important;height:18px!important;padding:0!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#c38b69!important;font-size:11px!important;pointer-events:none!important;z-index:2}
.bms-auth-password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:9px;background:#faf3ee;color:#a87a60;cursor:pointer;font-size:12px;line-height:34px;padding:0}
.bms-auth-password-toggle:hover,.bms-auth-password-toggle.is-visible{background:#fff0e5;color:#d66b28}
.bms-auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 20px;font-size:10px}
.bms-auth-remember{display:flex!important;align-items:center;gap:7px;margin:0!important;color:#77685f!important;font-weight:650!important;cursor:pointer}
.bms-auth-remember span{display:inline!important;margin:0!important;font-size:10px!important;font-weight:650!important;color:#77685f!important}
.bms-auth-remember input{width:15px;height:15px;margin:0!important;accent-color:#e07b35}
.bms-auth-options>a{color:#c96525;text-decoration:none;font-weight:800}
.bms-auth-options>a:hover{text-decoration:underline}
.bms-auth-submit{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;width:100%!important;height:50px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,#e77d31,#cf6721)!important;color:#fff!important;font-family:inherit!important;font-size:12px!important;font-weight:900!important;cursor:pointer!important;box-shadow:0 10px 24px rgba(207,103,33,.20)!important;transition:transform .18s,box-shadow .18s,filter .18s!important}
.bms-auth-submit:hover{transform:translateY(-1px)!important;filter:brightness(1.02)!important;box-shadow:0 14px 28px rgba(207,103,33,.24)!important}
.bms-auth-submit b{font-size:17px;line-height:1;font-weight:700}
.bms-auth-alert{display:flex;align-items:center;gap:9px;margin:0 0 18px;padding:11px 13px;border:1px solid #f1c9c5;border-radius:11px;background:#fff4f3;color:#a62b22;text-align:left;font-size:11px;line-height:1.45}
.bms-auth-alert>span{display:flex;align-items:center;justify-content:center;flex:0 0 20px;width:20px;height:20px;border-radius:50%;background:#f5d4d1;color:#a62b22;font-weight:900}
.bms-auth-notice{margin:0 0 18px;padding:11px 13px;border:1px solid #cfe7d7;border-radius:11px;background:#f3fbf5;color:#167443;font-size:11px}
.bms-auth-footer-note{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:23px;padding-top:18px;border-top:1px solid #eee4de;color:#9a8b81;font-size:9px;line-height:1.5}
.bms-auth-dot{width:6px;height:6px;border-radius:50%;background:#36a269;box-shadow:0 0 0 4px rgba(54,162,105,.10)}
[dir="rtl"] .bms-auth-form{text-align:right}
[dir="rtl"] .bms-auth-input-wrap input{padding-left:45px!important;padding-right:43px!important}
[dir="rtl"] .bms-auth-input-icon{left:auto!important;right:15px!important}
[dir="rtl"] .bms-auth-password-toggle{right:auto;left:8px}
[dir="rtl"] .bms-auth-alert{text-align:right}
[dir="rtl"] .bms-auth-submit b{transform:scaleX(-1)}
@media(max-width:600px){.bms-auth-page{margin:25px auto 55px;padding:0 12px}.bms-auth-card{padding:30px 22px 25px;border-radius:19px}.bms-auth-card h2{font-size:25px}.bms-auth-options{align-items:flex-start}.bms-auth-footer-note{font-size:8px}}

/* Support - professional new conversation modal */
.bms-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px}.bms-modal.is-open{display:flex}.bms-modal-backdrop{position:absolute;inset:0;background:rgba(37,23,15,.48);backdrop-filter:blur(5px)}.bms-modal-dialog{position:relative;z-index:1;width:min(500px,100%);box-sizing:border-box;background:#fff;border:1px solid var(--bms-line);border-radius:22px;padding:30px;box-shadow:0 25px 80px rgba(37,23,15,.22);animation:bmsModalIn .18s ease-out}.bms-modal-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:1px solid var(--bms-line);border-radius:50%;background:#fff;color:#75675f;font-size:22px;line-height:30px;cursor:pointer}.bms-modal-close:hover{background:#fff8f2;color:var(--bms-orange-dark)}.bms-modal-icon{width:46px;height:46px;border-radius:14px;background:#fff0e5;color:var(--bms-orange-dark);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;margin-bottom:18px}.bms-modal-kicker{font-size:9px;letter-spacing:2px;font-weight:900;color:#b38b71;margin-bottom:6px}.bms-modal-dialog h3{margin:0;color:var(--bms-ink);font-size:24px;letter-spacing:-.4px}.bms-modal-subtitle{margin:8px 0 24px;color:var(--bms-muted);font-size:12px;line-height:1.6}.bms-modal-dialog label{display:block;color:#5e5149;font-size:11px;font-weight:850}.bms-modal-dialog input{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:13px 14px;border:1px solid var(--bms-line);border-radius:11px;background:#fff;color:var(--bms-ink);font-size:13px;outline:none;transition:.15s}.bms-modal-dialog input:focus{border-color:#efaa7b;box-shadow:0 0 0 4px rgba(224,123,53,.10)}.bms-modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.bms-btn-light{background:#fff!important;color:var(--bms-ink)!important;border:1px solid var(--bms-line)!important}.bms-modal-actions .bms-btn{min-width:145px}.bms-modal-actions .bms-btn:disabled{opacity:.55;cursor:not-allowed}.bms-thread{transition:background .15s,transform .15s}.bms-thread:hover{background:#fff4ec;transform:translateX(2px)}
@keyframes bmsModalIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@media(max-width:600px){.bms-modal{padding:12px}.bms-modal-dialog{padding:24px 20px;border-radius:18px}.bms-modal-dialog h3{font-size:21px}.bms-modal-actions{flex-direction:column-reverse}.bms-modal-actions .bms-btn{width:100%}}

/* ===== Boutique Manager — Internal Messaging / Support Pro ===== */
.bms-support-pro{grid-template-columns:330px minmax(0,1fr);min-height:650px;background:#fff;border:1px solid var(--bms-line);border-radius:20px;box-shadow:0 12px 35px rgba(50,35,25,.05)}
.bms-support-pro .bms-support-list{border-right:1px solid var(--bms-line);background:#fffaf7;min-width:0}
.bms-support-pro .bms-support-head{height:76px;box-sizing:border-box;padding:15px 17px;align-items:center}
.bms-support-pro .bms-support-head small{display:block;font-size:8px;letter-spacing:1.8px;color:#b58b72;font-weight:900;margin-bottom:4px}
.bms-support-pro .bms-support-head b{font-size:16px;color:var(--bms-ink)}
.bms-support-new{border:0!important;background:var(--bms-orange)!important;color:#fff!important;border-radius:9px!important;padding:9px 12px!important;font-size:10px!important;font-weight:800;cursor:pointer;box-shadow:0 5px 12px rgba(224,123,53,.16)}
.bms-support-tools{padding:11px 12px;border-bottom:1px solid var(--bms-line)}
.bms-support-search{height:38px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--bms-line);border-radius:10px;background:#fff}
.bms-support-search span{font-size:17px;color:#a98f7d;line-height:1}
.bms-support-search input{border:0!important;outline:0!important;width:100%;background:transparent!important;padding:0!important;font-size:11px!important;color:var(--bms-ink)}
.bms-thread-list{overflow:auto;max-height:520px}
.bms-thread-pro{display:flex!important;align-items:center;gap:10px;width:100%;box-sizing:border-box;padding:12px 13px!important;border:0!important;border-bottom:1px solid #f1e9e3!important;background:transparent!important;text-align:left;cursor:pointer;transition:background .15s,transform .15s}
.bms-thread-pro:hover,.bms-thread-pro.active{background:#fff1e7!important}
.bms-thread-pro.active{box-shadow:inset 3px 0 0 var(--bms-orange)}
.bms-thread-avatar,.bms-chat-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:#fff0e5;color:#cf6c2a;font-size:13px;font-weight:900}
.bms-thread-main{min-width:0;flex:1}
.bms-thread-main b{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;color:var(--bms-ink)!important}
.bms-thread-main small{display:block!important;margin-top:4px!important;font-size:8.5px!important;color:#9c8c82!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bms-thread-main em{display:block!important;margin-top:3px;font-style:normal;font-size:9px;color:#a2948b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bms-thread-status{width:7px;height:7px;border-radius:50%;background:#2e9c63;flex:0 0 auto}
.bms-thread-status.closed{background:#b6aaa2}
.bms-support-empty{padding:30px 18px;text-align:center;color:#9c8d84;font-size:11px}
.bms-chat-pro{min-width:0;background:#fff!important}
.bms-chat-head-pro{min-height:76px;box-sizing:border-box;padding:13px 18px;border-bottom:1px solid var(--bms-line);display:flex;align-items:center;justify-content:space-between;background:#fff}
.bms-chat-title-wrap{display:flex;align-items:center;gap:11px;min-width:0}
.bms-chat-title-wrap>div{min-width:0}
.bms-chat-title-wrap b{display:block;font-size:14px;color:var(--bms-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bms-chat-title-wrap small{display:block;margin-top:4px;font-size:9px;color:#9d8d83;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bms-chat-date{font-size:9px;color:#a3948a;white-space:nowrap;margin-left:12px}
.bms-messages-pro{padding:22px!important;background:#fcfaf8!important;display:flex;flex-direction:column;gap:3px}
.bms-msg-pro{max-width:min(72%,560px);align-self:flex-start;margin-bottom:8px}
.bms-msg-pro.mine{align-self:flex-end}
.bms-msg-meta{display:flex;gap:8px;align-items:center;margin:0 6px 4px}
.bms-msg-pro.mine .bms-msg-meta{justify-content:flex-end}
.bms-msg-meta b{font-size:9px;color:#675a52}
.bms-msg-meta small{font-size:8px;color:#aaa099}
.bms-msg-bubble{padding:10px 13px;border:1px solid #eee3dc;border-radius:14px 14px 14px 5px;background:#fff;color:#3e332d;font-size:11px;line-height:1.55;box-shadow:0 2px 8px rgba(50,35,25,.025);word-break:break-word}
.bms-msg-pro.mine .bms-msg-bubble{background:#fff0e5;border-color:#f5d5bf;border-radius:14px 14px 5px 14px}
.bms-chat-form-pro{padding:12px 14px!important;border-top:1px solid var(--bms-line);background:#fff;align-items:flex-end!important}
.bms-chat-form-pro textarea{min-height:42px;max-height:130px;box-sizing:border-box;padding:12px 13px!important;border:1px solid var(--bms-line)!important;border-radius:12px!important;background:#fff!important;font-size:11px!important;line-height:1.4;outline:none;resize:none}
.bms-chat-form-pro textarea:focus{border-color:#edaa7b!important;box-shadow:0 0 0 3px rgba(224,123,53,.08)}
.bms-send-btn{width:44px;height:42px;border:0;border-radius:11px;background:var(--bms-orange);color:#fff;font-size:17px;font-weight:900;cursor:pointer;flex:0 0 auto;box-shadow:0 5px 12px rgba(224,123,53,.16)}
.bms-send-btn:disabled{opacity:.55;cursor:not-allowed}
.bms-chat-empty,.bms-chat-loading{margin:auto;text-align:center;color:#a3948a;font-size:11px;padding:40px 15px}
.bms-chat-placeholder{display:flex;align-items:center;gap:12px}
.bms-chat-placeholder-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#fff4ec;font-size:18px}
.bms-chat-placeholder b{display:block;font-size:13px;color:var(--bms-ink)}
.bms-chat-placeholder small{display:block;margin-top:4px;font-size:9px;color:#9e9087}
.bms-message-dialog{width:min(600px,calc(100vw - 28px))}
.bms-message-dialog label{margin-bottom:14px}
.bms-message-dialog select,.bms-message-dialog textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px 13px;border:1px solid var(--bms-line);border-radius:11px;background:#fff;color:var(--bms-ink);font-size:12px;outline:none}
.bms-message-dialog select:focus,.bms-message-dialog textarea:focus{border-color:#efaa7b;box-shadow:0 0 0 4px rgba(224,123,53,.08)}
.bms-message-dialog textarea{resize:vertical;min-height:100px;line-height:1.5}
@media(max-width:900px){.bms-support-pro{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:700px){.bms-support-pro{grid-template-columns:1fr;min-height:680px}.bms-support-pro .bms-support-list{border-right:0;border-bottom:1px solid var(--bms-line)}.bms-thread-list{max-height:230px}.bms-chat-pro{min-height:420px}.bms-msg-pro{max-width:84%}.bms-chat-date{display:none}}

/* ===== Global live support notification ===== */
.bms-live-support-toast{position:fixed;top:22px;right:22px;z-index:1000001;width:min(390px,calc(100vw - 30px));box-sizing:border-box;display:flex;align-items:flex-start;gap:12px;padding:14px 15px 14px 14px;background:#fff;border:1px solid #eadfd7;border-radius:16px;box-shadow:0 18px 55px rgba(38,25,17,.20);opacity:0;visibility:hidden;transform:translateY(-12px) scale(.98);transition:opacity .2s ease,transform .2s ease,visibility .2s ease;font-family:inherit;direction:ltr}
.bms-live-support-toast.is-visible{opacity:1;visibility:visible;transform:none}
.bms-live-toast-icon{width:40px;height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#fff0e5;color:#df762d;font-size:18px;font-weight:900;box-shadow:inset 0 0 0 1px rgba(224,123,53,.10)}
.bms-live-toast-content{min-width:0;flex:1;padding-right:17px}
.bms-live-toast-kicker{font-size:8px;letter-spacing:1.7px;text-transform:uppercase;color:#bd8667;font-weight:900;margin-bottom:3px}
.bms-live-toast-title{font-size:13px;line-height:1.3;color:#251b16;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bms-live-toast-text{font-size:10px;line-height:1.45;color:#75675f;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bms-live-toast-link{display:inline-flex;align-items:center;gap:5px;margin-top:8px;color:#d86f29!important;text-decoration:none!important;font-size:9px;font-weight:900}
.bms-live-toast-link:hover{text-decoration:underline!important}
.bms-live-toast-link span{font-size:12px}
.bms-live-toast-close{position:absolute;right:8px;top:7px;width:25px;height:25px;border:0;background:transparent;color:#9d8d84;font-size:18px;line-height:22px;cursor:pointer;border-radius:7px}
.bms-live-toast-close:hover{background:#fff5ef;color:#c86428}
@media(max-width:600px){.bms-live-support-toast{top:12px;right:12px;width:calc(100vw - 24px);border-radius:14px}}
[dir="rtl"] .bms-live-support-toast{right:auto;left:22px;direction:rtl;text-align:right;padding:14px 14px 14px 15px}
[dir="rtl"] .bms-live-toast-content{padding-right:0;padding-left:17px}
[dir="rtl"] .bms-live-toast-close{right:auto;left:8px}
[dir="rtl"] .bms-live-toast-link span{transform:scaleX(-1)}
@media(max-width:600px){[dir="rtl"] .bms-live-support-toast{left:12px;right:auto}}

/* ===== Admin-only conversation deletion ===== */
.bms-chat-head-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex:0 0 auto}.bms-delete-thread-btn{width:34px;height:34px;border:1px solid #f0cfc5;border-radius:10px;background:#fff8f6;color:#c94f3f;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:900;cursor:pointer;transition:.16s}.bms-delete-thread-btn:hover{background:#fff0ec;border-color:#e9aaa0;color:#b93d30;transform:translateY(-1px)}.bms-btn-danger{background:#c94f3f!important;color:#fff!important;border:1px solid #c94f3f!important;box-shadow:0 7px 16px rgba(201,79,63,.16)!important}.bms-btn-danger:hover{background:#b94134!important}.bms-btn-danger:disabled{opacity:.55;cursor:not-allowed}.bms-delete-dialog{width:min(520px,calc(100vw - 28px))}.bms-delete-icon{width:46px;height:46px;border-radius:14px;background:#fff0ec;color:#c94f3f;display:flex;align-items:center;justify-content:center;font-size:21px;font-weight:900;margin-bottom:18px}.bms-delete-subject{margin:0 0 4px;padding:11px 13px;border:1px solid #f0ddd6;border-radius:11px;background:#fffaf8;color:var(--bms-ink);font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bms-delete-dialog .bms-modal-actions{margin-top:18px}@media(max-width:700px){.bms-chat-head-actions{gap:6px}.bms-chat-date{display:none}}
/* Support: clear admin-only delete action */
.bms-chat-head-actions .bms-delete-thread-btn{width:auto;min-width:112px;height:40px;padding:0 13px;gap:7px;border:1px solid #efb7aa;border-radius:11px;background:#fff8f6;color:#b63e31;display:inline-flex;align-items:center;justify-content:center;font:800 11px/1 inherit;cursor:pointer;transition:.16s ease}
.bms-chat-head-actions .bms-delete-thread-btn:hover{background:#fff0ec;border-color:#dc8d7d;color:#9f2f25;transform:translateY(-1px)}
.bms-chat-head-actions .bms-delete-thread-btn:active{transform:translateY(0)}
.bms-chat-head-actions .bms-delete-thread-btn:disabled{opacity:.55;cursor:wait;transform:none}
.bms-trash-icon{font-size:15px;line-height:1}.bms-delete-label{white-space:nowrap}
#bms-delete-thread-modal{display:none!important;align-items:center;justify-content:center}
#bms-delete-thread-modal.is-open{display:flex!important}
#bms-delete-thread-modal .bms-modal-dialog{z-index:1000000}
#bms-confirm-delete.is-loading{cursor:wait;position:relative}
#bms-confirm-delete.is-loading:after{content:' …';}
@media(max-width:700px){.bms-chat-head-actions .bms-delete-thread-btn{min-width:40px;width:40px;padding:0}.bms-delete-label{display:none}}

/* Admin conversation deletion — dedicated, reliable UI */
.bms-chat-head-actions .bms-delete-thread-btn{position:relative;z-index:20;pointer-events:auto!important;}
#bms-admin-delete-modal{display:none!important;position:fixed!important;inset:0!important;z-index:2147483000!important;align-items:center;justify-content:center;padding:20px;}
#bms-admin-delete-modal.is-open{display:flex!important;}
#bms-admin-delete-modal .bms-modal-backdrop{position:absolute;inset:0;z-index:0;background:rgba(32,23,18,.52);backdrop-filter:blur(6px);}
#bms-admin-delete-modal .bms-modal-dialog{position:relative;z-index:1;width:min(520px,calc(100vw - 28px));background:#fff;border:1px solid #eadfd6;border-radius:22px;padding:30px;box-shadow:0 30px 90px rgba(39,28,20,.28);}
#bms-admin-delete-modal .bms-btn-danger.is-loading{opacity:.6;cursor:wait;}
