@import "https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap";:root{--primary:#e53935;--primary-dark:#c62828;--secondary:#fb8c00;--teal:#00897b;--pay-green-dark:#14532d;--pay-green:#16a34a;--pay-green-light:#4ade80;--ink:#1a1a1a;--muted:#6b7280;--border:#e8eaed;--surface:#f4f6f8;--panel:#fff;--danger:#b71c1c;--shadow:0 10px 30px #1a1a1a0f;--radius:16px;color:var(--ink);background:var(--surface);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;font-family:DM Sans,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{background:radial-gradient(circle at top left, #fb8c001f, transparent 28%), radial-gradient(circle at top right, #e539351a, transparent 24%), var(--surface);min-width:320px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}h1,h2{letter-spacing:-.02em;margin:0;font-family:DM Sans,sans-serif;font-weight:700}p{margin:0}.app-shell{grid-template-columns:260px 1fr;min-height:100vh;display:grid}.shop-gate{background:radial-gradient(circle at 100% 0,#e5393514,#0000 40%),radial-gradient(circle at 0 100%,#00897b14,#0000 35%),#f7f8fa;flex-direction:column;min-height:100vh;display:flex}.shop-gate-topbar{color:#f8fafc;background:linear-gradient(#1f2428 0%,#161a1d 100%);border-bottom:1px solid #ffffff14}.shop-gate-body{text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:28px;padding:32px 20px 48px;display:flex}.shop-gate-main{width:min(100%,720px);margin:0 auto}.shop-gate-heading{max-width:34rem;color:var(--ink);margin:0;font-size:clamp(1.25rem,2.4vw,1.7rem);font-weight:700;line-height:1.35}.create-shop-hero-btn{width:min(100%,280px);min-height:220px;color:var(--primary);cursor:pointer;background:#fff;border:2px dashed #e5393559;border-radius:28px;place-content:center;justify-items:center;gap:18px;transition:transform .15s,border-color .15s,box-shadow .15s;display:grid;box-shadow:0 18px 40px #0f172a0f}.create-shop-hero-btn span{font-size:1.35rem;font-weight:800}.create-shop-hero-btn:hover{border-color:var(--primary);transform:translateY(-2px);box-shadow:0 22px 48px #e539351f}.shop-select-title{margin:0;font-size:clamp(1.6rem,3vw,2.1rem);font-weight:800}.shop-select-subtitle{color:var(--muted);margin:-12px 0 0}.shop-select-list{gap:12px;width:min(100%,520px);display:grid}.shop-select-card{text-align:left;border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:18px;align-items:center;gap:14px;width:100%;padding:16px 18px;transition:border-color .15s,transform .15s,box-shadow .15s;display:flex}.shop-select-card:hover{border-color:#e5393559;transform:translateY(-1px);box-shadow:0 12px 28px #0f172a14}.shop-select-icon{width:56px;height:56px;color:var(--primary);background:#e5393514;border-radius:16px;flex-shrink:0;place-items:center;display:grid}.shop-select-icon svg{width:28px;height:28px}.shop-select-copy{gap:4px;min-width:0;display:grid}.shop-select-copy strong{font-size:1.05rem}.shop-select-copy span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;overflow:hidden}.content-column{flex-direction:column;min-width:0;min-height:100vh;display:flex}.sidebar{color:#f8fafc;background:linear-gradient(#1f2428 0%,#161a1d 100%);flex-direction:column;gap:28px;padding:20px;display:flex}.shop-switcher{position:relative}.shop-switcher-trigger{width:100%;color:inherit;cursor:pointer;text-align:left;background:#ffffff1a;border:1px solid #ffffff24;border-radius:14px;align-items:center;gap:8px;padding:8px 10px;display:flex}.shop-gate-body-inline{min-height:calc(100vh - 120px)}.shop-switcher-copy{flex:1;min-width:0}.shop-switcher-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;font-weight:650;display:block;overflow:hidden}.chevron-icon{opacity:.9;flex-shrink:0;width:22px;height:22px;transition:transform .15s}.chevron-icon.open{transform:rotate(180deg)}.chevron-icon.dark{color:var(--muted);opacity:1}.dropdown-menu{z-index:30;background:#2f373d;border:1px solid #ffffff1f;border-radius:14px;gap:4px;padding:8px;display:grid;position:absolute;top:calc(100% + 8px);left:0;right:0;box-shadow:0 16px 40px #00000059}.shop-menu{background:#3a434a;border-color:#ffffff24}.user-dropdown{border:1px solid var(--border);min-width:180px;box-shadow:var(--shadow);background:#fff;left:auto;right:0}.dropdown-item{width:100%;color:inherit;text-align:left;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:10px;padding:10px 12px;display:block}.user-dropdown .dropdown-item{color:var(--ink)}.dropdown-item:hover,.dropdown-item.active{background:#ffffff1f}.user-dropdown .dropdown-item:hover,.user-dropdown .dropdown-item.active{background:#f3f4f6}.dropdown-item.create{color:#ffb74d;border-top:1px solid #ffffff14;margin-top:4px;padding-top:12px;font-weight:600}.topbar{color:#f8fafc;z-index:20;background:linear-gradient(#1f2428 0%,#161a1d 100%);border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;gap:16px;padding:14px 32px;display:flex;position:sticky;top:0}.topbar-left{align-items:center;gap:12px;min-width:0;display:flex}.back-btn{color:#f8fafc;cursor:pointer;font:inherit;background:#ffffff14;border:1px solid #ffffff24;border-radius:10px;flex-shrink:0;align-items:center;gap:6px;padding:7px 10px;font-size:.88rem;font-weight:600;display:inline-flex}.back-btn:hover{background:#ffffff24}.topbar-title{color:#f8fafc;margin:0;font-size:1.35rem;font-weight:700}.user-menu{position:relative}.user-menu-trigger{color:#f8fafc;width:auto;box-shadow:none;cursor:pointer;background:0 0;border:0;border-radius:0;align-items:center;gap:8px;padding:4px 0;font-weight:600;display:inline-flex}.user-menu-trigger:hover{opacity:.85;transform:none}.topbar .chevron-icon{color:#f8fafccc;opacity:1}.brand{align-items:center;gap:12px;display:flex}.brand p,.login-brand p,.page-header p,.muted{color:var(--muted)}.text-link{color:var(--teal);font-size:.92rem;text-decoration:none}.text-link:hover{text-decoration:underline}.brand p{color:#f8fafca6;font-size:.85rem}.brand-mark{background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff;border-radius:12px;flex-shrink:0;place-items:center;width:42px;height:42px;font-weight:700;display:grid}.shop-avatar{color:#f8fafce6;background:#ffffff14;border-radius:10px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid;overflow:hidden}.shop-avatar-img{object-fit:cover;width:100%;height:100%;display:block}.brand-mark.large{width:56px;height:56px;font-size:1.4rem}.nav{flex-direction:column;gap:4px;display:flex}.nav-link{color:#f8fafcc7;border-radius:10px;align-items:center;gap:10px;padding:8px 12px;transition:background .2s,color .2s;display:flex}.nav-link:hover,.nav-link.active{color:#fff;background:#ffffff14}.nav-link.active{box-shadow:inset 3px 0 0 var(--secondary)}.nav-unread-badge{background:var(--primary);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;font-size:.68rem;font-weight:700;line-height:1;display:inline-flex}.main{flex:1;padding:32px}.page{gap:24px;width:100%;max-width:none;display:grid}.page-wide{max-width:none}.page-centered{justify-items:center}.page-header{justify-content:space-between;align-items:end;gap:16px;display:flex}.page-header h1{margin-bottom:6px;font-size:clamp(1.8rem,2vw,2.3rem)}.eyebrow{color:var(--muted);margin-bottom:8px}.eyebrow a{color:var(--teal)}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.dashboard-grid{grid-template-columns:1fr;align-items:stretch;gap:16px;display:grid}.dashboard-col{flex-direction:column;align-items:stretch;gap:16px;min-width:0;height:100%;min-height:0;display:flex}.dashboard-card.card{border-radius:10px;flex-direction:column;flex:1 1 0;justify-content:flex-start;align-items:stretch;gap:0;width:100%;min-height:520px;padding:0;display:flex;overflow:hidden}.dashboard-sales-card,.dashboard-orders-card,.dashboard-carts-card,.dashboard-balances-card{width:100%}.dashboard-balances-card .dashboard-card-body{overflow:auto}.dashboard-balances-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:0;display:grid}.dashboard-balance-section-title{letter-spacing:.02em;color:var(--muted);margin:0 0 8px;padding:0 8px;font-size:.8rem;font-weight:600}.dashboard-balance-section+.dashboard-balance-section{border-left:1px solid var(--border);margin-left:16px;padding-left:16px}.dashboard-balances-table th,.dashboard-balances-table td{height:34px;padding:0 8px;font-size:.9rem}.dashboard-balances-table thead th{height:32px}.dashboard-balances-table .empty-row td{height:auto;padding:10px 8px}.dashboard-balances-table .col-actions{text-align:right;width:36px}.balance-pay-wrap{justify-content:flex-end;display:inline-flex;position:relative}.balance-pay-btn{background:linear-gradient(135deg, var(--pay-green-dark), var(--pay-green-light));color:#fff;cursor:pointer;border:0;border-radius:7px;justify-content:center;align-items:center;width:26px;height:26px;display:inline-flex}.balance-pay-btn:hover{filter:brightness(1.06);background:linear-gradient(135deg, var(--pay-green-dark), var(--pay-green-light))}.balance-pay-popover{z-index:120;border:1px solid var(--border);text-align:left;background:#fff;border-radius:12px;gap:8px;width:248px;padding:12px;display:grid;position:fixed;box-shadow:0 14px 34px #0f172a24}.balance-pay-popover strong{font-size:.92rem}.balance-pay-customer{color:var(--muted);margin:-2px 0 0;font-size:.82rem}.balance-pay-popover label{color:var(--muted);gap:4px;font-size:.8rem;display:grid}.balance-pay-popover input{border-radius:8px;height:34px;min-height:34px;padding:0 10px;font-size:.9rem}.balance-pay-actions{justify-content:flex-end;gap:6px;margin-top:2px;display:flex}.dashboard-card-head{box-sizing:border-box;background:#d7dbe0;border:0;border-radius:10px 10px 0 0;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;height:60px;min-height:60px;margin:0;padding:0 20px;display:flex}.dashboard-card-title{color:#374151;margin:0;font-family:inherit;font-size:1.1rem;font-weight:700}.dashboard-card-body{flex-direction:column;flex:1;justify-content:flex-start;align-items:stretch;gap:12px;min-height:0;padding:12px 20px 16px;display:flex}.dashboard-sales-body{gap:10px}.dashboard-sales-top{flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.dashboard-sales-summary{flex-wrap:wrap;align-items:center;gap:12px;min-width:0;display:flex}.dashboard-sales-actual{color:var(--teal);white-space:nowrap;font-size:1.7rem;font-weight:900;line-height:1.2}.dashboard-sales-value{color:var(--ink);flex-wrap:wrap;align-items:baseline;margin:0;padding:0;font-family:DM Sans,sans-serif;font-size:1.7rem;font-weight:600;line-height:1.2;display:inline-flex}.dashboard-sales-ratio-sep{color:var(--muted);margin:0 .12em;font-weight:500}.dashboard-sales-paid{color:#ea580c}.dashboard-sales-delivered{color:var(--primary)}.dashboard-sales-sep{background:#ccc;flex-shrink:0;align-self:stretch;width:1px;min-height:1.4em}.dashboard-sales-paid-pct{color:#ea580c;margin-left:.35em;font-size:.72em;font-weight:600}.dashboard-period-select{width:auto;min-width:140px;height:34px;color:var(--ink);background:#fff;border:1px solid #0f172a1f;border-radius:8px;padding:0 10px;font-size:.88rem}.dashboard-card-head .dashboard-period-select{border-color:#0f172a24}.dashboard-chart-toolbar{justify-content:flex-end;align-items:center;gap:12px;display:flex}.sales-chart{flex:auto;width:100%;height:100%;min-height:260px}.dashboard-orders-table-wrap{flex:1;min-height:0;margin:0;padding:0;overflow:auto}.payment-form-card{margin-bottom:16px}.payment-form-card h2{margin:0 0 14px;font-size:1.15rem}.payment-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.payment-form label{color:var(--muted);gap:6px;font-size:.9rem;display:grid}.payments-page-stack{gap:0;display:grid}.payments-toolbar{justify-content:flex-end;margin:0 0 4px;display:flex}.payments-toolbar-actions{align-items:center;gap:8px;display:flex}.payments-table th,.payments-table td{height:40px;padding:0 14px}.payments-table thead th{height:36px}.payments-table .col-avatar{width:52px}.modal-overlay{z-index:80;background:#0f172a73;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal-overlay:has(.modal-card-payment){place-items:start center;padding-top:10vh}.modal-card{border:1px solid var(--border);background:#fff;border-radius:16px;width:min(100%,440px);padding:18px 18px 16px;box-shadow:0 24px 60px #0f172a38}.modal-card-payment{width:min(100%,880px);padding:14px 18px 16px}.modal-card-map{flex-direction:column;width:min(100%,96vw);height:min(100%,94vh);padding:14px 18px 16px;display:flex}.map-modal-error{margin:0 0 10px}.map-modal-canvas-wrap{border:1px solid var(--border);background:#eef2f7;border-radius:12px;flex:1;width:100%;min-height:0;position:relative;overflow:hidden}.map-modal-canvas{width:100%;height:100%}.map-modal-loading{z-index:2;color:var(--muted);background:#ffffffb8;place-items:center;font-size:.95rem;display:grid;position:absolute;inset:0}.map-modal-coords{margin:10px 0 0;font-size:.88rem}.map-modal-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:14px;display:flex}.map-modal-actions-right{align-items:center;gap:8px;display:flex}.modal-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.modal-card-payment .modal-head{margin-bottom:10px}.modal-head h2{margin:0;font-family:inherit;font-size:1.15rem}.modal-close-btn{background:var(--primary);color:#fff;cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.modal-close-btn:hover{background:var(--primary-dark);color:#fff}.payment-amount-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:12px;display:grid}.payment-pay-total{min-width:108px;color:var(--muted);gap:6px;font-size:.9rem;font-weight:500;display:grid}.payment-pay-total .paid-switch-track{margin-top:5px}.payment-form-modal{grid-template-columns:1fr}.payment-form-modal textarea{resize:vertical;min-height:84px}.payment-time{gap:6px;display:grid}.payment-time-input{border:1px solid var(--border);background:#fff;border-radius:8px;width:100%;max-width:280px;height:46px;min-height:46px;padding:0 10px}.payment-form-footer{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;display:flex}.payment-footer-balances{align-items:center;gap:14px;min-width:0;margin-right:auto;display:flex}.payment-footer-balance{gap:2px;display:grid}.payment-footer-divider{background:var(--border);align-self:stretch;width:1px;min-height:28px}.payment-footer-balance-label{color:var(--muted);font-size:.78rem;font-weight:600}.payment-footer-balance-value{font-size:1rem;font-weight:800}.payment-footer-balance-value.negative{color:var(--primary)}.payment-footer-balance-value.positive{color:var(--teal)}.payment-footer-buttons{align-items:center;gap:10px;display:flex}.payment-pay-now{gap:2px;margin-right:4px;display:grid}.payment-pay-now-label{color:var(--muted);font-size:.78rem;font-weight:600}.payment-pay-now-value{color:var(--pay-green);white-space:nowrap;font-size:1rem;font-weight:800}.payment-customer-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:start;gap:12px;display:grid}.payment-customer-row label{gap:6px;display:grid}.payment-id-phone-lookup{position:relative}.payment-id-phone-lookup input{width:100%;height:46px;min-height:46px;padding-right:42px}.payment-lookup-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;width:30px;height:30px;display:inline-flex;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.payment-lookup-icon-btn:hover:not(:disabled){color:#0f172a;background:#f1f5f9}.payment-lookup-icon-btn:disabled{opacity:.55;cursor:wait}@media (width<=720px){.payment-customer-row,.payment-amount-row{grid-template-columns:1fr 1fr}}.th-sort-btn{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:600;display:inline-flex}.th-sort-btn:hover{color:var(--ink)}.customer-search-select{position:relative}.customer-search-trigger{border:1px solid var(--border);cursor:pointer;text-align:left;width:100%;min-height:46px;color:var(--ink);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;display:flex}.customer-search-placeholder{color:var(--muted)}.customer-search-required{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.customer-search-menu{z-index:90;border:1px solid var(--border);background:#fff;border-radius:12px;gap:8px;padding:10px;display:grid;position:absolute;top:calc(100% + 6px);left:0;right:0;box-shadow:0 16px 36px #0f172a24}.customer-search-input{border-radius:8px;height:38px;min-height:38px;padding:0 10px}.customer-search-list{gap:4px;max-height:220px;display:grid;overflow:auto}.customer-option,.customer-option-main{align-items:center;gap:10px;min-width:0;display:flex}.customer-option{cursor:pointer;text-align:left;width:100%;color:inherit;background:0 0;border:0;border-radius:10px;padding:8px}.customer-option:hover,.customer-option.active{background:#f3f4f6}.customer-option-copy{gap:2px;min-width:0;display:grid}.customer-option-copy strong{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;overflow:hidden}.customer-option-copy span{color:var(--muted);font-size:.8rem}.customer-option-inline{align-items:baseline;gap:6px;min-width:0;display:inline-flex;overflow:hidden}.customer-option-inline strong{text-overflow:ellipsis;white-space:nowrap;font-size:.92rem;overflow:hidden}.customer-option-id-inline{color:var(--muted);flex-shrink:0;font-size:.72rem;font-weight:500}.customer-avatar{object-fit:cover;background:#e8eaed;border-radius:50%;flex-shrink:0;width:32px;height:32px}.customer-avatar-sm{width:32px;height:32px}.customer-avatar-md{width:44px;height:44px;font-size:1rem}.customer-avatar-lg{width:72px;height:72px;font-size:1.6rem}.customer-avatar-fallback{color:#4b5563;text-align:center;place-items:center;font-size:.85rem;font-weight:700;line-height:1;display:grid}.customer-avatar-lg.customer-avatar-fallback{font-size:1.6rem}.customer-search-empty{margin:0;padding:10px 8px;font-size:.88rem}.customers-table .col-avatar{width:52px}.customers-table .col-actions{text-align:right;white-space:nowrap;width:280px}.customer-row-actions{justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}.customer-action-btn{align-items:center;gap:5px;display:inline-flex}.customer-detail-stack{gap:18px;display:grid}.customer-detail-hero{padding:18px 20px}.customer-detail-hero-grid{grid-template-columns:3fr 3fr 6fr;align-items:start;gap:20px;display:grid}.customer-detail-col-profile{text-align:left;flex-direction:row;align-items:center;gap:12px;min-width:0;display:flex}.customer-detail-profile-text{gap:4px;min-width:0;display:grid}.customer-detail-col-profile h2{margin:0;font-size:1.35rem;line-height:1.25}.customer-detail-phone{color:var(--ink);text-align:left;margin:0;font-size:.9rem;line-height:1.45}.customer-detail-phone .meta-label,.customer-detail-public-id .meta-label{color:var(--muted);font-weight:600}.customer-detail-col-id{text-align:center;flex-direction:column;align-items:center;gap:12px;min-width:0;display:flex}.customer-detail-public-id{color:var(--ink);margin:0;font-size:.95rem;line-height:1.45}.customer-detail-qr{border:1px solid var(--border);background:#fff;border-radius:10px;width:fit-content;margin:0;padding:10px;line-height:0}.customer-detail-col-stats{justify-content:flex-end;min-width:0;display:flex}.customer-detail-map-btn{color:#fff;box-shadow:none;background:#ea4335;border:1px solid #ea4335;flex-shrink:0;align-items:center;gap:6px;width:auto;max-width:max-content;margin-top:0;display:inline-flex}.customer-detail-map-btn:hover:not(:disabled){color:#fff;background:#d33426;border-color:#d33426;transform:none}.customer-detail-map-btn:disabled{opacity:.55;color:#fff;background:#f6aea9;border-color:#f6aea9}.customer-detail-addresses-card{padding:16px 18px}.customer-address-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.customer-address-row{border:1px solid var(--border);background:#fafbfc;border-radius:10px;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex}.customer-address-text{flex:1;gap:4px;min-width:0;display:grid}.customer-address-text p{margin:0;line-height:1.45}.customer-address-tags{flex-wrap:wrap;gap:6px;margin-bottom:2px;display:flex}.customer-address-label,.customer-address-default{border-radius:999px;align-items:center;padding:2px 8px;font-size:.75rem;font-weight:600;display:inline-flex}.customer-address-label{color:#475569;background:#eef2f5}.customer-address-default{color:var(--teal);background:#00897b1f}.customer-address-empty{margin:4px 0 0}.customer-detail-section{gap:10px;min-height:10vh;display:grid}.customer-detail-section-head{justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 0;display:flex}.customer-detail-section-title{margin:0;font-size:1.05rem;font-weight:700}.customer-detail-orders-card,.customer-detail-payments-card{min-height:10vh}.customer-detail-orders-card .bulk-bar,.customer-detail-payments-card .payments-toolbar{margin:0;padding:0}.customer-detail-orders-card .table-wrap,.customer-detail-payments-card .table-wrap{border:0;border-top:1px solid var(--border);box-shadow:none;background:0 0;border-radius:0;margin-top:14px}.customer-stat-row{flex-wrap:wrap;justify-content:flex-end;align-items:stretch;gap:12px;display:flex}.customer-stat-card{text-align:center;color:#fff;border:0;border-radius:14px;justify-items:center;gap:6px;min-width:148px;padding:16px 18px;display:grid}.customer-stat-card.orders-stat{background:linear-gradient(145deg,#1d4ed8 0%,#3b82f6 55%,#60a5fa 100%)}.customer-stat-card.payments-stat{background:linear-gradient(145deg,#14532d 0%,#16a34a 50%,#4ade80 100%)}.customer-stat-card.balance-stat.negative{background:linear-gradient(145deg,#991b1b 0%,#dc2626 50%,#f87171 100%)}.customer-stat-card.balance-stat.positive{background:linear-gradient(145deg,#0f766e 0%,#14b8a6 55%,#5eead4 100%)}.customer-stat-card.balance-stat.neutral{background:linear-gradient(145deg,#334155 0%,#64748b 55%,#94a3b8 100%)}.customer-stat-label{letter-spacing:.05em;text-transform:uppercase;color:#ffffffe0;font-size:.78rem;font-weight:700}.customer-stat-value{color:#fff;font-size:1.35rem;font-weight:800;line-height:1.15}.customer-stat-sub{color:#ffffffeb;font-size:.9rem;font-weight:600}@media (width<=900px){.customer-detail-hero-grid{grid-template-columns:1fr}.customer-detail-col-id{text-align:left;align-items:flex-start}.customer-detail-col-stats{justify-content:flex-start}.customer-stat-row{justify-content:flex-start;width:100%}.customer-stat-card{flex:calc(50% - 12px)}}.customer-payment-target{border:1px solid var(--border);background:#f8fafc;border-radius:12px;align-items:center;gap:12px;padding:10px 12px;display:flex}.customer-payment-target strong{font-size:.98rem;display:block}.customer-payment-target .muted{margin:2px 0 0;font-size:.85rem}.balance.negative{color:var(--primary)}.balance.positive{color:var(--teal)}@media (width<=980px){.payment-form{grid-template-columns:1fr}.payment-form .span-2{grid-column:auto}}.dashboard-orders-table{width:100%}.dashboard-orders-card-head{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;display:grid}.dashboard-orders-status-summary{justify-self:center;align-items:center;gap:6px;width:auto;max-width:100%;margin:0;display:flex}.dashboard-orders-status-summary .order-status-summary-card{height:28px;min-height:28px;box-shadow:none;background:#fff;border:0;border-radius:999px;flex:none;align-items:stretch;margin:0;padding:0;overflow:hidden}.dashboard-orders-status-summary .order-status-summary-icon{width:28px;height:28px;box-shadow:none;border:0;border-radius:999px 0 0 999px;margin:0;padding:0}.dashboard-orders-status-summary .order-status-summary-icon svg{width:14px;height:14px}.dashboard-orders-status-summary .order-status-summary-count{align-items:center;margin:0;padding:0 8px;font-size:.92rem;line-height:28px;display:inline-flex}.dashboard-orders-table th,.dashboard-orders-table td{vertical-align:middle;height:44px;padding:0 12px;font-size:.88rem}.dashboard-orders-table thead th{height:34px}.dashboard-orders-table th.col-actions,.dashboard-orders-table td.col-actions{text-align:right;white-space:nowrap;width:240px;min-width:240px}.dashboard-orders-table .order-actions{justify-content:flex-end;gap:6px}.dashboard-orders-table .order-action-btn{width:30px;height:30px}.dashboard-orders-table .order-action-btn svg{width:13px;height:13px}.dashboard-orders-table tbody tr:nth-child(odd){background:#fff}.dashboard-orders-table tbody tr:nth-child(2n){background:#f5f6f8}.dashboard-orders-table tbody tr:hover:not(.empty-row),.dashboard-orders-table tbody tr.clickable-row:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-pending:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-placed:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-confirmed:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-processing:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-preparing:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-shipped:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-cancelled:hover:not(.empty-row),.dashboard-orders-table tbody tr.order-row.status-delivered:hover:not(.empty-row){background:#e9edf2}.dashboard-orders-table .order-row,.dashboard-orders-table .order-row:hover,.dashboard-orders-table .order-row.status-pending,.dashboard-orders-table .order-row.status-pending:hover,.dashboard-orders-table .order-row.status-placed,.dashboard-orders-table .order-row.status-placed:hover,.dashboard-orders-table .order-row.status-confirmed,.dashboard-orders-table .order-row.status-confirmed:hover,.dashboard-orders-table .order-row.status-processing,.dashboard-orders-table .order-row.status-processing:hover,.dashboard-orders-table .order-row.status-preparing,.dashboard-orders-table .order-row.status-preparing:hover,.dashboard-orders-table .order-row.status-shipped,.dashboard-orders-table .order-row.status-shipped:hover,.dashboard-orders-table .order-row.status-cancelled,.dashboard-orders-table .order-row.status-cancelled:hover,.dashboard-orders-table .order-row.status-delivered,.dashboard-orders-table .order-row.status-delivered:hover{--order-status-color:inherit;color:var(--ink);background:0 0;font-weight:400}.dashboard-orders-table tbody tr.order-row:nth-child(odd){background:#fff}.dashboard-orders-table tbody tr.order-row:nth-child(2n){background:#f5f6f8}.dashboard-orders-table .order-row .cell-text,.dashboard-orders-table .order-row .order-status-text,.dashboard-orders-table .order-row.status-confirmed,.dashboard-orders-table .order-row.status-confirmed .cell-text,.dashboard-orders-table .order-row.status-confirmed .order-status-text,.dashboard-orders-table .order-row.status-preparing,.dashboard-orders-table .order-row.status-preparing .cell-text,.dashboard-orders-table .order-row.status-preparing .order-status-text,.dashboard-orders-table .order-row.status-processing,.dashboard-orders-table .order-row.status-processing .cell-text,.dashboard-orders-table .order-row.status-processing .order-status-text,.dashboard-orders-table .order-row.status-shipped,.dashboard-orders-table .order-row.status-shipped .cell-text,.dashboard-orders-table .order-row.status-shipped .order-status-text,.dashboard-orders-table .order-row.status-delivered,.dashboard-orders-table .order-row.status-delivered .cell-text,.dashboard-orders-table .order-row.status-delivered .order-status-text,.dashboard-orders-table .order-row.status-cancelled,.dashboard-orders-table .order-row.status-cancelled .cell-text,.dashboard-orders-table .order-row.status-cancelled .order-status-text,.dashboard-orders-table .order-row.status-pending,.dashboard-orders-table .order-row.status-pending .cell-text,.dashboard-orders-table .order-row.status-pending .order-status-text{color:var(--ink);font-weight:400}.dashboard-orders-table .order-row.status-placed,.dashboard-orders-table .order-row.status-placed .cell-text,.dashboard-orders-table .order-row.status-placed .order-status-text{color:#0284c7;font-weight:700}.dashboard-orders-table .col-avatar{text-align:center;vertical-align:middle;width:44px}.dashboard-orders-table .col-avatar .customer-avatar{justify-content:center;align-items:center;width:28px;height:28px;margin:0 auto;font-size:.75rem;line-height:1;display:inline-flex}.dashboard-orders-table .empty-row td{text-align:left;height:auto;padding:16px}@media (width>=992px){.dashboard-grid{grid-template-columns:5fr 7fr;align-items:stretch}}@media (width<=720px){.dashboard-balances-grid{grid-template-columns:1fr}.dashboard-balance-section+.dashboard-balance-section{border-left:0;border-top:1px solid var(--border);margin-top:12px;margin-left:0;padding-top:12px;padding-left:0}}.stat-card,.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.stat-card{padding:22px}.stat-card.clickable{cursor:pointer;transition:transform .15s,box-shadow .15s,border-color .15s;display:block}.stat-card.clickable:hover{border-color:#e5393547;transform:translateY(-2px);box-shadow:0 14px 34px #1a1a1a1a}.stat-card p{color:var(--muted);margin-bottom:10px}.stat-card strong{font-family:DM Sans,sans-serif;font-size:2rem;font-weight:700}.stat-card.accent strong{color:var(--teal)}.stat-card.warn strong{color:var(--secondary)}.card{padding:20px}.panel{gap:18px;display:grid}.panel-head,.status-row{justify-content:space-between;align-items:end;gap:12px;display:flex}.form{gap:14px;display:grid}.form label,.status-row label{gap:8px;font-weight:500;display:grid}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.span-2{grid-column:span 2}.shop-location-fields{gap:14px;display:grid}.shop-location-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.shop-address-block{gap:8px;display:grid}.shop-address-block .field-label{font-weight:500}.shop-address-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;display:grid}.shop-address-row-extras{grid-template-columns:repeat(4,minmax(0,1fr))}.shop-map-control .address-map-btn{border:1px solid var(--border);width:100%;height:auto;min-height:46px;color:var(--ink);box-shadow:none;background:#fff;border-radius:12px;justify-content:center;padding:12px 14px;font-weight:500}.shop-map-control .address-map-btn:hover:not(:disabled){border-color:var(--border);background:#fff;transform:none}.shop-map-control .address-map-btn:focus-visible{border-color:var(--primary);outline:2px solid #e539352e}.shop-map-control .address-map-btn.has-map{border-color:var(--border);color:var(--ink)}.address-map-btn{white-space:nowrap;border:1px solid var(--border);background:#fff;align-items:center;gap:6px;display:inline-flex}.address-map-btn.has-map{border-color:color-mix(in srgb, var(--teal) 45%, var(--border));color:var(--teal)}.address-map-coords{margin:0;font-size:.85rem}input,select,textarea{border:1px solid var(--border);width:100%;color:var(--ink);background:#fff;border-radius:12px;padding:12px 14px}input:focus,select:focus,textarea:focus{border-color:var(--primary);outline:2px solid #e539352e}.btn{cursor:pointer;border:0;border-radius:12px;padding:11px 16px;font-weight:600;transition:transform .15s,opacity .15s,background .15s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff}.btn-add-payment{background:linear-gradient(135deg, var(--pay-green-dark) 0%, var(--pay-green) 48%, var(--pay-green-light) 100%);color:#fff;border:0}.btn-add-payment:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px)}.btn-default{color:var(--ink);border:1px solid var(--border);box-shadow:none;background:#fff}.btn-default:hover:not(:disabled){background:#f8fafc;transform:none}.btn-ghost{color:inherit;background:0 0;border:1px solid #ffffff24}.main .btn-ghost{border-color:var(--border);color:var(--ink)}.btn-danger{color:var(--danger);background:#b71c1c14}.table-wrap{padding:0;overflow-x:auto}.pagination-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;display:flex}.pagination-bar-summary{margin:0}.pagination-bar-actions{align-items:center;gap:10px;display:flex}.pagination-bar-page{color:var(--muted);white-space:nowrap;font-size:.92rem}.table-title{padding:18px 20px 0}table,.data-table{border-collapse:collapse;table-layout:fixed;width:100%}.data-table tbody tr:nth-child(odd){background:#fff}.data-table tbody tr:nth-child(2n){background:#f3f5f7}.data-table tbody tr.empty-row{background:0 0}.orders-table tbody tr:nth-child(odd),.products-table tbody tr:nth-child(odd),.customers-table tbody tr:nth-child(odd),.payments-table tbody tr:nth-child(odd){background:#fff}.orders-table tbody tr:nth-child(2n),.products-table tbody tr:nth-child(2n),.customers-table tbody tr:nth-child(2n),.payments-table tbody tr:nth-child(2n){background:#f5f6f8}.orders-table tbody tr:hover:not(.empty-row),.products-table tbody tr:hover:not(.empty-row),.customers-table tbody tr:hover:not(.empty-row),.payments-table tbody tr:hover:not(.empty-row),.orders-table tbody tr.clickable-row:hover:not(.empty-row),.products-table tbody tr.clickable-row:hover:not(.empty-row),.customers-table tbody tr.clickable-row:hover:not(.empty-row),.payments-table tbody tr.clickable-row:hover:not(.empty-row){background:#e9edf2}.orders-table .order-row,.orders-table .order-row:hover,.orders-table .order-row.status-pending,.orders-table .order-row.status-pending:hover,.orders-table .order-row.status-placed,.orders-table .order-row.status-placed:hover,.orders-table .order-row.status-confirmed,.orders-table .order-row.status-confirmed:hover,.orders-table .order-row.status-processing,.orders-table .order-row.status-processing:hover,.orders-table .order-row.status-preparing,.orders-table .order-row.status-preparing:hover,.orders-table .order-row.status-shipped,.orders-table .order-row.status-shipped:hover,.orders-table .order-row.status-cancelled,.orders-table .order-row.status-cancelled:hover,.orders-table .order-row.status-delivered,.orders-table .order-row.status-delivered:hover{--order-status-color:inherit;color:var(--ink);background:0 0;font-weight:400}.orders-table tbody tr.order-row:nth-child(odd){background:#fff}.orders-table tbody tr.order-row:nth-child(2n){background:#f5f6f8}.orders-table tbody tr.order-row:hover:not(.empty-row),.orders-table tbody tr.order-row.status-pending:hover:not(.empty-row),.orders-table tbody tr.order-row.status-placed:hover:not(.empty-row),.orders-table tbody tr.order-row.status-confirmed:hover:not(.empty-row),.orders-table tbody tr.order-row.status-processing:hover:not(.empty-row),.orders-table tbody tr.order-row.status-preparing:hover:not(.empty-row),.orders-table tbody tr.order-row.status-shipped:hover:not(.empty-row),.orders-table tbody tr.order-row.status-cancelled:hover:not(.empty-row),.orders-table tbody tr.order-row.status-delivered:hover:not(.empty-row){background:#e9edf2}.orders-table .order-row .cell-text,.orders-table .order-row .order-status-text,.products-table .cell-text,.customers-table .cell-text,.payments-table .cell-text,.orders-table .order-row.status-confirmed,.orders-table .order-row.status-confirmed .cell-text,.orders-table .order-row.status-confirmed .order-status-text,.orders-table .order-row.status-preparing,.orders-table .order-row.status-preparing .cell-text,.orders-table .order-row.status-preparing .order-status-text,.orders-table .order-row.status-processing,.orders-table .order-row.status-processing .cell-text,.orders-table .order-row.status-processing .order-status-text,.orders-table .order-row.status-shipped,.orders-table .order-row.status-shipped .cell-text,.orders-table .order-row.status-shipped .order-status-text,.orders-table .order-row.status-delivered,.orders-table .order-row.status-delivered .cell-text,.orders-table .order-row.status-delivered .order-status-text,.orders-table .order-row.status-cancelled,.orders-table .order-row.status-cancelled .cell-text,.orders-table .order-row.status-cancelled .order-status-text,.orders-table .order-row.status-pending,.orders-table .order-row.status-pending .cell-text,.orders-table .order-row.status-pending .order-status-text{color:var(--ink);font-weight:400}.orders-table .order-row.status-placed,.orders-table .order-row.status-placed .cell-text,.orders-table .order-row.status-placed .order-status-text{color:#0284c7;font-weight:700}.customers-table .balance.negative{color:var(--primary)}.customers-table .balance.positive{color:var(--teal)}.products-table .badge,.products-table .badge.active,.products-table .badge.inactive{color:var(--ink);background:#eef1f4}.products-table .col-actions{text-align:right;white-space:nowrap;width:250px}.product-row-actions{justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}.product-status-btn.make-inactive{background:var(--secondary);color:#fff;border:0}.product-status-btn.make-active{background:var(--pay-green);color:#fff;border:0}:is(.card.table-wrap:has(.products-table),.card.table-wrap:has(.orders-table),.card.table-wrap:has(.customers-table),.card.table-wrap:has(.payments-table),.card.table-wrap:has(.carts-table)){min-height:60vh}.carts-table .col-avatar{width:48px;max-width:48px;padding-left:12px;padding-right:8px}.carts-table .col-actions{text-align:right;white-space:nowrap;width:220px}.cart-row-actions{justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}.cart-detail-stack{gap:16px;display:grid}.cart-detail-hero{padding:18px 20px}.cart-detail-identity{align-items:center;gap:14px;display:flex}.cart-detail-identity h2{margin:0 0 4px;font-size:1.35rem}.cart-detail-identity p{margin:0;line-height:1.45}.cart-items-table .col-avatar{width:64px;max-width:64px;padding-left:12px;padding-right:8px}.cart-items-table .col-product{width:48%;min-width:220px}.cart-items-table th,.cart-items-table td{height:auto;padding-top:10px;padding-bottom:10px}.cart-items-table .product-thumb{border-radius:10px;width:48px;height:48px;display:block}.cart-items-total-row td{border-top:1px solid var(--border);padding-top:14px;padding-bottom:14px;font-weight:700}.cart-items-total-qty,.cart-items-total{color:var(--primary);white-space:nowrap;font-size:1.2rem;font-weight:700}.cart-detail-actions{padding:14px 16px 16px}th,td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;height:56px;padding:0 16px;overflow:hidden}th{height:44px;color:var(--muted);white-space:nowrap;font-size:.85rem;font-weight:600}td .cell-text,td .cell-text.strong,.product-cell .cell-text{text-overflow:ellipsis;white-space:nowrap;line-height:1.3;display:block;overflow:hidden}td .cell-text.strong,.product-cell .cell-text{font-weight:600}.clickable-row{cursor:pointer;transition:background .15s}.clickable-row:hover{background:#e539350a}.order-row.status-pending,.order-row.status-placed{--order-status-color:#c05600;background:color-mix(in srgb, var(--order-status-color) 5%, transparent);color:var(--order-status-color)}.order-row.status-pending:hover,.order-row.status-placed:hover{background:color-mix(in srgb, var(--order-status-color) 10%, transparent)}.order-row.status-confirmed{--order-status-color:#0284c7;background:color-mix(in srgb, var(--order-status-color) 5%, transparent);color:var(--order-status-color);font-weight:700}.order-row.status-confirmed:hover{background:color-mix(in srgb, var(--order-status-color) 10%, transparent)}.order-row.status-processing,.order-row.status-preparing{--order-status-color:#15803d;background:color-mix(in srgb, var(--order-status-color) 5%, transparent);color:var(--order-status-color);font-weight:500}.order-row.status-processing:hover,.order-row.status-preparing:hover{background:color-mix(in srgb, var(--order-status-color) 10%, transparent)}.order-row.status-shipped{--order-status-color:#7c3aed;background:color-mix(in srgb, var(--order-status-color) 8%, transparent);color:var(--order-status-color)}.order-row.status-shipped:hover{background:color-mix(in srgb, var(--order-status-color) 12%, transparent)}.order-row.status-cancelled{--order-status-color:#b71c1c;background:color-mix(in srgb, var(--order-status-color) 5%, transparent);color:var(--order-status-color)}.order-row.status-cancelled:hover{background:color-mix(in srgb, var(--order-status-color) 10%, transparent)}.order-row.status-delivered{--order-status-color:#4b5563;background:color-mix(in srgb, var(--order-status-color) 5%, transparent);color:var(--order-status-color)}.order-row.status-delivered:hover{background:color-mix(in srgb, var(--order-status-color) 10%, transparent)}.order-row .cell-text,.order-row .order-status-text{color:inherit;font-size:inherit;font-weight:inherit}.order-row .order-status-text{text-transform:capitalize}.order-row.status-confirmed .cell-text,.order-row.status-confirmed .order-status-text{font-weight:700}.bulk-bar{box-shadow:none;background:0 0;border:0;border-radius:0;justify-content:flex-start;align-items:center;gap:8px;padding:0;display:flex}.bulk-bar.compact{min-height:0}.bulk-label{color:var(--ink);white-space:nowrap;font-size:.88rem;font-weight:600}.bulk-status-select{border:1px solid var(--border);background:#fff;border-radius:8px;width:auto;min-width:140px;padding:6px 10px;font-size:.88rem}.bulk-status-select:disabled{opacity:.5;cursor:not-allowed}.orders-table .col-check{text-align:center;width:44px}.orders-table .col-avatar{width:48px}.orders-table .col-actions{white-space:nowrap;width:280px;min-width:280px}.orders-table .order-actions{justify-content:flex-end;gap:8px}.orders-table .order-action-btn{width:36px;height:36px}.orders-toolbar{grid-template-columns:minmax(0,3fr) minmax(0,6fr) minmax(0,3fr);align-items:center;gap:12px;margin-bottom:12px;display:grid}.orders-toolbar-left{justify-self:start;width:100%;min-width:0;padding-left:10px}.orders-toolbar-center{justify-content:center;min-width:0;display:flex}.orders-toolbar-center .order-status-summary{width:100%}.orders-toolbar-right{justify-content:flex-end;justify-self:end;min-width:0;display:flex}.orders-toolbar .bulk-bar{justify-content:flex-start;width:100%;margin:0}.order-status-summary{grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:8px;min-width:0;margin-bottom:0;display:grid}.order-status-summary-card{border-radius:999px;align-items:stretch;gap:0;min-width:0;min-height:40px;padding:0;display:flex;overflow:hidden}.order-status-summary-icon{color:#fff;border-radius:999px 0 0 999px;flex-shrink:0;justify-content:center;align-self:stretch;align-items:center;width:40px;height:40px;display:inline-flex}.order-status-summary-card.placed .order-status-summary-icon{background:#c05600}.order-status-summary-card.confirmed .order-status-summary-icon{background:#16a34a}.order-status-summary-card.preparing .order-status-summary-icon{background:#0284c7}.order-status-summary-card.shipped .order-status-summary-icon{background:#7c3aed}.order-status-summary-copy{align-content:center;gap:0;min-width:0;padding:4px 12px 4px 8px;display:grid}.order-status-summary-label{color:var(--muted);font-size:.72rem;font-weight:600;line-height:1.2}.order-status-summary-count{color:var(--ink);font-size:1.05rem;font-weight:800;line-height:1.15}@media (width<=980px){.orders-toolbar{grid-template-columns:1fr}.orders-toolbar-left,.orders-toolbar-right{justify-self:stretch;padding-left:10px}.orders-toolbar-right{justify-content:flex-end;padding-left:0}.order-status-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.orders-toolbar .bulk-bar{justify-content:flex-start;width:100%}}@media (width<=560px){.order-status-summary{grid-template-columns:1fr}}.orders-table thead th.col-status{height:auto;padding-top:8px;padding-bottom:8px;overflow:visible}.orders-table .status-filter{flex-direction:column;align-items:flex-start;gap:4px;display:flex;position:relative}.orders-table .status-filter span{line-height:1}.orders-table .status-filter-trigger{border:1px solid var(--border);width:100%;min-width:120px;color:var(--ink);cursor:pointer;background:#fff;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:4px 8px;font-size:.78rem;font-weight:500;display:inline-flex}.orders-table .status-filter-menu{z-index:40;border:1px solid var(--border);min-width:160px;box-shadow:var(--shadow);background:#fff;border-radius:10px;gap:4px;padding:8px;display:grid;position:absolute;top:calc(100% + 4px);left:0}.orders-table .status-filter-option{cursor:pointer;border-radius:6px;align-items:center;gap:8px;padding:6px 8px;font-size:.82rem;font-weight:500;display:flex}.orders-table .status-filter-option:hover{background:#f3f4f6}.orders-table .status-filter-option input{width:14px;height:14px;accent-color:var(--primary)}.payments-table .col-filter,.orders-table .col-filter{vertical-align:top;overflow:visible}.payments-table thead th.col-filter,.orders-table thead th.col-filter{height:auto;padding-top:8px;padding-bottom:8px;overflow:visible}.column-filter{flex-direction:column;align-items:flex-start;gap:4px;display:flex;position:relative}.column-filter-head{line-height:1}.column-filter-trigger{border:1px solid var(--border);width:100%;min-width:120px;color:var(--ink);cursor:pointer;background:#fff;border-radius:6px;justify-content:space-between;align-items:center;gap:8px;padding:4px 8px;font-size:.78rem;font-weight:500;display:inline-flex}.column-filter-menu{z-index:40;border:1px solid var(--border);min-width:180px;max-height:260px;box-shadow:var(--shadow);background:#fff;border-radius:10px;gap:4px;padding:8px;display:grid;position:absolute;top:calc(100% + 4px);left:0;overflow:auto}.column-filter-option{width:100%;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:6px 8px;font-size:.82rem;font-weight:500;display:flex}.column-filter-option:hover,.column-filter-option.active{background:#f3f4f6}.column-filter-search{border:1px solid var(--border);border-radius:8px;width:100%;height:34px;min-height:34px;margin-bottom:4px;padding:0 10px;font-size:.82rem}.column-filter-option input{width:14px;height:14px;accent-color:var(--primary)}.column-filter-empty{margin:0;padding:6px 8px;font-size:.82rem}.orders-table input[type=checkbox]{cursor:pointer;width:16px;height:16px;accent-color:var(--primary)}.order-actions{align-items:center;gap:4px;display:inline-flex}.order-action-btn{border:1px solid var(--border);width:28px;height:28px;color:var(--muted);cursor:pointer;background:#fff;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex}.order-action-btn:hover:not(:disabled){color:var(--ink);border-color:#1a1a1a33}.order-action-btn.processing,.order-action-btn.preparing{color:#fff;background:#0284c7;border-color:#0000}.order-action-btn.pending,.order-action-btn.placed{color:#fff;background:#c05600;border-color:#0000}.order-action-btn.confirmed{color:#fff;background:#16a34a;border-color:#0000}.order-action-btn.cancel{color:#fff;background:var(--danger);border-color:#0000}.order-action-btn.shipped{color:#fff;background:#7c3aed;border-color:#0000}.order-action-btn.delivered{color:#fff;background:#14532d;border-color:#0000}.order-action-btn.processing:hover:not(:disabled),.order-action-btn.preparing:hover:not(:disabled){color:#fff;background:#0369a1}.order-action-btn.pending:hover:not(:disabled),.order-action-btn.placed:hover:not(:disabled){color:#fff;background:#9a4400}.order-action-btn.confirmed:hover:not(:disabled){color:#fff;background:#15803d}.order-action-btn.cancel:hover:not(:disabled){color:#fff;background:#9f1515}.order-action-btn.shipped:hover:not(:disabled){color:#fff;background:#6d28d9}.order-action-btn.delivered:hover:not(:disabled){color:#fff;background:#052e16}.order-action-btn:disabled{opacity:.4;cursor:not-allowed}@media (width<=980px){.bulk-bar{flex-wrap:wrap;justify-content:flex-start}.bulk-status-select{min-width:160px}}.empty-row td{text-align:center;height:64px}.product-cell{align-items:center;gap:12px;min-width:0;height:100%;display:flex}.product-thumb{object-fit:cover;background:#eef2f5;border-radius:8px;flex-shrink:0;width:36px;height:36px}.product-thumb.placeholder{display:inline-block}.current-image-preview{object-fit:cover;border:1px solid var(--border);border-radius:4px;width:72px;height:72px}.current-gallery{flex-wrap:wrap;gap:8px;display:flex}.form-actions.space-between{justify-content:space-between;width:100%}.actions{white-space:nowrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}.actions .btn{border-radius:8px;padding:5px 10px;font-size:.8rem;line-height:1.2}.actions .btn:hover:not(:disabled){transform:none}.badge{text-transform:capitalize;color:#334155;background:#eef2f5;border-radius:999px;align-items:center;padding:4px 10px;font-size:.78rem;font-weight:600;display:inline-flex}.badge.active,.badge.paid,.badge.delivered{color:var(--teal);background:#00897b1f}.badge.inactive,.badge.cancelled,.badge.failed{color:var(--danger);background:#b71c1c1a}.badge.pending,.badge.status-pending,.badge.status-placed{color:#c05600;background:#fb8c0024}.badge.status-confirmed{color:#16a34a;background:#16a34a1f}.badge.status-processing,.badge.status-preparing{color:#0369a1;background:#0284c71f}.badge.status-shipped{color:#7c3aed;background:#7c3aed1f}.badge.status-delivered,.badge.delivered{color:#14532d;background:#14532d1f}.badge.status-cancelled,.badge.cancelled{color:var(--danger);background:#b71c1c1a}.login-page{place-items:center;min-height:100vh;padding:16px 24px 24px;display:grid}.login-panel{gap:16px;width:min(100%,420px);display:grid}.login-brand{text-align:center;justify-items:center;gap:8px;margin-top:0;padding-top:0;display:grid}.login-brand-icon{object-fit:contain;width:64px;height:64px;display:block}.login-brand h1{margin:0;font-size:1.85rem}.auth-help{color:var(--muted);margin:0;font-size:.92rem;line-height:1.45}.auth-help a{color:var(--primary);word-break:break-all}.auth-links{gap:8px;display:grid}.auth-tabs{border:1px solid var(--border);background:#f8fafc;border-radius:12px;grid-template-columns:1fr 1fr;gap:6px;padding:4px;display:grid}.auth-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;padding:10px 12px;font-weight:600}.auth-tabs button.active{color:var(--ink);background:#fff;box-shadow:0 1px 2px #0f172a14}.auth-footer-links{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;margin:4px 0 0;font-size:.92rem;display:flex}.auth-footer-links a{color:var(--primary);font-weight:600;text-decoration:none}.auth-footer-links a:hover{text-decoration:underline}.otp-row{grid-template-columns:1fr auto;align-items:center;gap:8px;display:grid}.otp-send-hit{display:inline-flex}.otp-send-hit .otp-send-btn:disabled{pointer-events:none}.otp-send-btn{white-space:nowrap;border-color:var(--border);width:auto;min-width:148px;min-height:46px;color:var(--ink);background:#fff;padding-inline:12px}.otp-boxes{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;display:grid}.otp-box{text-align:center;letter-spacing:0;width:100%;height:46px;min-height:46px;padding:0;font-size:1.2rem;font-weight:700}.otp-send-btn.is-cooling{font-size:.78rem;font-weight:600}.otp-send-btn:hover:not(:disabled){background:#f8fafc}.auth-form{gap:28px}.auth-field{position:relative}.auth-msg-field{padding-bottom:22px}.auth-inline-msgs{position:absolute;top:calc(100% + 4px);left:2px;right:2px}.auth-msg-field .auth-inline-msgs{top:auto;bottom:4px}.auth-inline-msg{pointer-events:none;background:0 0;border-radius:0;margin:0;padding:0;font-size:.78rem;font-weight:500;line-height:1.25}.auth-inline-msg.is-error{color:var(--danger)}.auth-inline-msg.is-success{color:var(--teal)}.auth-inline-msg.is-help{color:var(--muted)}.form-error{color:var(--danger);background:#b71c1c14;border-radius:12px;padding:10px 12px}.form-success{color:var(--teal);background:#00897b1a;border-radius:12px;padding:10px 12px}.app-toast{z-index:1200;color:#fff;pointer-events:none;background:#0f766e;border-radius:12px;max-width:min(360px,100vw - 40px);padding:12px 16px;font-size:.92rem;font-weight:600;animation:.18s ease-out toast-in;position:fixed;top:20px;right:20px;box-shadow:0 10px 30px #0f172a2e}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.centered{place-content:center;justify-items:center;gap:12px;min-height:100vh;display:grid}.loading-state{align-content:center;justify-items:center;gap:12px;padding:28px 16px;display:grid}.loading-label{color:var(--muted);margin:0;font-size:.95rem}.loading-spinner{border-style:solid;border-color:#e5393529;border-top-color:var(--primary);border-radius:50%;animation:.75s linear infinite spin;display:inline-block}.loading-spinner.size-sm{border-width:2.5px;width:22px;height:22px}.loading-spinner.size-md{border-width:3px;width:36px;height:36px}.loading-spinner.size-lg{border-width:3.5px;width:48px;height:48px}.spinner{border:3px solid #e5393526;border-top-color:var(--primary);border-radius:50%;width:36px;height:36px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.detail-grid{grid-template-columns:1.1fr 1.4fr;gap:16px;display:grid}.order-detail-grid{grid-template-columns:minmax(280px,5fr) minmax(0,7fr);align-items:start;gap:16px;display:grid}.order-detail-side{gap:16px;min-width:0;display:grid}.order-detail-actions{background:0 0;border:0;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0;display:flex}.order-tracking-card{position:static}.order-detail-actions-card{padding:12px 16px}.order-detail-actions-card .order-status-actions{width:100%}.order-tracking-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.order-tracking-title{margin:0;font-size:1.05rem;font-weight:700}.order-tracking-header .order-status-tag{flex-shrink:0;margin-right:0}.order-tracking-timeline{gap:0;margin:0;padding:0;list-style:none;display:grid}.order-tracking-item{grid-template-columns:16px 1fr;gap:12px;padding-bottom:18px;display:grid;position:relative}.order-tracking-item:last-child{padding-bottom:0}.order-tracking-item:not(:last-child):before{content:"";background:var(--border);width:2px;position:absolute;top:14px;bottom:0;left:7px}.order-tracking-marker{z-index:1;background:#cbd5e1;border:2px solid #fff;border-radius:50%;width:12px;height:12px;margin-top:4px;box-shadow:0 0 0 1px #cbd5e1}.order-tracking-item.is-latest .order-tracking-marker{background:var(--teal);box-shadow:0 0 0 1px var(--teal)}.order-tracking-body{min-width:0}.order-tracking-head{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.order-tracking-status{color:var(--ink);font-weight:700}.order-tracking-item.is-latest .order-tracking-status{color:var(--teal)}.order-tracking-time{color:var(--muted);white-space:nowrap;font-size:.78rem}.order-tracking-note{color:var(--muted);margin:4px 0 0;font-size:.9rem;line-height:1.4}.order-summary-card{align-content:start;justify-items:start;gap:14px;display:grid}.order-summary-identity{align-items:center;gap:12px;display:flex}.order-summary-avatar{width:44px;height:44px;color:var(--muted);background:#eef2f5;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.order-summary-name{margin:0;font-size:1.35rem;font-weight:700;line-height:1.25}.order-summary-meta{gap:8px;width:100%;display:grid}.order-summary-meta p{margin:0;line-height:1.45}.order-summary-meta .meta-label{color:var(--muted);font-weight:600}.order-summary-map-btn{justify-self:start;width:auto;max-width:max-content}.order-status-controls{border-top:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:10px;width:100%;margin-top:4px;padding-top:14px;display:flex}.order-status-controls .meta-label{color:var(--muted);font-size:.9rem;font-weight:600}.order-status-tag{margin-right:16px}.order-status-actions{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.order-items-table .col-avatar{width:72px}.order-items-table th,.order-items-table td{height:auto;padding-top:10px;padding-bottom:10px}.order-items-table .product-thumb{border-radius:10px;width:56px;height:56px;display:block}.order-status-text-btn{height:34px;color:var(--ink);cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #0000;border-radius:8px;align-items:center;gap:6px;padding:0 12px;font-size:.85rem;font-weight:600;display:inline-flex}.order-status-text-btn.pending,.order-status-text-btn.placed{color:#fff;background:#c05600}.order-status-text-btn.confirmed{color:#fff;background:#16a34a}.order-status-text-btn.processing,.order-status-text-btn.preparing{color:#fff;background:#0284c7}.order-status-text-btn.shipped{color:#fff;background:#7c3aed}.order-status-text-btn.delivered{color:#fff;background:#14532d}.order-status-text-btn.cancel{color:#fff;background:var(--danger)}.order-status-text-btn.pending:hover:not(:disabled),.order-status-text-btn.placed:hover:not(:disabled){background:#9a4400}.order-status-text-btn.confirmed:hover:not(:disabled){background:#15803d}.order-status-text-btn.processing:hover:not(:disabled),.order-status-text-btn.preparing:hover:not(:disabled){background:#0369a1}.order-status-text-btn.shipped:hover:not(:disabled){background:#6d28d9}.order-status-text-btn.delivered:hover:not(:disabled){background:#052e16}.order-status-text-btn.cancel:hover:not(:disabled){background:#9f1515}.order-status-text-btn:disabled{opacity:.45;cursor:not-allowed}.order-items-table .col-product{width:48%;min-width:220px}.order-items-summary-row td{height:auto;color:var(--muted);border-bottom:0;padding-top:8px;padding-bottom:8px;font-weight:600}.order-items-summary-row+.order-items-total-row td,.order-items-summary-row:first-child td{border-top:1px solid var(--border)}.order-items-total-row td{border-top:1px solid var(--border);padding-top:14px;padding-bottom:14px;font-weight:700}.order-items-total{color:var(--primary);white-space:nowrap;font-size:1.35rem;font-weight:700}.meta-list{gap:14px;margin:0;display:grid}.meta-list div{gap:4px;display:grid}.meta-list dt{color:var(--muted);font-size:.85rem}.meta-list dd{margin:0;font-weight:600}.shop-list{gap:14px;margin:0;padding:0;list-style:none;display:grid}.shop-list li{border:1px solid var(--border);border-radius:14px;gap:6px;padding:14px;display:grid}.form-actions{justify-content:flex-end;gap:10px;display:flex}.shop-manage-actions{margin-top:20px}.profile-card,.profile-shops{width:min(100%,640px)}.profile-fields{gap:0}.profile-field-row{border-bottom:1px solid var(--border);box-sizing:border-box;grid-template-columns:repeat(10,minmax(0,1fr));align-items:center;column-gap:12px;min-height:52px;padding:10px 0;display:grid}.profile-field-row:last-child{border-bottom:0;padding-bottom:0}.profile-field-row:first-child{padding-top:0}.profile-field-main{grid-column:span 8;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px;min-width:0;min-height:32px;display:grid}.profile-field-main dt{margin:0}.profile-field-main dd{text-overflow:ellipsis;white-space:nowrap;min-height:32px;margin:0;line-height:32px;overflow:hidden}.profile-field-action{grid-column:span 2;justify-content:flex-end;align-items:center;min-height:32px;display:flex}.profile-field-row .icon-btn{flex-shrink:0;margin:0}.profile-inline-form{flex-wrap:nowrap;grid-column:2;align-items:center;gap:6px;height:32px;min-height:32px;display:flex}.profile-inline-form input{box-sizing:border-box;border-radius:8px;flex:1;min-width:0;height:32px;min-height:32px;padding:0 10px;font-size:.92rem;line-height:1.2}.profile-inline-form .btn-sm{white-space:nowrap;border-radius:8px;justify-content:center;align-items:center;height:32px;min-height:32px;padding:0 10px;font-size:.85rem;line-height:1;display:inline-flex}.profile-field-row.is-editing-password,.profile-field-row.is-editing-password .profile-field-main{align-items:start}.profile-field-row.is-editing-password .profile-field-main dt{padding-top:6px}.profile-password-form{gap:8px;width:100%;display:grid}.profile-password-form input{box-sizing:border-box;border-radius:8px;width:100%;height:36px;min-height:36px;padding:0 10px;font-size:.92rem}.profile-password-actions{gap:6px;display:flex}.profile-password-actions .btn-sm{height:32px;min-height:32px;padding:0 10px;font-size:.85rem}.profile-text-action{color:var(--primary);font:inherit;cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;font-size:.82rem;font-weight:600}.profile-text-action:hover{text-decoration:underline}.icon-btn{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;padding:6px;display:inline-flex}.icon-btn:hover{color:var(--primary);background:#e5393514}.btn-sm{border-radius:10px;padding:8px 12px;font-size:.9rem}.btn-xs{border-radius:8px;padding:5px 10px;font-size:.78rem;font-weight:600}.shop-action-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.shop-action-list li{border:1px solid var(--border);border-radius:14px;justify-content:space-between;align-items:center;gap:12px;padding:14px;display:flex}.shop-action-name{color:var(--ink);text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-size:1rem;font-weight:700}.shop-action-name:hover{color:var(--primary);text-decoration:underline}.shop-action-controls{flex-shrink:0;align-items:center;gap:8px;display:flex}.small{font-size:.85rem}@media (width<=980px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:10;position:sticky;top:0}.topbar{padding:12px 16px}.main{padding:20px 16px}.stat-grid,.detail-grid,.order-detail-grid,.form-grid,.category-picker,.tag-picker{grid-template-columns:1fr}.shop-location-row{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-address-row,.shop-address-row-extras{grid-template-columns:1fr 1fr}.shop-map-control{justify-self:stretch}.order-tracking-card{position:static}.span-2{grid-column:auto}.page-header,.panel-head,.status-row,.form-actions{flex-direction:column;align-items:stretch}}.product-form{gap:20px}.category-picker{grid-template-columns:3fr 9fr;align-items:start;gap:12px;display:grid}.category-picker-search{min-width:0;position:relative}.category-picker-menu{z-index:90;border:1px solid var(--border);background:#fff;border-radius:12px;width:max(100%,260px);min-width:100%;max-height:280px;position:absolute;top:calc(100% + 6px);left:0;overflow:auto;box-shadow:0 16px 36px #0f172a24}.category-picker-list{gap:2px;margin:0;padding:6px;list-style:none;display:grid}.category-picker-list button{text-align:left;cursor:pointer;width:100%;color:var(--ink);background:0 0;border:0;border-radius:8px;padding:8px 10px}.category-picker-list button:hover{background:#f8fafc}.category-picker-empty{color:var(--muted);margin:0;padding:12px;font-size:.88rem}.category-picker-tags{border:1px solid var(--border);background:#fff;border-radius:12px;flex-wrap:wrap;align-items:flex-start;gap:8px;min-height:46px;padding:8px;display:flex}.category-picker-placeholder{color:var(--muted);padding:4px 6px;font-size:.88rem}.category-tag{max-width:100%;color:var(--ink);background:#f1f5f9;border-radius:999px;align-items:center;gap:4px;padding:4px 8px 4px 10px;font-size:.82rem;font-weight:600;line-height:1.2;display:inline-flex}.category-tag-remove{width:18px;height:18px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;display:inline-flex}.category-tag-remove:hover{color:var(--ink);background:#e2e8f0}.tag-input-wrap{border:1px solid var(--border);background:#fff;border-radius:12px;align-items:stretch;min-width:0;display:flex}.tag-input-wrap:focus-within{border-color:var(--primary);outline:2px solid #e539352e}.tag-input-wrap input{border:0;border-radius:12px 0 0 12px}.tag-input-wrap input:focus{border-color:#0000;outline:none}.tag-input-add{width:46px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:0 12px 12px 0;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.tag-input-add:hover:not(:disabled){color:var(--teal);background:#00897b14}.tag-input-add:disabled{opacity:.4;cursor:default}.product-meta-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.product-images-block{grid-template-columns:2fr 9fr;align-items:start;gap:16px;width:100%;min-width:0;display:grid}.product-images-col{gap:10px;min-width:0;display:grid}.product-images-col.featured .image-slot-wrap{width:50%;max-width:100%}.product-images-col.featured .image-slot{aspect-ratio:1;width:100%;max-width:100%;height:auto}.product-images-row{grid-template-columns:repeat(9,minmax(0,1fr));gap:10px;width:70%;min-width:50px;display:grid}.product-images-row .image-slot-wrap{width:100%;min-width:0}.product-images-row .image-slot{aspect-ratio:1;width:100%;max-width:none;height:auto}.field-block{gap:10px;display:grid}.field-label{font-weight:600}.field-required{color:var(--primary)}.field-help{color:var(--muted);margin:0;font-size:.9rem;line-height:1.45}.shop-logo-picker-row{align-items:center;margin-bottom:18px;display:flex}.shop-logo-picker{cursor:pointer;background:0 0;border:0;border-radius:22px;padding:0;line-height:0;display:inline-flex;position:relative}.shop-logo-picker:focus-visible{outline:2px solid var(--teal);outline-offset:3px}.shop-logo-picker-img,.shop-logo-picker-fallback{object-fit:cover;border:1px solid var(--border);background:#eef2f7;border-radius:22px;width:88px;height:88px;transition:transform .15s;display:block}.shop-logo-picker-fallback{color:var(--muted);place-items:center;display:grid}.shop-logo-picker:hover .shop-logo-picker-img,.shop-logo-picker:hover .shop-logo-picker-fallback{transform:scale(1.03)}.shop-logo-picker-badge{background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff;border:2px solid #fff;border-radius:999px;justify-content:center;align-items:center;width:28px;height:28px;display:inline-flex;position:absolute;bottom:2px;right:2px;box-shadow:0 4px 10px #1a1a1a2e}.logo-field{gap:8px;display:grid}.logo-field .field-label{font-weight:500}.image-slot-wrap{flex-direction:column;gap:4px;min-width:0;display:flex}.image-slot{border:2px dashed var(--border);cursor:pointer;background:#fafbfc;border-radius:4px;width:88px;height:88px;padding:0;display:block;position:relative;overflow:hidden}.image-slot-hit,.form label.image-slot-hit{cursor:pointer;gap:0;width:100%;height:100%;display:block}.image-slot.has-file{border-style:solid;border-color:#00897b59}.image-slot.is-required:not(.has-file){border-color:#e5393566}.image-slot-label{display:none}.image-slot-placeholder{width:100%;height:100%;color:var(--muted);text-align:center;background:#eef2f5;border-radius:0;place-items:center;padding:4px;font-size:.62rem;line-height:1.15;display:grid}.image-slot-preview{object-fit:cover;border-radius:0;width:100%;height:100%;display:block}.image-slot.is-processing{opacity:.7;pointer-events:none}.image-slot-error{-webkit-line-clamp:3;color:#c62828;-webkit-box-orient:vertical;font-size:.68rem;line-height:1.25;display:-webkit-box;overflow:hidden}.image-slot-hint,.image-slot-name{display:none}.image-slot-camera{z-index:1;background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff;pointer-events:none;border:2px solid #fff;border-radius:999px;justify-content:center;align-items:center;width:22px;height:22px;display:inline-flex;position:absolute;bottom:3px;right:3px;box-shadow:0 3px 8px #1a1a1a2e}.product-images-col.featured .image-slot-camera{width:26px;height:26px;bottom:5px;right:5px}.image-slot-clear{display:none}.image-slot-remove{z-index:2;color:#fff;cursor:pointer;background:#0f172ab8;border:2px solid #fff;border-radius:999px;justify-content:center;align-items:center;width:20px;height:20px;padding:0;display:inline-flex;position:absolute;top:3px;right:3px;box-shadow:0 3px 8px #1a1a1a2e}.image-slot-remove:hover:not(:disabled){background:#b71c1c}.image-slot-remove:disabled{opacity:.55;cursor:default}.product-images-col.featured .image-slot-remove{width:24px;height:24px;top:5px;right:5px}.rte-shell{border:1px solid var(--border);background:#fff;border-radius:14px;overflow:hidden}.rte-toolbar{border-bottom:1px solid var(--border);background:#f8fafc;flex-wrap:wrap;gap:6px;padding:10px;display:flex}.rte-btn{border:1px solid var(--border);color:var(--ink);cursor:pointer;background:#fff;border-radius:6px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;display:inline-flex}.rte-btn:hover:not(:disabled){border-color:#e5393559}.rte-btn.active{color:var(--primary-dark);background:#e539351a;border-color:#e5393559}.rte-btn:disabled{opacity:.45;cursor:not-allowed}.rte-sep{background:var(--border);align-self:stretch;width:1px;margin:0 2px}.rte-content .tiptap{outline:none;min-height:260px;padding:16px 18px}.rte-content .tiptap p.is-editor-empty:first-child:before{color:var(--muted);content:attr(data-placeholder);float:left;pointer-events:none;height:0}.rte-content .tiptap h2,.rte-content .tiptap h3{margin:.6em 0 .35em;font-family:DM Sans,sans-serif;font-weight:700}.rte-content .tiptap img{object-fit:cover;object-position:center;vertical-align:top;border:0;border-radius:0;width:80px;max-width:80px;height:80px;max-height:80px;margin:0;padding:0;display:inline-block}.rte-content .tiptap p:has(>img){letter-spacing:0;word-spacing:0;font-size:0;line-height:0}.rte-content .tiptap p:has(>img) br{content:"";height:0;margin:0;line-height:0;display:block}.rte-content .tiptap table{border-collapse:collapse;width:100%;margin:12px 0;overflow:hidden}.rte-content .tiptap td,.rte-content .tiptap th{border:1px solid var(--border);vertical-align:top;padding:8px 10px}.rte-content .tiptap th{background:#f3f4f6}.rte-content .tiptap ul,.rte-content .tiptap ol{padding-left:1.3rem}.add-order-page{gap:12px;display:grid}.add-order-stack{gap:12px;display:grid;position:relative}.page-alert{z-index:40;text-align:center;width:min(480px,100% - 32px);color:var(--danger);pointer-events:none;background:#fff;border:1px solid #b71c1c38;border-radius:12px;margin:0;padding:10px 14px;position:absolute;top:12px;left:50%;transform:translate(-50%);box-shadow:0 12px 28px #0f172a29}.add-order-customer-card{padding:16px 18px;overflow:visible}.add-order-body{grid-template-columns:minmax(0,8fr) minmax(280px,4fr);align-items:start;gap:12px;display:grid}.add-order-checkout-card{align-content:start;gap:20px;min-width:0;padding:16px;display:grid}.add-order-cart-actions{justify-content:flex-start;display:flex}.add-order-checkout-divider{border:0;border-top:1px solid var(--border);width:100%;margin:0}.add-order-checkout-form{gap:22px;display:grid}.add-order-form-row{align-items:end;gap:10px;min-width:0;display:grid}.add-order-form-row-3{grid-template-columns:repeat(3,minmax(0,1fr))}.add-order-form-row-2{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.add-order-form-row-last{grid-template-columns:minmax(0,1fr) auto auto}.add-order-metric{gap:2px;min-width:0;display:grid}.add-order-metric-label{color:var(--muted);font-size:.72rem;font-weight:600;line-height:1.2}.add-order-metric-value{font-size:.98rem;font-weight:800;line-height:1.2}.add-order-discount,.add-order-cost,.add-order-status,.add-order-address,.add-order-time{min-width:0;color:var(--muted);gap:2px;font-size:.72rem;font-weight:600;line-height:1.2;display:grid}.add-order-discount-input{min-width:0;color:var(--ink);align-items:center;gap:6px;font-weight:600;display:flex}.add-order-discount input,.add-order-cost input,.add-order-status-select,.add-order-address-select,.add-order-time-input{border:1px solid var(--border);width:100%;min-width:0;height:36px;min-height:36px;color:var(--ink);background:#fff;border-radius:8px;padding:0 8px;font-size:.88rem;font-weight:500}.add-order-discount input,.add-order-cost input{text-align:right}.add-order-final .add-order-metric-value{color:var(--primary)}.btn-icon-label{align-items:center;gap:8px;display:inline-flex}.add-order-products-card{overflow:auto}.add-order-products-card tr.add-order-selected-row{background:#eef6ff}.add-order-products-card .col-add{text-align:right;width:132px}.add-order-qty{justify-content:flex-end;align-items:center;gap:6px;display:inline-flex}.add-order-qty-value{text-align:center;min-width:18px;font-size:.9rem;font-weight:700}.add-order-qty-btn{border:1px solid var(--border);width:32px;height:32px;color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.add-order-qty-btn:hover:not(:disabled){background:#f8fafc}.add-order-qty-btn:disabled{opacity:.4;cursor:not-allowed}.paid-switch{align-items:center;gap:8px;font-weight:600;display:inline-flex}.paid-switch-track{cursor:pointer;background:#cbd5e1;border:0;border-radius:999px;width:44px;height:24px;padding:0;transition:background .15s;position:relative}.paid-switch-track.on{background:var(--pay-green)}.paid-switch-knob{background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0f172a40}.paid-switch-track.on .paid-switch-knob{transform:translate(20px)}@media (width<=980px){.add-order-body{grid-template-columns:1fr}.image-slot{width:72px;height:72px}}@media (width<=560px){.add-order-form-row-3,.add-order-form-row-2,.add-order-form-row-last{grid-template-columns:1fr}.add-order-form-row-last .btn{width:100%}}.main:has(.messages-page){padding-top:16px;padding-bottom:16px}.messages-page{gap:10px;height:calc(100vh - 88px);min-height:520px}.messages-error{margin:0}.messages-shell{border:1px solid var(--border);height:100%;min-height:0;box-shadow:var(--shadow);background:#fff;border-radius:16px;grid-template-columns:minmax(240px,320px) minmax(0,1fr);display:grid;overflow:hidden}.messages-list{border-right:1px solid var(--border);background:#fafbfc;flex-direction:column;min-height:0;display:flex}.messages-list-head{border-bottom:1px solid var(--border);padding:12px}.messages-list-head input{width:100%}.messages-list-body{flex:1;min-height:0;overflow:auto}.messages-list-item{border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;width:100%;color:inherit;background:0 0;align-items:center;gap:10px;padding:12px;display:flex}.messages-list-item:hover{background:#f3f4f6}.messages-list-item.is-active{background:#00897b14}.messages-list-avatar{flex-shrink:0;position:relative}.messages-unread-badge{background:var(--primary);color:#fff;border-radius:999px;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 5px;font-size:.68rem;font-weight:700;line-height:1;display:inline-flex;position:absolute;top:-4px;right:-4px;box-shadow:0 0 0 2px #fff}.messages-list-copy{flex:1;gap:2px;min-width:0;display:grid}.messages-list-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.messages-list-top strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.messages-list-top time{color:var(--muted);flex-shrink:0;font-size:.75rem}.messages-list-preview{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.85rem;overflow:hidden}.messages-empty-copy{margin:16px 12px}.messages-thread{background:#fff;flex-direction:column;min-width:0;min-height:0;display:flex}.messages-thread-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:12px 16px;display:flex}.messages-thread-head strong{display:block}.messages-thread-head .muted{font-size:.82rem}.messages-thread-body{background:#f7f8fa;flex-direction:column;flex:1;gap:8px;min-height:0;padding:16px;display:flex;overflow:auto}.messages-bubble-row{justify-content:flex-start;display:flex}.messages-bubble-row.is-mine{justify-content:flex-end}.messages-bubble{border:1px solid var(--border);background:#fff;border-radius:14px 14px 14px 4px;max-width:min(72%,520px);padding:8px 12px}.messages-bubble.is-mine{background:var(--teal);color:#fff;border-color:#0000;border-radius:14px 14px 4px}.messages-bubble p{white-space:pre-wrap;word-break:break-word;margin:0}.messages-bubble time{color:var(--muted);margin-top:4px;font-size:.7rem;display:block}.messages-bubble.is-mine time{color:#ffffffc7}.messages-thread-empty{flex:1;place-items:center;display:grid}.messages-composer{border-top:1px solid var(--border);background:#fff;align-items:flex-end;gap:8px;padding:12px 16px;display:flex}.messages-composer textarea{resize:none;flex:1;min-height:88px;max-height:180px}.messages-send{align-items:center;gap:6px;display:inline-flex}@media (width<=900px){.messages-shell{grid-template-columns:1fr}.messages-list{border-right:0;border-bottom:1px solid var(--border);max-height:36vh}}
