/*
 * MA FASHION POS — PREMIUM FASHION UI V3
 * Presentation-only skin. Keeps all PHP controllers, routes, scanner,
 * product cards, invoice/thermal print parameters and business logic intact.
 * Palette: Midnight Plum / Electric Violet / Orchid Rose / Champagne.
 */
:root{
  --primary:#7545dc!important;
  --primary-light:#a17df6!important;
  --primary-dark:#5328b0!important;
  --mf-ink:#21143d;
  --mf-sidebar:#19122f;
  --mf-purple:#7545dc;
  --mf-rose:#df4e9b;
  --mf-gold:#e5bd79;
  --mf-cream:#faf8ff;
  --mf-surface:#fff;
  --mf-soft:#f2edfc;
  --mf-stroke:#e8e2f2;
  --mf-subtext:#78708a;
  --mf-shadow:0 14px 36px rgba(44,25,85,.078);
  --mf-shadow-hover:0 21px 45px rgba(64,31,125,.17);
  --border:#e8e2f2;
  --border-light:#f2edfa;
  --bg-body:#f8f6fe;
  --bg-card:#fff;
  --bg-surface-alt:#faf8ff;
  --bg-hover:#f4f0fe;
  --surface:#fff;
  --surface-alt:#f8f6fd;
  --surface-hover:#f3effa;
  --text-primary:#251d39;
  --text-secondary:#706781;
  --text-muted:#968ba4;
  --radius:13px;
  --radius-lg:19px;
  --radius-xl:24px;
  --shadow:0 6px 24px rgba(33,17,79,.065);
  --shadow-md:var(--mf-shadow);
  --shadow-lg:var(--mf-shadow-hover);
  --pos-primary:#7545dc;
  --pos-primary-dark:#5328b0;
  --pos-primary-light:#a17df6;
  --pos-border:#e8e2f2;
  --pos-text:#251d39;
  --pos-text-light:#78708a;
  --pos-text-muted:#968ba4;
  --pos-surface:#fff;
  --pos-bg:#f8f6fd;
  --pos-bg-alt:#f1ebfd;
  --pos-shadow:var(--mf-shadow);
  --pos-shadow-lg:var(--mf-shadow-hover);
}
body:not(.dark-mode){
  background:radial-gradient(circle at 85% 4%,#f3eafb 0,transparent 23%),
             radial-gradient(circle at 15% 28%,#fdf1f8 0,transparent 32%),#f8f6fe!important;
  color:var(--mf-ink)!important;
}
body{font-family:Inter,"Noto Sans Bengali",system-ui,sans-serif!important}
::selection{background:#d8c8ff;color:#2b125e}
:focus-visible{outline:2px solid #9f7bfa;outline-offset:2px}
a{transition:color .18s ease}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:#d9cee9;border-radius:10px}
::-webkit-scrollbar-track{background:transparent}

/* Sidebar: richly contrasting boutique navy with colored glow. */
.main-sidebar{
  background:linear-gradient(163deg,#20133c 0%,#191129 48%,#2d194a 100%)!important;
  box-shadow:8px 0 30px rgba(32,16,66,.14);
  border-right:1px solid rgba(226,203,255,.09)!important;
}
.main-sidebar:before{content:"";pointer-events:none;position:absolute;inset:0 0 auto;height:260px;
  background:radial-gradient(circle at 10% 0%,rgba(187,114,224,.23),transparent 70%);
  z-index:0}
.main-sidebar>*{position:relative;z-index:1}
.sidebar-brand{
  display:flex!important;
  background:linear-gradient(135deg,rgba(199,149,255,.12),rgba(235,139,187,.045))!important;
  border-bottom:1px solid rgba(244,223,255,.11)!important;
  margin-bottom:10px!important;
  padding:20px 15px!important;
}
.sidebar-brand>div:first-child{width:48px!important;height:48px!important;border:1px solid #ecd9ff35;
  border-radius:14px!important;box-shadow:0 6px 22px rgba(10,4,24,.28)!important}
.sidebar-brand img{background:#291a45!important}
.sidebar-brand>div:nth-child(2)>div:first-child{font-size:16px!important;letter-spacing:-.01em}
.sidebar-brand>div:nth-child(2)>div:last-child{color:#d9c3ff!important;font-size:11px!important}
.sidebar-menu{padding:6px 8px 16px!important}
.sidebar-menu>li>a,.main-sidebar .sidebar-menu>li>a{
  margin:3px 7px!important;padding:11px 14px!important;
  border-radius:12px!important;border:1px solid transparent!important;
  border-left:1px solid transparent!important;color:#cfc5e3!important;
  font-size:13px!important;font-weight:600!important;
}
.sidebar-menu>li>a i,.main-sidebar .sidebar-menu>li>a i{font-size:18px!important;color:#a99abf!important}
.sidebar-menu>li>a:hover,.main-sidebar .sidebar-menu>li>a:hover{
  background:rgba(176,139,238,.13)!important;color:#fff!important;
  border:1px solid rgba(179,142,239,.2)!important;transform:translateX(2px);
}
.sidebar-menu>li>a:hover i{color:#e6c1fc!important}
.sidebar-menu>li.active>a,.main-sidebar .sidebar-menu>li.active>a{
  background:linear-gradient(112deg,#8754ed,#a56cf0)!important;
  color:#fff!important;box-shadow:0 8px 22px rgba(116,66,220,.35)!important;
  border:1px solid #b995ff!important;border-left:1px solid #b995ff!important;
}
.sidebar-menu>li.active>a i{color:#fff!important}
.sidebar-menu li.open>ul.dropdown-menu{margin:3px 10px 7px!important;padding:4px!important;
  border-left:1px solid rgba(188,158,224,.16)!important}
.sidebar-menu li ul.dropdown-menu li a{color:#bcafcf!important;font-size:12px!important;
  padding:9px 11px 9px 33px!important;margin:2px 0!important;min-height:34px;
  border:0!important;border-radius:9px!important}
.sidebar-menu li ul.dropdown-menu li a:hover,.sidebar-menu li ul.dropdown-menu li.active>a{
  background:rgba(151,105,211,.16)!important;color:#fff!important}
.sidebar-menu li ul.dropdown-menu li a::before{color:#cbaafb!important;left:11px!important}
.main-sidebar .sidebar-menu>li.mf-label-nav>a{
  background:linear-gradient(110deg,rgba(227,178,122,.17),rgba(237,135,195,.14))!important;
  color:#f6dca9!important;border:1px solid #e4bc7d44!important;
}
.main-sidebar .sidebar-menu>li.mf-label-nav>a i{color:#f2c87c!important}

/* Floating light header and navigation affordances. */
.top-bar{background:rgba(255,255,255,.90)!important;
  border-bottom:1px solid #e8e2f0!important;backdrop-filter:blur(17px)!important;
  box-shadow:0 5px 19px rgba(57,40,100,.045)!important}
.header-left .brand{color:#45216f!important;font-size:17px!important;font-weight:850!important;letter-spacing:-.02em}
.header-left .brand i{color:#a854d5!important}
.header-right .pos-btn,.top-bar .header-right .pos-btn{
  background:linear-gradient(110deg,#7b46dc,#d44b96)!important;
  color:#fff!important;border:1px solid #994ded!important;border-radius:12px!important;
  box-shadow:0 6px 17px rgba(170,67,187,.22)!important
}
.header-right .lang-btn,.header-right .theme-btn,.header-right .user-btn{
  border-color:#e7dcf3!important;border-radius:11px!important;
  background:#fbfaff!important;color:#4c3972!important;
}
.header-right .lang-btn:hover,.header-right .theme-btn:hover,.header-right .user-btn:hover{
  background:#f1eafd!important;border-color:#cdb7fa!important}
.header-right .user-avatar{background:linear-gradient(125deg,#9655d5,#d656a9)!important}
.sidebar-toggle{color:#60328c!important}

/* Base layout, page titles, elegant dashboard cards */
.content-area{padding:22px 25px 32px!important}
.site-footer{background:transparent!important;border-top:1px solid #e6def0!important;
  color:#8a7d9c!important;font-size:11px!important}
.page-header{
  background:linear-gradient(110deg,#2b194e 0%,#63329b 53%,#c65c96 113%)!important;
  border:1px solid rgba(240,207,255,.18)!important;
  border-radius:23px!important;padding:24px 27px!important;
  box-shadow:0 13px 30px rgba(66,35,118,.18)!important;
  min-height:100px;position:relative;overflow:hidden;
}
.page-header::after{content:"";position:absolute;pointer-events:none;width:330px;height:330px;
  right:-75px;top:-170px;border:2px solid #ffffff17;border-radius:50%;
  box-shadow:0 0 0 42px #ffffff09,0 0 0 90px #ffffff08}
.page-header h1{font-weight:800!important;letter-spacing:-.035em;color:#fff!important;
  position:relative;z-index:1}
.page-header h1 i{background:#ffffff1b!important;color:#fff!important;border:1px solid #ffffff2c;
  border-radius:14px!important;box-shadow:none!important}
.page-header p,.page-header .header-actions{color:#eee5ff!important;position:relative;z-index:1}
.page-header .header-actions .btn,.page-header>a.btn{
  background:rgba(255,255,255,.96)!important;color:#6332a7!important;border:1px solid #ede1ff!important;
  box-shadow:0 6px 17px #190b3923!important;border-radius:11px!important}
.page-header .header-actions .btn:hover,.page-header>a.btn:hover{background:#fce9f5!important}
.card,.card-modern,.stat-card,.action-btn,.form-card,.table-responsive,
.search-filter-bar,.products-grid>.product-card,.mf-inventory-card,.modal-content{
  border-color:var(--mf-stroke)!important;
  border-radius:18px!important;
  box-shadow:var(--mf-shadow)!important;
}
.card,.card-modern,.stat-card,.action-btn,.form-card,.search-filter-bar{background:#fff!important}
.stat-card{min-width:0;overflow:hidden;position:relative}
.stat-card::before{background:linear-gradient(#a171eb,#e388b9)!important;width:3px!important}
.stat-card .stat-icon{border-radius:15px!important;
  background:linear-gradient(135deg,#8454dd,#aa75eb)!important;
  box-shadow:0 7px 15px rgba(114,60,213,.14)!important}
.stat-card:nth-child(2) .stat-icon{background:linear-gradient(135deg,#db529a,#f28bad)!important}
.stat-card:nth-child(3) .stat-icon{background:linear-gradient(135deg,#6886ed,#80a7ff)!important}
.stat-card:nth-child(4) .stat-icon{background:linear-gradient(135deg,#e6a957,#f2cd90)!important}
.stat-card .stat-info h3{color:#2c1b49!important;font-weight:850!important;letter-spacing:-.025em}
.stat-card .stat-info p{color:#80748e!important}
.stat-card:hover,.action-btn:hover,.mf-inventory-card:hover{
  transform:translateY(-3px)!important;box-shadow:var(--mf-shadow-hover)!important
}
.action-btn{position:relative;overflow:hidden}
.action-btn i{color:#8146d2!important;font-size:24px!important}
.action-btn:nth-child(2) i{color:#d14b98!important}
.action-btn:nth-child(3) i{color:#6681e0!important}
.action-btn:nth-child(4) i{color:#c39350!important}
.action-btn span{color:#3a285c!important;font-weight:760!important}
.action-btn:hover{border-color:#bca2ef!important;background:#fbf8ff!important}
.card-modern .card-header,.card-header{background:linear-gradient(130deg,#fcfaff,#f5efff)!important;
  border-bottom-color:#ede5f5!important}
.card-modern .card-header h5{color:#392357!important}
.card-modern .card-header h5 i{color:#9654d8!important}

/* Buttons & forms: careful not to change positions or native behaviors. */
.btn-primary,.top-bar .pos-btn,.btn-export{
  background:linear-gradient(112deg,#7441cf,#9a58dc)!important;
  color:#fff!important;border-color:#8753d8!important;
  box-shadow:0 5px 15px rgba(103,57,202,.17)!important
}
.btn-primary:hover,.btn-export:hover{
  background:linear-gradient(112deg,#6834ba,#8544cb)!important;color:#fff!important;
}
.btn-outline-primary{color:#713dc9!important;border-color:#bda4ec!important;background:#fff!important}
.btn-outline-primary:hover{background:#7741d5!important;border-color:#7741d5!important;color:#fff!important}
.btn-warning{background:linear-gradient(135deg,#e4aa5e,#efc67f)!important;border-color:#d9a057!important;
  color:#372039!important}
.btn-success{background:linear-gradient(135deg,#26a67b,#218c72)!important}
.btn,.btn-sm,.btn-lg{border-radius:11px!important;font-weight:650;transition:filter .18s ease,transform .18s ease,box-shadow .18s ease}
button:disabled,.btn:disabled{opacity:.55;cursor:not-allowed}
.form-card{padding:25px!important}
.form-card h4,.card-title{color:#3a215f!important;font-weight:820!important}
.form-group label,.form-label{color:#655779!important;font-weight:700!important}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
select,textarea,.form-control,.form-select{
  border-color:#e0d8ec!important;border-radius:11px!important;
  background-color:#fff!important;color:#2e2245!important;
}
input:focus,select:focus,textarea:focus,.form-control:focus,.form-select:focus{
  border-color:#ac83ea!important;box-shadow:0 0 0 3px rgba(140,84,228,.13)!important;
  outline:none!important
}
input[type=checkbox],input[type=radio]{accent-color:#7c46dd!important}
select option{background:#fff;color:#29183f}
.image-upload{border-color:#c9b5e5!important;background:#fcf9ff!important}
.image-upload:hover{border-color:#9456dd!important;background:#f4edff!important}
.table th,.table thead th,.table-light th{background:#f7f2fe!important;color:#503669!important}
.table tbody tr:hover{background:#fcfaff!important}
.badge-count{background:linear-gradient(115deg,#8551db,#d15a9d)!important}
.badge-success{background:#d7f7e6!important;color:#176641!important}
.badge-warning{background:#fff0ce!important;color:#885516!important}
.badge-danger{background:#ffe1e4!important;color:#a82c3d!important}
.badge-info{background:#e7e7ff!important;color:#573d9c!important}
.modal-header{border-bottom:1px solid #eae2f3}
.modal-footer{border-top:1px solid #eae2f3}
.modal-content{overflow:hidden}

/* POS: scanner stays functional, cart and calculations unchanged */
body.pos .page-header{
  background:linear-gradient(117deg,#2b194f 0%,#6937a5 65%,#d66ea6 130%)!important
}
body.pos .mf-scan-workspace{
  background:linear-gradient(125deg,#fff 0%,#fdf9ff 68%,#fcf0fa 100%)!important;
  border:1px solid #e4d5f5!important;
  border-radius:20px!important;
  box-shadow:var(--mf-shadow)!important;
  padding:20px 22px!important;
}
body.pos .mf-scan-logo{background:#f0e4ff!important;color:#7b42d1!important}
body.pos .mf-scan-head strong{color:#41245f!important}
body.pos .mf-scan-head small{color:#81748d!important}
body.pos .mf-overline{color:#c05495!important}
body.pos .mf-scan-field{border:1.5px solid #d6c4ed!important;box-shadow:0 3px 14px #7b55b00e!important}
body.pos .mf-scan-field:focus-within{border-color:#9a61e0!important;box-shadow:0 0 0 4px #a66be523!important}
body.pos .mf-scan-field>i{color:#9259cf!important}
body.pos .mf-scan-field button{background:linear-gradient(110deg,#7742d1,#a151d6)!important;
  color:white!important;font-weight:790}
body.pos .mf-scan-field button:hover{background:linear-gradient(110deg,#622bb5,#853cc1)!important}
body.pos .mf-scan-bottom{border-color:#f1e8f7!important}
body.pos .mf-status{color:#826f95!important}
body.pos .mf-status.is-success{color:#258b67!important}
body.pos .mf-status.is-error{color:#b23d56!important}
body.pos .mf-label-link{color:#7842be!important}
body.pos .mf-product-variant{color:#9d72b9!important}

/* Receipt paper chooser on POS */
body.pos .mf-pos-printer-options{
  background:linear-gradient(125deg,#fff 0%,#f7f1ff 100%)!important;
  border:1px solid #e4d5f5!important;border-radius:18px!important;
  box-shadow:var(--mf-shadow)!important;
}
body.pos .mf-pos-printer-icon{background:#f4e8ff!important;color:#8e52d0!important}
body.pos .mf-pos-printer-title strong{color:#46256c!important}
body.pos .mf-pos-printer-title small,body.pos .mf-pos-printer-help{color:#877594!important}
body.pos .mf-pos-printer-pickers label{color:#735c84!important}
body.pos .mf-pos-printer-pickers select,body.pos .mf-pos-printer-pickers input[type=number]{
  background:#fff!important;border-color:#d9c9ed!important;color:#452761!important
}
body.pos .mf-pos-printer-pickers .mf-pos-auto-checkbox{color:#68448e!important}
body.pos .mf-pos-printer-preview{
  background:#eee1ff!important;color:#6839b7!important;border-color:#d7bbf4!important
}
body.pos .mf-pos-printer-help{border-top-color:#ede2f5!important}
body.pos .mf-modal-paper{background:#f8f2fe!important;border-top-color:#e5d7f0!important}
body.pos .mf-modal-paper strong{color:#6b3fac!important}
body.pos .mf-modal-paper select{border-color:#d1bfea!important;color:#502f6e!important}
body.pos .pos-wrapper{gap:18px!important}
body.pos .pos-products-panel,body.pos .pos-cart-panel,body.pos .cart-card{
  border:1px solid #e6dcf0!important;
  border-radius:19px!important;
  box-shadow:var(--mf-shadow)!important;
}
body.pos .products-header{background:linear-gradient(115deg,#f8f2ff,#f9f5ff)!important;
  border-color:#eee3f6!important}
body.pos .products-header h4,body.pos .products-header h4 i{color:#6d3cb9!important}
body.pos .products-header .badge{background:linear-gradient(115deg,#7841d2,#b26ce9)!important}
body.pos .products-filters{border-color:#ede3f5!important;background:#fff!important}
body.pos .products-grid .product-card{
  background:#fff!important;border:1px solid #e9e0f2!important;
  border-radius:15px!important;box-shadow:0 3px 12px #3a21670b!important}
body.pos .products-grid .product-card:hover{
  border-color:#bd9aec!important;box-shadow:0 10px 24px #6c3fab27!important}
body.pos .product-price{color:#7745c5!important;font-weight:830!important}
body.pos .cart-header{background:linear-gradient(112deg,#6d36bc,#bb58ba)!important;
  border-color:#9f60d0!important}
body.pos .cart-card .cart-header h5{color:#fff!important}
body.pos .cart-count{background:#ffffff25!important;color:#fff!important}
body.pos .cart-table thead,body.pos .cart-table th{background:#f8f3ff!important;color:#67517d!important}
body.pos .cart-table .item-total{color:#7f42c4!important}
body.pos .cart-table tr:hover{background:#fcf9ff!important}
body.pos .qty-box button{color:#6637ae!important}
body.pos .complete-btn{background:linear-gradient(105deg,#7841d1,#b850aa)!important;
  border:1px solid #a565cc!important;
  box-shadow:0 10px 22px rgba(128,54,180,.24)!important}
body.pos .complete-btn:hover{filter:brightness(1.08)}
body.pos .method-btn.active{background:linear-gradient(120deg,#8350df,#a663d9)!important;color:white!important;
  border-color:#9c66e0!important}
body.pos .pos-cart-panel .grand-total,body.pos .pos-cart-panel .total-row{
  border-color:#ede5f4!important}
body.pos .summary-total,body.pos .summary-row.total{
  background:linear-gradient(110deg,#7442c7,#ac55ab)!important;color:white!important}

/* Product inventory cards / actions */
body.products .page-header{
  background:linear-gradient(116deg,#261747 0%,#70359e 55%,#d86ea9 124%)!important
}
body.products .page-header>a.mf-nav-print{
  color:#4e2866!important;background:#f8dcae!important;border-color:#f8dcae!important
}
body.products .product-card,body.products .mf-inventory-card{
  border:1px solid #e5daef!important;border-radius:18px!important;
  background:#fff!important;
  box-shadow:var(--mf-shadow)!important;
}
body.products .product-card:hover{
  border-color:#c6a9eb!important;box-shadow:var(--mf-shadow-hover)!important
}
body.products .product-info .product-name{color:#39234d!important;font-weight:820!important}
body.products .product-info .product-price{color:#8e48c8!important}
body.products .mf-card-print{color:#7c42c0!important;
  background:#f3e7ff!important;border-color:#dfc7f3!important}
body.products .mf-card-print:hover{color:white!important;background:#7943cb!important}
body.products .search-filter-bar{background:#fff!important}
body.products .product-stock.in-stock{background:#def9ed!important;color:#176944!important}
body.products .product-stock.low-stock{background:#fff0d5!important;color:#8e5c1d!important}
body.products .product-stock.out-of-stock{background:#ffe3eb!important;color:#a03453!important}

/* Auth pages share the brand without touching login handlers */
body:not(:has(.main-area)) .login-container,
body:not(:has(.main-area)) .login-card{
  border-color:#e3d5f2!important;box-shadow:var(--mf-shadow-hover)!important;
  border-radius:20px!important
}

/* Dark mode remains readable, not globally forced light. */
body.dark-mode{
  --primary:#b58dff!important;--primary-light:#d4b5ff!important;
  --primary-dark:#8654db!important;
  --mf-stroke:#413652;--mf-shadow:0 12px 28px #08041150;
  --mf-shadow-hover:0 18px 36px #05030b77;
  --bg-body:#181324;--bg-card:#271f34;--surface:#271f34;
  --surface-alt:#30273d;--bg-surface-alt:#30273d;
  --text-primary:#eee7f6;--text-secondary:#c7b8d9;
  --border:#413652;
  background:#181324!important;color:#eee7f6!important;
}
body.dark-mode .top-bar{background:#251c33ed!important;border-color:#443852!important}
body.dark-mode .header-left .brand,body.dark-mode .sidebar-toggle{color:#dbc3ff!important}
body.dark-mode .header-right .lang-btn,
body.dark-mode .header-right .theme-btn,
body.dark-mode .header-right .user-btn{background:#392a4e!important;color:#eee1fb!important;border-color:#524265!important}
body.dark-mode .stat-card,body.dark-mode .card-modern,
body.dark-mode .action-btn,body.dark-mode .form-card,
body.dark-mode .search-filter-bar,
body.dark-mode .mf-pos-printer-options,
body.dark-mode .mf-scan-workspace{background:#2b2339!important;border-color:#453653!important}
body.dark-mode .stat-card .stat-info h3,
body.dark-mode .card-modern .card-header h5,
body.dark-mode .action-btn span,
body.dark-mode .form-card h4,
body.dark-mode .mf-scan-head strong,
body.dark-mode .mf-pos-printer-title strong{color:#f2eafd!important}
body.dark-mode .card-modern .card-header,body.dark-mode .card-header{background:#342a44!important;border-color:#483858!important}
body.dark-mode .stat-card .stat-info p,body.dark-mode .mf-scan-head small{color:#c9b9d7!important}
body.dark-mode .mf-scan-field{background:#342941!important;border-color:#634978!important}
body.dark-mode .mf-scan-field input{background:transparent!important;color:white!important}
body.dark-mode .mf-pos-printer-pickers select,
body.dark-mode .mf-pos-printer-pickers input{background:#392b4a!important;color:#f4edfa!important;border-color:#5c4474!important}
body.dark-mode .form-group input,body.dark-mode .form-group select,
body.dark-mode .form-group textarea,body.dark-mode .form-control,
body.dark-mode .form-select{background:#322940!important;border-color:#514366!important;color:#fff!important}
body.dark-mode .mf-pos-printer-help{border-color:#4a3c5b!important}
body.dark-mode .site-footer{border-color:#413652!important}
body.dark-mode .products-header{background:#342942!important}
body.dark-mode .cart-header{color:#fff!important}
body.dark-mode .mf-modal-paper{background:#332742!important}
body.dark-mode .mf-modal-paper strong{color:#f1e5ff!important}
body.dark-mode .mf-modal-paper select{background:#473351!important;color:#fff!important}
body.dark-mode .product-card,body.dark-mode .mf-inventory-card{
  background:#30253e!important;border-color:#4d3b5c!important
}
body.dark-mode .product-card .product-name,
body.dark-mode .product-card .product-price{color:#eee2fb!important}

/* Fluid layout, accessible motion, avoid touch targets changing behavior. */
@media(min-width:1560px){
  .content-area{padding:27px 35px 38px!important}
  body.pos .pos-wrapper{grid-template-columns:minmax(350px,1fr) minmax(520px,1.65fr)!important}
}
@media(max-width:1199px){
  .content-area{padding:18px!important}
  .page-header{padding:20px 23px!important}
}
@media(max-width:992px){
  .sidebar-brand{display:flex!important}
  .main-sidebar{box-shadow:10px 0 40px rgba(24,13,54,.25)!important}
  .content-area{padding:15px!important}
  .page-header{border-radius:18px!important}
  body.pos .pos-wrapper{grid-template-columns:1fr!important;height:auto!important}
  body.pos .mf-scan-workspace{grid-template-columns:1fr!important}
}
@media(max-width:600px){
  .content-area{padding:11px!important}
  .page-header{padding:17px!important;min-height:84px}
  .page-header h1{font-size:22px!important;flex-wrap:wrap}
  .stats-grid{gap:10px!important}
  .stat-card{padding:13px!important;border-radius:13px!important}
  .stat-card .stat-icon{width:42px!important;height:42px!important}
  .stat-card .stat-info h3{font-size:17px!important;white-space:normal!important}
  body.pos .mf-scan-workspace{padding:14px!important}
  body.pos .mf-scan-head strong{font-size:18px!important}
  .search-filter-bar{padding:12px!important;gap:8px!important}
  .quick-actions{gap:9px!important}
  .action-btn{padding:12px 7px!important}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
  /* Keep browser invoice and thermal-specific print CSS in control. */
  .main-sidebar,.top-bar,.site-footer{display:none!important}
  .main-area,.content-area{margin:0!important;padding:0!important;background:none!important}
  .page-header{display:none!important}
}

/* Finish checkout accents without touching cashier behavior. */
body.pos .cart-header button[onclick="loadHeldSales()"]{background:#8650d5!important;color:#fff!important}
body.pos .cart-header button[onclick="holdCurrentSale()"]{background:#c28a43!important;color:#fff!important}
body.pos .cart-header .clear-btn:hover{filter:brightness(1.09)}
body.pos .summary-card{border-color:#ebe1f6!important;background:linear-gradient(120deg,#fcfaff,#f7f2ff)!important}
body.pos .summary-row.total{background:linear-gradient(110deg,#7240cb,#aa54aa)!important;color:#fff!important;
 border-radius:10px!important}
body.pos .summary-row.total *,body.pos .summary-row.total #totalDisplay{color:#fff!important}
body.pos .cart-body input[type=text]:focus,body.pos .cart-body input[type=number]:focus{border-color:#b17fe9!important}
body.pos .payment-card{border-color:#e9dcf4!important}
body.pos .payment-box.change{background:#e5f8ef!important;color:#176c49!important}
body.pos .payment-box.due{background:#fff0f1!important;color:#ad3754!important}
