/* assets/index-DFYEZ9wK.css */
:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;background:#e7eef9;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100dvh;margin:0}button,input{font:inherit}button{cursor:pointer;border:0}button:focus-visible,input:focus-visible{outline-offset:2px;outline:3px solid #2563eb47}:root{--blue:#2563eb;--blue-700:#1d4ed8;--blue-50:#eff6ff;--ink:#0f172a;--muted:#64748b;--line:#e2e8f0;--soft:#f8fafc;--success:#16a34a;--danger:#dc2626;--warning:#d97706}.app-shell{background:radial-gradient(circle at 10% 10%,#2563eb2e,#0000 32rem),radial-gradient(circle at 90% 90%,#6366f124,#0000 28rem),#eef4ff;place-items:center;min-height:100dvh;padding:24px;display:grid}.phone-frame{background:var(--soft);border:1px solid #94a3b857;border-radius:34px;flex-direction:column;width:min(100%,430px);height:min(880px,100dvh - 48px);min-height:680px;display:flex;position:relative;overflow:hidden;box-shadow:0 26px 70px #0f172a2e,0 6px 16px #0f172a1a}.status-space{height:max(16px, env(safe-area-inset-top));background:var(--soft);flex:none}.screen-content{scrollbar-width:none;flex:1;padding-bottom:82px;overflow:hidden auto}.screen-content::-webkit-scrollbar{display:none}.page{min-height:100%;padding:17px 16px 22px}.top-header,.page-header,.sale-header,.detail-header,.section-header,.sheet-header,.card-topline,.header-actions,.product-meta,.summary-line,.invoice-summary,.merchant-card,.account-card,.detail-stat-strip,.inventory-hero,.inventory-counters,.printer-status,.merchant-profile,.setting-row,.cart-summary>span,.cart-summary>strong,.success-actions,.report-period,.report-bar>div{align-items:center;display:flex}.top-header,.page-header,.sale-header,.detail-header,.section-header,.sheet-header,.card-topline,.summary-line,.merchant-card,.account-card,.inventory-hero,.printer-status,.merchant-profile,.setting-row,.report-period{justify-content:space-between}.top-header,.page-header,.sale-header{margin-bottom:18px}.detail-header{gap:11px;margin-bottom:20px}.detail-header>div{flex:1}.header-spacer{width:40px}.eyebrow{color:#8a99ad;text-transform:uppercase;letter-spacing:.055em;margin:0 0 4px;font-size:11px;font-weight:700}h1,h2,p{margin:0}h1{letter-spacing:-.045em;font-size:24px;line-height:1.15}h2{letter-spacing:-.025em;font-size:16px}.verified{vertical-align:2px;background:var(--blue);color:#fff;border-radius:50%;place-items:center;width:15px;height:15px;margin-left:3px;display:inline-grid}.header-actions{gap:10px}.round-icon,.back-button{color:#334155;border:1px solid var(--line);background:#fff;border-radius:14px;place-items:center;width:44px;height:44px;display:inline-grid;position:relative}.back-button{border-radius:13px;flex:none}.round-icon i{background:#ef4444;border:1.5px solid #fff;border-radius:99px;width:7px;height:7px;position:absolute;top:8px;right:8px}.avatar{color:#1d4ed8;background:#dbeafe;border:0;border-radius:14px;width:44px;height:44px;font-size:12px;font-weight:800}.avatar.large{border-radius:16px;width:46px;height:46px}.login-shell{padding:18px}.login-frame{background:#fff;border:1px solid #94a3b857;border-radius:34px;flex-direction:column;justify-content:center;gap:24px;width:min(100%,430px);min-height:min(760px,100dvh - 36px);padding:28px 20px;display:flex;box-shadow:0 26px 70px #0f172a2e,0 6px 16px #0f172a1a}.login-brand{text-align:center;justify-items:center;gap:8px;display:grid}.login-brand img{width:min(78%,260px);height:auto;display:block}.login-brand small{color:#64748b;font-size:12px;font-weight:700}.login-form{gap:13px;display:grid}.login-form label{gap:7px;display:grid}.login-form label>span{color:#475569;font-size:11px;font-weight:800}.login-form input{width:100%;min-height:50px;color:var(--ink);background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;outline:0;padding:0 13px;font-size:13px;font-weight:700}.password-field{background:#f8fafc;border:1px solid #cbd5e1;border-radius:14px;grid-template-columns:minmax(0,1fr) 46px;align-items:center;display:grid;overflow:hidden}.password-field input{background:0 0;border:0;border-radius:0}.password-field button{color:#64748b;background:0 0;place-items:center;height:50px;display:grid}.login-error{color:#dc2626;font-size:11px;font-weight:800}.login-button,.logout-button{border-radius:14px;justify-content:center;align-items:center;gap:8px;min-height:48px;font-size:12px;font-weight:900;display:inline-flex}.login-button{color:#fff;background:var(--blue);box-shadow:0 12px 20px #2563eb33}.logout-button{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;width:100%;margin-top:12px}.compact-scroll{scrollbar-width:none;overflow-x:auto}.compact-scroll::-webkit-scrollbar{display:none}.period-row,.filter-row,.category-row{white-space:nowrap;gap:8px;display:flex}.period-row{margin:0 -16px 16px;padding:0 16px}.period-chip,.filter-chip,.category-chip{white-space:nowrap;color:#64748b;border:1px solid var(--line);background:#fff;border-radius:12px;min-height:44px;padding:9px 13px;font-size:12px;font-weight:700}.period-chip.active,.filter-chip.active,.category-chip.active{background:var(--blue);color:#fff;border-color:var(--blue)}.filter-chip b{color:#dc2626;background:#fef2f2;border-radius:6px;margin-left:5px;padding:1px 5px}.filter-chip.active b{color:#fff;background:#ffffff30}.revenue-card{color:#fff;background:linear-gradient(145deg,#1d4ed8,#2563eb 68%,#3b82f6);border-radius:23px;padding:18px;position:relative;overflow:hidden;box-shadow:0 12px 22px #2563eb38}.revenue-card:after{content:"";border:26px solid #ffffff0f;border-radius:50%;width:164px;height:164px;position:absolute;top:-68px;right:-70px}.card-topline{color:#ffffffc2;font-size:12px;font-weight:600}.card-topline button{color:#fff;background:#ffffff21;border-radius:12px;place-items:center;width:44px;height:44px;display:grid}.revenue-card>strong{letter-spacing:-.055em;margin-top:14px;font-size:29px;display:block}.trend-line{color:#dbeafe;justify-content:space-between;align-items:center;margin-top:9px;font-size:11px;font-weight:600;display:flex}.trend-line span{align-items:center;gap:4px;display:flex}.revenue-spark{align-items:end;gap:7px;height:40px;margin-top:14px;display:flex}.revenue-spark span{background:#ffffff54;border-radius:10px 10px 3px 3px;flex:1;min-height:8px}.revenue-spark .latest{background:#fff}.stat-grid{grid-template-columns:1fr 1fr;gap:10px;margin:11px 0 25px;display:grid}.stat-card{border:1px solid var(--line);background:#fff;border-radius:18px;min-width:0;padding:13px}.stat-card>span{background:var(--blue-50);width:34px;height:34px;color:var(--blue);border-radius:11px;place-items:center;margin-bottom:10px;display:grid}.stat-card p{color:var(--muted);font-size:11px;font-weight:600}.stat-card strong{letter-spacing:-.045em;white-space:nowrap;text-overflow:ellipsis;margin:5px 0 2px;font-size:17px;line-height:1.2;display:block;overflow:hidden}.stat-card small{color:#94a3b8;font-size:10px}.section-header{margin-bottom:12px}.section-header p{color:#94a3b8;margin-top:3px;font-size:11px}.text-link{color:var(--blue);background:0 0;font-size:12px;font-weight:800}.top-product-list,.product-list,.invoice-list,.simple-list,.setting-list{gap:9px;display:grid}.top-product{border-bottom:1px solid #e9eef5;grid-template-columns:29px 43px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 0;display:grid}.top-product:last-child{border-bottom:0}.rank{color:#94a3b8;font-size:11px;font-weight:800}.rank-1{color:#d97706}.rank-2{color:#64748b}.top-product-main,.top-product-money{gap:3px;min-width:0;display:grid}.top-product-main strong{white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.top-product-main span,.top-product-money span{color:#94a3b8;font-size:10px}.top-product-money{text-align:right}.top-product-money strong{white-space:nowrap;font-size:11px}.top-product-money span{color:var(--success);justify-content:end;align-items:center;gap:2px;display:flex}.product-visual{background:color-mix(in srgb, var(--device-color) 15%, white);border-radius:16px;flex:none;place-items:center;width:54px;height:64px;display:inline-grid;position:relative;overflow:hidden}.product-visual.compact{border-radius:13px;width:43px;height:43px}.product-visual.large{border-radius:16px;width:100%;height:106px}.product-visual i{background:var(--device-color);border:2px solid #0f172a29;border-radius:9px;width:42%;height:71%;position:relative;box-shadow:inset 0 0 0 1px #ffffff59,0 4px 9px #0f172a29}.product-visual.large i{border-radius:13px;width:31%;height:71%}.product-visual i:before{content:"";background:#ffffff9e;border-radius:999px;width:33%;height:3px;position:absolute;top:5px;left:50%;transform:translate(-50%)}.product-visual b{background:#fffc;border-radius:50%;width:16%;height:16%;position:absolute;transform:translate(-35%,-95%)}.search-box{border:1px solid var(--line);color:#94a3b8;background:#fff;border-radius:14px;align-items:center;gap:9px;height:46px;padding:0 11px;display:flex}.search-box input{min-width:0;color:var(--ink);background:0 0;border:0;outline:0;flex:1;font-size:12px}.search-box input::placeholder{color:#94a3b8}.search-box button{color:#64748b;background:0 0;place-items:center;min-width:44px;min-height:44px;margin-right:-8px;padding:3px;display:grid}.search-box.thin{border-radius:12px;height:42px;margin:13px 0 15px}.filter-row{scrollbar-width:none;margin:12px -16px;padding:0 16px;overflow-x:auto}.summary-line{color:#94a3b8;margin:14px 0 9px;font-size:11px}.summary-line button,.text-link,.merchant-profile button{min-height:44px;color:var(--blue);background:0 0;align-items:center;gap:4px;font-size:11px;font-weight:700;display:flex}.product-row{background:#fff;border:1px solid #e8edf4;border-radius:17px;align-items:center;gap:8px;padding:9px;display:flex}.product-open{min-width:0;min-height:64px;color:var(--ink);text-align:left;background:0 0;flex:1;align-items:center;gap:10px;display:flex}.product-open>svg{color:#94a3b8;flex:none}.product-info{flex:1;min-width:0}.product-name-line{align-items:center;gap:5px;min-width:0;display:flex}.product-name-line strong{white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.product-info small{color:#94a3b8;margin-top:4px;font-size:10px;display:block}.product-meta{gap:6px;margin-top:8px}.product-meta b{letter-spacing:-.02em;font-size:12px}.product-meta span{color:#15803d;background:#f0fdf4;border-radius:7px;padding:3px 5px;font-size:9px;font-weight:700}.product-meta span.low-stock,.low-stock{color:#c2410c;background:#fff7ed}.mini-tag{color:#2563eb;white-space:nowrap;background:#eff6ff;border-radius:6px;padding:3px 5px;font-size:8px;font-weight:800}.add-item{width:44px;height:44px;color:var(--blue);background:var(--blue-50);border-radius:13px;flex:none;place-items:center;display:grid}.fab{color:#fff;background:var(--blue);border-radius:15px;align-items:center;gap:7px;height:47px;padding:0 15px;font-size:12px;font-weight:800;display:flex;position:absolute;bottom:83px;right:16px;box-shadow:0 11px 20px #2563eb52}.phone-frame .page{position:relative}.category-manager{border:1px solid var(--line);background:#fff;border-radius:17px;margin:12px 0 14px;padding:12px}.category-manager-head{justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px;display:flex}.category-manager-head h2{font-size:15px}.category-manager-head p{color:#94a3b8;margin-top:3px;font-size:10px}.category-manager-actions{flex:none;align-items:center;gap:7px;display:flex}.category-manager-actions>button{min-height:44px;color:var(--blue);background:var(--blue-50);border-radius:12px;flex:none;align-items:center;gap:5px;padding:0 10px;font-size:11px;font-weight:800;display:inline-flex}.layout-toggle{border:1px solid var(--line);background:#f1f5f9;border-radius:12px;grid-template-columns:1fr 1fr;gap:3px;min-height:46px;padding:0;display:grid}.layout-toggle button{color:#64748b;background:0 0;border-radius:10px;place-items:center;min-width:44px;min-height:44px;display:grid}.layout-toggle button.active{color:var(--blue);background:#fff;box-shadow:0 1px 3px #0f172a14}.category-manager .category-row{margin:0 -12px 11px;padding:0 12px}.category-card-list{gap:8px;display:grid}.category-card{min-height:56px;color:var(--ink);text-align:left;background:#f8fafc;border:1px solid #e8edf4;border-radius:14px;grid-template-columns:37px minmax(0,1fr) auto 24px;align-items:center;gap:9px;padding:8px;display:grid;position:relative}.category-card>span{width:37px;height:37px;color:var(--category-color);background:color-mix(in srgb, var(--category-color) 12%, white);border-radius:12px;place-items:center;display:grid}.category-card div{gap:3px;min-width:0;display:grid}.category-card strong{font-size:12px}.category-card small{color:#94a3b8;white-space:nowrap;text-overflow:ellipsis;font-size:9px;overflow:hidden}.category-card b{color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:4px 6px;font-size:9px}.category-card em{color:#94a3b8;place-items:center;width:24px;height:24px;font-style:normal;display:grid}.category-card-list.large-icons{grid-template-columns:repeat(2,minmax(0,1fr))}.category-card-list.large-icons .category-card{grid-template-columns:1fr;align-content:start;justify-items:start;gap:7px;min-height:142px;padding:12px}.category-card-list.large-icons .category-card>span{border-radius:15px;width:48px;height:48px}.category-card-list.large-icons .category-card b{margin-top:2px}.category-card-list.large-icons .category-card em{position:absolute;top:12px;right:12px}.pos-search-row{grid-template-columns:1fr 46px;gap:8px;display:grid}.scan-button{background:var(--blue);color:#fff;border-radius:14px;place-items:center;display:grid;box-shadow:0 7px 13px #2563eb33}.scan-button.scanning{background:#0f766e}.scan-hint{color:#0f766e;background:#f0fdfa;border-radius:10px;align-items:center;gap:6px;margin-top:8px;padding:8px 10px;font-size:11px;font-weight:700;display:flex}.category-row{margin:14px -16px 13px;padding:0 16px}.category-chip{padding:9px 14px}.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:24px;display:grid}.pos-product-card{text-align:left;min-width:0;min-height:188px;color:var(--ink);background:#fff;border:1px solid #e8edf4;border-radius:18px;flex-direction:column;gap:5px;padding:8px;display:flex;position:relative;overflow:hidden}.pos-product-card>strong{height:30px;padding-right:25px;font-size:11px;line-height:1.35;overflow:hidden}.pos-product-card>small{color:var(--blue);font-size:12px;font-weight:800}.stock-badge{color:#15803d;background:#f0fdf4;border-radius:7px;padding:4px 6px;font-size:8px;font-weight:800;position:absolute;top:14px;left:14px}.stock-badge.warning{color:#c2410c;background:#fff7ed}.product-add-circle{width:29px;height:29px;color:var(--blue);background:var(--blue-50);border-radius:10px;place-items:center;display:grid;position:absolute;bottom:10px;right:9px}.sale-empty-cart{color:#94a3b8;flex-direction:column;align-items:center;gap:8px;padding:24px 0 0;font-size:11px;display:flex}.inline-view-cart{width:100%;min-height:48px;color:var(--blue);background:var(--blue-50);border-radius:14px;justify-content:center;align-items:center;gap:5px;margin:0 0 9px;font-size:12px;font-weight:800;display:flex}.cart-float{z-index:4;color:#fff;text-align:left;background:#0f172a;border-radius:17px;align-items:center;gap:11px;height:56px;padding:0 13px;display:flex;position:absolute;bottom:75px;left:16px;right:16px;box-shadow:0 15px 28px #0f172a47}.cart-float-icon{background:#ffffff24;border-radius:10px;place-items:center;width:31px;height:31px;display:grid;position:relative}.cart-float-icon b{color:#fff;text-align:center;background:#f97316;border:1px solid #0f172a;border-radius:999px;min-width:16px;height:16px;padding:1px 4px;font-size:8px;position:absolute;top:-6px;right:-7px}.cart-float>span:nth-child(2){flex:1;gap:1px;display:grid}.cart-float strong{font-size:13px}.cart-float small{color:#cbd5e1;font-size:10px}.cart-dot{color:#fff;background:#ef4444;border:2px solid #fff;border-radius:99px;place-items:center;min-width:16px;height:16px;font-size:8px;font-style:normal;display:grid;position:absolute;top:-4px;right:-4px}.invoice-summary{border:1px solid var(--line);background:#fff;border-radius:16px;gap:13px;padding:12px}.invoice-summary>div{flex:1;gap:4px;display:grid}.invoice-summary>div+div{border-left:1px solid var(--line);padding-left:13px}.invoice-summary span{color:#94a3b8;font-size:10px}.invoice-summary strong{letter-spacing:-.03em;font-size:14px}.list-date{color:#94a3b8;text-transform:uppercase;letter-spacing:.03em;align-items:center;gap:5px;margin:0 0 8px;font-size:10px;font-weight:700;display:flex}.invoice-row{text-align:left;width:100%;color:var(--ink);background:#fff;border:1px solid #e8edf4;border-radius:15px;grid-template-columns:37px minmax(0,1fr) auto 15px;align-items:center;gap:8px;padding:10px;display:grid}.receipt-icon{width:37px;height:37px;color:var(--blue);background:var(--blue-50);border-radius:12px;place-items:center;display:grid}.receipt-icon.big{border-radius:15px;width:46px;height:46px}.invoice-main,.invoice-total{gap:4px;min-width:0;display:grid}.invoice-main strong,.invoice-total strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.invoice-main small,.invoice-total small{color:#94a3b8;font-size:9px}.invoice-total{text-align:right}.merchant-card,.account-card{border:1px solid var(--line);background:#fff;border-radius:17px;gap:10px;padding:12px}.merchant-card>div:not(.merchant-logo),.account-card>div:not(.avatar){flex:1;gap:4px;display:grid}.merchant-card strong,.account-card strong{font-size:13px}.merchant-card small,.account-card small{color:#94a3b8;font-size:10px}.merchant-logo{color:#fff;background:var(--blue);border-radius:14px;place-items:center;width:44px;height:44px;display:grid}.merchant-logo.large{border-radius:16px;width:50px;height:50px}.more-grid{grid-template-columns:1fr 1fr;gap:10px;margin:13px 0;display:grid}.more-card{min-height:125px;color:var(--ink);text-align:left;background:#fff;border:1px solid #e8edf4;border-radius:17px;flex-direction:column;align-items:flex-start;padding:12px;display:flex;position:relative}.more-icon{width:35px;height:35px;color:var(--blue);background:var(--blue-50);border-radius:11px;place-items:center;margin-bottom:auto;display:grid}.more-card strong{margin-top:10px;font-size:12px}.more-card small{color:#94a3b8;margin-top:4px;font-size:9px;line-height:1.35}.more-card b{color:#c2410c;background:#fff7ed;border-radius:6px;padding:3px 5px;font-size:8px;position:absolute;top:12px;right:10px}.info-banner{color:#1d4ed8;background:#eff6ff;border-radius:13px;align-items:flex-start;gap:8px;margin-bottom:12px;padding:11px;font-size:11px;line-height:1.45;display:flex}.action-card,.permission-row{text-align:left;width:100%;color:var(--ink);border:1px solid var(--line);background:#fff;border-radius:16px;align-items:center;gap:10px;padding:13px;display:flex}.action-card>span:nth-child(2),.permission-row>span{flex:1;gap:3px;display:grid}.action-card strong,.permission-row strong{font-size:12px}.action-card small,.permission-row small{color:#94a3b8;font-size:10px}.action-icon{color:#fff;background:var(--blue);border-radius:12px;place-items:center;width:37px;height:37px;display:grid}.section-label{color:#94a3b8;letter-spacing:.06em;margin:20px 0 8px;font-size:10px;font-weight:800}.detail-stat-strip{border:1px solid var(--line);background:#fff;border-radius:16px;margin:13px 0;padding:13px}.detail-stat-strip>div{flex:1;gap:5px;display:grid}.detail-stat-strip>div+div{border-left:1px solid var(--line);padding-left:13px}.detail-stat-strip span{color:#94a3b8;font-size:10px}.detail-stat-strip strong{letter-spacing:-.035em;font-size:15px}.success{color:var(--success)!important}.customer-row,.log-row,.staff-row{width:100%;color:var(--ink);text-align:left;background:#fff;border:1px solid #e8edf4;border-radius:15px;align-items:center;gap:10px;padding:10px;display:flex}.customer-row>span:nth-child(2),.log-row>span:nth-child(2),.staff-row>span:nth-child(2){flex:1;gap:4px;display:grid}.customer-row strong,.log-row strong,.staff-row strong{font-size:12px}.customer-row small,.log-row small,.staff-row small{color:#94a3b8;font-size:10px}.customer-avatar{color:#1d4ed8;background:#dbeafe;border-radius:12px;flex:none;place-items:center;width:37px;height:37px;font-size:10px;font-weight:800;display:grid}.customer-avatar.big{border-radius:16px;width:51px;height:51px;font-size:13px}.customer-profile-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;align-items:center;gap:10px;padding:12px;display:flex}.customer-profile-card>div{flex:1;gap:4px;min-width:0;display:grid}.customer-profile-card strong{font-size:13px}.customer-profile-card small{color:#64748b;font-size:10px}.customer-history-row{color:var(--ink);text-align:left;background:#fff;border:1px solid #e8edf4;border-radius:15px;grid-template-columns:38px minmax(0,1fr) auto 17px;align-items:center;gap:9px;padding:10px;display:grid}.customer-history-row>span:nth-child(2){gap:4px;min-width:0;display:grid}.customer-history-row strong{font-size:12px}.customer-history-row small{color:#94a3b8;font-size:10px}.customer-history-row>b{color:var(--blue);font-size:12px}.inventory-hero{color:#fff;background:#0f172a;border-radius:20px;padding:17px}.inventory-hero.rebuilt{background:linear-gradient(145deg,#0f172a,#1e293b);margin-bottom:11px}.inventory-hero div{gap:6px;display:grid}.inventory-hero span{color:#cbd5e1;font-size:11px}.inventory-hero strong{letter-spacing:-.055em;font-size:22px}.inventory-hero small{color:#86efac;align-items:center;gap:4px;font-size:10px;display:flex}.inventory-counters{border:1px solid var(--line);background:#fff;border-radius:16px;justify-content:space-around;gap:3px;margin:10px 0 12px;padding:12px 4px}.inventory-counters.rebuilt{grid-template-columns:repeat(4,1fr);align-items:stretch;gap:6px;padding:8px;display:grid}.inventory-counters>div{color:var(--blue);align-items:center;gap:7px;display:flex}.inventory-counters.rebuilt>div{text-align:center;background:#f8fafc;border-radius:12px;justify-items:center;gap:5px;padding:8px 4px;display:grid}.inventory-counters>div:nth-child(2){color:#d97706}.inventory-counters>div:nth-child(3){color:#dc2626}.inventory-counters span{color:#94a3b8;gap:2px;font-size:9px;display:grid}.inventory-counters b{color:var(--ink);font-size:13px}.inventory-alert-grid{grid-template-columns:1fr 1fr;gap:9px;display:grid}.inventory-alert-grid>div{color:#d97706;background:#fff;border:1px solid #fed7aa;border-radius:15px;align-items:center;gap:9px;padding:11px;display:flex}.inventory-alert-grid>div:nth-child(2){color:#dc2626;border-color:#fecaca}.inventory-alert-grid span{gap:2px;display:grid}.inventory-alert-grid strong{color:var(--ink);font-size:15px}.inventory-alert-grid small{color:#64748b;font-size:10px}.inventory-table{gap:9px;display:grid}.inventory-row{color:var(--ink);text-align:left;background:#fff;border:1px solid #e8edf4;border-radius:15px;grid-template-columns:38px minmax(0,1.2fr) minmax(72px,.5fr) minmax(106px,.65fr) 17px;align-items:center;gap:9px;padding:10px;display:grid}.inventory-row>span{gap:3px;min-width:0;display:grid}.inventory-row strong{overflow-wrap:anywhere;font-size:11px}.inventory-row small{color:#94a3b8;font-size:9px;line-height:1.35}.inventory-row>span:nth-child(3),.inventory-row>span:nth-child(4){text-align:right}.inventory-category-list{border:1px solid var(--line);background:#fff;border-radius:16px;gap:10px;padding:13px;display:grid}.stock-alert{background:#fff;border:1px solid #e8edf4;border-radius:15px;align-items:center;gap:9px;padding:9px;display:flex}.stock-alert>span{flex:1;gap:3px;min-width:0;display:grid}.stock-alert strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.stock-alert small{color:#94a3b8;font-size:9px}.stock-alert>b{border-radius:7px;padding:4px 6px;font-size:9px;font-weight:800}.timeline{gap:4px;padding-left:4px;display:grid;position:relative}.timeline:before{content:"";background:#dbeafe;width:1px;position:absolute;top:21px;bottom:21px;left:22px}.timeline-item{z-index:1;grid-template-columns:37px 1fr auto;align-items:center;gap:10px;padding:10px 0;display:grid}.timeline-icon{width:37px;height:37px;color:var(--blue);background:#fff;border:1px solid #bfdbfe;border-radius:12px;place-items:center;display:grid}.timeline-item div{gap:4px;display:grid}.timeline-item strong{font-size:11px}.timeline-item small,.timeline-item time{color:#94a3b8;font-size:9px}.report-period{border:1px solid var(--line);color:#334155;background:#fff;border-radius:13px;padding:10px 11px;font-size:11px;font-weight:700}.report-period span{flex:1;margin-left:7px}.report-main{border:1px solid var(--line);background:#fff;border-radius:18px;margin-top:12px;padding:15px}.report-main>span{color:#94a3b8;font-size:11px}.report-main>strong{letter-spacing:-.055em;margin:6px 0;font-size:24px;display:block}.report-main>small{align-items:center;gap:4px;font-size:10px;font-weight:700;display:flex}.line-chart{border-bottom:1px solid #e2e8f0;align-items:end;gap:8px;height:130px;padding:18px 4px 0;display:flex}.line-chart span{background:#bfdbfe;border-radius:8px 8px 0 0;flex:1}.line-chart .peak{background:var(--blue)}.chart-labels{color:#94a3b8;justify-content:space-between;margin-top:7px;font-size:9px;display:flex}.category-report{border:1px solid var(--line);background:#fff;border-radius:16px;gap:12px;padding:13px;display:grid}.report-bar{gap:6px;display:grid}.report-bar>div{font-size:11px}.report-bar b{font-size:10px}.report-bar>i{background:#eff6ff;border-radius:999px;height:7px;display:block;overflow:hidden}.report-bar em{border-radius:inherit;background:var(--blue);height:100%;display:block}.rank-report{background:#fff;border:1px solid #e8edf4;border-radius:15px;grid-template-columns:26px 1fr auto;align-items:center;gap:8px;padding:10px;display:grid}.rank-report>b{width:25px;height:25px;color:var(--blue);background:var(--blue-50);border-radius:8px;place-items:center;font-size:11px;display:grid}.rank-report span{gap:3px;display:grid}.rank-report strong{font-size:11px}.rank-report small{color:#94a3b8;font-size:9px}.staff-highlight{color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-radius:17px;align-items:center;gap:11px;padding:13px;display:flex}.staff-highlight div{flex:1;gap:3px;display:grid}.staff-highlight span:not(.customer-avatar){color:#3b82f6;font-size:10px}.staff-highlight strong{font-size:14px}.staff-highlight small{color:#475569;font-size:10px}.staff-row>span:nth-child(3){text-align:right;gap:4px;display:grid}.staff-row>span:nth-child(3) strong{color:#0f172a}.staff-row>span:nth-child(3) .success{color:#16a34a}.primary-button,.secondary-button,.ghost-button,.checkout-button{border-radius:14px;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:0 14px;font-size:12px;font-weight:800;display:inline-flex}.primary-button{color:#fff;background:var(--blue);box-shadow:0 8px 14px #2563eb2e}.secondary-button{color:var(--blue);background:var(--blue-50);border:1px solid #bfdbfe}.ghost-button{color:#64748b;background:0 0}.full{width:100%;margin-bottom:10px}.permission-row{margin-top:4px}.user-detail-hero{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;align-items:center;gap:10px;padding:12px;display:flex}.user-detail-hero>div{flex:1;gap:4px;min-width:0;display:grid}.user-detail-hero strong{font-size:13px}.user-detail-hero small{color:#94a3b8;font-size:10px}.user-status{color:#b45309;background:#fffbeb;border-radius:8px;padding:5px 7px;font-size:9px}.user-status.active{color:#15803d;background:#dcfce7}.permission-list{gap:8px;display:grid}.permission-list.editor{margin-bottom:12px}.permission-item{width:100%;color:var(--ink);text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:14px;align-items:flex-start;gap:9px;padding:10px;display:flex}.permission-item>span{color:#94a3b8;background:#f1f5f9;border-radius:9px;flex:none;place-items:center;width:26px;height:26px;display:grid}.permission-item.allowed>span{color:#fff;background:var(--blue)}.permission-item>div{gap:3px;min-width:0;display:grid}.permission-item strong{font-size:12px}.permission-item small{color:#64748b;font-size:10px;line-height:1.35}.user-role-row{flex-wrap:wrap;gap:8px;display:flex}.user-role-row button{color:#64748b;background:#f8fafc;border:1px solid #cbd5e1;border-radius:11px;min-height:38px;padding:0 11px;font-size:11px;font-weight:800}.user-role-row button.active{color:#fff;background:var(--blue);border-color:var(--blue)}.user-role-row button.danger{background:#dc2626;border-color:#dc2626}.merchant-profile{border:1px solid var(--line);background:#fff;border-radius:17px;padding:13px}.merchant-profile>div:nth-child(2){flex:1;gap:4px;display:grid}.merchant-profile strong{font-size:13px}.merchant-profile small{color:#94a3b8;font-size:10px}.merchant-profile button{color:var(--blue);background:0 0;font-size:11px;font-weight:800}.setting-list{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.setting-row{color:#475569;border-bottom:1px solid #edf1f5;gap:12px;min-height:48px;padding:0 12px;font-size:11px}.setting-row:last-child{border-bottom:0}.setting-row>span{flex:1}.setting-row b{text-align:right;color:#0f172a;justify-content:end;align-items:center;gap:5px;max-width:58%;font-size:10px;font-weight:600;display:flex}.toggle{background:var(--blue);border-radius:99px;width:44px;height:28px;padding:3px;position:relative}.toggle i{background:#fff;border-radius:50%;width:22px;height:22px;margin-left:auto;display:block;box-shadow:0 1px 2px #0f172a33}.printer-status{border:1px solid var(--line);background:#fff;border-radius:18px;gap:10px;margin-bottom:10px;padding:14px}.printer-status.connected{background:#f0fdf4;border-color:#bbf7d0}.printer-status-icon{color:#475569;background:#f1f5f9;border-radius:13px;place-items:center;width:43px;height:43px;display:grid}.printer-status.connected .printer-status-icon{color:#15803d;background:#dcfce7}.printer-status>div{flex:1;gap:4px;display:grid}.printer-status strong{font-size:12px}.printer-status small{color:#94a3b8;font-size:10px}.status-dot{background:#cbd5e1;border-radius:50%;width:9px;height:9px}.status-dot.on{background:#22c55e;box-shadow:0 0 0 4px #22c55e24}.print-preview{justify-content:center;margin:17px 0 8px;display:flex}.print-paper{color:#1e293b;text-align:center;background:#fff;border:1px dashed #cbd5e1;gap:6px;width:78%;padding:16px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;display:grid;box-shadow:0 10px 20px #0f172a12}.print-paper strong{font-size:12px}.print-paper small{color:#64748b;font-size:8px}.print-paper hr{border:0;border-top:1px dashed #cbd5e1;width:100%}.print-paper span{color:#475569;text-align:left;justify-content:space-between;gap:4px;font-size:8px;display:flex}.print-paper>strong:last-of-type{text-align:left;justify-content:space-between;display:flex}.bottom-nav{z-index:5;height:calc(68px + env(safe-area-inset-bottom));padding:8px 7px max(8px, env(safe-area-inset-bottom));border-top:1px solid var(--line);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);background:#fffffff5;grid-template-columns:repeat(5,1fr);display:grid;position:absolute;bottom:0;left:0;right:0}.bottom-nav button{color:#94a3b8;background:0 0;align-content:center;place-items:center;gap:3px;font-size:8px;font-weight:700;display:grid;position:relative}.bottom-nav button.active{color:var(--blue)}.bottom-nav button.active:before{content:"";background:var(--blue);border-radius:0 0 5px 5px;width:23px;height:3px;position:absolute;top:-8px}.bottom-nav .sale-dot{background:#f97316;border-radius:50%;width:5px;height:5px;position:absolute;top:1px;right:16px}.sheet-layer{z-index:10;justify-content:center;align-items:end;display:flex;position:fixed;inset:0}.sheet-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a7a;position:absolute;inset:0}.sheet{z-index:1;scrollbar-width:none;background:#fff;border-radius:27px 27px 0 0;width:min(100%,430px);max-height:min(84dvh,760px);position:relative;overflow-y:auto;box-shadow:0 -14px 38px #0f172a33}.sheet::-webkit-scrollbar{display:none}.sheet-handle{background:#cbd5e1;border-radius:99px;width:40px;height:4px;margin:9px auto 2px}.sheet-header{border-bottom:1px solid #eef2f6;padding:10px 16px 13px}.sheet-header h2{font-size:18px}.sheet-content{padding:14px 16px calc(20px + env(safe-area-inset-bottom))}.customer-select,.invoice-detail-customer{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;align-items:center;gap:9px;padding:9px;display:flex}.customer-select{width:100%;min-height:57px;color:var(--ink);text-align:left}.customer-select.open{background:#eff6ff;border-color:#93c5fd}.customer-select>svg{transition:transform .18s}.customer-select.open>svg{transform:rotate(90deg)}.customer-select>span:nth-child(2),.invoice-detail-customer>span:nth-child(2){flex:1;gap:3px;display:grid}.customer-select strong,.invoice-detail-customer strong{font-size:12px}.customer-select small,.invoice-detail-customer small{color:#94a3b8;font-size:9px}.cart-customer-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;gap:10px;margin:9px 0 13px;padding:10px;display:grid}.customer-mode-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.customer-mode-row button{color:#64748b;background:#fff;border:1px solid #e2e8f0;border-radius:12px;justify-content:center;align-items:center;gap:6px;min-height:44px;font-size:11px;font-weight:800;display:inline-flex}.customer-mode-row button.active{color:var(--blue);background:var(--blue-50);border-color:#93c5fd}.search-box.compact{background:#fff;min-height:44px;margin:0}.customer-pick-list{scrollbar-width:none;gap:7px;max-height:216px;display:grid;overflow-y:auto}.customer-pick-list::-webkit-scrollbar{display:none}.customer-pick-list button{min-height:54px;color:var(--ink);text-align:left;background:#fff;border:1px solid #e8edf4;border-radius:13px;align-items:center;gap:9px;padding:8px;display:flex}.customer-pick-list button.selected{background:#eff6ff;border-color:#93c5fd}.customer-pick-list button>span:nth-child(2){flex:1;gap:3px;min-width:0;display:grid}.customer-pick-list strong{font-size:12px}.customer-pick-list small{color:#64748b;font-size:10px}.cart-customer-form{display:grid}.cart-lines{gap:10px;margin:13px 0;display:grid}.cart-line{grid-template-columns:43px minmax(0,1fr) auto;align-items:start;gap:8px;display:grid}.cart-line>div:nth-child(2){gap:4px;min-width:0;display:grid}.cart-line>div:nth-child(2)>strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.cart-line small{color:#94a3b8;font-size:10px}.cart-line>strong{justify-items:end;gap:3px;min-width:78px;padding-top:1px;font-size:11px;display:grid}.cart-line>strong small{color:#16a34a;font-size:10px;font-weight:800}.qty-control{align-items:center;gap:8px;margin-top:2px;display:flex}.qty-control button{color:#475569;background:#f1f5f9;border-radius:12px;place-items:center;width:44px;height:44px;display:grid}.qty-control b{text-align:center;min-width:14px;font-size:11px}.line-discount-field{grid-template-columns:auto minmax(0,120px);align-items:center;gap:8px;margin-top:4px;display:grid}.line-discount-field span{color:#64748b;font-size:10px;font-weight:800}.line-discount-field input{width:100%;min-height:36px;color:var(--ink);text-align:right;background:#f8fafc;border:1px solid #cbd5e1;border-radius:11px;outline:0;padding:0 9px;font-size:11px;font-weight:800}.add-note{min-height:44px;color:var(--blue);background:0 0;align-items:center;gap:5px;margin:4px 0 12px;padding:0;font-size:11px;font-weight:800;display:flex}.order-note-box{background:#f8fafc;border:1px solid #dbeafe;border-radius:14px;gap:8px;margin:6px 0 13px;padding:10px;display:grid}.order-note-box>div{justify-content:space-between;align-items:center;display:flex}.order-note-box span{color:#475569;font-size:11px;font-weight:800}.order-note-box button{color:#64748b;background:#fff;border:1px solid #e2e8f0;border-radius:10px;place-items:center;width:30px;height:30px;display:grid}.order-note-box textarea{resize:vertical;width:100%;min-height:78px;color:var(--ink);background:#fff;border:1px solid #cbd5e1;border-radius:12px;outline:0;padding:10px;font-size:12px;line-height:1.45}.order-note-box small,.internal-note-view small{color:#64748b;font-size:10px;line-height:1.35}.internal-note-view{background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px;gap:5px;margin:12px 0;padding:10px;display:grid}.internal-note-view strong{color:#334155;font-size:11px}.internal-note-view p{color:var(--ink);white-space:pre-wrap;margin:0;font-size:12px;line-height:1.45}.cart-summary{border-top:1px dashed #cbd5e1;border-bottom:1px dashed #cbd5e1;gap:9px;padding:12px 0;display:grid}.cart-summary>span,.cart-summary>strong{justify-content:space-between}.cart-summary small{color:#64748b;font-size:11px}.cart-summary b{font-size:11px}.cart-summary .discount{color:#16a34a}.cart-summary>strong{margin-top:3px;font-size:13px}.cart-summary>strong b{color:var(--blue);letter-spacing:-.045em;font-size:18px}.cart-summary.simple{margin:14px 0}.payment-options{grid-template-columns:repeat(4,1fr);gap:8px;margin:13px 0;display:grid}.payment-options button{color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px;align-content:center;place-items:center;gap:4px;min-height:64px;padding:6px;font-size:9px;font-weight:700;display:grid;position:relative}.payment-options button.selected{color:var(--blue);background:#eff6ff;border-color:#93c5fd}.payment-options button>svg:last-child{position:absolute;top:6px;right:6px}.split-payment-panel{background:#f8fafc;border:1px solid #dbeafe;border-radius:14px;gap:8px;margin:-2px 0 13px;padding:10px;display:grid}.split-payment-row{opacity:.54;grid-template-columns:32px minmax(0,1fr) minmax(0,132px);align-items:center;gap:8px;display:grid}.split-payment-row.selected{opacity:1}.split-check{color:#fff;background:#fff;border:1px solid #cbd5e1;border-radius:10px;place-items:center;width:32px;height:32px;display:grid}.split-payment-row.selected .split-check{background:var(--blue);border-color:var(--blue)}.split-payment-row>span{color:#475569;align-items:center;gap:7px;min-width:0;font-size:11px;display:flex}.split-payment-row>span strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.split-payment-row input{width:100%;min-height:38px;color:var(--ink);text-align:right;background:#fff;border:1px solid #cbd5e1;border-radius:11px;outline:0;padding:0 10px;font-size:11px;font-weight:800}.split-payment-row input:disabled{color:#94a3b8;background:#f1f5f9}.split-payment-panel>small{text-align:right;font-size:10px;font-weight:800}.split-ok{color:#16a34a}.split-warning{color:#dc2626}.checkout-button{color:#fff;background:var(--blue);justify-content:space-between;width:100%;padding:0 15px;box-shadow:0 10px 16px #2563eb38}.checkout-button:disabled{opacity:.55;box-shadow:none}.checkout-button strong{font-size:15px}.product-image-upload{color:#64748b;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:17px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:111px;margin-bottom:14px;font-size:11px;font-weight:700;display:flex}.product-image-upload .product-visual.large{width:112px}.form-field{gap:6px;margin-bottom:12px;display:grid}.form-field>span{color:#475569;font-size:11px;font-weight:700}.form-field>span b{color:#dc2626}.form-field .field-error{color:#dc2626;font-size:10px;font-weight:700}.form-field .field-hint{color:#64748b;font-size:10px;line-height:1.45}.form-field input,.form-field select,.form-field textarea,.select-look{width:100%;min-height:44px;color:var(--ink);text-align:left;background:#fff;border:1px solid #cbd5e1;border-radius:12px;outline:0;padding:0 11px;font-size:12px}.form-field select{appearance:none;background-image:linear-gradient(45deg,#0000 50%,#64748b 50%),linear-gradient(135deg,#64748b 50%,#0000 50%);background-position:calc(100% - 16px) 19px,calc(100% - 11px) 19px;background-repeat:no-repeat;background-size:5px 5px,5px 5px;padding-right:30px}.form-field textarea{resize:vertical;min-height:84px;padding:10px 11px;line-height:1.45}.select-look{color:#94a3b8;justify-content:space-between;align-items:center;display:flex}.select-look.selected{color:var(--ink);background:#eff6ff;border-color:#93c5fd}.inventory-mode-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.inventory-mode-row button{color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px;justify-content:center;align-items:center;gap:6px;min-height:48px;font-size:11px;font-weight:800;display:inline-flex}.inventory-mode-row button.active{color:var(--blue);background:var(--blue-50);border-color:#93c5fd}.category-option-list{background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px;gap:7px;padding:8px;display:grid}.category-option-list button{min-height:44px;color:var(--ink);text-align:left;background:#fff;border:1px solid #e8edf4;border-radius:12px;align-items:center;gap:9px;padding:0 9px;display:flex}.category-option-list button>span{background:var(--category-color);border-radius:6px;width:17px;height:17px}.category-option-list strong{flex:1;font-size:12px}.category-option-list .create-category-inline{color:var(--blue);background:var(--blue-50);border-color:#bfdbfe;justify-content:center;font-weight:800}.color-swatch-row{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.color-swatch-row button{color:#fff;background:var(--category-color);border:2px solid #0000;border-radius:13px;place-items:center;min-height:44px;display:grid}.color-swatch-row button.active{border-color:#0f172a;box-shadow:inset 0 0 0 2px #ffffffd9}.form-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}.toast{border-radius:11px;align-items:center;gap:7px;margin:6px 0 11px;padding:10px;font-size:11px;font-weight:700;display:flex}.success-toast{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0}.error-toast{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.stock-in-draft,.stock-in-lines{gap:9px;display:grid}.stock-in-draft{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;margin:4px 0 12px;padding:11px}.stock-product-search{border-color:#cbd5e1;margin:0}.stock-in-line,.stock-in-detail-line{background:#fff;border:1px solid #e8edf4;border-radius:14px;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px;display:grid}.stock-in-detail-line{grid-template-columns:minmax(0,1fr) auto}.stock-in-line>span,.stock-in-detail-line>span{gap:4px;min-width:0;display:grid}.stock-in-line strong,.stock-in-detail-line strong{font-size:12px}.stock-in-line small,.stock-in-detail-line small{color:#64748b;overflow-wrap:anywhere;font-size:10px;line-height:1.4}.stock-in-line b,.stock-in-detail-line b{color:var(--blue);white-space:nowrap;font-size:12px}.stock-in-line button{color:#dc2626;background:#fef2f2;border-radius:10px;place-items:center;width:32px;height:32px;display:grid}.stock-in-summary{margin:12px 0}.product-detail-hero{border:1px solid var(--line);background:#f8fafc;border-radius:18px;align-items:center;gap:12px;padding:12px;display:flex}.product-detail-hero .product-visual.large{flex:0 0 96px;width:96px;height:96px}.product-detail-hero>div{gap:5px;min-width:0;display:grid}.product-detail-hero strong{font-size:17px;line-height:1.25}.product-detail-hero small{color:#64748b;font-size:11px}.category-detail-hero{color:#0f172a;background:color-mix(in srgb, var(--category-color) 12%, white);border:1px solid color-mix(in srgb, var(--category-color) 25%, white);border-radius:18px;align-items:center;gap:12px;padding:14px;display:flex}.category-detail-hero>span{color:#fff;background:var(--category-color);border-radius:17px;flex:none;place-items:center;width:54px;height:54px;display:grid}.category-detail-hero div{gap:4px;min-width:0;display:grid}.category-detail-hero strong{font-size:18px}.category-detail-hero small{color:#475569;font-size:11px;line-height:1.45}.category-stats{gap:0}.category-stats>div+div{padding-left:10px}.category-detail-actions{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px;display:grid}.danger-button{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:14px;justify-content:center;align-items:center;gap:7px;min-height:46px;padding:0 14px;font-size:12px;font-weight:800;display:inline-flex}.delete-confirm{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:14px;grid-template-columns:22px minmax(0,1fr) minmax(0,1fr);gap:8px;margin:0 0 12px;padding:11px;display:grid}.delete-confirm>span{grid-column:2/4;gap:3px;display:grid}.delete-confirm strong{font-size:12px}.delete-confirm small{color:#b45309;font-size:10px;line-height:1.4}.delete-confirm button{border-radius:12px;min-height:44px;font-size:12px;font-weight:800}.delete-confirm button:first-of-type{color:#fff;background:#dc2626;grid-column:2/3}.delete-confirm button:nth-of-type(2){color:#64748b;background:#fff;border:1px solid #fecaca;grid-column:3/4}.category-product-row{background:#fff;border:1px solid #e8edf4;border-radius:15px;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;display:grid}.category-product-row>span{gap:4px;min-width:0;display:grid}.category-product-row strong{white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.category-product-row small{color:#94a3b8;font-size:9px}.category-product-row b{color:var(--blue);white-space:nowrap;font-size:11px}.imei-cost-row{color:var(--ink);background:#fff;border:1px solid #e8edf4;border-radius:15px;align-items:center;gap:10px;padding:10px;display:flex}.imei-cost-row span{flex:1;gap:4px;min-width:0;display:grid}.imei-cost-row strong{font-size:12px}.imei-cost-row small{color:#94a3b8;font-size:10px}.imei-cost-row b{color:var(--blue);white-space:nowrap;font-size:12px}.imei-cost-row.sold{opacity:.7}.imei-cost-row.sold b{color:#64748b}.empty-category{color:#94a3b8;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;place-items:center;gap:8px;min-height:112px;font-size:11px;font-weight:700;display:grid}.invoice-detail-header{align-items:center;gap:9px;display:flex}.invoice-detail-header>div{flex:1;gap:4px;display:grid}.invoice-detail-header strong{font-size:12px}.invoice-detail-header small{color:#94a3b8;font-size:9px}.paid-pill{color:#15803d;background:#dcfce7;border-radius:7px;padding:4px 6px;font-size:8px}.invoice-detail-customer{margin:14px 0}.receipt-items{gap:9px;display:grid}.receipt-items span{color:#475569;justify-content:space-between;gap:9px;display:flex}.receipt-items small{font-size:11px}.receipt-items b{color:#0f172a;font-size:11px}.sale-bill{color:#0f172a;background:#fff;border:1px solid #dbeafe;border-radius:16px;gap:13px;padding:14px;display:grid;box-shadow:0 10px 24px #0f172a0f}.bill-store,.bill-title{text-align:center;justify-items:center;gap:3px;display:grid}.bill-store img{width:min(68%,190px);height:auto;margin-bottom:6px;display:block}.bill-store strong{font-size:17px}.bill-store small,.bill-meta small,.bill-item small,.bill-total small,.bill-thanks{color:#64748b;font-size:10px}.bill-title{border-top:1px dashed #cbd5e1;border-bottom:1px dashed #cbd5e1;padding:10px 0}.bill-title h2{letter-spacing:0;font-size:15px}.bill-title span{color:var(--blue);font-size:11px;font-weight:900}.bill-meta{grid-template-columns:1fr 1fr;gap:8px 12px;display:grid}.bill-meta span{gap:3px;min-width:0;display:grid}.bill-meta .wide{grid-column:1/-1}.bill-meta b{overflow-wrap:anywhere;font-size:11px}.bill-items{gap:8px;padding-top:2px;display:grid}.bill-items-head,.bill-item{grid-template-columns:minmax(0,1fr) 34px 94px;align-items:start;gap:8px;display:grid}.bill-items-head{color:#64748b;border-bottom:1px solid #e2e8f0;padding-bottom:6px;font-size:10px;font-weight:900}.bill-items-head span:nth-child(2),.bill-item>b{text-align:center}.bill-items-head span:last-child,.bill-item>strong{text-align:right}.bill-item{border-bottom:1px dashed #e2e8f0;padding-bottom:7px}.bill-item span{gap:3px;min-width:0;display:grid}.bill-item span strong,.bill-item>b,.bill-item>strong{font-size:11px}.bill-total{gap:8px;padding-top:2px;display:grid}.bill-total span,.bill-total strong{justify-content:space-between;gap:10px;display:flex}.bill-total>span b{color:#0f172a;font-size:11px}.bill-total>span:nth-child(2) b{color:#16a34a}.bill-total strong{border-top:1px dashed #cbd5e1;padding-top:9px;font-size:13px}.bill-total strong b{color:var(--blue);font-size:19px}.bill-thanks{text-align:center;margin:0;line-height:1.4}.success-actions{gap:9px;margin-top:14px}.success-actions>*{flex:1}@media (width<=560px){.app-shell{background:var(--soft);padding:0}.phone-frame{width:100%;height:100dvh;min-height:100dvh;box-shadow:none;border:0;border-radius:0}.sheet{width:100%}}

