@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/noto-sans-bengali-400.ttf') format('truetype')}
@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/noto-sans-bengali-500.ttf') format('truetype')}
@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/noto-sans-bengali-600.ttf') format('truetype')}
@font-face{font-family:'Noto Sans Bengali';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/noto-sans-bengali-700.ttf') format('truetype')}
:root{--yellow:#ffcf36;--blue:#205bd8;--ink:#253443;--muted:#788493;--red:#d75555;--green:#33965f;--line:#e8edf2;--surface:#f5f7fa;--app-width:560px;--shadow:0 2px 8px #24344306;color-scheme:light}
*{box-sizing:border-box}html{background:#edf1f6;scroll-padding-top:76px}body{margin:0;color:var(--ink);font-family:'Noto Sans Bengali',sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:none;color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #93b4fb;outline-offset:2px}button:disabled{opacity:.55;cursor:wait}button:active{opacity:.8}input,select,textarea{font-size:16px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;appearance:textfield}.app{max-width:var(--app-width);margin:auto;min-height:100dvh;background:var(--surface);padding-bottom:calc(82px + env(safe-area-inset-bottom));position:relative}header{background:var(--yellow);position:sticky;top:0;z-index:10;padding-top:env(safe-area-inset-top);box-shadow:0 1px 0 #00000008}main{padding:12px;animation:screen-in .16s ease-out}main>*:last-child{margin-bottom:0}.topbar{display:flex;align-items:center;gap:8px;padding:7px 10px;min-height:60px}.topbar h1{font-size:18px;line-height:1.3;font-weight:600;margin:0;flex:1;min-width:0;color:#253128}.icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;width:44px;height:44px;border-radius:12px}.icon-button.soft{background:#ffffff40}.back .icon{width:23px;height:23px}.topbar>.outline{padding:7px 9px;font-size:12px;min-height:40px;display:flex;align-items:center;gap:5px}.topbar>.outline .icon{width:17px;height:17px}.home-header{padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:76px}.home-header>div:first-child{flex:1;min-width:0}.brand{font-weight:700;font-size:21px;line-height:1.3;letter-spacing:-.5px}.brand-subtitle{font-size:11px;color:#655421;margin-top:4px;display:flex;align-items:center;gap:5px}.status-dot{width:6px;height:6px;border-radius:50%;background:#349464;display:inline-block}.header-actions{display:flex;gap:0}.header-actions .icon-button{width:40px;min-width:40px;height:44px}.header-actions .icon{width:23px;height:23px}.panel{border:1px solid var(--line);border-radius:14px;background:#fff;margin-bottom:12px;overflow:hidden;box-shadow:var(--shadow)}.panel-title{padding:10px 12px;font-size:12px;font-weight:600;color:#6d7b89;border-bottom:1px solid #f0f3f6}.summary{padding:13px 10px}.summary-top{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;text-align:center;gap:6px;padding-bottom:12px;border-bottom:1px solid var(--line)}.stat p{font-size:12px;margin:0 0 5px;color:#6c7986;white-space:nowrap}.stat strong{font-size:19px;font-weight:600;line-height:1.2}.stat+.stat{border-left:1px solid var(--line)}.summary-bottom{display:grid;grid-template-columns:1fr 1.5fr 1fr;text-align:center;padding-top:12px}.due-pair{display:flex;justify-content:space-evenly;gap:6px;font-size:12px;line-height:1.8}.green{color:var(--green)}.red{color:var(--red)}.blue{color:var(--blue)}.muted{color:var(--muted)}.segmented{display:flex;border-radius:9px;background:#f0f3f7;padding:3px;gap:2px}.segmented button{flex:1;font-size:12px;min-height:36px;padding:6px;border-radius:7px}.segmented .active{background:var(--blue);color:#fff;box-shadow:0 2px 4px #205bd822}.banner{border:1px solid #f3e4ac;border-radius:13px;margin:0 0 12px;padding:11px 13px;background:linear-gradient(110deg,#fff9e8,#fff0b7);display:flex;justify-content:space-between;align-items:center;gap:8px;color:#4a3b13;overflow:hidden}.banner strong{font-size:15px;font-weight:600;line-height:1.5;display:block}.banner p{font-size:11px;margin:3px 0}.banner .banner-art{font-size:38px;transform:rotate(-8deg);padding-right:5px}.banner button{padding:5px 0;min-height:32px;font-size:11px;color:#826218;font-weight:600}.primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px 3px;min-height:82px;text-align:center;font-size:13px;min-width:0}.tile .art{width:35px;height:35px;display:block}.primary-actions .tile{flex-direction:row;gap:12px;min-height:62px;padding:10px;background:#f6f8fb;border-radius:10px;font-size:15px;font-weight:600}.primary-actions .art{width:37px;height:37px}.tile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:5px}.tile-grid .tile{font-size:12px;line-height:1.5;min-height:85px;gap:8px}.tile-grid .tile span{max-width:100%;overflow-wrap:anywhere}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:var(--app-width);width:100%;display:grid;grid-template-columns:repeat(5,1fr);background:#fffffffa;border-top:1px solid var(--line);z-index:30;padding:5px 4px calc(5px + env(safe-area-inset-bottom));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 -2px 10px rgba(0,0,0,0.04)}.bottom-nav button{min-height:53px;padding:5px 3px;color:#8993a0;font-size:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;border-radius:10px;touch-action:manipulation}.bottom-nav .icon{width:22px;height:22px}.bottom-nav .active{color:var(--blue);background:#edf3ff;font-weight:600}.search-row{display:flex;gap:5px;margin:0 0 14px;align-items:center}.search{display:flex;align-items:center;border:1px solid #d9e2ef;background:#fff;border-radius:11px;padding:0 10px;flex:1;min-width:0;height:48px;box-shadow:var(--shadow)}.search:focus-within{border-color:#86a7e9;box-shadow:0 0 0 3px #205bd80a}.search .icon{color:#8793a2;width:20px;height:20px}.search input{border:0;outline:none;box-shadow:none!important;width:100%;padding:0 8px;min-width:0;min-height:44px;margin:0;color:var(--ink);background:transparent;font-size:16px;border-radius:0}.search input::placeholder{font-size:13px;color:#9ba5b0}.search .filter{min-width:63px;display:flex;align-items:center;gap:4px;white-space:nowrap;border-left:1px solid var(--line);padding:0 0 0 9px;min-height:44px;color:#526377;font-size:12px}.search .filter .icon{width:18px;height:18px}.scan{color:var(--blue)}.product-card{display:flex;align-items:center;gap:11px;background:#fff;box-shadow:var(--shadow);padding:13px 11px;border-radius:12px;margin-bottom:9px;width:100%;text-align:left;border:1px solid var(--line)}.product-card.selected{border-color:#7ea3ee;background:#f1f6ff;box-shadow:0 0 0 1px #7ea3ee}.product-avatar{width:42px;height:42px;display:flex;justify-content:center;align-items:center;border-radius:12px;background:#fff8dc;flex-shrink:0;color:#eab100}.product-avatar .icon{width:25px;height:25px;fill:#f3bd13;stroke:#f3bd13}.product-body{flex:1;min-width:0}.product-name{font-size:15px;font-weight:600;color:#263443;margin-bottom:7px;overflow-wrap:anywhere}.product-body>strong{font-size:15px;font-weight:600;overflow-wrap:anywhere}.product-meta{display:flex;justify-content:space-between;gap:8px;font-size:13px}.product-meta span{color:#8993a0;display:block;margin-bottom:3px;font-size:10px}.product-meta strong{color:#475469;font-weight:500}.product-price{color:var(--red);font-size:14px;margin-top:5px}.fixed-action{position:fixed;bottom:calc(57px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);max-width:var(--app-width);width:100%;background:#fffffffa;border-top:1px solid var(--line);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:8px 12px;z-index:25;display:flex;gap:9px;box-shadow:0 -4px 15px rgba(0,0,0,0.05)}.app:has(.fixed-action),body:has(.fixed-action) .app{padding-bottom:calc(145px + env(safe-area-inset-bottom))!important}body:has(.fixed-action) #toast{bottom:calc(150px + env(safe-area-inset-bottom))!important}.primary{background:var(--blue);color:#fff;border-radius:10px;padding:11px 15px;font-size:14px;font-weight:600;min-height:46px;box-shadow:0 3px 8px #205bd815}.wide{width:100%}.outline{border:1px solid #c9d9f2;border-radius:10px;padding:10px 12px;color:#2d62b6;background:#fff;font-size:13px;min-height:44px}.add-outline{margin:16px 0 0;width:100%;padding:12px}.checkout-bar{background:var(--blue);border:0;color:#fff;align-items:center;justify-content:space-between;font-size:13px}.checkout-bar button{background:#fff;color:#235bb5;padding:10px 15px;min-height:44px;border-radius:9px;font-size:13px;font-weight:600}.sale-tools{display:flex;justify-content:space-between;margin:0 0 12px;gap:10px}.sale-tools button{font-size:13px;padding:9px 12px;min-height:44px}.sale-tools .icon{width:19px;height:19px;vertical-align:middle;margin-right:4px}.hero{background:linear-gradient(135deg,#2564df,#1e53c2);border-radius:13px;box-shadow:0 3px 10px #205bd818;color:#fff;padding:15px 13px;margin-bottom:12px;position:relative;text-align:center}.hero .total-label{color:#ffdf73;font-size:13px;margin:10px 0 3px}.hero strong{font-size:24px;font-weight:600;line-height:1.4}.hero .period{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:12px}.period button{min-width:36px;min-height:36px;display:flex;align-items:center;justify-content:center}.period .icon{width:20px;height:20px}.hero p{font-size:12px;margin:6px 0 0;color:#dbe7ff}.tabs{display:flex;gap:4px;margin-bottom:12px;background:#eaf0f7;border-radius:10px;padding:3px}.tabs button{flex:1;border:0;border-radius:8px;min-height:38px;padding:7px 3px;color:#778292;font-size:11px;white-space:nowrap}.tabs .active{background:#fff;color:var(--blue);box-shadow:0 1px 5px #25344310;font-weight:600}.empty{text-align:center;padding:26px 6px 18px;color:#8793a0}.empty>p{font-size:14px;margin:8px 0;font-weight:500}.tutorial{border:1px solid var(--line);background:#fff;margin:18px auto 0;width:100%;max-width:285px;padding:10px;border-radius:13px}.tutorial-image{background:#ffe582;position:relative;border-radius:9px;padding:12px;display:flex;gap:16px;align-items:center;color:#63511c;min-height:112px}.mini-phone{border:3px solid #364044;border-radius:12px;width:59px;height:93px;background:#fff;flex-shrink:0;overflow:hidden;box-shadow:2px 3px 0 #0001}.mini-phone .mini-head{background:var(--yellow);font-size:5px;padding:7px 2px}.mini-phone .mini-body{padding:7px 3px;display:grid;grid-template-columns:1fr 1fr;gap:5px;font-size:9px}.tutorial-image strong{font-size:14px;line-height:1.6;padding-bottom:20px}.play{position:absolute;left:auto;right:19px;bottom:15px;top:auto;background:#fff;color:var(--blue);border-radius:50%;width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-size:14px;box-shadow:0 2px 5px #0001}.tutorial p{font-size:12px;line-height:1.7;margin:9px 0 1px;color:#7e8b9a}.due-summary{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:12px;margin:0 0 14px;text-align:center}.due-summary>p{font-size:12px;margin:10px 0}.due-boxes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}.due-box{padding:12px;border:1px solid #f7dedc;background:#fff4f3;border-radius:10px;font-size:13px;color:var(--red)}.due-box.green{background:#effaf3;border-color:#dbefdf;color:var(--green)}.due-box strong{display:block;font-size:21px;margin-top:5px}.due-summary .outline{font-size:12px;min-height:40px}.expense-hero{text-align:left;min-height:120px;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.expense-hero .total-label{margin-top:0}.expense-hero button{font-size:12px;display:flex;align-items:center;flex-direction:column;gap:8px;min-height:44px}.expense-hero button .icon{background:#ffffff20;width:36px;height:36px;padding:7px;border-radius:10px}.expense-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.expense-grid .tile{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);min-height:94px;font-size:13px}.section-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;font-size:14px}.contact-tabs{display:flex;border-radius:10px;background:#fff;border:1px solid var(--line);margin-bottom:12px;padding:3px}.contact-tabs button{flex:1;min-height:42px;padding:10px 3px;border-radius:8px;font-size:12px}.contact-tabs .active{background:#edf3ff;color:var(--blue);font-weight:600}.stock-totals{display:flex;gap:10px;padding:0}.stock-totals div{flex:1;background:#ffffff18;border:1px solid #ffffff18;border-radius:10px;padding:12px 6px;font-size:21px;font-weight:600}.stock-totals small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:#dbe7ff}.list-row{display:flex;align-items:center;gap:10px;padding:12px;background:#fff;border:1px solid var(--line);margin-bottom:9px;border-radius:12px;text-align:left}.list-row .info{flex:1;min-width:0}.list-row strong{font-size:14px;display:block;overflow-wrap:anywhere}.list-row small{color:#8993a0;font-size:11px}.list-row>strong{white-space:nowrap}.report-section{background:#fff;border:1px solid var(--line);border-radius:13px;padding:10px;margin:12px 0;overflow:hidden}.report-section h2{font-size:14px;font-weight:600;margin:-10px -10px 10px;background:#eef3fb;padding:13px;color:#42628e}.report-row{background:#fff;border-bottom:1px solid var(--line);padding:11px 4px;margin:0;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px}.report-row:last-child{border:0}.report-row>span{white-space:nowrap;font-weight:600}.report-row small{display:block;font-size:10px;color:#9aa4af;margin-top:4px}.form-card{background:#fff;border:1px solid var(--line);padding:14px;border-radius:13px;box-shadow:var(--shadow);margin-bottom:12px}.form-card h2{font-size:19px;margin:0 0 10px}.form-card h3{font-size:15px;margin:0 0 14px}label{display:block;font-size:12px;font-weight:500;margin-bottom:12px;color:#526173}input,select,textarea{display:block;width:100%;border:1px solid #dfe5ec;background:#fff;border-radius:9px;padding:10px 11px;margin-top:5px;color:#253443;outline:none;min-height:46px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:#8caceb;box-shadow:0 0 0 3px #205bd80a}textarea{min-height:80px;resize:vertical}input::placeholder,textarea::placeholder{color:#a2acb7;font-size:13px}.hint{border:1px solid #deE8f9;border-radius:9px;background:#f3f7ff;padding:10px;text-align:left;color:#6480a7;font-size:11px;line-height:1.8}.toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:10px;background:#f5f7fa;border:1px solid #edf0f4;padding:12px;margin-bottom:9px;font-size:13px;min-height:48px}.toggle input{appearance:none;width:36px;height:21px;min-height:21px;border:0;background:#c3ccd7;border-radius:20px;position:relative;margin:0;padding:0;cursor:pointer;flex-shrink:0;box-shadow:none}.toggle input:before{content:'';position:absolute;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;left:2px;top:2px;transition:.15s}.toggle input:checked{background:var(--blue)}.toggle input:checked:before{left:17px}details summary{padding:4px 0;color:#3868ae;font-weight:600;font-size:13px;cursor:pointer;min-height:32px}details>div{padding-top:12px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cart-head{display:grid;grid-template-columns:1.1fr 1fr 1fr 1fr;background:#eaf0fb;color:#4f6b9b;padding:9px;text-align:center;margin:12px 0;border-radius:8px;font-size:12px}.cart-line{display:grid;grid-template-columns:minmax(0,1.1fr) repeat(3,minmax(0,1fr));gap:6px;padding:10px 8px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:10px;align-items:center;font-size:12px}.cart-line input{padding:8px 3px;min-width:0;text-align:center;min-height:42px;font-size:16px}.cart-line .cart-product{text-align:center;font-size:11px;overflow-wrap:anywhere}.cart-product .product-avatar{width:30px;height:30px;margin:auto auto 5px;border-radius:8px}.cart-product .icon{width:20px;height:20px}.cart-line .remove{color:#c55;font-size:10px;display:block;min-height:32px;width:100%}.total-line{display:flex;justify-content:space-between;padding:12px 3px;font-size:16px;border-top:1px solid var(--line);margin-bottom:8px}.receipt{padding:16px}.receipt h2{text-align:center;font-size:20px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.admin-grid button{padding:14px 10px;background:#fff;border:1px solid var(--line);border-radius:11px;color:#3966ab;text-align:left;font-size:12px;min-height:54px}.badge{display:inline-block;padding:3px 7px;background:#edf3ff;color:#235bb5;border-radius:6px;font-size:10px}.error{background:#fff0f0;color:#c44141;padding:10px;border-radius:8px;margin-bottom:12px;font-size:12px}.login{max-width:400px;margin:8dvh auto;padding:16px}.login-brand{background:var(--yellow);padding:25px 22px;border-radius:20px 20px 0 0;font-size:24px}.login-brand p{font-size:12px;margin:8px 0 0;color:#786024}.login form{padding:22px;border-radius:0 0 20px 20px}.login h2{margin:0;font-size:20px}.login form>p{font-size:12px;margin:5px 0 20px}.login small{display:block;text-align:center;margin-top:17px;color:#96a0ac;font-size:10px}dialog{border:1px solid var(--line);border-radius:20px;width:calc(100% - 24px);max-width:440px;padding:18px;max-height:85dvh;box-shadow:0 15px 50px #0003;color:var(--ink);background:#fff}dialog::backdrop{background:#14233c66;backdrop-filter:blur(3px)}dialog h2{margin:0;font-size:17px;font-weight:600}dialog p{font-size:13px;line-height:1.8}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.modal-top button{width:36px;height:36px;border-radius:50%;background:#f1f5f9;color:#334155;border:1px solid #cbd5e1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.modal-top button:hover{background:#fee2e2;color:#dc2626;border-color:#fca5a5}.modal-actions{display:flex;gap:10px;margin-top:16px}.modal-actions button{flex:1}#toast{position:fixed;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#253443;color:#fff;border-radius:12px;padding:11px 15px;z-index:100;max-width:90%;display:none;font-size:12px;box-shadow:0 4px 20px #0002}.loading{text-align:center;padding:40px;color:#8c98a6;font-size:13px}.amount{font-variant-numeric:tabular-nums}.record{background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:9px;display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left}.record strong{font-size:14px;font-weight:600}.record p{margin:4px 0;font-size:11px;color:#8a95a2}.record .money{font-size:16px;white-space:nowrap;font-weight:600}.welcome-label,.print-only{display:none}.keyboard-open #bottom{visibility:hidden}.keyboard-open .app{padding-bottom:20px}.install-note{font-size:11px;color:#8a95a2;text-align:center;line-height:1.8;margin:9px 0 0}
@keyframes screen-in{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:359px){main{padding:10px}.home-header{padding:9px 10px}.header-actions .icon-button{width:36px;min-width:36px}.tile-grid .tile{font-size:10px}.product-card{padding:11px 9px;gap:9px}.product-avatar{width:36px;height:36px}.product-name{font-size:14px}.product-meta{font-size:12px}.product-meta span{font-size:9px}.topbar h1{font-size:16px}.summary .stat strong{font-size:17px}.summary-top{gap:3px}.segmented button{font-size:11px;padding:5px}.topbar{gap:4px}.topbar>.outline{font-size:10px}}
@media(min-width:750px){.app{margin:20px auto;min-height:calc(100dvh - 40px);border-radius:20px;overflow:clip;box-shadow:0 12px 45px #24344a12}body{background:radial-gradient(ellipse at top,#fffaf0,#edf1f6)}.bottom-nav,.fixed-action{border-radius:0 0 16px 16px}.welcome-label{display:block}}
@media(display-mode:standalone){.app{margin:0 auto;border-radius:0;min-height:100dvh}header{user-select:none}}
@media(prefers-reduced-motion:reduce){*,*::before{animation:none!important;transition:none!important}html{scroll-behavior:auto}}
@media print{html,body,.app{background:white;box-shadow:none;margin:0;max-width:none;padding:0}header,#bottom,.search-row,.tabs,.no-print,dialog,#toast{display:none!important}main{padding:0;animation:none}.print-only{display:block}.hero{background:#fff!important;color:#111;box-shadow:none;border:1px solid #ddd}.hero .total-label{color:#111}.record,.report-row{break-inside:avoid}.empty .tutorial{display:none}}
/* Shared outline icon system: restrained color, no emoji or filled avatars. */
.icon{stroke-width:1.75;fill:none}.tile .art{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:#edf3ff;color:#3668bd}.art .icon{width:23px;height:23px}.primary-actions .art{width:38px;height:38px}.art-purchase,.art-purchaseBook{background:#edf4ff!important;color:#3c6cbc!important}.art-sale,.art-saleBook{background:#edf8f3!important;color:#369a74!important}.art-due,.art-bill{background:#fff5e8!important;color:#c08c35!important}.art-expense,.art-salary{background:#fff0f0!important;color:#c76b6b!important}.art-contacts,.art-rent{background:#f3f0ff!important;color:#8a70c2!important}.art-stock{background:#eaf7f8!important;color:#4499a1!important}.art-settings,.art-backup,.art-lock{background:#f0f3f7!important;color:#677c96!important}.product-avatar{background:#edf3ff;color:#5980bc}.product-avatar .icon{width:23px;height:23px;fill:none;stroke:currentColor}.banner .banner-art{transform:rotate(-8deg);display:flex;align-items:center;justify-content:center;border-radius:14px;background:#fff9e6;color:#a2843e;width:48px;height:48px;padding:0;flex-shrink:0}.banner-art .icon{width:30px;height:30px}.mini-body .icon{width:10px;height:10px;color:#6c7e97}.play .icon{width:13px;height:13px;fill:currentColor;stroke-width:1.5}.admin-grid button{display:flex;align-items:center;gap:8px}.admin-grid .icon{width:20px;height:20px}.modal-top button .icon{width:18px;height:18px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block}.primary>.icon,.outline>.icon{width:17px;height:17px;vertical-align:middle;margin-right:6px}.fixed-action>.primary{display:flex;align-items:center;justify-content:center;gap:5px}.brand-icon{width:32px;height:32px;vertical-align:middle;border-radius:8px;margin-right:5px}
.receipt-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.receipt-status{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:#166534}.receipt-status .icon{width:16px;height:16px}.receipt{padding:18px 14px;color:#0f172a;background:#fff}.receipt-business{text-align:center;padding:0 0 16px;border-bottom:2px dashed #94a3b8}.receipt-business h2{margin:7px 0 3px;font-size:21px;font-weight:800;color:#000}.receipt-business p{margin:3px 0;color:#1e293b;font-size:12px;font-weight:600;overflow-wrap:anywhere}.receipt-logo{width:40px;height:40px;border-radius:12px;background:#e2e8f0;display:flex;align-items:center;justify-content:center;color:#1e3a8a;margin:auto}.receipt-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:16px 0 12px;font-size:16px;font-weight:800;color:#0f172a;border-bottom:2px solid #0f172a;padding-bottom:6px}.receipt-heading>strong{font-size:16px;font-weight:800;color:#0f172a}.receipt-heading>span{font-size:12px;font-weight:800;color:#0f172a;letter-spacing:.4px}.receipt-meta{display:flex;justify-content:space-between;gap:14px;margin-bottom:12px}.receipt-meta>div{display:flex;flex-direction:column;gap:3px;font-size:12px;min-width:0}.receipt-meta>div:last-child{text-align:right;flex-shrink:0}.receipt-meta small{font-size:11px;font-weight:700;color:#334155}.receipt-meta strong{font-size:13px;font-weight:800;color:#000;overflow-wrap:anywhere}.receipt-meta span{color:#1e293b;font-size:12px;font-weight:700}.receipt-reference{font-size:12px;font-weight:700;color:#0f172a;margin:0 0 12px;padding:3px 8px;background:#f1f5f9;border-radius:6px;display:inline-block}.receipt-items{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;color:#000;border-top:1.5px solid #0f172a;border-bottom:1.5px solid #0f172a}.receipt-items th{font-size:11px;font-weight:800;padding:8px 5px;background:#e2e8f0;color:#000;text-align:right;border-bottom:2px solid #0f172a}.receipt-items th:first-child,.receipt-items td:first-child{width:40%;text-align:left}.receipt-items td{padding:10px 5px;border-bottom:1px solid #cbd5e1;text-align:right;vertical-align:top;overflow-wrap:anywhere;color:#000;font-weight:700}.receipt-items small{display:block;color:#1e293b;font-size:10px;font-weight:700;margin-top:2px}.receipt-totals{padding-top:12px;font-size:13px;font-weight:700;color:#000}.receipt-totals>div{display:flex;justify-content:space-between;gap:12px;padding:6px 0;color:#000}.receipt-totals>div>span:first-child{color:#0f172a;font-weight:700;font-size:13px}.receipt-totals>div>span:last-child{color:#000;font-weight:800;font-size:13px}.receipt-totals .receipt-grand{background:#f1f5f9;border:2px solid #0f172a;border-radius:8px;margin:8px -3px;padding:10px 8px;color:#000;font-size:16px;font-weight:900}.receipt-totals .receipt-grand strong{color:#000;font-size:16px;font-weight:900}.receipt-totals .green{color:#166534!important;font-weight:800!important}.receipt-totals .red{color:#991b1b!important;font-weight:800!important}.receipt-note{background:#f8fafc;border-left:3px solid #0f172a;border-radius:6px;padding:10px;font-size:12px;font-weight:700;color:#0f172a;overflow-wrap:anywhere;white-space:pre-line;margin-top:10px}.receipt-thanks{text-align:center;border-top:2px dashed #94a3b8;padding-top:14px;margin-top:14px;font-size:12px;font-weight:700;color:#0f172a;line-height:1.8}.receipt-thanks strong{font-weight:900;color:#000;font-size:14px;display:block}.receipt-disclaimer{text-align:center;font-size:11px;font-weight:600;color:#334155;margin:10px 0 0}.receipt-links{display:flex;gap:8px;margin-top:12px}.receipt-links .outline{flex:1;font-size:12px}.receipt-actions{gap:8px}.receipt-actions a{display:flex;align-items:center;justify-content:center;font-size:12px}.receipt-actions button{font-size:12px;white-space:nowrap}.receipt-actions .icon{width:17px;height:17px;vertical-align:middle}.receipt-items thead{display:table-header-group}@media print{@page{margin:6mm;size:auto}html,body{background:#fff!important;color:#000!important;font-size:12px!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.no-print,.receipt-toolbar,.receipt-links,.receipt-actions,.mobile-dock,.header,#header,#bottom,.bottom-nav,.topbar,.search-row,.tabs,dialog,#modal,#toast,.toast-container,.fixed-action{display:none!important}.app,main,#main,.shell{margin:0!important;padding:0!important;max-width:100%!important;width:100%!important;background:#fff!important;box-shadow:none!important}.receipt{border:0!important;box-shadow:none!important;max-width:100%!important;width:100%!important;margin:0 auto!important;padding:0!important;background:#fff!important;color:#000!important}.receipt,.receipt *{color:#000!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important;text-shadow:none!important}.receipt-logo{display:none!important}.receipt-business{border-bottom:2px dashed #000!important;padding-bottom:10px!important}.receipt-business h2{font-size:22px!important;font-weight:900!important;color:#000!important;margin-bottom:4px!important}.receipt-business p{font-size:12px!important;font-weight:700!important;color:#000!important;margin:2px 0!important}.receipt-heading{display:flex!important;justify-content:space-between!important;align-items:center!important;border-bottom:2px solid #000!important;padding-bottom:6px!important;margin:12px 0 10px!important}.receipt-heading strong,.receipt-heading span{font-size:15px!important;font-weight:900!important;color:#000!important}.receipt-meta{margin-bottom:10px!important}.receipt-meta small{font-size:11px!important;font-weight:800!important;color:#000!important}.receipt-meta strong{font-size:13px!important;font-weight:900!important;color:#000!important}.receipt-meta span{font-size:12px!important;font-weight:700!important;color:#000!important}.receipt-reference{font-size:12px!important;font-weight:800!important;color:#000!important;border:1px solid #000!important;background:transparent!important;padding:3px 6px!important}.receipt-items{width:100%!important;border-top:2px solid #000!important;border-bottom:2px solid #000!important;font-size:12px!important}.receipt-items th{background:#f0f0f0!important;color:#000!important;font-weight:900!important;font-size:12px!important;border-bottom:2px solid #000!important;padding:6px 4px!important}.receipt-items td{color:#000!important;font-weight:700!important;font-size:12px!important;border-bottom:1px solid #000!important;padding:6px 4px!important}.receipt-items small{color:#000!important;font-weight:700!important;font-size:10px!important}.receipt-items tr{break-inside:avoid!important}.receipt-totals{border-top:1.5px solid #000!important;font-size:13px!important;font-weight:700!important;padding-top:8px!important}.receipt-totals>div>span:first-child{color:#000!important;font-weight:800!important}.receipt-totals strong,.receipt-totals span{color:#000!important;font-weight:900!important}.receipt-totals .receipt-grand{background:#f5f5f5!important;border:2px solid #000!important;padding:8px!important;margin:8px 0!important}.receipt-totals .receipt-grand *{font-size:16px!important;font-weight:900!important;color:#000!important}.receipt-note{background:transparent!important;border:1px solid #000!important;color:#000!important;font-weight:700!important}.receipt-thanks{border-top:2px dashed #000!important;color:#000!important;font-weight:700!important;font-size:12px!important;padding-top:10px!important;margin-top:12px!important}.receipt-thanks strong{color:#000!important;font-weight:900!important;font-size:13px!important}.receipt-disclaimer{color:#000!important;font-weight:700!important;font-size:11px!important}}
/* Slim product rows: exactly 30% of the card width is reserved for its image. */
.product-card.slim-product{display:grid;grid-template-columns:30% minmax(0,1fr);gap:0;padding:0;min-height:68px;height:68px;margin-bottom:8px;border-radius:11px;position:relative;overflow:hidden;text-align:left}.slim-product .product-image{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;background:#eff4fb;border-right:1px solid #e8edf2;overflow:hidden;color:#7a98c4}.product-image img{width:100%;height:100%;object-fit:cover;display:block}.slim-product .product-image>.icon{width:25px;height:25px}.slim-product .product-body{display:flex;flex-direction:column;justify-content:center;padding:8px 12px;gap:4px;min-width:0}.slim-product .product-name{display:block;margin:0;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:15px}.product-stock{display:block;color:#91a0b0;font-size:11px;line-height:1.5}.product-stock strong{font-size:12px;font-weight:500;color:#55718f;margin-left:4px}.product-stock small{font-size:10px;margin-left:3px}.product-selected{position:absolute;top:9px;right:8px;color:#3068c3}.product-selected .icon{width:14px;height:14px}.product-count{font-size:12px;color:#8393a6;margin:0 0 12px}.product-image-preview{width:110px;height:72px;border-radius:10px;overflow:hidden;margin-bottom:12px}.product-image-preview .product-image{display:block;width:100%;height:100%}label>small{display:block;margin-top:4px;font-size:10px;color:#91a0b0}input[type=file]{font-size:12px;padding:10px;background:#f7f9fc}input[type=file]::file-selector-button{border:0;border-radius:5px;background:#e6edfa;color:#416aaf;padding:5px 9px;margin-right:9px;font:inherit}
.role-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid #dbe6f8;background:#eef4ff;padding:10px 12px;border-radius:12px;margin-bottom:12px;color:#4c6f9f}.role-strip span{background:#d7e5fd;color:#245db1;padding:3px 7px;border-radius:6px;font-size:10px;font-weight:600}.role-strip strong{font-size:13px}.role-strip small{margin-left:auto;font-size:10px}.role-hero{text-align:left}.role-product-list .product-image{width:38px;height:38px;border-radius:10px;background:#edf3ff;display:flex;align-items:center;justify-content:center;color:#557fbd;overflow:hidden}.role-product-list .product-image img{width:100%;height:100%;object-fit:cover}.product-card-action,.product-price-action{position:absolute;display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;border-radius:8px;background:#f2f6fd;color:#5c80b8}.product-card-action{right:7px;top:7px}.product-price-action{right:47px;top:7px;background:#eff8f3;color:#39936d}.product-card-action .icon,.product-price-action .icon{width:16px;height:16px}.slim-product .product-name{padding-right:76px}.price-range-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-bottom:9px;padding:9px;background:#f6f8fb;border:1px solid #e7edf5;border-radius:9px}.price-range-row label{font-size:10px;margin:0}.price-range-row input{min-height:38px;margin-top:4px;padding:6px;font-size:14px}.price-range-list>div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf1f5;padding:10px 2px;font-size:12px}.price-range-list>div:last-child{border:0}.price-range-list strong{color:#315fa9}.managed-user{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #edf1f5}.managed-user>div{flex:1;min-width:0}.managed-user strong,.managed-user small{display:block}.managed-user small{font-size:10px;color:#8c9aab;margin-top:3px}.user-status{font-size:10px;min-height:33px;padding:5px 7px}.badge-muted{background:#f4f5f6;color:#8a959f}.dashboard-counters{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.dashboard-counters>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px;text-align:center}.dashboard-counters small{display:block;font-size:10px;color:#8b99aa}.dashboard-counters strong{display:block;font-size:19px;color:#426eb6;margin-top:3px}
/* Cart: compact product details with explicit ten-unit quantity controls. */
.cart-context{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 14px}.cart-context>div{display:flex;flex-direction:column;gap:4px}.cart-context strong{font-size:15px;font-weight:600}.cart-context>div>span{font-size:11px;color:#8a98a9}.quantity-rule{background:#edf3ff;color:#5a7caf;font-size:11px;white-space:nowrap;padding:6px 9px;border-radius:7px}.cart-reference{background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 12px;margin-bottom:14px}.cart-reference label{margin:0;font-size:11px}.cart-reference input{min-height:42px;padding:8px 10px;margin-top:6px}.cart-item{background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:10px;padding:11px 12px;box-shadow:var(--shadow)}.cart-item-top{display:flex;align-items:center;gap:10px;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #f0f3f7}.cart-item-top>.product-image{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#edf3ff;color:#6688ba;flex-shrink:0;overflow:hidden}.cart-item-top>.product-image .icon{width:21px;height:21px}.cart-item-title{flex:1;min-width:0}.cart-item-title strong{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere}.cart-item-title small{display:block;font-size:10px;color:#96a3b2;margin-top:3px}.cart-delete{color:#c27777;width:36px;min-width:36px;height:36px}.cart-delete .icon{width:17px;height:17px}.cart-item-fields{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1fr);gap:10px;align-items:start}.cart-quantity>label,.cart-unit-price,.cart-line-sum>small{margin:0;font-size:10px;color:#8b9aac;font-weight:400}.quantity-stepper{display:flex;align-items:center;border:1px solid #dde6f2;border-radius:9px;height:44px;margin-top:5px;background:#fafcff;overflow:hidden}.quantity-stepper button{display:flex;align-items:center;justify-content:center;min-width:33px;width:33px;height:44px;padding:0;color:#5577aa}.quantity-stepper .icon{width:15px;height:15px}.quantity-stepper input{width:100%;min-width:0;height:42px;min-height:42px;border:0;border-radius:0;background:transparent;margin:0;padding:4px 0;text-align:center;font-size:16px;font-weight:600;appearance:textfield;box-shadow:none}.quantity-stepper input::-webkit-inner-spin-button,.quantity-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}.quantity-stepper:focus-within{border-color:#7ea3e4;box-shadow:0 0 0 2px #205bd80a}.quantity-stepper:has([aria-invalid=true]){border-color:#dd9797;background:#fff9f9}.cart-unit-price input{height:44px;min-height:44px;padding:5px 7px;margin-top:5px;font-size:16px;text-align:center;border-color:#dde6f2;background:#fafcff}.cart-line-sum{display:flex;flex-direction:column;gap:5px;text-align:right;min-width:0}.cart-line-sum strong{font-size:13px;min-height:44px;display:flex;align-items:center;justify-content:flex-end;overflow-wrap:anywhere;font-weight:600;line-height:1.4;color:#4d6482}.quantity-error{font-size:10px;color:#c85d5d;margin:8px 0 0}.cart-summary{background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;margin-top:15px}.cart-subtotal{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:2px 0 13px;color:#8292a6}.cart-subtotal strong{color:#506883;font-weight:500}.cart-summary .toggle{font-size:12px;padding:10px;min-height:46px;margin-bottom:8px;background:#f8fafd}.cart-summary label:not(.toggle){font-size:11px}.cart-grand{border-top:1px solid var(--line);padding-top:13px;margin-top:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}.cart-grand>div{display:flex;flex-direction:column;gap:4px}.cart-grand small{font-size:11px;color:#8a9aaa}.cart-grand strong{font-size:21px;font-weight:600;color:#3564b2}.cart-payment-note{font-size:10px;color:#9aa7b5}.cart-summary:has(input[aria-invalid=true]){border-color:#dd9797}@media(max-width:359px){.cart-item{padding:10px}.cart-item-fields{gap:7px;grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1fr)}.quantity-stepper button{width:28px;min-width:28px}.cart-line-sum strong{font-size:12px}.cart-payment-note{font-size:9px}}
.user-welcome{background:var(--yellow);margin:-12px -12px 12px;padding:18px 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.user-welcome strong{font-size:22px;color:#253443}.user-welcome p{margin:3px 0 0;color:#866b1c;font-size:12px}.user-header-icons{display:flex;align-items:center;gap:17px;color:#15253a}.user-header-icons .icon{width:25px;height:25px}.user-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:linear-gradient(105deg,#fff5c7,#ffe37a);border:1px solid #edd67f;border-radius:14px;padding:14px 16px;margin-bottom:12px;min-height:88px}.user-banner strong,.user-banner span{display:block}.user-banner strong{font-size:16px;color:#2f2a17}.user-banner span{font-size:12px;color:#745e20;margin-top:3px}.user-banner button{background:#f4c62e;color:#503f0d;border-radius:16px;padding:7px 13px;font-size:11px;white-space:nowrap}.user-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}.user-primary-actions .tile{background:#f5f7fa;border-radius:10px;min-height:108px;font-size:16px;font-weight:600}.user-primary-actions .art{width:48px;height:48px}.user-summary .stat strong{font-size:18px}
.management-hero{background:linear-gradient(135deg,#173f9e,#2d70e8);color:#fff;border-radius:16px;padding:18px 16px;margin-bottom:12px;box-shadow:0 8px 20px #205bd824}.management-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.management-hero h2{font-size:22px;margin:5px 0 3px}.management-hero p{font-size:11px;color:#dce8ff;margin:0;line-height:1.7}.eyebrow{display:block;font-size:9px;letter-spacing:1px;color:#7892b8;font-weight:700}.management-hero .eyebrow{color:#bcd3ff}.role-badge{border:1px solid #ffffff55;background:#ffffff20;border-radius:8px;padding:5px 8px;font-size:9px;font-weight:700;white-space:nowrap}.detailed-counters{grid-template-columns:repeat(2,1fr);gap:9px;margin:0 0 13px}.detailed-counters>div{position:relative;text-align:left;padding:12px 11px;min-height:88px}.detailed-counters small{margin-top:8px;color:#7e8d9f}.detailed-counters strong{font-size:22px;margin-top:1px}.counter-icon{position:absolute;right:10px;top:10px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#edf3ff;color:#376bc0}.counter-icon .icon{width:17px;height:17px}.counter-icon.green{background:#eaf8f2;color:#39936d}.counter-icon.purple{background:#f3efff;color:#8067c5}.counter-icon.orange{background:#fff4e4;color:#c1883d}.management-section{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px 12px;margin-bottom:12px;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.section-heading h3{margin:3px 0 0;font-size:16px}.section-link{display:flex;align-items:center;gap:3px;color:#2e64b8;font-size:11px}.section-link .icon{width:14px;height:14px}.management-actions{display:grid;gap:7px}.management-actions button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;border:1px solid #edf1f6;border-radius:11px;text-align:left;background:#fbfcfe}.management-actions button>span:nth-child(2){flex:1;min-width:0}.management-actions strong,.management-actions small{display:block}.management-actions strong{font-size:12px}.management-actions small{font-size:10px;color:#8a99aa;margin-top:2px}.action-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#edf3ff;color:#3b6dc0}.action-icon .icon{width:20px;height:20px}.action-icon.green{background:#eaf8f2;color:#39936d}.action-icon.orange{background:#fff4e4;color:#c1883d}.action-icon.purple{background:#f3efff;color:#8067c5}.management-actions>button>.icon{width:16px;color:#9aa8b8}.permission-list{display:flex;flex-wrap:wrap;gap:7px}.permission-list span{display:inline-flex;align-items:center;gap:4px;padding:6px 8px;border-radius:8px;background:#f1f6ff;color:#436da8;font-size:10px}.permission-list .icon{width:13px;height:13px;color:#3a9b70}.management-products>div{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #eef1f5}.management-products>div:last-child{border-bottom:0}.management-products>div>span:nth-child(2){flex:1;min-width:0}.management-products strong,.management-products small{display:block}.management-products strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.management-products small{font-size:10px;color:#8b9aaa;margin-top:2px}.mini-product-icon{width:37px;height:37px;border-radius:9px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#edf3ff;color:#5980bc}.mini-product-icon .product-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.mini-product-icon .icon{width:21px;height:21px}.management-products button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px;background:#fff4e4;color:#bd873e}.management-products button .icon{width:16px;height:16px}.management-notice{display:flex;align-items:flex-start;gap:9px;border:1px dashed #a9c2ed;background:#f1f6ff;border-radius:12px;color:#416ba8;padding:11px 12px;margin-bottom:12px}.management-notice>.icon{width:18px;height:18px;margin-top:2px}.management-notice strong,.management-notice small{display:block}.management-notice strong{font-size:11px}.management-notice small{font-size:10px;margin-top:3px;color:#728cac}
.user-welcome{display:none}
.shop-hero{background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 55%,#3b82f6 100%);color:#fff;border-radius:18px;padding:18px 16px;margin-bottom:14px;position:relative;overflow:hidden;box-shadow:0 8px 24px -4px rgba(37,99,235,0.28)}.shop-hero::before{content:'';position:absolute;top:-40%;right:-20%;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,0.2) 0%,rgba(255,255,255,0) 70%);pointer-events:none}.shop-hero-badge{display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,0.16);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.28);color:#f0f6ff;font-size:10px;font-weight:700;letter-spacing:.6px;padding:3px 9px;border-radius:20px;margin-bottom:6px}.shop-hero-badge .icon{width:12px;height:12px;stroke-width:2.2}.shop-hero h2{font-size:22px;font-weight:800;margin:0 0 4px;color:#fff;letter-spacing:-.3px;line-height:1.25}.shop-hero p{font-size:11.5px;color:#dbeafe;margin:0;line-height:1.4}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:12px}.shop-card{background:#ffffff;border:1px solid #e2e8f0;border-radius:16px;overflow:hidden;box-shadow:0 2px 8px -2px rgba(15,23,42,0.06),0 1px 3px -1px rgba(15,23,42,0.03);cursor:pointer;transition:transform .16s cubic-bezier(0.2,0,0,1),border-color .2s ease,box-shadow .2s ease,background-color .2s ease;display:flex;flex-direction:column;position:relative;-webkit-tap-highlight-color:transparent;user-select:none}.shop-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px -4px rgba(15,23,42,0.1),0 2px 6px -1px rgba(15,23,42,0.05);border-color:#cbd5e1}.shop-card:active{transform:scale(0.975)}.shop-card.selected{border-color:#2563eb;background:#ffffff;box-shadow:0 0 0 2px #2563eb,0 8px 24px -4px rgba(37,99,235,0.22)}.shop-card-media{position:relative;width:100%;height:148px;background:radial-gradient(circle at center,#ffffff 30%,#f1f5f9 100%);display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid #f1f5f9}.shop-card.selected .shop-card-media{background:radial-gradient(circle at center,#ffffff 30%,#eff6ff 100%)}.shop-card-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden}.shop-card-image .product-image{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:transparent;color:#94a3b8}.shop-card-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .25s cubic-bezier(0.2,0,0,1)}.shop-card:hover .shop-card-image img{transform:scale(1.05)}.shop-card-image .icon{width:42px;height:42px;color:#94a3b8;stroke-width:1.5}.shop-card-badges{position:absolute;top:8px;left:8px;right:8px;display:flex;justify-content:space-between;align-items:center;pointer-events:none;z-index:2}.shop-badge-cat{font-size:9.5px;font-weight:700;color:#475569;background:rgba(255,255,255,0.94);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:2px 7px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,0.08);max-width:85px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid rgba(226,232,240,0.85)}.shop-badge-selected{width:24px;height:24px;border-radius:50%;background:#2563eb;color:#ffffff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(37,99,235,0.4);margin-left:auto}.shop-badge-selected .icon{width:13px;height:13px;stroke-width:2.5}.shop-card-body{padding:11px 12px 13px;display:flex;flex-direction:column;flex:1;gap:6px}.shop-card-title{font-size:13.5px;font-weight:700;color:#0f172a;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;word-break:break-word;margin:0}.shop-card.selected .shop-card-title{color:#1e40af}.shop-stock-wrap{margin-bottom:2px}.shop-stock-pill{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:600;color:#059669;background:#ecfdf5;padding:2px 7px;border-radius:6px;width:fit-content}.shop-stock-pill.low{color:#d97706;background:#fffbeb}.shop-stock-pill.out{color:#dc2626;background:#fef2f2}.shop-stock-pill .stock-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.shop-card-bottom-row{display:flex;flex-direction:column;gap:7px;margin-top:auto;padding-top:6px;border-top:1px dashed #f1f5f9}.shop-price-wrap{display:flex;align-items:baseline;justify-content:space-between;padding:0 1px}.shop-price-hint{font-size:9.5px;color:#94a3b8;font-weight:500;text-transform:uppercase;letter-spacing:.3px}.shop-price-num{font-size:16px;font-weight:800;color:#0f172a;letter-spacing:-.2px}.shop-card.selected .shop-price-num{color:#1d4ed8}.shop-btn-action{width:100%;min-height:35px;height:35px;border-radius:9px;font-size:11.5px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:4px;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe;cursor:pointer;transition:all .15s ease;padding:0}.shop-btn-action .icon{width:14px;height:14px;stroke-width:2.2}.shop-btn-action:hover{background:#dbeafe;color:#1e40af}.shop-btn-action.added{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#ffffff;border:1px solid #1d4ed8;box-shadow:0 2px 8px rgba(37,99,235,0.3)}.shop-btn-action.added .icon{color:#ffffff}.shop-checkout{background:#ffffff!important;border-top:1px solid #e2e8f0!important;box-shadow:0 -4px 20px rgba(0,0,0,0.08)!important;border-radius:16px 16px 0 0;padding:10px 14px!important}.shop-checkout span{color:#0f172a!important;font-size:13px!important;font-weight:700!important;display:flex;align-items:center;gap:8px}.shop-checkout span .icon{color:#2563eb;width:20px;height:20px}.shop-checkout button{background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;color:#ffffff!important;border-radius:10px!important;padding:10px 18px!important;font-weight:700!important;font-size:13px!important;box-shadow:0 4px 12px rgba(37,99,235,0.35)!important;border:none!important;display:flex;align-items:center;gap:6px;transition:transform .1s ease,box-shadow .15s ease}.shop-checkout button:active{transform:scale(0.97)}@media(max-width:359px){.shop-grid{gap:8px}.shop-card-media{height:120px}.shop-card-body{padding:9px 9px 11px}.shop-price-num{font-size:14px}.shop-btn-action{font-size:10.5px;min-height:33px;height:33px}}
.order-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:4px;background:#edf3fb;border-radius:11px;margin-bottom:10px}.order-tabs button{border:0!important;background:transparent!important;box-shadow:none!important;min-height:58px!important}.order-tabs button:first-child{background:#fff!important;color:#2e65b7!important;box-shadow:0 2px 6px #24344312!important}.order-tabs .action-icon{width:32px;height:32px}.order-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:11px 0;border-bottom:1px solid #edf1f5}.order-row:last-child{border-bottom:0}.order-row>div{min-width:0;flex:1}.order-row strong,.order-row small,.order-row span{display:block}.order-row strong{font-size:12px}.order-row small{font-size:10px;color:#8d9aaa;margin-top:2px}.order-row span{font-size:11px;color:#426ba8;margin-top:4px}.order-row select{width:112px;min-height:38px;padding:5px;font-size:11px;margin:0}
.app:has(.management-hero){background:#f1f5fb}.app:has(.management-hero) header{background:#102b63;color:#fff;box-shadow:0 2px 10px #102b6328}.app:has(.management-hero) .topbar h1{color:#fff}.app:has(.management-hero) .topbar .icon{color:#fff}.app:has(.management-hero) main{padding:14px}.app:has(.management-hero) .panel,.app:has(.management-hero) .management-section{box-shadow:0 5px 16px #18396712}.app:has(.management-hero) .management-hero{border-radius:18px;padding:20px 17px;background:linear-gradient(135deg,#0c2559 0%,#1e5bc6 100%);box-shadow:0 10px 24px #123d8b35}.app:has(.management-hero) .management-hero h2{font-size:24px;letter-spacing:-.3px}.app:has(.management-hero) .detailed-counters>div{border:0;background:#fff}.app:has(.management-hero) .management-actions button{background:#fff;border-color:#e0e8f3;min-height:64px}.app:has(.management-hero) .management-actions button:active{background:#edf4ff}.app:has(.management-hero) .section-heading{border-bottom:1px solid #edf1f6;padding-bottom:10px}.app:has(.management-hero) .eyebrow{color:#5b7daf}
.admin-entry{display:flex;align-items:center;gap:10px;width:100%;background:#102b63;color:#fff;border-radius:13px;padding:13px 14px;margin-bottom:12px;text-align:left;box-shadow:0 5px 13px #102b6330}.admin-entry>.icon{width:20px;height:20px}.admin-entry span{flex:1}.admin-entry strong,.admin-entry small{display:block}.admin-entry strong{font-size:13px}.admin-entry small{font-size:10px;color:#c7d8f6;margin-top:2px}.admin-entry>.icon:last-child{width:16px;color:#c7d8f6}
.order-tabs button{min-width:0;overflow:hidden;display:flex!important;align-items:center;gap:7px}.order-tabs button>span:nth-child(2){min-width:0;flex:1;overflow:hidden}.order-tabs button>span:nth-child(2) strong,.order-tabs button>span:nth-child(2) small{overflow-wrap:anywhere}.order-tabs button>.icon:last-child{flex-shrink:0;width:15px}

.admin-tabs{margin-bottom:16px;width:100%}.admin-tabs button{flex:1}.user-controls{display:flex;gap:6px;flex-wrap:wrap}.managed-user>div:first-child{flex:1;min-width:0}.managed-user strong,.managed-user small{overflow-wrap:anywhere}.user-controls button{padding:8px 12px}#modal .wide+.wide{margin-top:10px}

.customer-report-search{padding:12px 14px 0}.customer-report-hint{padding:8px 16px;color:#718096;font-size:12px}.customer-report{border-top:1px solid #e7edf4}.customer-report summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;cursor:pointer;list-style:none}.customer-report summary:after{content:'⌄';color:#53719c}.customer-report summary>span:first-child{flex:1;min-width:0}.customer-report summary strong,.customer-report summary small{display:block;overflow-wrap:anywhere}.customer-report summary small{font-size:12px;color:#8492a6;margin-top:5px}.customer-report[open] summary{background:#edf3ff}.customer-report-body{padding:0 14px 14px}.customer-report-body h3{font-size:15px;margin:18px 0 8px}.customer-report-body .report-row{padding:12px 0;gap:12px}.customer-report-body .report-row strong{white-space:nowrap;font-size:13px}.customer-sale{padding:12px;margin:10px 0;border:1px solid #e7edf4;border-radius:12px}.customer-sale-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.customer-sale p{font-size:12px;color:#718096;overflow-wrap:anywhere}.customer-sale-heading button{padding:6px 10px;font-size:12px}@media print{.customer-report-body{display:block!important}.customer-report{break-inside:avoid}.customer-report summary:after{display:none}}
.sales-report-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;background:transparent;color:inherit;font:inherit;text-align:left}.sales-report-link .icon{flex-shrink:0}
.list-pagination{display:flex;justify-content:space-between;gap:10px;margin:12px 0}.list-pagination button{flex:1}

/* ==========================================================================
   MODERN DARK PRO ADMIN PANEL SUITE (MOBILE-FIRST ARCHITECTURE)
   ========================================================================== */

/* Dark Canvas & Layout Shell */
body[data-page="admin"],
body[data-page="userManagement"],
.app:has(.admin-pro-shell) {
    background: #090d16 !important;
    color: #e2e8f0 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.16) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(15, 23, 42, 0.9) 0px, transparent 50%) !important;
    min-height: 100vh;
}

body[data-page="admin"] header,
body[data-page="userManagement"] header,
.app:has(.admin-pro-shell) header {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

body[data-page="admin"] .topbar h1,
body[data-page="userManagement"] .topbar h1,
.app:has(.admin-pro-shell) .topbar h1 {
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 17px !important;
}

body[data-page="admin"] .topbar .icon,
body[data-page="userManagement"] .topbar .icon,
.app:has(.admin-pro-shell) .topbar .icon {
    color: #94a3b8 !important;
}

body[data-page="admin"] .bottom-nav,
body[data-page="userManagement"] .bottom-nav,
.app:has(.admin-pro-shell) .bottom-nav {
    background: #fffffffa !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid var(--line) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    z-index: 30 !important;
}

body[data-page="admin"] .bottom-nav button,
body[data-page="userManagement"] .bottom-nav button,
.app:has(.admin-pro-shell) .bottom-nav button {
    color: #8993a0 !important;
    min-height: 53px;
    touch-action: manipulation;
}

body[data-page="admin"] .bottom-nav .active,
body[data-page="userManagement"] .bottom-nav .active,
.app:has(.admin-pro-shell) .bottom-nav .active {
    background: #edf3ff !important;
    color: var(--blue) !important;
}

/* Mobile-First Shell Container */
.admin-pro-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 24px)) !important;
}

/* Global Mobile Touch Optimization */
.admin-tab-btn,
.admin-filter-pill,
.admin-chip-btn,
.admin-mini-chip,
.admin-card-action-btn,
.admin-action-tile,
.admin-submit-btn,
.admin-primary-btn,
.admin-outline-btn,
.admin-status-dropdown,
.order-phone-link {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Header Cluster */
.admin-pro-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 2px 0;
}

.admin-brand-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.admin-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f1f5f9;
}

.admin-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: adminPulse 2s infinite ease-in-out;
}

@keyframes adminPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.admin-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 3px 6px;
    border-radius: 10px;
    text-transform: uppercase;
}

.admin-role-pill .icon {
    width: 11px;
    height: 11px;
}

.admin-pill-super {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(79, 70, 229, 0.35));
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #d8b4fe;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.admin-pill-sub {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.admin-chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 9px;
    min-height: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-chip-btn:hover,
.admin-chip-btn:active {
    background: rgba(51, 65, 85, 0.95);
    color: #fff;
    border-color: rgba(99, 102, 241, 0.4);
}

.admin-chip-btn .icon {
    width: 13px;
    height: 13px;
}

/* Executive Hero Bento */
.admin-hero-bento {
    background: linear-gradient(135deg, #0d1527 0%, #172544 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.admin-hero-bento::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%);
    pointer-events: none;
}

.admin-eyebrow {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #818cf8;
    margin-bottom: 2px;
}

.admin-hero-bento h2 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.admin-hero-bento p {
    font-size: 11px;
    line-height: 1.4;
    color: #94a3b8;
    margin: 0 0 8px;
}

.admin-hero-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    border-radius: 20px;
    padding: 5px 10px;
    min-height: 32px;
}

.admin-status-badge.outline {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.admin-status-badge .icon {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   MOBILE-FIRST SEGMENTED TAB NAVIGATION
   ========================================================================== */
.admin-tab-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 4px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 8px;
    scrollbar-width: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.admin-tab-nav::-webkit-scrollbar {
    display: none;
}

.admin-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    min-height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.admin-tab-btn .icon {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.admin-tab-btn:hover,
.admin-tab-btn:active {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.admin-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.45);
}

.admin-tab-btn.active .icon {
    transform: scale(1.06);
}

.admin-tab-counter {
    background: rgba(0, 0, 0, 0.35);
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.admin-tab-btn.active .admin-tab-counter {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

@media (min-width: 600px) {
    .admin-tab-btn {
        flex: 1;
    }
}

/* ==========================================================================
   BENTO KPI METRICS (MOBILE 2-COLUMN DOWN TO 320PX)
   ========================================================================== */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

@media (min-width: 640px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.admin-kpi-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 7px 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

.admin-kpi-card:hover,
.admin-kpi-card:active {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.kpi-icon-wrap {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon-wrap .icon {
    width: 14px;
    height: 14px;
}

.kpi-blue .kpi-icon-wrap { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.kpi-purple .kpi-icon-wrap { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.kpi-green .kpi-icon-wrap { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-amber .kpi-icon-wrap { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.kpi-cyan .kpi-icon-wrap { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.kpi-emerald .kpi-icon-wrap { background: rgba(16, 185, 129, 0.2); color: #10b981; }

.kpi-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.kpi-label {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.3px;
    line-height: 1.2;
    word-break: break-word;
}

.kpi-sub {
    font-size: 9px;
    color: #64748b;
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.warn-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f59e0b;
    display: inline-block;
    flex-shrink: 0;
}

/* Card Section Containers */
.admin-card-section {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 10px;
    margin-bottom: 8px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-mini-title {
    display: block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #818cf8;
}

.admin-section-header h3 {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
}

.admin-badge-count {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.admin-pill-tag {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
}

.admin-text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    color: #818cf8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    min-height: 32px;
}

.admin-text-link .icon {
    width: 14px;
    height: 14px;
}

/* Quick Actions Mobile Grid */
.admin-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

@media (min-width: 600px) {
    .admin-quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-action-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    min-height: 42px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-action-tile:hover,
.admin-action-tile:active {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-tile-icon .icon {
    width: 15px;
    height: 15px;
}

.tile-blue .action-tile-icon { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.tile-purple .action-tile-icon { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.tile-green .action-tile-icon { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.tile-orange .action-tile-icon { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.tile-teal .action-tile-icon { background: rgba(20, 184, 166, 0.18); color: #2dd4bf; }
.tile-indigo .action-tile-icon { background: rgba(99, 102, 241, 0.18); color: #a5b4fc; }

.action-tile-info {
    flex: 1;
    min-width: 0;
}

.action-tile-info strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-tile-info small {
    display: block;
    font-size: 9px;
    color: #94a3b8;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-action-tile > .icon {
    width: 14px;
    height: 14px;
    color: #64748b;
    flex-shrink: 0;
}

/* Permission Cloud */
.admin-permission-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.perm-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: #cbd5e1;
    min-height: 32px;
}

.perm-pill .icon {
    width: 13px;
    height: 13px;
    color: #34d399;
}

/* Recent Product Strip */
.admin-product-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-prod-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 10px;
}

.admin-prod-thumb {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-prod-thumb .product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-prod-thumb .icon {
    width: 22px;
    height: 22px;
    color: #64748b;
}

.admin-prod-detail {
    flex: 1;
    min-width: 0;
}

.admin-prod-detail strong {
    display: block;
    font-size: 13px;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-prod-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.stock-pill {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.stock-pill.ok { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stock-pill.low { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.price-pill {
    font-size: 11px;
    font-weight: 700;
    color: #60a5fa;
}

.range-pill {
    font-size: 9px;
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    padding: 2px 5px;
    border-radius: 4px;
}

.admin-mini-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 600;
    min-height: 34px;
    cursor: pointer;
}

.admin-mini-btn .icon {
    width: 14px;
    height: 14px;
}

/* Security Notice */
.admin-security-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px dashed rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    padding: 12px;
    margin-top: 12px;
}

.security-callout-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-callout-icon .icon {
    width: 16px;
    height: 16px;
}

.admin-security-callout strong {
    display: block;
    font-size: 12px;
    color: #f1f5f9;
}

.admin-security-callout small {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    line-height: 1.5;
}

/* ==========================================================================
   TAB 2: ORDERS CONSOLE (TOUCH-FIRST ERGONOMICS)
   ========================================================================== */
.admin-console-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.admin-console-top h3 {
    margin: 2px 0 0;
    font-size: 16px;
    color: #f8fafc;
}

.admin-console-top small {
    font-size: 11px;
    color: #94a3b8;
}

.admin-top-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .admin-console-top {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-top-controls {
        width: 100%;
    }
    .admin-top-controls .admin-chip-btn {
        flex: 1;
        justify-content: center;
        min-height: 42px;
    }
}

/* Swipeable Filter Strips */
.admin-filter-strip {
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.admin-filter-strip::-webkit-scrollbar {
    display: none;
}

.admin-pill-group {
    display: inline-flex;
    gap: 6px;
}

.admin-filter-pill {
    padding: 5px 11px;
    min-height: 30px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.admin-filter-pill:hover,
.admin-filter-pill:active {
    color: #fff;
    background: rgba(51, 65, 85, 0.85);
}

.admin-filter-pill.active {
    background: #4f46e5;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.45);
}

.status-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator-dot.pending { background: #f59e0b; }
.status-indicator-dot.confirmed { background: #3b82f6; }
.status-indicator-dot.processing { background: #a855f7; }
.status-indicator-dot.ready { background: #6366f1; }
.status-indicator-dot.delivered { background: #10b981; }
.status-indicator-dot.success { background: #10b981; }
.status-indicator-dot.cancelled { background: #ef4444; }

/* Mobile Search Wrapper (16px Font Prevents iOS Safari Auto-Zoom) */
.admin-search-wrapper {
    position: relative;
    margin-bottom: 8px;
}

.search-icon-slot {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
}

.search-icon-slot .icon {
    width: 15px;
    height: 15px;
}

.admin-search-field {
    width: 100%;
    background: rgba(17, 24, 39, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    padding: 8px 12px 8px 34px !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    min-height: 36px !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

.admin-search-field:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

/* Orders List & Cards */
.admin-orders-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-order-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 10px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.2s ease;
    border-left-width: 3.5px;
    cursor: pointer;
}

.admin-order-card:hover,
.admin-order-card:active {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

.status-border-pending { border-left-color: #f59e0b; }
.status-border-confirmed { border-left-color: #3b82f6; }
.status-border-processing { border-left-color: #a855f7; }
.status-border-ready { border-left-color: #6366f1; }
.status-border-delivered { border-left-color: #10b981; }
.status-border-success { border-left-color: #10b981; }
.status-border-cancelled { border-left-color: #ef4444; }

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 4px;
}

.order-id-badge {
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-hash {
    font-size: 13px;
    font-weight: 800;
    color: #f8fafc;
}

.order-type-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 5px;
    font-weight: 600;
}

.tag-shop { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-user { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-general { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.order-date-tag {
    font-size: 10px;
    color: #94a3b8;
}

.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.order-customer-info {
    flex: 1;
    min-width: 0;
}

.order-customer-info strong {
    display: block;
    font-size: 13px;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* One-Tap Mobile Calling Target */
.order-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    margin-top: 2px;
    text-decoration: none;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    padding: 2px 7px;
    min-height: 24px;
}

.order-phone-link .icon {
    width: 12px;
    height: 12px;
}

.order-no-phone {
    display: block;
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

.order-creator-tag {
    display: block;
    font-size: 9px;
    color: #64748b;
    margin-top: 1px;
}

.order-financials {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-shrink: 0;
}

.fin-label {
    font-size: 9px;
    color: #64748b;
}

.fin-value {
    font-size: 13px;
    font-weight: 800;
    color: #60a5fa;
}

.fin-paid {
    font-size: 10px;
    color: #34d399;
    font-weight: 600;
}

/* Mobile-First Status Changer & Quick Actions */
.order-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.order-status-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.admin-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(99, 102, 241, 0.15);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 28px;
    flex-shrink: 0;
}

.admin-mini-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.6);
}

.admin-mini-btn .icon {
    width: 13px;
    height: 13px;
}

.status-label-inline {
    display: none;
}

.status-select-wrap {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1;
    max-width: 135px;
}

.admin-status-dropdown {
    background: #1e293b !important;
    color: #f1f5f9 !important;
    border: 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 3px 6px !important;
    min-height: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    outline: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (min-width: 480px) {
    .admin-status-dropdown {
        font-size: 12px !important;
        min-height: 30px !important;
        height: 30px !important;
        padding: 4px 8px !important;
    }
}

/* Order Detail Modal */
.admin-order-detail-modal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 540px;
    margin: 0 auto;
}

.order-detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 420px) {
    .order-detail-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.order-detail-meta-grid .meta-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 10px 12px;
}

.detail-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-size: 14px;
    color: #f8fafc;
    font-weight: 700;
}

.detail-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.admin-order-items-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.7);
}

.admin-order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-order-items-table th {
    text-align: left;
    padding: 8px 10px;
    background: rgba(30, 41, 59, 0.85);
    color: #94a3b8;
    font-weight: 700;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-order-items-table td {
    padding: 9px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    vertical-align: middle;
}

.admin-order-items-table td strong {
    color: #ffffff;
}

.admin-order-items-table td small {
    color: #94a3b8;
    font-size: 11px;
}

.order-detail-financials {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
}

.order-detail-financials .fin-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #94a3b8;
}

.order-detail-financials .fin-row strong,
.order-detail-financials .fin-row span:last-child {
    color: #f1f5f9;
    font-weight: 600;
}

.order-detail-financials .fin-row.grand {
    font-size: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    margin-top: 6px;
    padding-top: 8px;
}

.order-detail-financials .fin-row.grand strong {
    font-size: 16px;
    font-weight: 800;
    color: #60a5fa !important;
}

.order-detail-financials .green { color: #34d399 !important; }
.order-detail-financials .red { color: #f87171 !important; }

.order-detail-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: #fbbf24;
}

.order-detail-status-bar {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.order-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.order-detail-actions button,
.order-detail-actions a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.order-download-link {
    background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   TAB 3: USERS CONSOLE
   ========================================================================== */
.admin-user-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.role-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-ADMIN { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.dot-SUB_ADMIN { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.dot-USER { background: #34d399; box-shadow: 0 0 8px #34d399; }
.dot-COMMON_USER { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }

.admin-user-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.admin-user-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.admin-user-card:hover,
.admin-user-card:active {
    border-color: rgba(99, 102, 241, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.user-card-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.avatar-ADMIN { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.avatar-SUB_ADMIN { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.avatar-USER { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.avatar-COMMON_USER { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }

.user-info-body {
    flex: 1;
    min-width: 0;
}

.user-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-name-line strong {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-contact-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.badge-active { background: rgba(16, 185, 129, 0.2) !important; color: #34d399 !important; border: 1px solid rgba(16, 185, 129, 0.3) !important; font-size: 10px !important; padding: 1px 6px !important; }
.badge-muted { background: rgba(255, 255, 255, 0.05) !important; color: #94a3b8 !important; font-size: 10px !important; padding: 1px 6px !important; }

.user-phone-val {
    display: inline-block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0;
}

.user-role-pill {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
}

.pill-ADMIN { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.pill-SUB_ADMIN { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.pill-USER { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pill-COMMON_USER { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.user-downlink-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #0284c7;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    padding: 2px 7px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1.4;
    vertical-align: middle;
}

.user-downlink-pill:hover,
.user-downlink-pill:active {
    background: #bae6fd;
    color: #0369a1;
    border-color: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.user-address-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    min-width: 0;
}

.user-address-val {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.user-address-val .icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #64748b;
}

.user-address-val span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Communication Action Slot (WhatsApp / Call) */
.user-comm-btn-slot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.contact-comm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    min-height: 34px;
    text-decoration: none !important;
    transition: all 0.18s ease;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}

.contact-comm-btn .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.contact-comm-btn.btn-whatsapp {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3)) !important;
    border: 1px solid rgba(34, 197, 94, 0.45) !important;
    color: #4ade80 !important;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.18);
}

.contact-comm-btn.btn-whatsapp:hover,
.contact-comm-btn.btn-whatsapp:active {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #ffffff !important;
    border-color: #22c55e !important;
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

.contact-comm-btn.btn-call {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3)) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    color: #60a5fa !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.18);
}

.contact-comm-btn.btn-call:hover,
.contact-comm-btn.btn-call:active {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

@media (max-width: 480px) {
    .contact-comm-btn {
        padding: 5px 9px;
        font-size: 11px;
        min-height: 32px;
        gap: 4px;
    }
    .contact-comm-btn .icon {
        width: 14px;
        height: 14px;
    }
}

/* Thumb-Friendly Action Buttons */
.user-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-mini-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    min-height: 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.admin-mini-chip:hover,
.admin-mini-chip:active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.chip-red {
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.chip-red:hover,
.chip-red:active {
    background: rgba(239, 68, 68, 0.2) !important;
}

.chip-status {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

.admin-badge-root {
    font-size: 11px;
    color: #818cf8;
    font-weight: 700;
}

/* ==========================================================================
   TAB 4: PRODUCTS & CATALOG CONSOLE
   ========================================================================== */
.admin-view-toggle {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.admin-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-view-btn .icon {
    width: 13px;
    height: 13px;
}

.admin-view-btn.active {
    background: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.admin-product-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-prod-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 7px 9px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.2s ease;
}

.admin-prod-card:hover,
.admin-prod-card:active {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

@media (min-width: 640px) {
    .admin-catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.admin-catalog-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.catalog-card-image {
    height: 65px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.catalog-card-image .product-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-card-content {
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.catalog-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.catalog-cat-badge {
    font-size: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    padding: 1px 5px;
    border-radius: 3px;
}
.catalog-cat-badge.badge-card {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-weight: 600;
}
.catalog-cat-badge.badge-general {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
    font-weight: 600;
}

.stock-badge {
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.stock-badge.good { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stock-badge.low { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.stock-badge.out { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.catalog-title {
    font-size: 11px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.catalog-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.price-lbl { font-size: 9px; color: #64748b; }
.price-val { font-size: 12px; font-weight: 700; color: #60a5fa; }
.cost-val { font-size: 9px; color: #94a3b8; }

.catalog-actions-row {
    display: flex;
    gap: 4px;
    margin-top: 2px;
}

.admin-card-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    border: 0;
    min-height: 28px;
}

.admin-card-action-btn .icon {
    width: 12px;
    height: 12px;
}

.btn-pricing {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.btn-delete:hover,
.btn-delete:active {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.admin-danger-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #f87171;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-danger-chip-btn:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #ef4444;
}

.admin-danger-chip-btn .icon {
    width: 13px;
    height: 13px;
}

.admin-chk-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

.admin-chk-label input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #ef4444;
    cursor: pointer;
}

.bulk-chk-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 4px;
}

.bulk-chk-wrap input[type="checkbox"],
.bulk-card-chk input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ef4444;
    margin: 0;
}

.admin-catalog-card {
    position: relative;
}

.bulk-card-chk {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 4;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 3px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-bulk-bar {
    position: sticky;
    top: 10px;
    z-index: 20;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 9px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: bulkBarSlideDown 0.2s ease-out;
}

@keyframes bulkBarSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-bulk-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-count-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.admin-bulk-link {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.admin-bulk-link:hover {
    color: #f1f5f9;
}

.admin-bulk-del-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.admin-bulk-del-btn:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.6);
}

.admin-bulk-del-btn .icon {
    width: 14px;
    height: 14px;
}

.product-delete-action {
    right: 87px;
    top: 7px;
    background: #fef2f2;
    color: #dc2626;
}

.product-delete-action:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================================================
   TAB 5: SETTINGS & FORMS (IOS 16PX & THUMB COMFORT)
   ========================================================================== */
.admin-settings-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-glass-form,
.admin-glass-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.form-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-card-title .icon {
    width: 18px;
    height: 18px;
    color: #818cf8;
}

.admin-form-group {
    margin-bottom: 12px;
}

.admin-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
    display: block;
}

.admin-form-group input,
.admin-glass-form input {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 16px !important; /* Prevents iOS Safari Zoom */
    min-height: 48px !important;
    box-sizing: border-box !important;
}

.admin-form-group input:focus,
.admin-glass-form input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 500px) {
    .admin-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.admin-submit-btn,
.admin-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    padding: 13px 18px !important;
    min-height: 48px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    width: 100%;
}

@media (min-width: 480px) {
    .admin-primary-btn {
        width: auto;
    }
}

.admin-submit-btn:hover,
.admin-primary-btn:hover,
.admin-submit-btn:active,
.admin-primary-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55) !important;
}

.admin-submit-btn .icon,
.admin-primary-btn .icon {
    width: 17px;
    height: 17px;
}

.admin-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 18px;
    min-height: 48px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

@media (min-width: 480px) {
    .admin-outline-btn {
        width: auto;
    }
}

.admin-outline-btn:hover,
.admin-outline-btn:active {
    background: rgba(51, 65, 85, 0.85);
    border-color: rgba(99, 102, 241, 0.4);
    color: #fff;
}

.admin-outline-btn .icon {
    width: 16px;
    height: 16px;
}

.card-icon-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-circle.green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.card-icon-circle .icon {
    width: 20px;
    height: 20px;
}

.card-icon-header h4 {
    margin: 0 0 3px;
    font-size: 15px;
    color: #f8fafc;
}

.card-icon-header small {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.5;
}

.security-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.security-check-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.security-check-list .icon {
    width: 15px;
    height: 15px;
    color: #34d399;
    flex-shrink: 0;
}

.admin-empty-state {
    text-align: center;
    padding: 30px 16px;
    background: rgba(17, 24, 39, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.empty-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.empty-icon-wrap .icon {
    width: 24px;
    height: 24px;
}

.admin-empty-state h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #e2e8f0;
}

.admin-empty-state p,
.admin-empty-text {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================================================
   DARK MODAL OVERLAY & FORMS (IOS 16PX FONT ZOOM PROTECTION)
   ========================================================================== */
body[data-page="admin"] #modal,
body[data-page="userManagement"] #modal,
#modal:has(#managed-user-form),
#modal:has(#delete-user-form),
#modal:has(#pricing-form) {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75) !important;
    max-width: 92vw !important;
    padding: 20px 16px !important;
}

body[data-page="admin"] #modal .modal-top button,
body[data-page="userManagement"] #modal .modal-top button,
#modal:has(#managed-user-form) .modal-top button,
#modal:has(#delete-user-form) .modal-top button,
#modal:has(#pricing-form) .modal-top button {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

body[data-page="admin"] #modal .modal-top button:hover,
body[data-page="userManagement"] #modal .modal-top button:hover,
#modal:has(#managed-user-form) .modal-top button:hover,
#modal:has(#delete-user-form) .modal-top button:hover,
#modal:has(#pricing-form) .modal-top button:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

body[data-page="admin"] #modal input:not([type="checkbox"]):not([type="radio"]),
body[data-page="userManagement"] #modal input:not([type="checkbox"]):not([type="radio"]),
body[data-page="admin"] #modal select,
body[data-page="userManagement"] #modal select,
#modal:has(#managed-user-form) input:not([type="checkbox"]):not([type="radio"]),
#modal:has(#managed-user-form) select,
#modal:has(#delete-user-form) input:not([type="checkbox"]):not([type="radio"]),
#modal:has(#pricing-form) input:not([type="checkbox"]):not([type="radio"]) {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    font-size: 16px !important; /* Prevents iOS Safari Zoom */
    min-height: 48px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
}

/* Polished Modern Toggle Switch Styles */
.toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
    font-size: 14px !important;
    min-height: 48px !important;
    cursor: pointer !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

body[data-page="admin"] #modal .toggle,
body[data-page="userManagement"] #modal .toggle,
#modal:has(#managed-user-form) .toggle,
#modal:has(#delete-user-form) .toggle,
#modal:has(#pricing-form) .toggle {
    background: #1e293b !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #f8fafc !important;
}

.toggle input[type="checkbox"],
.toggle input {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    border: none !important;
    background: #475569 !important;
    border-radius: 9999px !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
    transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}

.toggle input[type="checkbox"]::before,
.toggle input::before {
    content: '' !important;
    position: absolute !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) !important;
    left: 3px !important;
    top: 3px !important;
    transform: none !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.toggle input[type="checkbox"]:checked,
.toggle input:checked {
    background: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

.toggle input[type="checkbox"]:checked::before,
.toggle input:checked::before {
    transform: translateX(22px) !important;
}

/* Mobile-First Full Responsive Enhancements (Phones & Handhelds <= 640px) */
@media (max-width: 640px) {
    .admin-pro-shell {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 16px)) !important;
    }
    .admin-hero-bento {
        padding: 8px 10px !important;
        margin-bottom: 6px !important;
    }
    .admin-hero-bento h2 {
        font-size: 14px !important;
        margin: 0 0 2px !important;
    }
    .admin-hero-bento p {
        display: none !important; /* Conceal lengthy blurb on mobile so cards jump straight to top of screen */
    }
    .admin-hero-badges {
        gap: 4px !important;
    }
    .admin-status-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
    .admin-tab-nav {
        padding: 3px !important;
        margin-bottom: 6px !important;
        border-radius: 8px !important;
    }
    .admin-tab-btn {
        padding: 4px 8px !important;
        min-height: 28px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
    }
    .admin-tab-counter {
        padding: 1px 4px !important;
        font-size: 9px !important;
    }
    .admin-kpi-grid {
        gap: 5px !important;
        margin-bottom: 6px !important;
    }
    .admin-kpi-card {
        padding: 5px 7px !important;
        gap: 5px !important;
        border-radius: 8px !important;
    }
    .kpi-icon-wrap {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        border-radius: 5px !important;
    }
    .kpi-icon-wrap .icon {
        width: 12px !important;
        height: 12px !important;
    }
    .kpi-value {
        font-size: 13px !important;
    }
    .kpi-label {
        font-size: 9px !important;
    }
    .kpi-sub {
        font-size: 8px !important;
    }
    .admin-card-section {
        padding: 8px 8px !important;
        border-radius: 10px !important;
        margin-bottom: 6px !important;
    }
    .admin-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 5px !important;
    }
    .admin-action-tile {
        padding: 6px 8px !important;
        min-height: 36px !important;
        border-radius: 8px !important;
        gap: 6px !important;
    }
    .action-tile-icon {
        width: 24px !important;
        height: 24px !important;
        border-radius: 6px !important;
    }
    .action-tile-icon .icon {
        width: 13px !important;
        height: 13px !important;
    }
    .action-tile-info strong {
        font-size: 11px !important;
    }
    .action-tile-info small {
        display: none !important;
    }
    .admin-order-card {
        padding: 7px 9px !important;
        border-radius: 8px !important;
        border-left-width: 3px !important;
    }
    .order-hash {
        font-size: 12px !important;
    }
    .order-customer-info strong {
        font-size: 12px !important;
    }
    .fin-value {
        font-size: 12px !important;
    }
    .admin-user-card {
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }
    .catalog-card-image {
        height: 58px !important;
    }
    .admin-prod-card {
        padding: 5px 8px !important;
        gap: 6px !important;
        border-radius: 8px !important;
    }
    .admin-prod-thumb {
        width: 32px !important;
        height: 32px !important;
        border-radius: 6px !important;
    }
    .admin-prod-thumb .icon {
        width: 16px !important;
        height: 16px !important;
    }
    .admin-prod-detail strong {
        font-size: 12px !important;
    }
    .stock-pill {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }
    .price-pill {
        font-size: 11px !important;
    }
}

/* Header & Logout Controls */
body[data-page="admin"] #header:empty,
#header:empty {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.chip-danger {
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5 !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.chip-danger:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    color: #ffffff !important;
    border-color: rgba(239, 68, 68, 0.6) !important;
}

/* Admin Management Dedicated Bottom Navigation */
.admin-bottom-nav {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.admin-bottom-nav button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 4px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
    min-height: 52px !important;
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.admin-bottom-nav button .icon {
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2 !important;
}

.admin-bottom-nav button.active {
    color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.18) !important;
    border-radius: 12px !important;
}

.admin-bottom-nav button.active .icon {
    color: #818cf8 !important;
}

/* ==========================================================================
   SUPPORT & CONTACT HELPLINE PAGE STYLES
   ========================================================================== */
.support-contact-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px 14px 28px;
    max-width: 600px;
    margin: 0 auto;
}

.support-hero-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.support-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.8), transparent);
}

.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.support-badge .icon {
    width: 14px;
    height: 14px;
}

.support-hero-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}

.support-address {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 8px;
}

.support-desc {
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

.support-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-channel-card {
    border-radius: 18px;
    padding: 16px 16px 18px;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-channel-card:hover {
    transform: translateY(-2px);
}

/* WhatsApp Card Theme */
.support-channel-card.wa-card {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.45), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(52, 211, 153, 0.25);
    box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.15);
}

/* Call Card Theme */
.support-channel-card.call-card {
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.45), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(96, 165, 250, 0.25);
    box-shadow: 0 8px 24px -6px rgba(59, 130, 246, 0.15);
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.channel-icon-pill {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-pill {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.call-pill {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.channel-icon-pill .icon {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.channel-text {
    flex: 1;
    min-width: 0;
}

.channel-sub {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wa-card .channel-sub {
    color: #6ee7b7;
}

.call-card .channel-sub {
    color: #93c5fd;
}

.channel-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 2px 0 0;
}

.channel-value {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 2px 0 0;
    letter-spacing: 0.3px;
}

.channel-info-text {
    font-size: 12.5px;
    line-height: 1.45;
    color: #94a3b8;
    margin: 0 0 14px;
}

.channel-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.channel-action-btn:active {
    transform: scale(0.98);
}

.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
    background: linear-gradient(135deg, #2fe073, #159b8b);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-call {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.btn-call:hover {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.channel-action-btn .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.channel-missing-tip {
    font-size: 12px;
    font-style: italic;
    color: #94a3b8;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    text-align: center;
}

.support-admin-switch {
    margin-top: 10px;
    text-align: center;
}

.support-admin-switch button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    padding: 10px 14px;
}

/* Detailed Business Report Styles */
.report-row-clickable {
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.report-row-clickable:hover,
.report-row-clickable:active {
    background-color: #f8fafc;
}
.report-row-val {
    display: flex;
    align-items: center;
    gap: 6px;
}
.report-row-arrow {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1;
}

.report-subtabs-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    margin: 4px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.report-subtabs-nav::-webkit-scrollbar {
    display: none;
}
.report-subtabs-nav button {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--line);
    color: #475569;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.15s ease;
}
.report-subtabs-nav button.active {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    box-shadow: 0 2px 6px rgba(32,91,216,0.25);
}

.report-detail-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
    overflow: hidden;
}
.report-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
}
.report-detail-header h3 {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.report-detail-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
    text-transform: uppercase;
}
.badge-purchase { background: #fee2e2; color: #dc2626; }
.badge-sale { background: #dcfce7; color: #16a34a; }
.badge-expense { background: #ffedd5; color: #ea580c; }
.badge-due { background: #e0f2fe; color: #0284c7; }

.report-records-box {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.report-record-card {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    padding: 10px 12px;
    transition: border-color 0.15s ease;
}
.report-record-card:hover {
    border-color: #94a3b8;
}
.record-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.record-card-top strong {
    font-size: 14px;
    color: #0f172a;
}
.record-card-top p {
    margin: 3px 0 0;
    font-size: 11px;
    color: #64748b;
}
.record-card-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.record-card-price strong {
    font-size: 15px;
    font-weight: 700;
}
.mini-receipt-btn {
    font-size: 10px !important;
    padding: 2px 7px !important;
    min-height: 24px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    color: #3b82f6 !important;
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
}
.mini-receipt-btn .icon {
    width: 12px !important;
    height: 12px !important;
}

.record-items-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 7px 0 5px;
}
.record-item-chip {
    font-size: 11px;
    background: #f1f5f9;
    color: #334155;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}
.record-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: #475569;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}
.record-note {
    color: #64748b;
    font-style: italic;
}

.report-empty-notice {
    text-align: center;
    padding: 18px 10px;
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

.customer-report-portal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(37,99,235,0.22);
    text-align: left;
    transition: transform 0.15s ease;
}
.customer-report-portal-btn:active {
    transform: scale(0.98);
}
.portal-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.portal-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.portal-icon .icon {
    width: 20px;
    height: 20px;
    stroke: #fff;
}
.portal-left strong {
    font-size: 13px;
    display: block;
    line-height: 1.3;
}
.portal-left small {
    font-size: 11px;
    color: #bfdbfe;
    display: block;
    margin-top: 2px;
}
.customer-report-portal-btn .icon {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

/* Admin POS / Sale Tab Styles */
.admin-sale-pane .sale-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.admin-sale-pane .sale-tools button {
    flex: 1;
    min-height: 42px;
    font-size: 13px;
    font-weight: 600;
}
.admin-sale-checkout-bar {
    bottom: 58px !important;
    z-index: 25 !important;
    background: #1e3a8a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25) !important;
}
.status-indicator-dot.success { background: #10b981; }
.status-filter-pill.status-success,
.admin-filter-pill.status-delivered,
.admin-filter-pill.status-success {
    color: #10b981;
}
.status-bg-success {
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Bakir Khata & Due Modal Customer Enhancements */
.due-contact-mode-switch {
    display: flex;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
    margin-bottom: 14px;
}

.customer-preview-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-preview-box .preview-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customer-preview-box .preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #475569;
}

.customer-preview-box .preview-meta .icon {
    width: 13px;
    height: 13px;
}

.customer-preview-box .preview-bal {
    font-weight: 700;
}

.new-customer-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 12px;
    margin-bottom: 14px;
}

.new-customer-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.new-customer-box-title .icon {
    width: 18px;
    height: 18px;
    color: var(--blue, #2563eb);
}

.customer-due-row {
    transition: background 0.15s ease, transform 0.1s ease;
}

.customer-due-row:hover {
    background: #fbfcfe;
}

.mini-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
}

.mini-chip-btn .icon {
    width: 14px;
    height: 14px;
}

.mini-comm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
}

.mini-comm-btn .icon {
    width: 16px;
    height: 16px;
}

/* Notification System Styles */
.notif-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: pulseNotif 2s infinite;
}

@keyframes pulseNotif {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notif-card {
    transition: all 0.2s ease;
}

.notif-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.notif-card.unread {
    border-color: #f59e0b !important;
    background: #fffdf5 !important;
}

.notif-badge-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 6px;
}

.notif-badge-info { background: #e0e7ff; color: #3730a3; }
.notif-badge-warning { background: #fef3c7; color: #b45309; }
.notif-badge-alert { background: #fee2e2; color: #b91c1c; }
.notif-badge-success { background: #dcfce7; color: #15803d; }

.customer-due-row {
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.customer-due-row:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.customer-due-row:active {
    background: #f1f5f9;
}
.ledger-item-card {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.ledger-item-card:hover {
    border-color: #cbd5e1;
}
.mini-receipt-btn {
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
    background: #eff6ff !important;
}
.mini-receipt-btn:hover {
    background: #dbeafe !important;
}

/* Checkout Live Cash Return / Change Calculator */
.checkout-change-calc {
    margin: 8px 0 14px;
}
.quick-cash-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 10px;
}
.cash-chip-btn {
    border: 1px solid #c7d7eb;
    background: #f4f8fe;
    color: #1e40af;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.cash-chip-btn:hover, .cash-chip-btn:active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.cash-chip-btn.exact {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.cash-chip-btn.exact:hover, .cash-chip-btn.exact:active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.checkout-change-card {
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    transition: all .2s ease;
    animation: screen-in .15s ease-out;
}
.checkout-change-card.return-change-card {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1.5px solid #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}
.checkout-change-card.due-change-card {
    background: linear-gradient(135deg, #fff1f2, #fff5f5);
    border: 1.5px solid #f43f5e;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.1);
}
.checkout-change-card.exact-change-card {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
}
.checkout-change-card.neutral {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}
.change-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.change-status-tag {
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.change-status-tag.tag-return {
    color: #047857;
}
.change-status-tag.tag-due {
    color: #be123c;
}
.change-status-tag.tag-exact {
    color: #334155;
}
.change-amount {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.change-breakdown {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #475569;
}
.change-breakdown strong {
    color: #1e293b;
}
.change-breakdown .green-bold strong {
    color: #059669;
    font-size: 12px;
}
.change-breakdown .red-bold strong {
    color: #e11d48;
    font-size: 12px;
}
.change-due-note {
    font-size: 11px;
    color: #9f1239;
    font-weight: 600;
}

/* ================================================================
   Create New Product / Edit Product Screen (Exact match to screenshot)
   ================================================================ */
body[data-page="productForm"] header {
    background: #2196f3 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25) !important;
}
.product-form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 56px;
    background: #2196f3;
    color: #ffffff;
}
.product-form-topbar h1 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff !important;
    margin: 0;
    text-align: left;
    flex: 1;
    padding-left: 8px;
    letter-spacing: -0.2px;
}
.product-form-topbar .back {
    color: #ffffff !important;
    background: transparent !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s ease;
}
.product-form-topbar .back:active {
    background: rgba(255, 255, 255, 0.2) !important;
}
.product-form-topbar .back .icon {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2.4;
}

body[data-page="productForm"] main {
    background: #ffffff;
    min-height: calc(100dvh - 56px);
    padding: 18px 16px 40px;
}
.p-create-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Product Images Row */
.p-form-group {
    margin-bottom: 22px;
}
.p-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.p-images-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.p-upload-capsule {
    width: 72px;
    height: 165px;
    background: #2196f3;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}
.p-upload-capsule:hover {
    background: #1e88e5;
}
.p-upload-capsule:active {
    transform: scale(0.96);
}
.p-upload-svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff;
    stroke-width: 2.6;
}
.p-images-preview-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}
.p-thumb-card {
    position: relative;
    width: 96px;
    height: 165px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.p-thumb-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.p-thumb-delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2196f3;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s, background 0.15s;
    padding: 0;
}
.p-thumb-delete:hover {
    background: #ef4444;
}

/* Hide Product From Users Switch */
.p-toggle-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 22px;
}
.p-toggle-text {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    letter-spacing: -0.1px;
}
.p-switch-wrap {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}
.p-switch-wrap input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.p-switch-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 26px;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-switch-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.p-switch-wrap input:checked + .p-switch-slider {
    background-color: #2196f3;
}
.p-switch-wrap input:checked + .p-switch-slider::before {
    transform: translateX(22px);
}

/* Outlined Form Field Rows */
.p-fields-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.p-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.p-icon-box {
    width: 32px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8492a6;
    flex-shrink: 0;
    padding-top: 2px;
}
.p-text-icon {
    font-size: 22px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #8492a6;
}
.p-row-svg {
    width: 25px;
    height: 25px;
    stroke: #8492a6;
}
.p-input-box {
    flex: 1;
    min-width: 0;
    position: relative;
}
.p-text-input {
    width: 100%;
    border: 1.5px solid #94a3b8;
    border-radius: 5px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    margin: 0;
    min-height: 48px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.p-text-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.16);
}
.p-text-input::placeholder {
    color: #64748b;
    font-size: 14px;
}
.p-textarea-input {
    width: 100%;
    border: 1.5px solid #94a3b8;
    border-radius: 5px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    box-sizing: border-box;
    margin: 0;
    min-height: 140px;
    outline: none;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.p-textarea-input:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.16);
}
.p-textarea-input::placeholder {
    color: #64748b;
    font-size: 14px;
}

/* Floating Notched Labels (Screenshot 1 & 2 exact match) */
.p-notch-box {
    position: relative;
    padding-top: 6px;
}
.p-notch-label {
    position: absolute;
    top: -1px;
    left: 12px;
    background: #ffffff;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    line-height: 1.2;
}
.p-notched-input {
    margin-top: 0 !important;
}

/* Select Dropdown */
.p-select-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 32px;
}
.p-dropdown-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 10px;
    pointer-events: none;
}

/* Helper note */
.p-helper-note {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    padding-left: 2px;
    line-height: 1.4;
}

/* Live Discount & Old vs New Price Highlight Preview inside the form */
.p-discount-live-preview {
    margin-top: 10px;
    animation: fadeInPreview 0.2s ease-out;
}
@keyframes fadeInPreview {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.p-discount-highlight-pill {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1.5px dashed #3b82f6;
    border-radius: 10px;
    padding: 10px 14px;
}
.p-highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.p-highlight-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 2px 7px;
    border-radius: 6px;
}
.p-preview-disc-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.3);
}
.p-preview-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.p-preview-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.p-preview-old {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
}
.p-preview-new {
    font-size: 18px;
    font-weight: 800;
    color: #15803d;
}
.p-preview-savings {
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
}
.p-preview-savings b {
    color: #16a34a;
}

/* Collapsible extra options */
.p-advanced-box {
    margin-top: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 10px 14px;
    background: #f8fafc;
}
.p-advanced-summary {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    user-select: none;
    outline: none;
}
.p-advanced-content {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Submit Pill Button (Screenshot 2 exact match) */
.p-submit-container {
    display: flex;
    justify-content: center;
    margin: 32px 0 18px;
}
.p-submit-pill-btn {
    background: #2196f3;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 13px 44px;
    font-size: 17px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.4);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease, box-shadow 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.p-submit-pill-btn:hover {
    background: #1e88e5;
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.5);
}
.p-submit-pill-btn:active {
    transform: scale(0.97);
}
.p-submit-icon {
    font-size: 17px;
}
.p-delete-btn {
    margin-top: 10px;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
    background: #fff5f5 !important;
}

/* ================================================================
   Shop Cards: Discount Old vs New Price with Highlight
   ================================================================ */
.shop-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    z-index: 2;
}
.shop-badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 9999px;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
    letter-spacing: 0.3px;
    line-height: 1;
}
.shop-price-duo-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shop-price-duo-line {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}
.shop-price-num.highlight {
    color: #15803d !important;
    font-size: 16px;
    font-weight: 800;
}
.shop-old-price {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 1.5px;
}
.shop-discount-tag {
    display: inline-flex;
    align-items: center;
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 5px;
    margin-left: 4px;
    line-height: 1.2;
}

.shop-card-edit-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.15s ease;
    padding: 0;
}
.shop-card-edit-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
.shop-card-edit-btn .icon {
    width: 15px;
    height: 15px;
}
.shop-hero-add-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.shop-hero-add-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}
.shop-hero-add-btn .icon {
    width: 14px;
    height: 14px;
}