/* dashboard-redesign.css */
.hd-home-redesigned {
  background: #fff;
  padding: 0 17px 24px;
}

.hd-home-redesign-pending {
  visibility: hidden !important;
}

.hd-home-redesigned > :not(.hd-home-v2) {
  display: none !important;
}

.hd-home-v2 {
  color: #0b1220;
  display: grid;
  gap: 12px;
}

.hd-home-v2 * {
  box-sizing: border-box;
}

.hd-home-v2 button {
  font: inherit;
}

.hd-home-status {
  align-items: center;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: space-between;
  letter-spacing: .01em;
  padding: 2px 3px 6px;
}

.hd-home-status span:last-child {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.hd-signal {
  align-items: end;
  display: inline-flex;
  gap: 2px;
  height: 13px;
}

.hd-signal i {
  background: #0b1220;
  border-radius: 2px;
  display: block;
  width: 3px;
}

.hd-signal i:nth-child(1) { height: 5px; }
.hd-signal i:nth-child(2) { height: 8px; }
.hd-signal i:nth-child(3) { height: 11px; }

.hd-wifi {
  border: 3px solid #0b1220;
  border-bottom: 0;
  border-left-color: transparent;
  border-radius: 12px 12px 0 0;
  height: 10px;
  position: relative;
  width: 17px;
}

.hd-wifi:after {
  background: #0b1220;
  border-radius: 50%;
  bottom: -5px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 4px;
}

.hd-battery {
  border: 2px solid #0b1220;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
  padding: 2px 4px;
  position: relative;
}

.hd-battery:after {
  background: #0b1220;
  border-radius: 0 2px 2px 0;
  content: "";
  height: 7px;
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
}

.hd-home-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) 46px;
  padding: 2px 1px 4px;
}

.hd-app-logo {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  box-shadow: 0 7px 16px rgba(15, 35, 68, .12);
  display: grid;
  height: 42px;
  overflow: hidden;
  place-items: center;
  width: 42px;
}

.hd-app-logo img {
  display: block;
  height: 34px;
  object-fit: contain;
  width: 36px;
}

.hd-home-head h1 {
  color: #0f2344;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.hd-home-title {
  min-width: 0;
}

.hd-home-title strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-home-head small {
  align-items: center;
  color: #374151;
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 7px;
}

.hd-home-bell {
  background: #fff;
  border-radius: 15px;
  color: #1f2937;
  display: grid;
  height: 44px;
  place-items: center;
  position: relative;
  width: 44px;
}

.hd-home-bell b {
  background: #ef4444;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  min-width: 20px;
  padding: 3px 5px;
  position: absolute;
  right: 1px;
  top: 1px;
}

.hd-notification-wrap {
  position: relative;
}

.hd-notification-popover {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .18);
  display: none;
  min-width: 295px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 30;
}

.hd-notification-popover.open {
  display: block;
}

.hd-notification-head {
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  display: flex;
  justify-content: space-between;
  padding: 12px 13px;
}

.hd-notification-head strong {
  color: #101828;
  font-size: 14px;
  font-weight: 900;
}

.hd-notification-head button {
  background: #f1f5f9;
  border-radius: 10px;
  color: #475467;
  display: grid;
  font-size: 19px;
  font-weight: 800;
  height: 30px;
  line-height: 1;
  place-items: center;
  width: 30px;
}

.hd-notification-list {
  display: grid;
  max-height: 340px;
  overflow: auto;
}

.hd-notification-row {
  align-items: center;
  border-bottom: 1px solid #edf1f6;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.hd-notification-row:last-child {
  border-bottom: 0;
}

.hd-notification-icon {
  background: #e7f0ff;
  border-radius: 12px;
  color: #1262f4;
  display: grid;
  font-size: 15px;
  font-weight: 950;
  height: 38px;
  place-items: center;
  width: 38px;
}

.hd-notification-icon.stock {
  background: #fff1df;
  color: #f97316;
}

.hd-notification-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hd-notification-main strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-notification-main small,
.hd-notification-row time {
  color: #667085;
  font-size: 11px;
}

.hd-notification-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-notification-row time {
  max-width: 78px;
  text-align: right;
}

.hd-notification-empty {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  padding: 20px 12px;
  text-align: center;
}

.hd-revenue-panel {
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, .22), transparent 28%),
    linear-gradient(145deg, #0d62ff, #2367f2 55%, #0b5ae8);
  border-radius: 18px;
  box-shadow: 0 13px 28px rgba(37, 99, 235, .29);
  color: #fff;
  min-height: 214px;
  overflow: hidden;
  padding: 18px 15px;
  position: relative;
}

.hd-revenue-panel > span {
  display: block;
  font-size: 16px;
  font-weight: 700;
  opacity: .92;
}

.hd-revenue-panel > strong {
  display: block;
  font-size: clamp(31px, 8vw, 42px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.05;
  margin-top: 12px;
}

.hd-profit-secret {
  align-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  display: inline-grid;
  gap: 8px;
  grid-template-columns: auto auto 34px;
  margin-top: 10px;
  max-width: 100%;
  padding: 7px 8px 7px 11px;
  position: relative;
  z-index: 2;
}

.hd-profit-secret span {
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
}

.hd-profit-secret b {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.hd-profit-secret button {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border: 0;
  border-radius: 10px;
  color: #fff;
  display: flex;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.hd-revenue-trend {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  max-width: 62%;
  position: relative;
  z-index: 2;
}

.hd-revenue-trend b {
  color: #9cff67;
  font-size: 15px;
}

.hd-revenue-trend.down b {
  color: #fecaca;
}

.hd-revenue-trend small {
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  line-height: 1.35;
}

.hd-revenue-time {
  align-items: center;
  color: rgba(255, 255, 255, .9);
  display: flex;
  font-size: 12px;
  gap: 7px;
  margin-top: 13px;
  position: relative;
  z-index: 2;
}

.hd-chart-icon {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  display: grid;
  height: 46px;
  place-items: center;
  position: absolute;
  right: 15px;
  top: 16px;
  width: 46px;
}

.hd-chart {
  bottom: 0;
  height: 123px;
  opacity: .72;
  position: absolute;
  right: 10px;
  width: 164px;
}

.hd-chart .bar {
  background: rgba(255, 255, 255, .14);
  border-radius: 6px 6px 0 0;
  bottom: 0;
  position: absolute;
  width: 18px;
}

.hd-chart svg {
  bottom: 18px;
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .16));
  left: 0;
  position: absolute;
}

.hd-periods {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 17px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .07);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px;
}

.hd-periods button {
  background: transparent;
  border-radius: 14px;
  color: #586174;
  min-height: 42px;
  padding: 0 4px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.hd-periods button.active {
  background: #1162f6;
  box-shadow: 0 7px 14px rgba(17, 98, 246, .25);
  color: #fff;
}

.hd-stat-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hd-mini-stat {
  align-content: start;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  box-shadow: 0 9px 19px rgba(15, 23, 42, .07);
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 142px;
  overflow: hidden;
  padding: 14px 76px 13px 16px;
  position: relative;
}

.hd-mini-stat i {
  align-items: center;
  background: #dbeafe;
  border-radius: 15px;
  color: #1262f4;
  display: flex;
  font-style: normal;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.hd-mini-stat.revenue i {
  background: #eef6ff;
  color: #2563eb;
}

.hd-mini-stat.profit i {
  background: #dcfce7;
  color: #16a34a;
}

.hd-mini-stat.sold i {
  background: #ffedd5;
  color: #f59e0b;
}

.hd-mini-stat.orders i {
  background: #f3e8ff;
  color: #7c3aed;
}

.hd-mini-stat span {
  color: #5d6678;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.hd-mini-stat strong {
  color: #050b16;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-mini-stat em {
  align-items: center;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
  gap: 4px;
  line-height: 1.25;
}

.hd-mini-stat em b {
  color: #111827;
  font-weight: 900;
}

.hd-mini-stat em i {
  background: transparent;
  color: #cbd5e1;
  display: inline;
  height: auto;
  width: auto;
}

.hd-mini-stat small {
  align-items: center;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 3px;
  line-height: 1.35;
}

.hd-mini-stat small b {
  color: #16a34a;
  display: inline;
  font-size: 12px;
  margin: 0;
}

.hd-mini-stat small.down b {
  color: #dc2626;
}

.hd-stat-spark {
  bottom: 14px;
  position: absolute;
  right: 12px;
}

.hd-board {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  box-shadow: 0 9px 20px rgba(15, 23, 42, .07);
  padding: 14px 12px;
}

.hd-board-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.hd-board-head h2 {
  color: #101828;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.hd-board-head button {
  background: transparent;
  color: #1262f4;
  font-size: 13px;
  font-weight: 800;
}

.hd-product-list,
.hd-activity-list {
  display: grid;
}

.hd-product-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 35px 44px minmax(0, 1fr) auto;
  padding: 7px 0;
}

.hd-rank {
  background: #e8f0ff;
  border-radius: 10px;
  color: #1262f4;
  display: grid;
  font-size: 15px;
  font-weight: 900;
  height: 35px;
  place-items: center;
  width: 35px;
}

.hd-product-row:nth-child(3) .hd-rank {
  background: #fff1df;
  color: #f97316;
}

.hd-product-row:nth-child(4) .hd-rank {
  background: #eef0f5;
  color: #667085;
}

.hd-thumb {
  background: #f1f5f9;
  border-radius: 10px;
  display: grid;
  height: 44px;
  place-items: center;
  width: 44px;
}

.hd-product-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hd-product-main strong {
  color: #111827;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-progress {
  background: #e1e5ee;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.hd-progress i {
  background: linear-gradient(90deg, #1262f4, #0f6bff);
  border-radius: inherit;
  display: block;
  height: 100%;
}

.hd-product-money {
  display: grid;
  gap: 3px;
  text-align: right;
}

.hd-product-money b {
  color: #1262f4;
  font-size: 15px;
  white-space: nowrap;
}

.hd-product-money small {
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}

.hd-activity-row {
  appearance: none;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 10px;
  grid-template-columns: 43px minmax(0, 1fr) auto 16px;
  min-height: 64px;
  padding: 8px 0;
  text-align: left;
  width: 100%;
}

.hd-activity-row:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.hd-activity-row:active {
  background: #f8fafc;
}

@media (hover: hover) {
  .hd-activity-row:hover {
    background: #f8fafc;
  }
}

.hd-activity-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hd-activity-icon {
  background: #e7f0ff;
  border-radius: 13px;
  color: #1262f4;
  display: grid;
  height: 43px;
  place-items: center;
  width: 43px;
}

.hd-activity-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hd-activity-main strong {
  color: #111827;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hd-activity-main small {
  color: #667085;
  font-size: 12px;
}

.hd-activity-money {
  display: grid;
  gap: 6px;
  text-align: right;
}

.hd-activity-money time {
  color: #667085;
  font-size: 12px;
}

.hd-activity-money b {
  color: #16a34a;
  font-size: 13px;
  white-space: nowrap;
}

.hd-empty {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  padding: 18px 6px;
  text-align: center;
}

.product-page .fab {
  align-items: center !important;
  background: #2563eb !important;
  border-radius: 999px !important;
  bottom: 86px !important;
  box-shadow: 0 14px 26px rgba(37, 99, 235, .34) !important;
  color: #fff !important;
  display: grid !important;
  height: 56px !important;
  justify-content: center !important;
  left: auto !important;
  padding: 0 !important;
  position: fixed !important;
  right: max(16px, calc(50% - 199px)) !important;
  width: 56px !important;
  z-index: 20 !important;
}

body:has(.sheet-layer) .product-page .fab {
  display: none !important;
}

.product-page .fab span {
  display: none !important;
}

.product-page .fab svg {
  height: 27px !important;
  width: 27px !important;
}

.product-page .product-row .add-item {
  display: none !important;
}

.product-page .product-info > small:last-child {
  display: none !important;
}

.product-info > small:first-of-type,
.product-detail-hero small {
  align-items: center;
  display: flex !important;
  gap: 7px;
}

.product-sku-color {
  background: var(--product-color, #fff);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px #ffffff80;
  display: inline-flex;
  flex: 0 0 auto;
  height: 11px;
  width: 11px;
}

.color-swatch-row button[style*="#FFFFFF"],
.color-swatch-row button[aria-label*="#FFFFFF"] {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.color-swatch-row button[style*="#FFFFFF"].active,
.color-swatch-row button[aria-label*="#FFFFFF"].active {
  border-color: #0f172a !important;
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #cbd5e1 !important;
}

.custom-color-picker {
  align-items: center;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 13px;
  color: #2563eb;
  cursor: pointer;
  display: grid;
  min-height: 44px;
  overflow: hidden;
  place-items: center;
  position: relative;
}

.custom-color-picker input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.custom-color-picker span {
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}

.custom-color-picker.selected {
  background: var(--custom-product-color, #2563eb);
  border-color: #0f172a;
  box-shadow: inset 0 0 0 2px #ffffffd9;
}

.custom-color-picker.selected span {
  font-size: 0;
}

.custom-color-picker.selected span::after {
  color: #fff;
  content: "\2713";
  font-size: 18px;
  text-shadow: 0 1px 2px #0f172a;
}

.product-page .mini-tag,
.product-detail-hero .mini-tag {
  display: none !important;
}

.invoice-empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 17px;
  color: #64748b;
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 26px 14px;
  text-align: center;
}

.invoice-empty-state svg {
  color: #2563eb;
}

.invoice-empty-state strong {
  color: #0f172a;
  font-size: 14px;
}

.invoice-empty-state small {
  font-size: 11px;
  font-weight: 700;
}

.store-settings-active > :not(.detail-header):not(.store-settings-v2) {
  display: none !important;
}

.store-settings-v2 {
  display: grid;
  gap: 12px;
}

.store-settings-v2 * {
  box-sizing: border-box;
}

.store-toast {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  padding: 11px 12px;
}

.store-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.store-card.hero {
  align-items: center;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.store-logo-manager {
  align-items: center;
  grid-template-columns: 82px minmax(0, 1fr) auto;
}

.store-logo-manager > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.store-logo-manager strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.store-logo-manager small {
  color: #8a99ad;
  font-size: 11px;
  font-weight: 700;
}

.store-logo-preview {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  display: flex;
  height: 62px;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
  width: 82px;
}

.store-logo-preview img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.store-logo-upload {
  align-items: center;
  background: #2563eb;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  white-space: nowrap;
}

.store-logo-file {
  display: none;
}

@media (max-width: 520px) {
  .store-logo-manager {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .store-logo-preview {
    width: 72px;
  }

  .store-logo-upload {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.store-card.hero strong {
  color: #0f172a;
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.store-card.hero small,
.store-card-head small {
  color: #8a99ad;
  font-size: 11px;
  font-weight: 700;
}

.store-card.hero button,
.store-actions button {
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
  min-height: 42px;
  padding: 0 13px;
}

.store-card.hero button {
  background: #2563eb;
  color: #fff;
}

.store-hero-icon,
.store-card-head > span {
  background: #eff6ff;
  border-radius: 14px;
  color: #2563eb;
  display: grid;
  height: 46px;
  place-items: center;
  width: 46px;
}

.store-card-head {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
}

.store-card-head h2 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.store-card-head b {
  border-radius: 999px;
  font-size: 10px;
  padding: 5px 8px;
  white-space: nowrap;
}

.status-on {
  background: #dcfce7;
  color: #15803d;
}

.status-off {
  background: #f1f5f9;
  color: #64748b;
}

.store-grid {
  display: grid;
  gap: 10px;
}

.store-field {
  display: grid;
  gap: 7px;
}

.store-field span,
.store-subtitle {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.store-field input,
.store-field select,
.store-field textarea {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  color: #0f172a;
  min-height: 44px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.store-field textarea {
  min-height: 76px;
  padding: 10px 12px;
  resize: vertical;
}

.payment-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.payment-check,
.store-toggle {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  display: flex;
  gap: 9px;
  min-height: 44px;
  padding: 0 12px;
}

.payment-check input {
  accent-color: #2563eb;
}

.payment-check span,
.store-toggle span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.store-toggle {
  justify-content: space-between;
}

.store-toggle input {
  display: none;
}

.store-toggle i {
  background: #cbd5e1;
  border-radius: 999px;
  height: 24px;
  position: relative;
  width: 43px;
}

.store-toggle i:after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .24);
  content: "";
  height: 20px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: .18s ease;
  width: 20px;
}

.store-toggle input:checked + i {
  background: #2563eb;
}

.store-toggle input:checked + i:after {
  left: 21px;
}

.store-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.store-actions .secondary {
  background: #eff6ff;
  color: #2563eb;
}

.receipt-preview-v2 {
  background: #f1f5f9;
  border-radius: 16px;
  display: grid;
  justify-items: center;
  padding: 14px;
}

.receipt-paper-v2 {
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
  color: #111827;
  display: grid;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  gap: 6px;
  padding: 14px;
  width: 100%;
}

.receipt-paper-v2.paper-58 {
  max-width: 235px;
}

.receipt-paper-v2.paper-80 {
  max-width: 310px;
}

.receipt-paper-v2 img {
  justify-self: center;
  max-height: 42px;
  max-width: 150px;
  object-fit: contain;
}

.receipt-paper-v2 strong,
.receipt-paper-v2 h3,
.receipt-paper-v2 p,
.receipt-paper-v2 small {
  text-align: center;
}

.receipt-paper-v2 h3 {
  font-size: 13px;
  margin: 4px 0;
}

.receipt-paper-v2 hr {
  border: 0;
  border-top: 1px dashed #94a3b8;
  width: 100%;
}

.receipt-paper-v2 span {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.receipt-paper-v2 span small {
  text-align: left;
}

.receipt-total {
  margin-top: 3px;
  text-align: right !important;
}

.users-management-active > :not(.detail-header):not(.users-v2) {
  display: none !important;
}

.users-v2 {
  display: grid;
  gap: 12px;
}

.users-v2 * {
  box-sizing: border-box;
}

.users-toast {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  padding: 11px 12px;
}

.users-add-button {
  align-items: center;
  background: #2563eb;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .24);
  color: #fff;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.users-search {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 15px;
  color: #8a99ad;
  display: grid;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 46px;
  padding: 0 12px;
}

.users-search input {
  background: transparent;
  border: 0;
  color: #0f172a;
  outline: 0;
  width: 100%;
}

.users-stat-strip {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.users-stat-strip div {
  display: grid;
  gap: 5px;
  padding: 13px;
}

.users-stat-strip div + div {
  border-left: 1px solid #e2e8f0;
}

.users-stat-strip span,
.user-section-title {
  color: #8a99ad;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.users-stat-strip strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 950;
}

.users-stat-strip div:nth-child(2) strong {
  color: #16a34a;
}

.users-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.users-filter-row::-webkit-scrollbar {
  display: none;
}

.users-filter-row button {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  color: #64748b;
  flex: none;
  font-size: 12px;
  font-weight: 900;
  min-height: 44px;
  padding: 0 14px;
}

.users-filter-row button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.users-list-v2 {
  display: grid;
  gap: 8px;
}

.user-row-v2 {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  color: #0f172a;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr) auto 14px;
  min-height: 60px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.user-avatar-v2 {
  background: #dbeafe;
  border-radius: 14px;
  color: #2563eb;
  display: grid;
  font-size: 12px;
  font-weight: 950;
  height: 42px;
  place-items: center;
  width: 42px;
}

.user-main-v2,
.user-status-v2 {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-main-v2 strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-main-v2 small,
.user-status-v2 small,
.permission-summary-v2 small {
  color: #8a99ad;
  font-size: 11px;
  font-weight: 700;
}

.user-status-v2 {
  text-align: right;
}

.user-status-v2 b {
  color: #16a34a;
  font-size: 12px;
  white-space: nowrap;
}

.user-status-v2.locked b {
  color: #dc2626;
}

.user-chevron-v2 {
  color: #0f172a;
  font-size: 24px;
}

.permission-summary-v2 {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  display: grid;
  gap: 11px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 13px;
}

.permission-summary-v2 > span {
  color: #2563eb;
}

.permission-summary-v2 strong {
  color: #0f172a;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.users-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 17px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  padding: 22px;
  text-align: center;
}

.user-sheet-layer {
  inset: 0;
  position: fixed;
  z-index: 80;
}

.user-sheet-backdrop {
  background: rgba(15, 23, 42, .38);
  inset: 0;
  position: absolute;
  width: 100%;
}

.user-sheet {
  background: #fff;
  border-radius: 24px 24px 0 0;
  bottom: 0;
  display: grid;
  gap: 13px;
  left: 50%;
  max-height: 88dvh;
  overflow: auto;
  padding: 18px 16px 20px;
  position: absolute;
  transform: translateX(-50%);
  width: min(100%, 430px);
}

.user-sheet-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.user-sheet-head h2 {
  color: #0f172a;
  font-size: 18px;
  font-weight: 950;
}

.user-sheet-head small {
  color: #8a99ad;
  font-size: 11px;
  font-weight: 700;
}

.user-sheet-head button {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  color: #334155;
  display: grid;
  height: 42px;
  place-items: center;
  width: 42px;
}

.user-editor-grid {
  display: grid;
  gap: 10px;
}

.user-field {
  display: grid;
  gap: 7px;
}

.user-field span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}

.user-field input,
.user-field select {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  color: #0f172a;
  min-height: 44px;
  outline: 0;
  padding: 0 12px;
}

.user-permission-grid {
  display: grid;
  gap: 8px;
}

.user-permission-check {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: grid;
  gap: 3px;
  grid-template-columns: 22px minmax(0, 1fr);
  padding: 10px;
}

.user-permission-check input {
  accent-color: #2563eb;
  grid-row: span 2;
  margin-top: 3px;
}

.user-permission-check span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.user-permission-check small {
  color: #8a99ad;
  font-size: 10px;
  font-weight: 700;
}

.user-permission-check.checked {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.user-sheet-actions {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
}

.user-sheet-actions button,
.user-confirm button {
  align-items: center;
  border-radius: 13px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 44px;
}

.user-sheet-actions .primary {
  background: #2563eb;
  color: #fff;
}

.user-sheet-actions .danger,
.user-confirm .danger {
  background: #fef2f2;
  color: #dc2626;
}

.user-confirm {
  background: #fff;
  border-radius: 20px;
  display: grid;
  gap: 10px;
  left: 50%;
  padding: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92%, 360px);
}

.user-confirm strong {
  color: #0f172a;
  font-size: 16px;
}

.user-confirm small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.user-confirm div {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.user-confirm button:first-child {
  background: #f1f5f9;
  color: #334155;
}

.more-page .account-card {
  display: none !important;
}

.product-image-field {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 76px minmax(0, 1fr);
  padding: 12px;
}

.product-image-preview {
  background: #eff6ff;
  border: 1px dashed #bfdbfe;
  border-radius: 15px;
  color: #2563eb;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  height: 76px;
  overflow: hidden;
  place-items: center;
  width: 76px;
}

.product-image-preview img,
.product-visual.has-product-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-image-preview.has-image {
  border-style: solid;
}

.product-image-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.product-image-actions strong {
  color: #0f172a;
  font-size: 13px;
}

.product-image-actions small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.product-image-actions label,
.product-image-actions button {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  width: fit-content;
}

.product-image-actions label {
  background: #2563eb;
  color: #fff;
}

.product-image-actions label input {
  display: none;
}

.product-image-actions button {
  background: #fef2f2;
  color: #dc2626;
}

.product-visual.has-product-photo {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0;
}

.product-visual.has-product-photo i,
.product-visual.has-product-photo b {
  display: none !important;
}

.cart-line .product-visual.has-product-photo {
  border-radius: 12px !important;
  height: 43px !important;
  width: 43px !important;
}

.sale-page .pos-grid {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 1fr !important;
  padding-bottom: 24px !important;
}

.sale-page .pos-product-card {
  align-items: center !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 17px !important;
  display: grid !important;
  gap: 5px 12px !important;
  grid-template-columns: 64px minmax(0, 1fr) 38px !important;
  grid-template-rows: auto auto auto !important;
  min-height: 88px !important;
  padding: 9px !important;
  position: relative !important;
}

.sale-page .pos-product-card .product-visual {
  border-radius: 14px !important;
  grid-row: 1 / span 3 !important;
  height: 64px !important;
  width: 64px !important;
}

.sale-page .pos-product-card .product-visual.large {
  height: 64px !important;
  width: 64px !important;
}

.sale-page .pos-product-card .product-visual i {
  border-radius: 10px !important;
  height: 72% !important;
  width: 42% !important;
}

.sale-page .pos-product-card > strong {
  align-self: end !important;
  font-size: 12px !important;
  height: auto !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  padding-right: 0 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sale-page .pos-product-card .pos-product-sub {
  align-items: center !important;
  align-self: center !important;
  color: #8a99ad !important;
  display: flex !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  gap: 4px !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.sale-page .pos-product-card .sale-product-color {
  font-size: 8px !important;
  min-height: 16px !important;
  padding: 3px 6px !important;
}

.sale-page .pos-product-card > small {
  align-self: start !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.sale-page .pos-product-card .product-add-circle {
  align-self: center !important;
  background: #eff6ff !important;
  border-radius: 13px !important;
  color: #2563eb !important;
  grid-column: 3 !important;
  grid-row: 1 / span 3 !important;
  height: 38px !important;
  justify-self: end !important;
  position: static !important;
  width: 38px !important;
}

.sale-page .pos-product-card .stock-badge {
  display: none !important;
}

.invoice-print-message {
  border-radius: 12px;
  display: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin: -6px 0 10px;
  padding: 10px 12px;
}

.invoice-print-message.info,
.invoice-print-message.success,
.invoice-print-message.error {
  display: block;
}

.invoice-print-message.info {
  background: #eff6ff;
  color: #2563eb;
}

.invoice-print-message.success {
  background: #ecfdf5;
  color: #059669;
}

.invoice-print-message.error {
  background: #fef2f2;
  color: #dc2626;
}

.inventory-table {
  gap: 10px !important;
}

.page:has(.inventory-hero) .fab {
  display: none !important;
}

.inventory-row {
  align-items: center !important;
  column-gap: 10px !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) 17px !important;
  grid-template-rows: auto !important;
  min-height: 78px !important;
  padding: 10px !important;
}

.inventory-row .product-visual,
.inventory-row > .product-visual {
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: 52px !important;
  width: 52px !important;
}

.inventory-row > span:nth-of-type(2) {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}

.inventory-row > span:nth-of-type(3) {
  display: none !important;
}

.inventory-row > span:nth-of-type(4) {
  display: none !important;
}

.inventory-row > svg {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}

.inventory-row strong {
  overflow-wrap: normal !important;
  text-wrap: nowrap !important;
}

.inventory-row > span:nth-of-type(2) strong,
.inventory-row > span:nth-of-type(2) small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.inventory-row > span:nth-of-type(2) strong {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}

.inventory-row > span:nth-of-type(2) small {
  color: #64748b !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.inventory-category-list .report-bar > div {
  display: flex !important;
  gap: 12px !important;
  justify-content: space-between !important;
  min-width: 0 !important;
}

.inventory-category-list .report-bar span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.inventory-category-list .report-bar b {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.product-sku-color.product-sku-color-text {
  background: #f1f5f9 !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #475569 !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  height: auto !important;
  line-height: 1 !important;
  min-height: 18px !important;
  padding: 4px 7px !important;
  width: auto !important;
}

.success-actions {
  flex-wrap: wrap;
}

.success-actions .invoice-print-message {
  flex: 0 0 100%;
  margin: 0;
  order: 3;
}

.bill-success-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(72px, .68fr);
  gap: 9px;
}

.bill-success-actions > button {
  min-width: 0;
  width: 100%;
}

.bill-success-actions .bill-close-button {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  display: inline-flex;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  padding-inline: 9px;
}

.bill-success-actions .bill-close-button svg {
  flex: 0 0 auto;
}

.bill-success-actions .invoice-print-message {
  grid-column: 1 / -1;
  order: initial;
}

.revenue-report-active > :not(.detail-header):not(.revenue-report-v2) {
  display: none !important;
}

.revenue-report-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-bottom: 20px;
}

.revenue-report-v2.rr-loading {
  pointer-events: none;
}

.rr-loading-line,
.rr-loading-tabs span,
.rr-loading-summary span,
.rr-loading-card {
  background: linear-gradient(90deg, #edf3fb 0%, #f8fafc 50%, #edf3fb 100%);
  background-size: 220% 100%;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  animation: rrLoading 1.05s ease-in-out infinite;
}

.rr-loading-line {
  height: 44px;
}

.rr-loading-tabs {
  background: #e8eef7;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
}

.rr-loading-tabs span {
  border: 0;
  height: 36px;
}

.rr-loading-summary {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 14px;
}

.rr-loading-summary span {
  border: 0;
  height: 38px;
}

.rr-loading-card {
  min-height: 112px;
}

@keyframes rrLoading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.revenue-report-v2 .sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.rr-period {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: #475569;
  display: flex;
  gap: 9px;
  height: 44px;
  padding: 0 12px;
  position: relative;
  width: 100%;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.rr-period-label {
  color: #334155;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.rr-period-arrow {
  border-bottom: 2px solid #64748b;
  border-right: 2px solid #64748b;
  content: '';
  height: 7px;
  pointer-events: none;
  transform: rotate(45deg);
  width: 7px;
  margin-right: 2px;
}

.rr-period[aria-expanded="true"] .rr-period-arrow {
  transform: rotate(225deg);
  margin-top: 4px;
}

.rr-period-menu {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
  display: grid;
  gap: 6px;
  margin-top: -4px;
  padding: 8px;
  position: relative;
  z-index: 6;
}

.rr-period-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 24px;
}

.rr-period-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.rr-period-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

.rr-period-option:active {
  transform: scale(0.98);
}

.rr-custom-period {
  display: none;
  gap: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.rr-custom-period.open {
  display: grid;
}

.rr-custom-period-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rr-custom-period label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rr-custom-period input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  padding: 0 9px;
}

.rr-custom-period-error {
  min-height: 14px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
}

.rr-custom-period-apply {
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.rr-tabs {
  background: #e8edf4;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 44px;
  padding: 3px;
}

.rr-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #64748b;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  min-width: 0;
  padding: 0 5px;
  white-space: nowrap;
}

.rr-tabs button svg {
  flex: 0 0 auto;
}

.rr-tabs button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
  color: #1d4ed8;
}

.rr-summary {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(56px, .6fr);
  padding: 13px 10px;
}

.rr-summary > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 9px;
}

.rr-summary > div + div {
  border-left: 1px solid #e2e8f0;
}

.rr-summary span {
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rr-summary strong {
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.rr-summary-revenue strong {
  color: #1d4ed8;
  font-size: 16px;
}

.rr-summary strong.profit,
.rr-row-money small {
  color: #15803d;
}

.rr-summary strong.negative,
.rr-row-money small.negative {
  color: #dc2626;
}

.rr-payment-summary {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}

.rr-payment-summary > p {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.rr-payment-summary > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rr-payment-summary > div > span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0 9px;
}

.rr-payment-summary > div > span + span {
  border-left: 1px solid #e2e8f0;
}

.rr-payment-summary small {
  color: #94a3b8;
  font-size: 9px;
  white-space: nowrap;
}

.rr-payment-summary strong {
  color: #0f172a;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rr-section-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 4px;
}

.rr-section-head h2 {
  color: #0f172a;
  font-size: 13px;
  letter-spacing: 0;
}

.rr-section-head span {
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
}

.rr-list {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow: hidden;
}

.rr-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr) minmax(82px, auto);
  min-height: 75px;
  padding: 10px;
}

.rr-row + .rr-row {
  border-top: 1px solid #edf1f6;
}

.rr-rank {
  align-items: center;
  background: #dbeafe;
  border-radius: 7px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.rr-row-employees .rr-rank {
  background: #ccfbf1;
  color: #0f766e;
}

.rr-row-categories .rr-rank {
  background: #fef3c7;
  color: #b45309;
}

.rr-row-channels .rr-rank {
  background: #dbeafe;
  color: #1d4ed8;
}

.rr-row-channels {
  align-content: start;
}

.rr-row-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.rr-row-main strong {
  color: #0f172a;
  font-size: 11px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rr-row-main small {
  color: #64748b;
  font-size: 9px;
  line-height: 1.35;
}

.rr-bar {
  background: #e8edf4;
  border-radius: 99px;
  display: block;
  height: 4px;
  margin-top: 3px;
  overflow: hidden;
  width: 100%;
}

.rr-bar i {
  background: #2563eb;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.rr-row-employees .rr-bar i {
  background: #0d9488;
}

.rr-row-categories .rr-bar i {
  background: #f59e0b;
}

.rr-row-channels .rr-bar i {
  background: #2563eb;
}

.rr-row-money {
  align-items: end;
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.rr-row-money strong {
  color: #0f172a;
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rr-row-money small {
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.rr-employee-categories {
  border-top: 1px dashed #cbd5e1;
  display: grid;
  gap: 6px;
  grid-column: 2 / -1;
  margin-top: 3px;
  padding-top: 8px;
}

.rr-employee-category {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.rr-employee-category > span {
  align-items: center;
  color: #475569;
  display: inline-flex;
  gap: 6px;
  min-width: 0;
}

.rr-employee-category i {
  background: #0d9488;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

.rr-employee-category b {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rr-employee-category strong {
  color: #0f766e;
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rr-employee-categories.empty {
  color: #94a3b8;
  font-size: 9px;
}

.rr-channel-products {
  border-top: 1px dashed #cbd5e1;
  display: grid;
  gap: 0;
  grid-column: 2 / -1;
  margin-top: 3px;
  padding-top: 5px;
}

.rr-channel-product {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 6px 0;
}

.rr-channel-product + .rr-channel-product {
  border-top: 1px solid #edf1f6;
}

.rr-channel-product-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.rr-channel-product-top > span {
  align-items: center;
  color: #334155;
  display: inline-flex;
  gap: 6px;
  min-width: 0;
}

.rr-channel-product-top i {
  background: #2563eb;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

.rr-channel-product-top b {
  font-size: 9px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.rr-channel-product-top strong {
  color: #1d4ed8;
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rr-channel-product small {
  color: #64748b;
  font-size: 8px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding-left: 12px;
}

.rr-channel-products.empty {
  color: #94a3b8;
  font-size: 9px;
  padding-block: 9px;
}

.rr-channel-employees {
  border-top: 1px dashed #cbd5e1;
  display: grid;
  gap: 0;
  grid-column: 2 / -1;
  margin-top: 3px;
  padding-top: 8px;
}

.rr-channel-employees > p {
  color: #64748b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.rr-channel-employee {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 7px 0;
}

.rr-channel-employee + .rr-channel-employee {
  border-top: 1px solid #edf1f6;
}

.rr-channel-employee-head,
.rr-channel-category {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.rr-channel-employee-head b {
  color: #0f172a;
  font-size: 9px;
  letter-spacing: 0;
}

.rr-channel-employee-head strong {
  color: #475569;
  flex: 0 0 auto;
  font-size: 8px;
  letter-spacing: 0;
  white-space: nowrap;
}

.rr-channel-category-list {
  display: grid;
  gap: 4px;
  padding-left: 12px;
}

.rr-channel-category > span {
  align-items: center;
  color: #475569;
  display: inline-flex;
  gap: 6px;
  min-width: 0;
}

.rr-channel-category i {
  background: #0d9488;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 5px;
  width: 5px;
}

.rr-channel-category b,
.rr-channel-category strong {
  font-size: 8px;
  letter-spacing: 0;
}

.rr-channel-category b {
  overflow-wrap: anywhere;
}

.rr-channel-category strong {
  color: #0f766e;
  flex: 0 0 auto;
  white-space: nowrap;
}

.rr-channel-employees.empty {
  color: #94a3b8;
  font-size: 9px;
  padding-block: 9px;
}

.rr-empty {
  color: #94a3b8;
  font-size: 10px;
  padding: 42px 20px;
  text-align: center;
}

@media (max-width: 360px) {
  .rr-tabs button {
    font-size: 9px;
    gap: 3px;
  }

  .rr-tabs button svg {
    height: 14px;
    width: 14px;
  }

  .rr-summary {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 52px;
    padding-inline: 5px;
  }

  .rr-summary > div {
    padding-inline: 6px;
  }

  .rr-summary strong,
  .rr-summary-revenue strong {
    font-size: 12px;
  }

  .rr-payment-summary {
    padding-inline: 6px;
  }

  .rr-payment-summary > div > span {
    padding-inline: 6px;
  }

  .rr-payment-summary strong {
    font-size: 10px;
  }

  .rr-row {
    gap: 7px;
    grid-template-columns: 32px minmax(0, 1fr) minmax(72px, auto);
    padding-inline: 8px;
  }

  .rr-rank {
    height: 32px;
    width: 32px;
  }

  .rr-row-money strong {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .bill-success-actions {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .bill-success-actions > button:first-of-type {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .hd-home-v2 {
    gap: 10px;
  }

  .hd-home-head h1 {
    font-size: 19px;
  }

  .hd-revenue-panel {
    min-height: 224px;
  }

  .hd-stat-row {
    gap: 8px;
  }

  .hd-mini-stat {
    min-height: 136px;
    padding: 12px 58px 12px 12px;
  }

  .hd-mini-stat i {
    height: 38px;
    width: 38px;
  }

  .hd-mini-stat strong {
    font-size: 16px;
  }

  .hd-mini-stat em {
    font-size: 8.5px;
  }

  .hd-stat-spark {
    right: 8px;
    width: 48px;
  }

  .hd-periods button {
    font-size: 10px;
  }
}

/* desktop-layout.css */
@media (min-width: 1024px) {
  :root {
    --desktop-sidebar: 248px;
    background: #eef2f7;
  }

  body {
    background: #eef2f7;
    overflow: hidden;
  }

  .app-shell:not(.login-shell) {
    background: #eef2f7;
    display: block;
    min-height: 100dvh;
    padding: 0;
  }

  .app-shell:not(.login-shell) .phone-frame {
    background: #f5f7fb;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: block;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    width: 100%;
  }

  .app-shell:not(.login-shell) .status-space,
  .app-shell:not(.login-shell) .bottom-nav {
    display: none !important;
  }

  .app-shell:not(.login-shell) .screen-content {
    height: 100dvh;
    margin-left: var(--desktop-sidebar);
    overflow: auto;
    padding: 0;
    scrollbar-width: thin;
  }

  .app-shell:not(.login-shell) .screen-content > .page {
    margin: 0 auto;
    max-width: 1500px;
    min-height: 100%;
    padding: 28px 32px 42px;
    position: relative;
  }

  .app-shell:not(.login-shell) :is(h1, h2, h3, strong, span, small, p, button, input, select, textarea) {
    letter-spacing: 0 !important;
  }

  .desktop-nav {
    background: #fff;
    border-right: 1px solid #dce3ec;
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 22px 16px 18px;
    position: fixed;
    top: 0;
    width: var(--desktop-sidebar);
    z-index: 60;
  }

  .desktop-nav[hidden] {
    display: none;
  }

  .desktop-brand {
    border-bottom: 1px solid #e7ebf1;
    display: grid;
    gap: 4px;
    justify-items: center;
    margin: 0 4px 22px;
    padding: 0 4px 18px;
  }

  .desktop-brand img {
    display: block;
    height: 64px;
    object-fit: contain;
    width: 176px;
  }

  .desktop-brand span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
  }

  .desktop-nav-list {
    display: grid;
    gap: 6px;
  }

  .desktop-nav-button {
    align-items: center !important;
    background: transparent !important;
    border-radius: 8px !important;
    color: #64748b !important;
    display: grid !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    gap: 12px !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    justify-items: start !important;
    min-height: 50px;
    padding: 0 14px !important;
    position: relative;
    text-align: left;
    width: 100%;
  }

  .desktop-nav-button:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
  }

  .desktop-nav-button.active {
    background: #eaf2ff !important;
    color: #1d4ed8 !important;
  }

  .desktop-nav-button.active::before {
    background: #2563eb;
    border-radius: 0 4px 4px 0;
    content: '';
    height: 26px;
    left: -16px;
    position: absolute;
    top: 12px;
    width: 4px;
  }

  .desktop-nav-button svg {
    height: 20px;
    width: 20px;
  }

  .desktop-nav-button .sale-dot {
    background: #f97316;
    border-radius: 50%;
    height: 6px;
    left: 32px;
    position: absolute;
    top: 10px;
    width: 6px;
  }

  .desktop-account {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    display: grid;
    gap: 9px;
    grid-template-columns: 38px minmax(0, 1fr) 14px;
    margin-top: auto;
    min-height: 58px;
    padding: 9px;
    text-align: left;
    width: 100%;
  }

  .desktop-account-avatar {
    background: #dbeafe;
    border-radius: 8px;
    color: #1d4ed8;
    display: grid;
    font-size: 11px;
    font-weight: 900;
    height: 38px;
    place-items: center;
    width: 38px;
  }

  .desktop-account-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .desktop-account-copy strong,
  .desktop-account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-account-copy strong {
    font-size: 12px;
  }

  .desktop-account-copy small {
    color: #64748b;
    font-size: 10px;
  }

  .desktop-account-arrow {
    color: #94a3b8;
    font-size: 20px;
  }

  .top-header,
  .page-header,
  .sale-header,
  .detail-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 18px;
    min-height: 68px;
    padding: 11px 16px;
  }

  h1 {
    font-size: 25px;
  }

  .round-icon,
  .back-button,
  .avatar,
  .search-box,
  .period-chip,
  .filter-chip,
  .category-chip,
  .category-manager,
  .category-card,
  .product-row,
  .pos-product-card,
  .invoice-row,
  .invoice-summary,
  .more-card,
  .action-card,
  .setting-row,
  .inventory-row,
  .rr-list,
  .rr-summary,
  .store-card,
  .user-row-v2,
  .users-search,
  .users-stat-strip,
  .permission-summary-v2 {
    border-radius: 8px !important;
  }

  .hd-home-redesigned {
    background: transparent;
    padding: 28px 32px 42px !important;
  }

  .hd-home-v2 {
    gap: 16px;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr);
  }

  .hd-home-head,
  .hd-stat-row {
    grid-column: 1 / -1;
  }

  .hd-home-head {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 70px;
    padding: 11px 16px;
  }

  .hd-home-head h1 {
    font-size: 24px;
  }

  .hd-revenue-panel {
    border-radius: 8px;
    grid-column: 1;
    min-height: 245px;
    padding: 23px;
  }

  .hd-revenue-panel > strong {
    font-size: 38px;
  }

  .hd-periods {
    align-content: start;
    align-self: stretch;
    border-radius: 8px;
    grid-column: 2;
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .hd-periods button {
    border-radius: 6px;
    font-size: 12px;
    min-height: 42px;
    text-align: left;
    padding: 0 14px;
  }

  .hd-stat-row {
    gap: 16px;
  }

  .hd-mini-stat,
  .hd-board {
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
  }

  .hd-mini-stat {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 16px;
  }

  .hd-mini-stat i {
    grid-row: 1 / span 3;
  }

  .hd-mini-stat strong {
    font-size: 20px;
  }

  .hd-board {
    min-width: 0;
    padding: 18px;
  }

  .hd-notification-popover {
    border-radius: 8px;
    min-width: 380px;
  }

  .category-card-list,
  .category-card-list.large-icons {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }

  .category-card-list.large-icons .category-card {
    min-height: 126px;
  }

  .product-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .sale-page .pos-grid {
    gap: 12px !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
  }

  .invoice-list,
  .users-list-v2,
  .inventory-table {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }

  .more-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .more-card {
    min-height: 150px;
  }

  .rr-summary {
    min-height: 82px;
  }

  .rr-summary strong {
    font-size: 16px;
  }

  .rr-summary-revenue strong {
    font-size: 22px;
  }

  .rr-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  }

  .rr-row + .rr-row {
    border-left: 1px solid #edf1f6;
    border-top: 0;
  }

  .rr-row {
    min-height: 92px;
    padding: 14px;
  }

  .store-settings-v2,
  .users-v2,
  .revenue-report-v2,
  .customers-management-v2:not(.sheet-layer) {
    margin-inline: auto;
    max-width: 1200px;
    width: 100%;
  }

  .customers-management-v2:not(.sheet-layer) > .simple-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  }

  .customers-management-v2:not(.sheet-layer) .customer-row {
    margin-bottom: 0 !important;
  }

  .product-page .fab {
    bottom: 28px !important;
    right: 32px !important;
  }

  .cart-float {
    bottom: 24px;
    left: calc(var(--desktop-sidebar) + 32px);
    margin-left: auto;
    max-width: 520px;
    right: 32px;
  }

  .sheet-layer {
    align-items: center;
    padding: 32px;
  }

  .sheet {
    border-radius: 8px;
    max-height: calc(100dvh - 64px);
    width: min(760px, calc(100vw - 96px));
  }

  .sheet-handle {
    display: none;
  }

  .sheet-header {
    padding: 14px 18px;
  }

  .sheet-content {
    padding: 18px;
  }

  .customers-management-v2.sheet-layer > .sheet {
    border-radius: 8px !important;
    margin: auto !important;
    width: min(760px, calc(100vw - 96px)) !important;
  }

  .user-sheet {
    border-radius: 8px;
    bottom: auto;
    left: 50%;
    max-height: calc(100dvh - 64px);
    padding: 22px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(820px, calc(100vw - 96px));
  }

  .user-editor-grid,
  .user-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-bill {
    border-radius: 8px;
    margin-inline: auto;
    max-width: 620px;
  }

  .login-shell {
    background: #eef2f7;
    padding: 32px;
  }

  .login-frame {
    border-radius: 8px;
    min-height: 620px;
    width: min(100%, 480px);
  }
}

@media (min-width: 1280px) {
  .product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sale-page .pos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .store-settings-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-settings-v2 > :first-child,
  .store-settings-v2 > :last-child {
    grid-column: 1 / -1;
  }
}

/* ios-input-zoom-fix.css */
/* Keep iOS from zooming the page when a compact form field receives focus. */
html {
  -webkit-text-size-adjust: 100%;
}

@supports (-webkit-touch-callout: none) {
  @media (hover: none) and (pointer: coarse) {
    input:not([type='button']):not([type='checkbox']):not([type='color']):not([type='file']):not([type='radio']):not([type='range']):not([type='reset']):not([type='submit']),
    select,
    textarea,
    [contenteditable='true'] {
      font-size: 16px !important;
    }
  }
}

/* ios-safe-area-fix.css */
:root {
  --hd-safe-top: env(safe-area-inset-top, 0px);
  --hd-safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 1023px) {
  .app-shell:not(.login-shell) .status-space {
    height: max(20px, calc(var(--hd-safe-top) + 6px));
    min-height: max(20px, calc(var(--hd-safe-top) + 6px));
  }

  .app-shell:not(.login-shell) .hd-home-redesigned {
    padding-top: 6px;
  }

  .app-shell:not(.login-shell) .phone-frame > .cart-float {
    bottom: calc(76px + var(--hd-safe-bottom));
  }

  .app-shell:not(.login-shell) .phone-frame:has(> .cart-float) .screen-content {
    padding-bottom: calc(148px + var(--hd-safe-bottom));
  }

  .cart-fullscreen-sheet .sheet-header {
    min-height: calc(58px + var(--hd-safe-top)) !important;
    padding-top: var(--hd-safe-top) !important;
  }

  .cart-fullscreen-sheet .sheet-header .round-icon {
    top: calc(9px + var(--hd-safe-top)) !important;
  }
}

/* product-list-layout-fix.css */
@media (max-width: 1023px) {
  .product-list {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .product-row {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    width: 100%;
  }

  .product-open {
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  .product-info,
  .product-name-line,
  .product-meta {
    max-width: 100%;
    min-width: 0;
  }

  .product-name-line {
    overflow: hidden;
  }

  .product-name-line strong {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
  }

  .product-info > small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-open > svg {
    flex: 0 0 16px;
  }
}

/* pull-to-refresh.css */
.hd-pull-refresh {
  display: none;
}

@media (max-width: 1023px) {
  .hd-pull-refresh {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe4ef;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    color: #475569;
    display: flex;
    gap: 7px;
    left: 50%;
    max-width: calc(100% - 32px);
    opacity: 0;
    padding: 5px 11px 5px 6px;
    pointer-events: none;
    position: absolute;
    top: max(28px, calc(var(--hd-safe-top, 0px) + 12px));
    transform: translate3d(-50%, -18px, 0);
    transition: opacity 160ms ease, transform 200ms ease;
    white-space: nowrap;
    z-index: 9;
  }

  .hd-pull-refresh strong {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
  }

  .hd-pull-icon {
    align-items: center;
    background: #eff6ff;
    border-radius: 50%;
    color: #2563eb;
    display: flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
  }

  .hd-pull-icon::before {
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: '';
    height: 12px;
    transform: rotate(calc(var(--hd-pull-progress, 0) * 180deg));
    width: 12px;
  }

  .phone-frame.hd-pull-enabled .screen-content {
    overscroll-behavior-y: contain;
  }

  .phone-frame.hd-pull-enabled .screen-content > .page {
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .phone-frame.hd-pull-active .screen-content > .page {
    transform: translate3d(0, var(--hd-pull-offset, 0), 0);
  }

  .phone-frame.hd-pull-dragging .screen-content > .page {
    transition: none;
  }

  .phone-frame.hd-pull-active .hd-pull-refresh {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  .phone-frame.hd-pull-refreshing .hd-pull-icon::before {
    animation: hd-pull-spin 700ms linear infinite;
  }

  .phone-frame.hd-pull-success .hd-pull-refresh {
    color: #15803d;
  }

  .phone-frame.hd-pull-success .hd-pull-icon {
    background: #dcfce7;
    color: #16a34a;
  }

  .phone-frame.hd-pull-success .hd-pull-icon::before {
    border: 0;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-radius: 0;
    height: 11px;
    transform: rotate(45deg) translate(-1px, -1px);
    width: 6px;
  }

  .phone-frame.hd-pull-error .hd-pull-refresh {
    color: #b91c1c;
  }

  .phone-frame.hd-pull-error .hd-pull-icon {
    background: #fee2e2;
    color: #dc2626;
  }

  @keyframes hd-pull-spin {
    to {
      transform: rotate(360deg);
    }
  }
}

/* customer-phone-guard.css */
.hd-phone-duplicate-input {
  border-color: #ef4444 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgb(239 68 68 / 10%);
}

.hd-phone-duplicate-error {
  color: #dc2626;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

/* order-notifications.css */
.hd-order-alert-stack {
  display: grid;
  gap: 8px;
  max-width: min(390px, calc(100vw - 24px));
  pointer-events: none;
  position: fixed;
  right: 12px;
  top: max(12px, env(safe-area-inset-top));
  width: 100%;
  z-index: 10050;
}

.hd-order-alert {
  align-items: center;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  opacity: 0;
  padding: 11px 8px 11px 11px;
  pointer-events: auto;
  transform: translateY(-12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.hd-order-alert.visible {
  opacity: 1;
  transform: translateY(0);
}

.hd-order-alert-icon {
  align-items: center;
  background: #dbeafe;
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.hd-order-alert-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.hd-order-alert-title {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.hd-order-alert-title b {
  color: #2563eb;
}

.hd-order-alert-main > strong {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hd-order-alert-main > small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hd-order-alert-close {
  align-items: center;
  align-self: start;
  background: transparent;
  border: 0;
  color: #64748b;
  display: inline-flex;
  font-size: 22px;
  height: 30px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.hd-notification-enable {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  color: #1d4ed8;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
  min-height: 30px;
  padding: 5px 9px;
}

.hd-home-bell b.is-empty {
  display: none;
}

.hd-home-bell b.has-unread {
  animation: hd-order-badge-pulse 1.7s ease-in-out infinite;
}

@keyframes hd-order-badge-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.13); }
}

@media (max-width: 640px) {
  .hd-order-alert-stack {
    left: 12px;
    max-width: none;
    right: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hd-order-alert,
  .hd-home-bell b.has-unread {
    animation: none;
    transition: none;
  }
}

/* operation-history.css */
.operation-history-page {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding-bottom: 18px;
}

.operation-history-controls {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 20;
}

.operation-history-picker {
  min-width: 0;
  position: relative;
}

.operation-history-picker-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  color: #172033;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 50px;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
}

.operation-history-picker-button span {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.operation-history-picker-button strong {
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-history-picker-button i {
  color: #64748b;
  font-size: 18px;
  font-style: normal;
  grid-column: 2;
  grid-row: 1 / span 2;
  line-height: 1;
}

.operation-history-picker.open .operation-history-picker-button {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.operation-history-menu {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
  display: grid;
  gap: 2px;
  left: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
}

.operation-history-menu[hidden] {
  display: none !important;
}

.operation-history-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #475569;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.operation-history-menu button.active {
  background: #eff6ff;
  color: #1d4ed8;
}

.operation-history-menu button.active::after {
  content: '✓';
  font-size: 13px;
  font-weight: 900;
}

.operation-history-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 4px 0 -5px;
}

.operation-history-list {
  display: grid;
  gap: 4px;
  position: relative;
}

.operation-history-list::before {
  background: #dbeafe;
  bottom: 20px;
  content: '';
  left: 19px;
  position: absolute;
  top: 20px;
  width: 1px;
}

.operation-history-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 8px 0;
  position: relative;
  z-index: 1;
}

.operation-history-icon {
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #2563eb;
  display: grid;
  font-size: 18px;
  height: 38px;
  place-items: center;
  width: 38px;
}

.operation-history-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.operation-history-main strong {
  color: #172033;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-history-main small {
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-history-row time {
  color: #94a3b8;
  font-size: 9px;
  white-space: nowrap;
}

.operation-history-empty {
  background: #fff;
  border: 1px dashed #dbe3ee;
  border-radius: 16px;
  color: #94a3b8;
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 170px;
  padding: 24px;
  place-content: center;
  text-align: center;
}

.operation-history-empty strong {
  color: #172033;
  font-size: 13px;
}

.operation-history-empty small {
  font-size: 10px;
  line-height: 1.5;
  max-width: 240px;
}

@media (min-width: 720px) {
  .operation-history-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* repair-tickets.css */
.repair-ticket-layer { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: stretch; justify-content: center; background: #f8fafc; }
.repair-ticket-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: transparent; }
.repair-ticket-sheet { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(100%, 1080px); height: 100dvh; max-height: 100dvh; overflow: hidden; background: #f8fafc; }
.repair-ticket-handle { display: none; }
.repair-ticket-header { position: relative; z-index: 3; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 12px; min-height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; border-bottom: 1px solid #e2e8f0; background: #fff; flex: none; }
.repair-ticket-header h2 { margin: 0; color: #172033; font-size: 18px; }
.repair-ticket-close { width: 42px; height: 42px; font-size: 22px; line-height: 1; }
.repair-ticket-sheet { transition: transform .2s ease; }
.repair-ticket-sheet.edge-swiping { transition: none; }
.repair-ticket-content { display: grid; align-content: start; gap: 13px; width: 100%; max-width: 940px; margin: 0 auto; padding: 18px 18px calc(28px + env(safe-area-inset-bottom)); overflow: auto; }
.repair-list-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.repair-search { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 13px; border: 1px solid #dbe3ee; border-radius: 13px; background: #fff; }
.repair-search span { color: #94a3b8; font-size: 23px; line-height: 1; }
.repair-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #172033; background: transparent; font-size: 12px; }
.repair-date-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.repair-date-filters::-webkit-scrollbar { display: none; }
.repair-date-group { display: grid; gap: 7px; }
.repair-date-group h3 { margin: 4px 0 0; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.repair-ticket-intro, .repair-form-note { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid #bfdbfe; border-radius: 16px; background: #eff6ff; }
.repair-ticket-intro-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #dbeafe; font-size: 21px; flex: none; }
.repair-ticket-intro div, .repair-form-note { min-width: 0; }
.repair-ticket-intro strong, .repair-form-note strong { display: block; color: #172033; font-size: 12px; }
.repair-ticket-intro small, .repair-form-note small { display: block; margin-top: 4px; color: #64748b; font-size: 10px; line-height: 1.45; }
.repair-ticket-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.repair-ticket-stats div { min-width: 0; padding-left: 10px; border-left: 1px solid #e2e8f0; }
.repair-ticket-stats div:first-child { padding-left: 0; border-left: 0; }
.repair-ticket-stats span, .repair-detail-card span { display: block; color: #94a3b8; font-size: 10px; }
.repair-ticket-stats strong { display: block; margin-top: 4px; color: #172033; font-size: 18px; }
.repair-primary-button, .repair-secondary-button { min-height: 46px; border-radius: 13px; padding: 0 14px; font-size: 12px; font-weight: 800; }
.repair-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: #2563eb; box-shadow: 0 9px 18px rgba(37, 99, 235, .22); }
.repair-primary-button:disabled { opacity: .65; }
.repair-danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 14px; border: 1px solid #fecaca; border-radius: 13px; color: #dc2626; background: #fff1f2; font-size: 12px; font-weight: 800; }
.repair-danger-button:disabled { opacity: .65; }
.repair-danger-button span { font-size: 22px; font-weight: 400; line-height: 1; }
.repair-primary-button span { font-size: 22px; font-weight: 400; line-height: 1; }
.repair-secondary-button { display: inline-flex; align-items: center; justify-content: center; color: #2563eb; border: 1px solid #bfdbfe; background: #eff6ff; }
.repair-filter-row { display: flex; gap: 7px; margin: 0 -18px; padding: 0 18px 3px; overflow-x: auto; scrollbar-width: none; }
.repair-filter-row::-webkit-scrollbar { display: none; }
.repair-filter { flex: none; min-height: 36px; padding: 0 11px; border: 1px solid #dbe3ee; border-radius: 10px; color: #64748b; background: #fff; font-size: 10px; font-weight: 700; }
.repair-filter.active { color: #fff; border-color: #2563eb; background: #2563eb; }
.repair-section-label { margin: 2px 0 -3px; color: #94a3b8; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.repair-ticket-list { display: grid; gap: 8px; }
.repair-ticket-row { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto 14px; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid #e2e8f0; border-radius: 15px; color: #172033; background: #fff; text-align: left; }
.repair-ticket-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; background: #fef3c7; font-size: 17px; }
.repair-ticket-main { display: grid; min-width: 0; gap: 3px; }
.repair-ticket-main strong { color: #2563eb; font-size: 11px; }
.repair-ticket-main b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.repair-ticket-main small, .repair-ticket-side small { overflow: hidden; color: #94a3b8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.repair-ticket-side { display: grid; justify-items: end; gap: 5px; min-width: 74px; }
.repair-status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 6px; border-radius: 7px; font-size: 8px; font-style: normal; font-weight: 800; white-space: nowrap; }
.repair-status.received { color: #1d4ed8; background: #dbeafe; }
.repair-status.checking { color: #a16207; background: #fef3c7; }
.repair-status.repairing { color: #7c3aed; background: #ede9fe; }
.repair-status.ready, .repair-status.returned { color: #15803d; background: #dcfce7; }
.repair-status.cancelled { color: #b91c1c; background: #fee2e2; }
.repair-ticket-arrow { color: #94a3b8; font-size: 22px; }
.repair-empty { display: grid; justify-items: center; gap: 7px; min-height: 160px; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #fff; text-align: center; }
.repair-empty span { font-size: 26px; }
.repair-empty strong { color: #172033; font-size: 13px; }
.repair-empty small { max-width: 250px; color: #94a3b8; font-size: 10px; line-height: 1.5; }
.repair-ticket-form { display: grid; gap: 12px; }
.repair-ticket-form label { display: grid; gap: 6px; }
.repair-ticket-form label > span { color: #475569; font-size: 10px; font-weight: 800; }
.repair-ticket-form label b { color: #dc2626; }
.repair-ticket-form input, .repair-ticket-form textarea, .repair-ticket-form select { width: 100%; color: #172033; border: 1px solid #cbd5e1; border-radius: 12px; outline: 0; background: #fff; padding: 0 11px; font-size: 12px; }
.repair-ticket-form input { min-height: 44px; }
.repair-ticket-form select { min-height: 44px; }
.repair-ticket-form textarea { min-height: 76px; padding: 10px 11px; resize: vertical; line-height: 1.45; }
.repair-ticket-form input:focus, .repair-ticket-form textarea:focus, .repair-ticket-form select:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px #dbeafe; }
.repair-ticket-form input[readonly] { color: #475569; background: #f8fafc; }
.repair-form-match { min-height: 15px; margin: -5px 0 -2px; color: #0f766e; font-size: 10px; font-weight: 700; }
.repair-product-hint { display: block; color: #64748b; font-size: 9px; line-height: 1.35; }
.repair-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.repair-form-error { min-height: 16px; margin: -3px 0 0; color: #dc2626; font-size: 10px; font-weight: 700; }
.repair-form-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 9px; }
.repair-detail-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.repair-detail-code > span { color: #2563eb; font-size: 14px; font-weight: 900; }
.repair-detail-card { display: grid; gap: 12px; padding: 13px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.repair-detail-card > div { display: grid; gap: 4px; }
.repair-detail-card strong { color: #172033; font-size: 12px; }
.repair-detail-card small, .repair-detail-card p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.45; }
.repair-detail-meta { grid-template-columns: 1fr 1fr; }
.repair-detail-meta > div:last-child { grid-column: 1 / -1; }
.repair-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.repair-status-button { min-height: 42px; border: 1px solid #dbe3ee; border-radius: 11px; color: #64748b; background: #fff; font-size: 10px; font-weight: 800; }
.repair-status-button.active { color: #2563eb; border-color: #93c5fd; background: #eff6ff; }
.repair-status-button:disabled { opacity: .65; cursor: wait; }
.repair-status-button.active:disabled { opacity: 1; }
.repair-back-button { margin-top: 2px; }
.repair-print-message { min-height: 16px; margin: -2px 0 0; color: #64748b; font-size: 10px; font-weight: 700; line-height: 1.4; text-align: center; }
.repair-print-message.info { color: #2563eb; }
.repair-print-message.success { color: #16a34a; }
.repair-print-message.error { color: #dc2626; }
.repair-ticket-print { display: none; }
.repair-ticket-print img { display: block; width: 110px; max-height: 70px; margin: 0 auto 8px; object-fit: contain; }
.repair-ticket-print h1, .repair-ticket-print h2, .repair-ticket-print h3, .repair-ticket-print p { margin: 0; }
.repair-ticket-print h1 { font-size: 18px; text-align: center; }
.repair-ticket-print > p { color: #475569; font-size: 11px; text-align: center; }
.repair-ticket-print hr { margin: 14px 0; border: 0; border-top: 1px dashed #94a3b8; }
.repair-ticket-print h2 { font-size: 15px; text-align: center; }
.repair-print-code { display: block; margin: 4px 0 14px; color: #2563eb; text-align: center; }
.repair-print-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7px 12px; margin-bottom: 14px; }
.repair-print-grid span { color: #64748b; font-size: 10px; }
.repair-print-grid b { font-size: 11px; text-align: right; }
.repair-ticket-print h3 { margin: 10px 0 4px; font-size: 11px; }
.repair-print-note { min-height: 34px; padding: 8px; border: 1px solid #dbe3ee; border-radius: 7px; font-size: 11px; line-height: 1.45; }
.repair-print-thanks { margin-top: 18px !important; color: #475569; font-size: 10px; text-align: center; }
.repair-print-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; font-size: 10px; text-align: center; }
@media print {
  body * { visibility: hidden !important; }
  .repair-ticket-print, .repair-ticket-print * { visibility: visible !important; }
  .repair-ticket-print { position: absolute; inset: 0; display: block !important; width: 100%; padding: 18px; color: #000; background: #fff; font-family: Arial, sans-serif; }
  @page { size: 80mm auto; margin: 0; }
}
@media (min-width: 700px) {
  .repair-ticket-header { padding: env(safe-area-inset-top) 28px 0; }
  .repair-ticket-stats { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .repair-ticket-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repair-ticket-form, .repair-detail-card, .repair-detail-code, .repair-status-grid, .repair-form-note, .repair-form-actions, .repair-danger-button, .repair-back-button { width: min(100%, 720px); margin-left: auto; margin-right: auto; }
}
@media (max-width: 520px) {
  .repair-list-actions { grid-template-columns: 1fr; }
  .repair-list-actions .repair-primary-button { width: 100%; }
}

/* invoice-detail-page.css */
.sheet-layer.invoice-detail-page {
  align-items: stretch;
  padding: 0;
  background: #f8fafc;
}
.invoice-detail-page .sheet-backdrop { background: transparent; }
.invoice-detail-page .sheet {
  width: min(100%, 1080px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform .2s ease, opacity .2s ease;
}
.invoice-detail-page .sheet-handle { display: none; }
.invoice-detail-page .sheet-header {
  min-height: 64px;
  padding-top: env(safe-area-inset-top);
}
.invoice-detail-page .sheet-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}
.invoice-detail-page .invoice-detail-employee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -4px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.invoice-detail-page .invoice-detail-employee small {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}
.invoice-detail-page .invoice-detail-employee strong {
  color: #0f172a;
  font-size: 12px;
  text-align: right;
}
.invoice-detail-page .sheet.edge-swiping { transition: none; }
.invoice-detail-page .sheet.edge-swipe-dismiss {
  transform: translateX(100%) !important;
  opacity: .65 !important;
}

.sheet-layer.sale-bill-page {
  align-items: stretch !important;
  padding: 0 !important;
  background: #f1f5f9 !important;
}

.sale-bill-page .sheet-backdrop {
  display: none !important;
}

.sheet-layer.sale-bill-page > .sheet,
.sheet-layer.sale-bill-page > .sheet.cod-orders-sheet {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
}

.sale-bill-page .sheet-handle {
  display: none !important;
}

.sale-bill-page .sheet-header {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  min-height: calc(58px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) clamp(16px, 3vw, 30px) 0;
  background: #fff;
  box-shadow: 0 1px 0 #e2e8f0;
}

.sale-bill-page .sheet-header h2 {
  font-size: clamp(17px, 2.2vw, 22px);
}

.sale-bill-page .sheet-content {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(14px, 2.5vw, 26px) clamp(12px, 3vw, 28px)
    calc(16px + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.sale-bill-page .sale-bill,
.sale-bill-page .sales-save-status,
.sale-bill-page .success-actions {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.sale-bill-page .sale-bill {
  gap: clamp(13px, 2vw, 20px);
  padding: clamp(16px, 3vw, 28px);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.sale-bill-page .bill-store img {
  width: min(58%, 210px);
}

.sale-bill-page .bill-store strong {
  font-size: clamp(17px, 2vw, 21px);
}

.sale-bill-page .bill-title h2 {
  font-size: clamp(16px, 2vw, 20px);
}

.sale-bill-page .bill-meta small,
.sale-bill-page .bill-item small,
.sale-bill-page .bill-total small,
.sale-bill-page .bill-thanks,
.sale-bill-page .bill-items-head {
  font-size: 11px;
}

.sale-bill-page .bill-meta b,
.sale-bill-page .bill-item span strong,
.sale-bill-page .bill-item > b,
.sale-bill-page .bill-item > strong,
.sale-bill-page .bill-total > span b {
  font-size: 12px;
}

.sale-bill-page .bill-items-head,
.sale-bill-page .bill-item {
  grid-template-columns: minmax(0, 1fr) 48px minmax(105px, .34fr);
  gap: 12px;
}

.sale-bill-page .sales-save-status {
  margin-top: 12px;
}

.sale-bill-page .success-actions,
.sale-bill-page .bill-success-actions {
  position: sticky;
  bottom: calc(-16px - env(safe-area-inset-bottom, 0px));
  z-index: 4;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to bottom, rgba(248, 250, 252, .92), #f8fafc 16px);
}

.sale-bill-page .success-actions > button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
}

.sale-bill-page .success-actions .invoice-print-message {
  grid-column: 1 / -1;
}

@media (max-width: 420px) {
  .sale-bill-page .sheet-content {
    padding-inline: 10px;
  }

  .sale-bill-page .sale-bill {
    padding: 15px 13px;
    border-radius: 14px;
  }

  .sale-bill-page .bill-meta {
    grid-template-columns: 1fr;
  }

  .sale-bill-page .bill-meta .wide {
    grid-column: auto;
  }

  .sale-bill-page .bill-items-head,
  .sale-bill-page .bill-item {
    grid-template-columns: minmax(0, 1fr) 32px 92px;
    gap: 7px;
  }
}

@media (min-width: 700px) {
  .invoice-detail-page .sheet-header { padding-left: 28px; padding-right: 28px; }
  .invoice-detail-page .sheet-content { padding-top: 22px; }
}

/* invoice-item-color.css */
/* Invoice Items Spacing & Styling - POS HD MOBILE */
.receipt-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 12px 0 !important;
}

.receipt-items > span {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  margin-bottom: 2px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Product Name - BOLD */
.receipt-items > span > small,
.receipt-items > span > small > strong {
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Product Price */
.receipt-items > span > b {
  font-weight: 800 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  margin-left: 12px !important;
  white-space: nowrap !important;
}

/* Product Color Subtitle - Lowercase & Spaced */
.invoice-item-color,
.invoice-item-color-inline {
  display: block !important;
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: lowercase !important;
  margin-top: 4px !important;
}

.receipt-items small.invoice-item-color-lines {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.receipt-items .invoice-item-color-inline,
.receipt-items .invoice-item-discount-line {
  display: block !important;
  justify-content: flex-start !important;
  white-space: normal;
}

/* cart-bill-discount.css */
.cart-summary .bill-discount-input {
  width: 132px;
  min-height: 40px;
  padding: 0 12px;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: 0;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}
.cart-summary .bill-discount-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px #dbeafe;
}

/* bill-share.css */
.bill-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bill-share-button span { font-size: 19px; line-height: 1; }
.success-actions .bill-share-button { min-height: 44px; }
.invoice-detail-page .sheet-content > .secondary-button { display: inline-flex; width: calc(50% - 5px); margin-top: 8px; }
.invoice-detail-page .bill-share-button { margin-left: 8px; }

/* cart-fullscreen.css */
.cart-fullscreen-layer {
  position: absolute !important;
  inset: 0 !important;
  z-index: 120 !important;
}

.cart-fullscreen-layer .sheet-backdrop {
  display: none !important;
}

.cart-fullscreen-layer .cart-fullscreen-sheet {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  border-radius: 0 !important;
  background: #f4f5f7;
  transform: none !important;
}

.cart-fullscreen-sheet .sheet-handle {
  display: none !important;
}

.cart-fullscreen-sheet .sheet-header {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  min-height: calc(76px + env(safe-area-inset-top, 0px));
  padding: calc(12px + env(safe-area-inset-top, 0px)) 84px 12px 76px;
  border-bottom: 0;
  background: #fff;
}

.cart-fullscreen-sheet .sheet-header h2 {
  margin: 0;
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.cart-fullscreen-sheet .sheet-header .round-icon {
  position: absolute;
  left: 18px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  flex: none;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #64748b;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.cart-fullscreen-sheet .sheet-header .cart-back-symbol {
  display: block;
  transform: translateY(-1px);
  font-size: 42px;
}

.cart-channel-button {
  position: absolute;
  right: 18px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  color: #64748b;
}

.cart-channel-button svg {
  width: 31px;
  height: 31px;
}

.cart-channel-button[data-channel="online"] {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.cart-fullscreen-sheet .sheet-content {
  flex: 1;
  height: auto;
  max-height: none !important;
  padding: 0 0 calc(168px + env(safe-area-inset-bottom));
  overflow-y: auto;
}

.cart-product-search {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 0 16px 12px;
  background: #fff;
}

.cart-product-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 50px;
  gap: 9px;
}

.cart-product-search label,
.cart-customer-search-proxy {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 50px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  background: #f1f2f4;
  color: #64748b;
}

.cart-product-search input,
.cart-customer-search-proxy input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 18px;
  font-weight: 600;
}

.cart-product-search input::placeholder,
.cart-customer-search-proxy input::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

.cart-search-icon {
  font-size: 25px;
  line-height: 1;
}

.cart-tool-button,
.cart-customer-add,
.cart-customer-scan {
  display: grid;
  place-items: center;
  min-width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #f1f2f4;
  color: #111827;
  font-size: 30px;
  font-weight: 300;
}

.cart-scan-icon {
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 8px;
  background:
    linear-gradient(currentColor, currentColor) left 50% top -3px/10px 3px no-repeat,
    linear-gradient(currentColor, currentColor) right -3px top 50%/3px 10px no-repeat,
    linear-gradient(currentColor, currentColor) left 50% bottom -3px/10px 3px no-repeat,
    linear-gradient(currentColor, currentColor) left -3px top 50%/3px 10px no-repeat;
}

.cart-search-results {
  margin-top: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, .14);
}

.cart-search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  text-align: left;
}

.cart-search-result:last-child {
  border-bottom: 0;
}

.cart-search-result .product-visual {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  overflow: hidden;
}

.cart-search-result .product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.cart-search-result strong,
.cart-search-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-search-result strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.cart-search-result small {
  font-size: 11px;
  color: #64748b;
}

.cart-search-result b {
  flex: 0 0 auto;
  align-self: center;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-search-empty {
  display: block;
  padding: 14px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select {
  min-height: 76px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #111827;
  box-shadow: 0 1px 0 #eef2f7;
}

.customer-select .customer-avatar,
.cart-fullscreen-layer:not(.cart-payment-open) .customer-select .customer-avatar {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  color: #64748b;
  font-size: 0 !important;
}

.customer-select .customer-avatar::before,
.cart-fullscreen-layer:not(.cart-payment-open) .customer-select .customer-avatar::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select small {
  display: none;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select > svg {
  width: 29px;
  height: 29px;
  color: #64748b;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-lines {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  overflow-x: hidden;
  padding-right: 2px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line {
  position: relative !important;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 128px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform;
}

.cart-line-delete-btn {
  position: absolute !important;
  top: 0 !important;
  right: -84px !important;
  width: 80px !important;
  height: 100% !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 0 18px 18px 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08) !important;
  z-index: 10 !important;
  letter-spacing: 0.5px !important;
  user-select: none !important;
}

.cart-line-delete-btn:active {
  background: #dc2626 !important;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line + .cart-line {
  margin-top: 10px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line .product-visual {
  width: 66px;
  height: 76px;
  border-radius: 18px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) > strong {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line small {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1479f6;
  font-size: 19px;
  font-weight: 700;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line > strong {
  display: none;
}

.cart-fullscreen-layer:not(.cart-payment-open) .qty-control {
  grid-column: 2;
  grid-row: 2 / 4;
  align-self: center;
  justify-self: end;
  display: grid;
  grid-template-columns: 44px 54px 44px;
  gap: 0;
  width: 142px;
  min-height: 50px;
  margin: 0;
  border: 1px solid #d4d4d8;
  border-radius: 14px;
  overflow: hidden;
}

.cart-fullscreen-layer:not(.cart-payment-open) .qty-control button {
  width: 44px;
  height: 50px;
  border-radius: 0;
  background: #fff;
  color: #64748b;
}

.cart-fullscreen-layer:not(.cart-payment-open) .qty-control b {
  display: grid;
  place-items: center;
  min-width: 0;
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

.cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field {
  grid-column: 1;
  grid-row: 3;
  grid-template-columns: auto minmax(96px, 132px);
  justify-content: start;
  width: fit-content;
  max-width: min(100%, 238px);
  margin-top: 0;
}

.cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field span {
  color: #64748b;
  font-size: 11px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field input {
  min-height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-summary,
.cart-fullscreen-layer:not(.cart-payment-open) .payment-options,
.cart-fullscreen-layer:not(.cart-payment-open) .split-payment-panel,
.cart-fullscreen-layer:not(.cart-payment-open) .checkout-button,
.cart-fullscreen-layer:not(.cart-payment-open) .sales-channel-picker {
  display: none !important;
}

.cart-sale-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  padding: 18px 16px max(14px, env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #fff;
  box-shadow: 0 -16px 34px rgba(15, 23, 42, .08);
}

.cart-sale-footer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.cart-sale-footer-total span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.cart-sale-footer-total b {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 2px solid #1479f6;
  border-radius: 999px;
  color: #1479f6;
  font-size: 22px;
}

.cart-sale-footer-total strong {
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}

.cart-sale-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-temp-button,
.cart-pay-next-button {
  min-height: 58px;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
}

.cart-temp-button {
  border: 1.5px solid #1479f6;
  background: #fff;
  color: #1479f6;
}

.cart-pay-next-button {
  background: #1479f6;
  color: #fff;
}

.cart-channel-menu {
  position: absolute;
  top: calc(78px + env(safe-area-inset-top, 0px));
  right: 14px;
  z-index: 35;
  display: grid;
  width: min(260px, calc(100% - 28px));
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.cart-channel-menu button {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-align: left;
}

.cart-channel-menu button.active {
  background: #eff6ff;
  color: #1479f6;
}

.cart-channel-menu strong {
  font-size: 14px;
}

.cart-channel-menu small {
  color: #64748b;
  font-size: 11px;
}

.cart-payment-top,
.cart-payment-extra {
  display: none;
}

.cart-payment-open .cart-sale-footer,
.cart-payment-open .cart-product-search,
.cart-payment-open .customer-select,
.cart-payment-open .cart-customer-panel,
.cart-payment-open .cart-lines,
.cart-payment-open .add-note,
.cart-payment-open .order-note-box,
.cart-payment-open .sales-channel-picker {
  display: none !important;
}

.cart-payment-open .sheet-content {
  padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
}

.cart-payment-open .cart-payment-top {
  display: block;
  margin: 0 -16px 14px;
}

.cart-payment-top button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 68px;
  padding: 0 18px;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
  text-align: left;
}

.cart-payment-top b {
  color: #64748b;
  font-size: 36px;
  font-weight: 300;
}

.cart-payment-open .cart-summary {
  display: grid !important;
  gap: 28px;
  margin: 0;
  padding: 26px 18px 12px;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.cart-payment-open .cart-summary > span,
.cart-payment-open .cart-summary > strong,
.cart-payment-extra label,
.cart-payment-extra div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-payment-open .cart-summary small,
.cart-payment-open .cart-summary > strong span,
.cart-payment-extra span {
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.cart-payment-open .cart-summary [data-cart-payment-count] {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-left: 8px;
  border: 1.5px solid #94a3b8;
  border-radius: 999px;
  color: #64748b;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
}

.cart-payment-open .cart-summary b {
  color: #111827;
  font-size: 22px;
  font-weight: 800;
}

.cart-payment-open .cart-summary .bill-discount-input {
  width: 142px;
  min-height: 44px;
  padding: 0 0 0 12px;
  border: 0;
  border-bottom: 1px solid #d4d4d8;
  border-radius: 0;
  background: transparent;
  font-size: 22px;
  font-weight: 800;
  box-shadow: none;
}

.cart-payment-open .cart-summary > strong b {
  color: #1479f6;
  font-size: 23px;
  letter-spacing: 0;
}

.cart-payment-open .cart-payment-extra {
  display: grid;
  gap: 28px;
  padding: 0 18px 22px;
  border-radius: 0 0 16px 16px;
  background: #fff;
}

.cart-payment-extra input {
  width: 142px;
  min-height: 44px;
  padding: 0 0 0 12px;
  border: 0;
  border-bottom: 1px solid #d4d4d8;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  text-align: right;
}

.cart-payment-extra b {
  color: #111827;
  font-size: 22px;
  font-weight: 800;
}

.cart-payment-open .payment-options {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 18px 18px;
  padding: 6px;
  border-radius: 16px;
  background: #f1f2f4;
}

.cart-payment-open .payment-options button {
  min-width: 0;
  min-height: 62px;
  padding: 6px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #7b8493;
  box-shadow: none;
  font-size: 17px;
  font-weight: 800;
}

.cart-payment-open .payment-options button.selected {
  background: #fff;
  color: #1479f6;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .09);
}

.cart-payment-open .payment-options svg {
  display: none;
}

.cart-payment-open .payment-options button > svg:last-child {
  display: none;
}

.cart-payment-open .split-payment-panel {
  display: grid !important;
  margin: -8px 18px 18px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.cart-payment-open .checkout-button {
  position: absolute;
  right: 16px;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 16px;
  display: flex !important;
  justify-content: center;
  width: auto;
  min-height: 60px;
  border-radius: 14px;
  background: #1479f6;
  color: #fff;
  box-shadow: none;
  font-size: 21px;
  font-weight: 900;
}

.cart-payment-open .checkout-button strong {
  display: none;
}

.cart-fullscreen-sheet .cart-customer-panel {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.cart-customer-panel-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 50px 50px;
  align-items: center;
  gap: 10px;
}

.cart-customer-back {
  display: grid;
  place-items: center;
  width: 46px;
  height: 50px;
  border-radius: 14px;
  background: transparent;
  color: #64748b;
  font-size: 44px;
  font-weight: 300;
}

.cart-customer-panel-header > strong {
  display: none;
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.cart-fullscreen-sheet .cart-customer-panel .customer-mode-row,
.cart-fullscreen-sheet .cart-customer-panel .search-box.compact {
  display: none !important;
}

.cart-customer-panel.customer-form-mode .cart-customer-search-proxy,
.cart-customer-panel.customer-form-mode .cart-customer-add,
.cart-customer-panel.customer-form-mode .cart-customer-scan {
  display: none;
}

.cart-customer-panel.customer-form-mode .cart-customer-panel-header {
  grid-template-columns: 46px minmax(0, 1fr);
}

.cart-customer-panel.customer-form-mode .cart-customer-panel-header > strong {
  display: block;
}

.cart-fullscreen-sheet .customer-pick-list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 22px;
  max-height: none;
  padding: 6px 0 18px;
  overflow-y: auto;
}

.cart-fullscreen-sheet .customer-pick-list button {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 24px;
  gap: 14px;
  min-height: 80px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.cart-fullscreen-sheet .customer-pick-list .customer-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #1479f6;
  font-size: 0;
}

.cart-fullscreen-sheet .customer-pick-list .customer-avatar::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 46% 46%;
  background:
    radial-gradient(circle at 50% 28%, #bfdbfe 0 9px, transparent 10px),
    radial-gradient(ellipse at 50% 82%, #2586f5 0 17px, transparent 18px);
}

.cart-fullscreen-sheet .customer-pick-list button > span:nth-child(2) {
  gap: 8px;
}

.cart-fullscreen-sheet .customer-pick-list strong {
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.cart-fullscreen-sheet .customer-pick-list small {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f2f4;
  color: #64748b;
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-fullscreen-sheet .customer-pick-list button.selected {
  background: #fff;
}

.cart-fullscreen-sheet .customer-pick-list button.selected > svg {
  color: #1479f6;
}

.cart-fullscreen-sheet .cart-customer-form {
  display: grid;
  gap: 14px;
  padding-top: 8px;
  overflow-y: auto;
}

.cart-fullscreen-sheet .cart-customer-form .form-field {
  margin: 0;
}

.cart-fullscreen-sheet .cart-customer-form .form-field > span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.cart-fullscreen-sheet .cart-customer-form input {
  min-height: 52px;
  border-radius: 14px;
  background: #f8fafc;
  font-size: 15px;
}

.cart-fullscreen-sheet .cart-customer-form .primary-button {
  min-height: 56px;
  margin-top: 4px;
  border-radius: 14px;
  background: #1479f6;
  font-size: 17px;
}

.cart-exit-confirm {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(3px);
}

.cart-exit-card {
  width: min(100%, 340px);
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .28);
}

.cart-exit-card strong {
  display: block;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.45;
}

.cart-exit-card p {
  margin: 8px 0 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.cart-exit-card > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-exit-card button {
  min-height: 44px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
}

.cart-discard-button {
  background: #dc2626;
}

.cart-save-button {
  background: #2563eb;
}

@media (max-width: 420px) {
  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 7px 8px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line .product-visual {
    width: 58px;
    height: 68px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) > strong {
    font-size: 18px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line small {
    font-size: 17px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .qty-control {
    grid-column: 2;
    grid-row: 2 / 4;
    justify-self: end;
    grid-template-columns: 40px 52px 40px;
    width: 132px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .qty-control button {
    width: 40px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field {
    grid-column: 1;
    max-width: 218px;
  }

  .cart-sale-footer-total span,
  .cart-payment-open .cart-summary small,
  .cart-payment-open .cart-summary > strong span,
  .cart-payment-extra span {
    font-size: 18px;
  }

  .cart-payment-open .payment-options button {
    font-size: 14px;
  }
}

.cart-fullscreen-sheet .sheet-header {
  min-height: calc(66px + env(safe-area-inset-top, 0px));
  padding: calc(10px + env(safe-area-inset-top, 0px)) 74px 10px 60px;
}

.cart-fullscreen-sheet .sheet-header h2 {
  font-size: 21px;
}

.cart-fullscreen-sheet .sheet-header .round-icon {
  left: 14px;
  top: calc(10px + env(safe-area-inset-top, 0px));
  width: 38px;
  height: 38px;
  font-size: 30px;
}

.cart-fullscreen-sheet .sheet-header .cart-back-symbol {
  font-size: 36px;
}

.cart-channel-button {
  right: 14px;
  bottom: 10px;
  width: 48px;
  height: 48px;
}

.cart-channel-button svg {
  width: 25px;
  height: 25px;
}

.cart-product-search {
  padding: 0 14px 10px;
}

.cart-product-search-row {
  grid-template-columns: minmax(0, 1fr) 46px 46px;
  gap: 8px;
}

.cart-product-search label,
.cart-customer-search-proxy {
  min-height: 46px;
  padding: 0 12px;
  gap: 8px;
}

.cart-product-search input,
.cart-customer-search-proxy input {
  font-size: 15px;
}

.cart-search-icon {
  font-size: 20px;
}

.cart-tool-button,
.cart-customer-add,
.cart-customer-scan {
  min-width: 46px;
  height: 46px;
  font-size: 24px;
}

.cart-scan-icon {
  width: 21px;
  height: 21px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select {
  min-height: 66px;
  padding: 0 16px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select .customer-avatar::before {
  width: 24px;
  height: 24px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select strong {
  font-size: 18px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .customer-select > svg {
  width: 24px;
  height: 24px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-lines {
  margin-top: 18px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  min-height: 104px;
  padding: 12px 14px;
  border-radius: 16px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line .product-visual {
  width: 52px;
  height: 60px;
  border-radius: 14px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-areas:
    "name qty"
    "price qty"
    "discount discount";
  align-items: center;
  gap: 5px 8px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) > strong {
  grid-area: name;
  font-size: 15px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.cart-fullscreen-layer:not(.cart-payment-open) .cart-line small {
  grid-area: price;
  font-size: 14px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .qty-control {
  grid-area: qty;
  width: 118px;
  min-height: 40px;
  grid-template-columns: 36px 46px 36px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .qty-control button {
  width: 36px;
  height: 40px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .qty-control b {
  font-size: 17px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field {
  grid-area: discount;
  grid-template-columns: auto minmax(72px, 104px);
  max-width: min(100%, 180px);
}

.cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field span {
  font-size: 10px;
}

.cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field input {
  min-height: 30px;
  font-size: 11px;
}

.cart-sale-footer {
  padding: 16px 14px max(12px, env(safe-area-inset-bottom));
}

.cart-sale-footer-total {
  margin-bottom: 14px;
}

.cart-sale-footer-total span {
  font-size: 17px;
}

.cart-sale-footer-total b {
  min-width: 36px;
  height: 36px;
  font-size: 18px;
}

.cart-sale-footer-total strong {
  font-size: 21px;
}

.cart-temp-button,
.cart-pay-next-button {
  min-height: 52px;
  font-size: 19px;
}

.cart-payment-open .sheet-content {
  padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
}

.cart-payment-top button {
  min-height: 58px;
  font-size: 18px;
}

.cart-payment-top b {
  font-size: 30px;
}

.cart-payment-open .cart-summary {
  gap: 22px;
  padding: 22px 16px 10px;
}

.cart-payment-open .cart-summary small,
.cart-payment-open .cart-summary > strong span,
.cart-payment-extra span {
  font-size: 17px;
}

.cart-payment-open .cart-summary [data-cart-payment-count] {
  min-width: 24px;
  height: 24px;
  font-size: 14px;
}

.cart-payment-open .cart-summary b,
.cart-payment-extra b {
  font-size: 18px;
}

.cart-payment-open .cart-summary .bill-discount-input,
.cart-payment-extra input {
  width: 126px;
  min-height: 38px;
  font-size: 18px;
}

.cart-payment-open .cart-summary > strong b {
  font-size: 20px;
}

.cart-payment-open .payment-options {
  margin: 0 16px 16px;
}

.cart-payment-open .payment-options button {
  min-height: 54px;
  font-size: 14px;
}

.cart-payment-open .checkout-button {
  min-height: 54px;
  font-size: 18px;
}

.cart-fullscreen-sheet .cart-customer-panel {
  gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px max(18px, env(safe-area-inset-bottom));
}

.cart-customer-panel-header {
  grid-template-columns: 42px minmax(0, 1fr) 46px 46px;
  gap: 8px;
}

.cart-customer-back {
  width: 42px;
  height: 46px;
  font-size: 36px;
}

.cart-customer-panel-header > strong {
  font-size: 20px;
}

.cart-fullscreen-sheet .customer-pick-list {
  gap: 16px;
}

.cart-fullscreen-sheet .customer-pick-list button {
  grid-template-columns: 50px minmax(0, 1fr) 22px;
  gap: 12px;
  min-height: 68px;
}

.cart-fullscreen-sheet .customer-pick-list .customer-avatar {
  width: 50px;
  height: 50px;
}

.cart-fullscreen-sheet .customer-pick-list .customer-avatar::before {
  width: 30px;
  height: 30px;
}

.cart-fullscreen-sheet .customer-pick-list strong {
  font-size: 17px;
}

.cart-fullscreen-sheet .customer-pick-list small {
  font-size: 13px;
}

.cart-fullscreen-sheet .cart-customer-form {
  gap: 12px;
}

.cart-fullscreen-sheet .cart-customer-form .form-field > span {
  font-size: 12px;
}

.cart-fullscreen-sheet .cart-customer-form input {
  min-height: 46px;
  font-size: 14px;
}

.cart-fullscreen-sheet .cart-customer-form .primary-button {
  min-height: 50px;
  font-size: 15px;
}

@media (max-width: 420px) {
  .cart-fullscreen-sheet .sheet-header {
    min-height: calc(62px + env(safe-area-inset-top, 0px));
    padding: calc(10px + env(safe-area-inset-top, 0px)) 68px 10px 58px;
  }

  .cart-fullscreen-sheet .sheet-header h2 {
    font-size: 20px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
    min-height: 96px;
    padding: 11px 12px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line .product-visual {
    width: 48px;
    height: 56px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) {
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 4px 7px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line > div:nth-child(2) > strong {
    font-size: 14px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .cart-line small {
    font-size: 13px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .qty-control {
    width: 108px;
    min-height: 38px;
    grid-template-columns: 34px 40px 34px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .qty-control button {
    width: 34px;
    height: 38px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .qty-control b {
    font-size: 16px;
  }

  .cart-fullscreen-layer:not(.cart-payment-open) .line-discount-field {
    max-width: min(100%, 168px);
    grid-template-columns: auto minmax(68px, 94px);
  }

  .cart-sale-footer-total span,
  .cart-payment-open .cart-summary small,
  .cart-payment-open .cart-summary > strong span,
  .cart-payment-extra span {
    font-size: 15px;
  }

  .cart-payment-open .payment-options button {
    font-size: 13px;
  }
}

/* cart-customer-required.css */
.checkout-button.customer-draft-blocked{background:#64748b;box-shadow:none}.checkout-button.customer-draft-blocked:active{transform:none}.cart-customer-required-dialog{position:fixed;inset:0;z-index:2147483646;display:flex;align-items:center;justify-content:center;padding:20px max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));background:rgba(15,23,42,.52)}.cart-customer-required-dialog section{width:min(100%,360px);padding:22px 20px;border-radius:20px;background:#fff;box-shadow:0 22px 48px rgba(15,23,42,.28);text-align:center}.cart-customer-required-icon{display:grid;place-items:center;width:38px;height:38px;margin:0 auto 11px;border-radius:999px;background:#f59e0b;color:#fff;font-size:19px;font-weight:900}.cart-customer-required-dialog h3{margin:0;color:#0f172a;font-size:17px}.cart-customer-required-dialog p{margin:8px 0 17px;color:#64748b;font-size:12px;line-height:1.55}.cart-customer-required-dialog p b{color:#0f172a}.cart-customer-required-dialog button{width:100%;min-height:48px;padding:0 14px;border-radius:13px;background:#2563eb;color:#fff;font-size:12px;font-weight:900}

/* sales-order-mode.css */
.sales-workflow-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  margin: -6px 0 14px;
}

.sales-workflow-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #e8eef7;
}

.sales-workflow-switch button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.sales-workflow-switch button.active {
  background: #fff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.sales-workflow-manager-slot {
  display: flex;
}

.sale-header > .cod-order-entry {
  display: none !important;
}

.sales-workflow-toolbar .sales-order-manager-entry {
  min-width: 90px;
  min-height: 50px;
  padding: 0 10px;
  border: 1px solid #99f6e4;
  border-radius: 9px;
  background: #f0fdfa;
  color: #0f766e;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.sales-workflow-toolbar .sales-order-manager-entry b {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0 4px;
  place-items: center;
  border-radius: 9px;
  background: #0f766e;
  color: #fff;
  font-size: 9px;
}

.sales-order-panel {
  display: none !important;
}

.sales-order-panel[hidden] {
  display: none !important;
}

.sales-order-panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.sales-order-panel-heading > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sales-order-panel-heading strong {
  color: #0f172a;
  font-size: 12px;
}

.sales-order-panel-heading small {
  color: #64748b;
  font-size: 9px;
  line-height: 1.45;
}

.sales-order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.sales-order-fields label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.sales-order-fields label.wide {
  grid-column: 1 / -1;
}

.sales-order-fields label > span {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.sales-order-fields label b {
  color: #dc2626;
}

.sales-order-fields input,
.sales-order-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
}

.sales-order-fields textarea {
  min-height: 64px;
  resize: vertical;
}

.sales-order-fields input:focus,
.sales-order-fields textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.sales-order-customer-match,
.sales-order-error {
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.sales-order-customer-match {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.sales-order-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.sales-order-customer-match[hidden],
.sales-order-error[hidden] {
  display: none;
}

.sales-order-cart .payment-options,
.sales-order-cart .sales-channel-picker {
  display: none !important;
}

.sales-order-cart .checkout-button {
  background: #0f766e;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.22);
}

.sales-order-cart .checkout-button:disabled {
  opacity: 0.65;
}

.sales-order-toast {
  position: absolute;
  z-index: 180;
  right: 14px;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 14px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #a7f3d0;
  border-radius: 9px;
  background: #ecfdf5;
  color: #065f46;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.sales-order-toast strong {
  font-size: 12px;
}

.sales-order-toast span {
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .sales-workflow-toolbar {
    grid-template-columns: 1fr;
  }

  .sales-workflow-manager-slot .sales-order-manager-entry {
    width: 100%;
    min-height: 42px;
  }

  .sales-order-fields {
    grid-template-columns: 1fr;
  }

  .sales-order-fields label.wide {
    grid-column: auto;
  }
}

@media (min-width: 760px) {
  .sales-workflow-toolbar {
    max-width: 620px;
  }
}

/* tomy145-barcode-print.css */
/* Tomy 145 Barcode Printing Styles - POS HD MOBILE */
.tomy145-dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.tomy145-dialog-card {
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tomy145SlideUp 0.2s ease-out;
}

@keyframes tomy145SlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tomy145-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.tomy145-dialog-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.tomy145-dialog-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tomy145-dialog-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.tomy145-dialog-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tomy145-control-panel {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr 1fr;
  gap: 16px;
  background: #f8fafc;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  align-items: center;
}

.tomy145-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tomy145-field-group label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tomy145-field-group input {
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

.tomy145-field-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tomy145-preview-container {
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #94a3b8;
  padding: 20px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  max-height: 520px;
}

/* A4 Sheet (210mm x 297mm) */
.tomy145-a4-sheet {
  width: 210mm;
  min-height: 297mm;
  background: #ffffff;
  padding: 8mm 7mm;
  box-sizing: border-box;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
  display: grid;
  grid-template-columns: repeat(5, 38mm);
  grid-auto-rows: 21mm;
  gap: 0.6mm 2mm;
  justify-content: center;
  transform-origin: top center;
}

/* Individual Tomy 145 Sticker (38mm x 21mm) Matching Image 2 */
.tomy145-sticker {
  width: 38mm;
  height: 21mm;
  box-sizing: border-box;
  padding: 0.6mm 1mm;
  border: 1px dashed #cbd5e1;
  border-radius: 1mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  background: #ffffff;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.tomy145-sticker-title {
  font-size: 6pt;
  font-weight: 600;
  color: #000000;
  line-height: 1.1;
  max-height: 2.2em;
  overflow: hidden;
  text-align: center;
  word-break: break-word;
  margin-bottom: 0.2mm;
}

.tomy145-sticker-barcode {
  width: 100%;
  height: 7.5mm;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tomy145-sticker-barcode svg {
  width: 100%;
  height: 100%;
}

.tomy145-sticker-sku {
  font-size: 6pt;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-top: 0.2mm;
}

.tomy145-sticker-price {
  font-size: 7.5pt;
  font-weight: 900;
  color: #000000;
  line-height: 1;
  margin-top: 0.2mm;
}

.tomy145-dialog-footer {
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.tomy145-btn {
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tomy145-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.tomy145-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.tomy145-btn-primary {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tomy145-btn-primary:hover {
  background: #1d4ed8;
}

/* Print Trigger Button in Product Detail Sheet */
.tomy145-print-trigger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  margin-left: 8px !important;
}

.tomy145-print-trigger-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

/* Print Specific Rules for A4 Tomy 145 Sticker Sheet */
@media print {
  body > *:not(.tomy145-dialog-layer) {
    display: none !important;
  }
  .tomy145-dialog-layer {
    position: absolute !important;
    inset: 0 !important;
    background: #ffffff !important;
    padding: 0 !important;
  }
  .tomy145-dialog-card {
    max-width: 100% !important;
    max-height: 100% !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .tomy145-dialog-header,
  .tomy145-control-panel,
  .tomy145-dialog-footer {
    display: none !important;
  }
  .tomy145-preview-container {
    padding: 0 !important;
    background: #ffffff !important;
    border: 0 !important;
    overflow: visible !important;
  }
  .tomy145-a4-sheet {
    box-shadow: none !important;
    transform: none !important;
    margin: 0 auto !important;
  }
  .tomy145-sticker {
    border: 0 !important;
  }
}

/* barcode-scanner.css */
/* Barcode Scanner Modal & Viewfinder Styles - POS HD MOBILE */
.hd-scanner-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  animation: hdScannerFadeIn 0.2s ease-out;
}

@keyframes hdScannerFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.hd-scanner-header {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  padding: 8px 0;
}

.hd-scanner-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hd-scanner-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.hd-scanner-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hd-scanner-viewfinder {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hd-scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Target Box Overlay with Corner Reticles */
.hd-scanner-frame {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 16px;
  box-shadow: 0 0 0 4000px rgba(15, 23, 42, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hd-scanner-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 4px solid #3b82f6;
}

.hd-scanner-corner-tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-top-left-radius: 12px; }
.hd-scanner-corner-tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-top-right-radius: 12px; }
.hd-scanner-corner-bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-bottom-left-radius: 12px; }
.hd-scanner-corner-br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-bottom-right-radius: 12px; }

/* Laser Scanner Line Animation */
.hd-scanner-laser {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #3b82f6, #60a5fa, #3b82f6, transparent);
  box-shadow: 0 0 12px #3b82f6, 0 0 20px #60a5fa;
  animation: hdLaserScan 2s infinite ease-in-out;
}

@keyframes hdLaserScan {
  0% { top: 15px; opacity: 0.8; }
  50% { top: 220px; opacity: 1; }
  100% { top: 15px; opacity: 0.8; }
}

.hd-scanner-hint {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

.hd-scanner-controls {
  width: 100%;
  max-width: 400px;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.hd-scanner-btn {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.hd-scanner-btn-torch {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.hd-scanner-btn-torch:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hd-scanner-btn-close {
  background: #ef4444;
  color: #ffffff;
}

.hd-scanner-btn-close:hover {
  background: #dc2626;
}

/* Toast Success Notification */
.hd-scan-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999999;
  background: #10b981;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: hdToastBounce 0.3s ease-out;
}

@keyframes hdToastBounce {
  0% { transform: translate(-50%, -20px); opacity: 0; }
  60% { transform: translate(-50%, 5px); opacity: 1; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

