:root{--bg:#f4f6fa;--surface:#fff;--surface-2:#f8fafc;--ink:#0f172a;--muted:#667085;--line:#e6eaf0;--nav:#0b1220;--nav-2:#131c2d;--primary:#2463eb;--primary-soft:#eaf1ff;--success:#0f9f6e;--warning:#d97706;--radius:20px;--shadow:0 12px 32px rgba(15,23,42,.06)}*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{text-decoration:none}.min-w-0{min-width:0}.portal-body{overflow-x:hidden}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:276px;background:linear-gradient(180deg,var(--nav),#0e1727);color:#fff;z-index:1045;padding:22px 16px;display:flex;flex-direction:column;box-shadow:18px 0 44px rgba(2,6,23,.13)}.brand-row{display:flex;align-items:center;gap:12px;padding:0 8px 22px}.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#3b82f6,#7c3aed);font-weight:800;color:#fff;box-shadow:0 8px 24px rgba(59,130,246,.35)}.brand-mark.large{width:56px;height:56px;border-radius:18px;font-size:1.35rem}.brand-copy{display:flex;flex-direction:column}.brand-copy strong{font-size:1rem}.brand-copy span{font-size:.72rem;color:#93a4bd;letter-spacing:.08em;text-transform:uppercase}.side-nav{display:flex;flex-direction:column;gap:5px;overflow:auto}.nav-item,.nav-group{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:#d8e2f0;width:100%;padding:11px 13px;border-radius:12px;font-size:.94rem;text-align:left}.nav-item:hover,.nav-group:hover{background:rgba(255,255,255,.07);color:#fff}.nav-item i,.nav-group>span i{width:20px}.nav-group{justify-content:space-between;margin-top:7px}.nav-group>span{display:flex;gap:12px}.nav-sub{display:block;color:#93a4bd;padding:9px 12px 9px 45px;border-radius:10px;font-size:.88rem}.nav-sub:hover{color:#fff;background:rgba(255,255,255,.05)}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:18px 6px 0}.user-card{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:12px;background:#1d4ed8;display:grid;place-items:center;color:#fff;font-weight:700}.small-avatar{width:34px;height:34px;border-radius:50%}.user-copy{display:flex;flex-direction:column;min-width:0}.user-copy strong{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-copy span{font-size:.72rem;color:#93a4bd}.main-shell{margin-left:276px;min-height:100vh}.topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:rgba(255,255,255,.86);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1020}.page-heading{display:flex;flex-direction:column}.page-heading span{font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}.page-heading strong{font-size:1rem}.topbar-actions{display:flex;align-items:center;gap:8px}.icon-btn{width:40px;height:40px;border:1px solid var(--line);background:#fff;border-radius:12px;display:grid;place-items:center;color:var(--ink)}.context-bar{margin:20px 28px 0;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:16px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow)}.context-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.82rem;white-space:nowrap}.context-form{flex:1}.context-form .form-select{border:0;background-color:var(--surface-2);font-weight:650;box-shadow:none}.content-wrap{padding:28px 28px 96px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.section-head.compact{align-items:center}.section-head h1{font-size:clamp(1.55rem,3vw,2.1rem);margin:.15rem 0 .35rem;font-weight:760;letter-spacing:-.03em}.section-head p{margin:0;color:var(--muted)}.eyebrow{font-size:.7rem;font-weight:800;letter-spacing:.13em;color:#6480a6}.live-pill{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#ecfdf5;color:#047857;border-radius:999px;font-size:.8rem;font-weight:700}.live-pill span{width:8px;height:8px;border-radius:50%;background:#10b981;box-shadow:0 0 0 5px rgba(16,185,129,.12)}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow);min-width:0}.metric-icon{width:48px;height:48px;flex:0 0 48px;border-radius:16px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:1.2rem}.metric-card.warning .metric-icon{background:#fff7ed;color:var(--warning)}.metric-card.success .metric-icon{background:#ecfdf5;color:var(--success)}.metric-card>div:last-child{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:7px}.metric-card span{grid-column:1/-1;color:var(--muted);font-size:.79rem;font-weight:650}.metric-card strong{font-size:1.55rem;letter-spacing:-.03em}.metric-card small{color:#94a3b8}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:16px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.panel-head h2{font-size:1.05rem;margin:.2rem 0 0}.panel-head a{font-size:.82rem;font-weight:700;color:var(--primary)}.panel-icon{color:var(--primary)}.chart-wrap{height:310px}.product-list{display:flex;flex-direction:column}.product-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.product-row:last-child{border-bottom:0}.rank{width:30px;height:30px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;font-weight:800;font-size:.78rem}.product-copy,.product-values{display:flex;flex-direction:column;min-width:0}.product-copy strong{font-size:.86rem}.product-copy span,.product-values span{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-values{text-align:right}.product-values strong{font-size:.82rem}.empty-state{min-height:220px;display:grid;place-items:center;align-content:center;gap:8px;color:var(--muted)}.empty-state i{font-size:2rem}.portal-table thead th{background:#f8fafc;color:#64748b;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--line);padding:14px 16px}.portal-table tbody td{padding:14px 16px;border-color:var(--line);font-size:.86rem}.portal-table td strong,.portal-table td small{display:block}.portal-table td small{color:var(--muted);margin-top:2px}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#eef2ff;color:#4338ca;font-size:.72rem;font-weight:750}.mobile-order-list{display:none}.placeholder-panel{text-align:center;min-height:360px;display:grid;place-items:center;align-content:center;gap:10px}.placeholder-icon{width:72px;height:72px;border-radius:22px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:1.7rem}.placeholder-panel h2{margin:0}.placeholder-panel p{max-width:560px;color:var(--muted)}.placeholder-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}.placeholder-badges span{padding:7px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.75rem;font-weight:700;color:#475569}.mobile-nav{position:fixed;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));height:66px;background:rgba(11,18,32,.96);border-radius:20px;z-index:1030;display:flex!important;align-items:center;justify-content:space-around;box-shadow:0 18px 40px rgba(2,6,23,.28);padding:0 5px}.mobile-nav a,.mobile-nav button{border:0;background:transparent;color:#94a3b8;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.63rem;min-width:54px}.mobile-nav i{font-size:1.2rem;color:#fff}.sidebar-backdrop{display:none}.login-body{background:#edf2f8}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr)}.login-hero{position:relative;overflow:hidden;padding:54px;flex-direction:column;justify-content:space-between;color:#fff;background:radial-gradient(circle at 20% 20%,rgba(59,130,246,.35),transparent 26%),linear-gradient(145deg,#07101f,#122342 70%,#172554)}.login-brand{display:flex;align-items:center;gap:12px;font-size:1.08rem;font-weight:800;z-index:1}.hero-copy{max-width:650px;z-index:1}.hero-copy .eyebrow{color:#8bb5ff}.hero-copy h1{font-size:clamp(2.6rem,5vw,5.5rem);line-height:.98;letter-spacing:-.06em;margin:.8rem 0 1.2rem}.hero-copy p{color:#bdd0eb;font-size:1.08rem;max-width:590px}.hero-orbit{position:absolute;border:1px solid rgba(255,255,255,.11);border-radius:50%}.orbit-one{width:520px;height:520px;right:-110px;top:80px}.orbit-two{width:720px;height:720px;right:-150px;top:-20px}.login-panel{display:grid;place-items:center;padding:32px;background:#fff}.login-card{width:min(100%,430px)}.login-mobile-brand{display:flex;align-items:center;gap:10px;margin-bottom:42px}.login-card h2{font-size:2rem;letter-spacing:-.04em;margin:.4rem 0}.form-floating>.form-control{min-height:60px;border-radius:14px;border-color:#dfe5ee}.form-floating>.form-control:focus{border-color:#8bb1ff;box-shadow:0 0 0 4px rgba(36,99,235,.08)}.login-button{border-radius:14px;min-height:56px;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:0;font-weight:750}.security-note{display:flex;gap:10px;align-items:flex-start;margin-top:22px;padding:13px 14px;border-radius:14px;background:#f8fafc;color:#64748b;font-size:.78rem}.security-note i{color:#10b981;font-size:1rem}.filter-btn{border:1px solid var(--line);border-radius:12px}.order-id{display:block;font-size:.92rem}.order-meta{display:flex;gap:12px;color:var(--muted);font-size:.75rem;margin:10px 0}.order-meta span{display:flex;align-items:center;gap:5px}.order-product{display:flex;justify-content:space-between;align-items:end;gap:12px;border-top:1px solid var(--line);padding-top:10px}.order-product>div{display:flex;flex-direction:column;min-width:0}.order-product span{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-order-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:var(--shadow);margin-bottom:10px}
@media(max-width:1199.98px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.chart-wrap{height:280px}}
@media(max-width:991.98px){.sidebar{transform:translateX(-102%);transition:transform .24s ease}.sidebar.is-open{transform:translateX(0)}.sidebar-backdrop{position:fixed;inset:0;background:rgba(2,6,23,.46);z-index:1040}.sidebar-backdrop.is-open{display:block}.main-shell{margin-left:0}.topbar{padding:0 16px}.context-bar{margin:14px 16px 0}.content-wrap{padding:22px 16px 100px}.login-shell{grid-template-columns:1fr}.login-panel{min-height:100vh}.mobile-nav{display:flex!important}}
@media(min-width:992px){.mobile-nav{display:none!important}}
@media(max-width:767.98px){.metric-grid{grid-template-columns:1fr 1fr;gap:10px}.metric-card{padding:14px;border-radius:17px;gap:10px}.metric-icon{width:40px;height:40px;flex-basis:40px;border-radius:13px}.metric-card strong{font-size:1.25rem}.metric-card small{font-size:.68rem}.metric-card span{font-size:.7rem}.section-head{margin-bottom:16px}.section-head p{font-size:.86rem}.desktop-table-wrap{display:none}.mobile-order-list{display:block}.panel{border-radius:18px}.context-label span{display:none}.context-bar{gap:5px}.chart-wrap{height:240px}.login-panel{padding:24px 20px}.login-card h2{font-size:1.75rem}}
@media(max-width:420px){.metric-grid{grid-template-columns:1fr}.metric-card>div:last-child{grid-template-columns:auto 1fr}.section-head{gap:10px}.live-pill{display:none}}

/* Orders filter + detail */
.orders-head{margin-bottom:14px}.filter-count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--primary);color:#fff;font-size:.68rem;font-weight:800}.order-filter-panel{margin-bottom:16px;padding:18px}.filter-title-row{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:14px}.filter-title-row h2{font-size:1rem;margin:.15rem 0 0}.filter-reset{font-size:.78rem;font-weight:750;color:var(--primary)}.status-filter-grid{display:flex;flex-wrap:wrap;gap:8px}.status-filter-chip{cursor:pointer}.status-filter-chip input{position:absolute;opacity:0;pointer-events:none}.status-filter-chip span{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#475569;font-size:.76rem;font-weight:750;transition:.15s ease}.status-filter-chip span i{display:none}.status-filter-chip input:checked+span{border-color:#9bb8ff;background:var(--primary-soft);color:#1747a6}.status-filter-chip input:checked+span i{display:inline}.filter-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.filter-help{color:var(--muted);font-size:.76rem}.filter-actions .btn{border-radius:12px;font-weight:750;padding:.55rem 1rem}.order-row{cursor:pointer;transition:background-color .15s ease}.order-row:hover,.order-row:focus{background:#f7faff;outline:none}.order-row:hover .row-chevron,.order-row:focus .row-chevron{transform:translateX(3px);color:var(--primary)}.row-chevron{display:inline-block;color:#94a3b8;transition:.15s ease}.mobile-order-link{display:block;color:inherit}.mobile-order-link:hover{color:inherit}.mobile-order-total{display:flex;align-items:center;gap:8px}.mobile-order-total i{color:#94a3b8}.orders-empty strong{color:var(--ink)}.orders-empty span{font-size:.84rem}.status-shipped{background:#ecfdf5;color:#047857}.status-unshipped{background:#fff7ed;color:#b45309}.status-pending,.status-pending-availability{background:#fffbeb;color:#a16207}.status-canceled,.status-cancelled{background:#fef2f2;color:#b91c1c}.status-partially-shipped{background:#eff6ff;color:#1d4ed8}
.detail-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.detail-back{display:inline-flex;align-items:center;gap:8px;color:#475569;font-size:.84rem;font-weight:750}.detail-back:hover{color:var(--primary)}.order-detail-hero{padding:22px;margin-bottom:16px}.order-detail-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--line)}.order-detail-title h1{margin:.2rem 0 .2rem;font-size:clamp(1.35rem,3vw,2rem);letter-spacing:-.04em}.order-detail-title p{margin:0;color:var(--muted)}.order-detail-amount{text-align:right;display:flex;flex-direction:column}.order-detail-amount span{font-size:.76rem;color:var(--muted)}.order-detail-amount strong{font-size:1.45rem;letter-spacing:-.03em}.detail-facts-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-top:18px}.detail-fact{display:flex;gap:10px;align-items:center;min-width:0}.detail-fact>i{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border-radius:12px;background:var(--surface-2);color:var(--primary)}.detail-fact>div{display:flex;flex-direction:column;min-width:0}.detail-fact span{color:var(--muted);font-size:.7rem}.detail-fact strong{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-detail-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(310px,.55fr);gap:16px}.detail-side-column{display:flex;flex-direction:column;gap:16px}.detail-section{padding:18px}.detail-panel-head{margin-bottom:12px;align-items:center}.detail-panel-head h2{font-size:1rem}.detail-count{display:grid;place-items:center;min-width:32px;height:32px;padding:0 8px;border-radius:10px;background:var(--surface-2);font-size:.78rem;font-weight:800}.detail-item-list{display:flex;flex-direction:column;gap:10px}.detail-item-card{display:grid;grid-template-columns:78px minmax(0,1fr);gap:13px;padding:12px;border:1px solid var(--line);border-radius:16px;background:#fff}.product-image-wrap{width:78px;height:78px;border-radius:12px;background:var(--surface-2);display:grid;place-items:center;overflow:hidden;color:#94a3b8;font-size:1.4rem}.product-image-wrap img{width:100%;height:100%;object-fit:contain;background:#fff}.detail-item-main{min-width:0}.detail-item-heading{display:flex;justify-content:space-between;gap:12px}.detail-item-heading>div{display:flex;flex-direction:column;min-width:0}.detail-item-heading>div strong{font-size:.88rem}.detail-item-heading>div span{font-size:.72rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.detail-line-total{font-size:.84rem;white-space:nowrap}.detail-item-meta,.detail-item-secondary{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;font-size:.72rem;color:#64748b}.detail-item-meta span,.detail-item-secondary span{white-space:nowrap}.profit-positive{color:#047857!important}.profit-negative{color:#b91c1c!important}.detail-definition-list{margin:0}.detail-definition-list>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line)}.detail-definition-list>div:last-child{border-bottom:0}.detail-definition-list dt{font-size:.73rem;color:var(--muted);font-weight:600}.detail-definition-list dd{margin:0;text-align:right;font-size:.76rem;font-weight:750;word-break:break-word}.financial-lines{display:flex;flex-direction:column}.financial-lines>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:.78rem}.financial-lines span{color:var(--muted)}.financial-total{margin-top:4px;padding-top:12px!important;border-top:1px solid var(--line);font-weight:800}.financial-profit{margin-top:5px;padding:11px!important;border-radius:12px;background:#f8fafc;font-size:.86rem!important}.financial-profit span{color:inherit}.future-detail-card{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#f8fbff,#f5f3ff)}.future-detail-card>i{font-size:1.35rem;color:var(--primary)}.future-detail-card>div{display:flex;flex-direction:column}.future-detail-card strong{font-size:.8rem}.future-detail-card span{font-size:.7rem;color:var(--muted);margin-top:2px}
@media(max-width:991.98px){.order-detail-grid{grid-template-columns:1fr}.detail-side-column{display:grid;grid-template-columns:1fr 1fr}.future-detail-card{grid-column:1/-1}.detail-facts-grid{grid-template-columns:1fr 1fr}}
@media(max-width:767.98px){.orders-head{align-items:center}.orders-head p{display:none}.order-filter-panel{padding:15px}.filter-title-row{align-items:center}.status-filter-grid{display:grid;grid-template-columns:1fr 1fr}.status-filter-chip span{justify-content:center;width:100%;padding:9px 8px;font-size:.7rem}.filter-help{display:none}.filter-actions{justify-content:flex-end}.filter-actions .btn{width:100%}.order-detail-hero{padding:16px}.order-detail-title{display:block;padding-bottom:14px}.order-detail-amount{margin-top:14px;padding:12px 14px;border-radius:14px;background:var(--surface-2);text-align:left}.order-detail-amount strong{font-size:1.25rem}.detail-facts-grid{padding-top:14px;gap:10px}.detail-fact>i{display:none}.detail-fact{padding:9px 10px;border-radius:12px;background:var(--surface-2)}.detail-fact strong{font-size:.76rem}.detail-side-column{display:flex}.detail-item-card{grid-template-columns:62px minmax(0,1fr);padding:10px}.product-image-wrap{width:62px;height:62px}.detail-item-heading{display:block}.detail-line-total{display:block;margin-top:6px}.detail-item-secondary{padding-top:7px;border-top:1px dashed var(--line)}.detail-back span{display:none}.future-detail-card{grid-column:auto}}
@media(max-width:420px){.status-filter-grid{grid-template-columns:1fr}.detail-facts-grid{grid-template-columns:1fr 1fr}.detail-item-meta{gap:5px 8px}}

/* Dashboard active stores */
.active-stores-panel{padding:20px}.active-stores-head{align-items:center}.store-count-badge{padding:7px 10px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.72rem;font-weight:800;color:#64748b;white-space:nowrap}.active-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.active-store-card{border:1px solid var(--line);border-radius:17px;padding:15px;background:linear-gradient(180deg,#fff,#fbfcff);min-width:0}.active-store-card.status-unavailable{background:#fcfcfd}.store-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.store-identity{display:flex;align-items:center;gap:10px;min-width:0}.store-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}.store-identity>div:last-child{display:flex;flex-direction:column;min-width:0}.store-identity strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-identity span{font-size:.7rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.store-status-dot{width:9px;height:9px;border-radius:50%;background:#10b981;box-shadow:0 0 0 5px rgba(16,185,129,.1);flex:0 0 9px}.store-status-error{color:#d97706}.store-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:15px}.store-metrics>div{display:flex;flex-direction:column;padding:9px 10px;border-radius:12px;background:var(--surface-2);min-width:0}.store-metrics span{font-size:.65rem;color:var(--muted)}.store-metrics strong{font-size:.92rem;margin-top:1px}.store-rate strong{color:var(--success)}.status-unavailable .store-rate strong{color:var(--muted)}.buybox-progress{height:5px;margin-top:11px;border-radius:999px;background:#e9eef5;overflow:hidden}.buybox-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2563eb,#10b981);transition:width .25s ease}.store-empty{min-height:120px}
@media(max-width:1199.98px){.active-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.active-stores-panel{padding:14px}.active-store-grid{grid-template-columns:1fr}.active-store-card{padding:13px}.store-metrics>div{padding:8px}.store-count-badge{font-size:.66rem}}

/* CJ Inventory */
.cj-head{align-items:center}.cj-result-badge{min-width:92px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:baseline;justify-content:center;gap:5px;box-shadow:var(--shadow)}.cj-result-badge strong{font-size:1.05rem}.cj-result-badge span{font-size:.72rem;color:var(--muted)}.cj-filter-panel{margin-bottom:18px}.cj-filter-form{display:flex;flex-direction:column;gap:14px}.cj-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.cj-search-box{position:relative}.cj-search-box i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;z-index:2}.cj-search-box .form-control{padding-left:42px;height:46px;border-radius:13px;border-color:var(--line);box-shadow:none}.cj-search-btn{border-radius:13px;padding:0 20px}.cj-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}.cj-filter-grid .form-label{font-size:.7rem;font-weight:750;color:#64748b;margin-bottom:5px}.cj-filter-grid .form-select,.cj-filter-grid .form-control{border-radius:12px;border-color:var(--line);font-size:.8rem;box-shadow:none}.cj-price-input .input-group-text{border-color:var(--line);background:var(--surface-2);font-size:.78rem}.cj-price-input .form-control{border-top-left-radius:0;border-bottom-left-radius:0}.cj-filter-actions{display:flex;gap:7px}.cj-filter-actions .btn{white-space:nowrap;border-radius:12px}.cj-list-meta{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.76rem;margin:0 2px 10px}.cj-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.cj-product-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;color:var(--ink);box-shadow:var(--shadow);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;min-width:0}.cj-product-card:hover{color:var(--ink);transform:translateY(-2px);border-color:#cbd8f1;box-shadow:0 16px 36px rgba(15,23,42,.09)}.cj-product-image{height:210px;position:relative;display:grid;place-items:center;background:#fff;border-bottom:1px solid var(--line);overflow:hidden}.cj-product-image>img{width:100%;height:100%;object-fit:contain;padding:10px}.cj-product-image>i{font-size:2rem;color:#cbd5e1}.cj-image-badges{position:absolute;left:10px;right:10px;bottom:10px;display:flex;flex-wrap:wrap;gap:5px}.cj-listing-pill{display:inline-flex;gap:5px;align-items:center;padding:5px 8px;border-radius:999px;background:rgba(236,253,245,.94);color:#047857;font-size:.64rem;font-weight:800;backdrop-filter:blur(6px)}.cj-listing-pill.muted{background:rgba(248,250,252,.94);color:#64748b}.cj-listing-pill.stock-in{background:rgba(239,246,255,.95);color:#1d4ed8}.cj-listing-pill.stock-out{background:rgba(254,242,242,.95);color:#b91c1c}.cj-product-body{padding:13px;display:flex;flex-direction:column;flex:1;min-width:0}.cj-product-category{font-size:.64rem;color:#64748b;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cj-product-body h2{font-size:.84rem;line-height:1.35;margin:5px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.28em}.cj-product-sku{display:flex;align-items:center;gap:5px;color:#64748b;font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cj-product-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.cj-product-stats>div{display:flex;flex-direction:column;padding:8px;border-radius:11px;background:var(--surface-2);min-width:0}.cj-product-stats span{font-size:.62rem;color:var(--muted)}.cj-product-stats strong{font-size:.7rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cj-product-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto;padding-top:11px;color:#64748b}.cj-product-footer span{display:flex;align-items:center;gap:5px;font-size:.67rem;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cj-product-footer>i{flex:0 0 auto}.cj-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:22px}.cj-pagination .btn{border-radius:12px;font-size:.78rem}.cj-page-numbers{display:flex;gap:5px}.cj-page-number{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;color:#475569;font-size:.76rem;font-weight:750}.cj-page-number.active{background:var(--primary);border-color:var(--primary);color:#fff}.cj-empty{margin-top:14px}.cj-empty strong{color:var(--ink)}.cj-empty span{font-size:.8rem}.cj-detail-id{font-size:.72rem;color:var(--muted)}.cj-detail-layout{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);gap:16px;margin-bottom:16px}.cj-gallery-panel{padding:14px}.cj-carousel{border-radius:15px;overflow:hidden;background:#fff}.cj-carousel .carousel-item{height:440px;background:#fff}.cj-carousel .carousel-item img{height:100%;object-fit:contain;padding:10px}.cj-carousel .carousel-control-prev,.cj-carousel .carousel-control-next{width:44px;height:44px;top:50%;transform:translateY(-50%);border-radius:50%;background:rgba(15,23,42,.72);margin:0 10px}.cj-thumbnails{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:2px}.cj-thumbnails button{width:66px;height:66px;flex:0 0 66px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:3px;overflow:hidden}.cj-thumbnails button.active{border-color:var(--primary);box-shadow:0 0 0 2px rgba(36,99,235,.12)}.cj-thumbnails img{width:100%;height:100%;object-fit:contain}.cj-gallery-empty{height:440px;display:grid;place-items:center;align-content:center;gap:8px;color:#94a3b8}.cj-gallery-empty i{font-size:2.3rem}.cj-product-summary{padding:22px}.cj-product-summary h1{font-size:clamp(1.25rem,2.6vw,1.85rem);line-height:1.2;margin:7px 0}.cj-summary-sku{font-size:.78rem;color:#64748b}.cj-summary-pills{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.cj-summary-pills span{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.68rem;font-weight:700;color:#475569}.cj-summary-pills .bi-circle-fill{font-size:.45rem;color:#10b981}.cj-summary-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.cj-summary-metrics>div{display:flex;flex-direction:column;padding:12px;border-radius:13px;background:#f8fafc;border:1px solid var(--line)}.cj-summary-metrics span{font-size:.67rem;color:var(--muted)}.cj-summary-metrics strong{font-size:.92rem;margin-top:2px}.cj-product-definitions{margin-top:6px}.cj-variants-panel{padding:18px}.cj-variant-table-wrap{border:1px solid var(--line);border-radius:14px}.cj-variant-table td{vertical-align:middle}.cj-variant-cell{display:flex;align-items:center;gap:9px;min-width:190px}.cj-variant-cell img{width:48px;height:48px;object-fit:contain;border:1px solid var(--line);border-radius:9px;background:#fff}.cj-variant-cell>div{display:flex;flex-direction:column}.cj-variant-cell small,.cj-variant-table td small{font-size:.68rem;color:var(--muted);margin-top:2px}.cj-stock{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:.7rem;font-weight:800}.cj-stock.in-stock{background:#ecfdf5;color:#047857}.cj-stock.out-stock{background:#fef2f2;color:#b91c1c}.cj-dimensions{white-space:nowrap;color:#475569;font-size:.72rem}.cj-variant-empty{min-height:150px}
@media(max-width:1399.98px){.cj-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cj-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cj-filter-actions{grid-column:span 1}}
@media(max-width:991.98px){.cj-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cj-detail-layout{grid-template-columns:1fr}.cj-carousel .carousel-item,.cj-gallery-empty{height:380px}}
@media(max-width:767.98px){.cj-head p{display:none}.cj-result-badge{min-width:76px}.cj-filter-panel{padding:14px}.cj-search-row{grid-template-columns:1fr}.cj-search-btn{height:42px}.cj-filter-grid{grid-template-columns:1fr 1fr}.cj-filter-actions{grid-column:1/-1}.cj-filter-actions .btn{flex:1}.cj-product-grid{grid-template-columns:1fr}.cj-product-card{display:grid;grid-template-columns:130px minmax(0,1fr)}.cj-product-image{height:auto;min-height:170px;border-bottom:0;border-right:1px solid var(--line)}.cj-product-body{padding:12px}.cj-product-stats{grid-template-columns:1fr}.cj-list-meta{font-size:.68rem}.cj-pagination{justify-content:space-between;gap:6px}.cj-page-numbers{display:none}.cj-pagination .btn{flex:1}.cj-detail-layout{display:block}.cj-gallery-panel{margin-bottom:12px}.cj-carousel .carousel-item,.cj-gallery-empty{height:320px}.cj-product-summary{padding:16px}.cj-summary-metrics{grid-template-columns:1fr 1fr}.cj-variants-panel{padding:13px}.cj-detail-id{display:none}}
@media(max-width:420px){.cj-filter-grid{grid-template-columns:1fr}.cj-filter-actions{grid-column:auto}.cj-product-card{grid-template-columns:112px minmax(0,1fr)}.cj-product-image{min-height:160px}.cj-summary-metrics{grid-template-columns:1fr}.cj-carousel .carousel-item,.cj-gallery-empty{height:280px}}


/* CJ favorites */
.cj-detail-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.cj-favorite-btn{border-radius:12px;white-space:nowrap}
.cj-listing-pill.favorite{background:rgba(255,241,242,.96);color:#be123c}
.cj-favorite-card{display:flex}
.cj-favorite-product-link{display:flex;flex-direction:column;flex:1;color:inherit;min-width:0}
.cj-favorite-product-link:hover{color:inherit}
.cj-favorite-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 13px;border-top:1px solid var(--line);background:var(--surface-2)}
.cj-favorite-meta>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.cj-favorite-meta span{display:flex;align-items:center;gap:5px;color:#64748b;font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cj-favorite-meta .btn{border-radius:10px;flex:0 0 auto}
@media(max-width:767.98px){
  .cj-detail-actions{width:100%;justify-content:space-between}
  .cj-detail-actions form{margin-left:auto!important}
  .cj-favorite-product-link{display:grid;grid-template-columns:130px minmax(0,1fr)}
  .cj-favorite-card{display:block}
}
@media(max-width:420px){
  .cj-detail-actions{align-items:stretch}
  .cj-detail-id{width:100%}
  .cj-detail-actions form,.cj-detail-actions .cj-favorite-btn{width:100%}
  .cj-favorite-product-link{grid-template-columns:112px minmax(0,1fr)}
}


/* CJ list state / detail return */
.cj-detail-topbar{align-items:center;margin-bottom:14px}
.cj-prominent-back{display:inline-flex;align-items:center;gap:8px;border-radius:13px;padding:9px 15px;font-weight:750;box-shadow:0 6px 16px rgba(37,99,235,.16)}
.cj-prominent-back i{font-size:1.05rem}
@media(max-width:767.98px){
  .cj-detail-topbar{align-items:flex-start;gap:10px}
  .cj-prominent-back{min-height:42px}
}


/* Orders list v2 */
.orders-head-count{min-width:84px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;display:flex;align-items:baseline;justify-content:center;gap:5px;box-shadow:var(--shadow)}
.orders-head-count strong{font-size:1.05rem}
.orders-head-count span{font-size:.72rem;color:var(--muted)}
.order-filter-panel-v2{padding:16px 18px}
.order-filter-main-grid{display:grid;grid-template-columns:180px 180px minmax(190px,240px) auto;gap:10px;align-items:end}
.order-filter-main-grid .form-label{font-size:.7rem;font-weight:750;color:#64748b;margin-bottom:5px}
.order-filter-main-grid .form-control,.order-filter-main-grid .form-select{border-radius:12px;border-color:var(--line);box-shadow:none;font-size:.8rem}
.order-filter-submit{display:flex;gap:7px;justify-content:flex-end}
.order-filter-submit .btn{border-radius:12px;white-space:nowrap}
.order-status-filter{margin-top:14px;padding-top:13px;border-top:1px solid var(--line)}
.order-status-filter-title{display:flex;align-items:baseline;gap:8px;margin-bottom:9px}
.order-status-filter-title>span{font-size:.72rem;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.06em}
.order-status-filter-title>small{font-size:.68rem;color:var(--muted)}
.order-status-grid{gap:7px}
.order-list-panel-v2{border-radius:18px}
.order-table-v2{min-width:1040px}
.order-table-v2 thead th:nth-child(1){width:30%}
.order-table-v2 thead th:nth-child(2){width:28%}
.order-table-v2 thead th:nth-child(3){width:22%}
.order-table-v2 thead th:nth-child(4){width:20%}
.order-table-v2 tbody td{vertical-align:middle}
.order-stack{display:flex;flex-direction:column;gap:5px;min-width:0}
.order-stack>span{display:flex;align-items:center;gap:6px;color:#64748b;font-size:.72rem}
.order-number{font-size:.85rem;color:#0f172a;word-break:break-word}
.order-shipping-line{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:2px}
.order-shipping-line small{display:flex!important;align-items:center;gap:5px;color:#64748b;word-break:break-all}
.order-product-layout{display:grid;grid-template-columns:minmax(0,1fr) 84px;gap:12px;align-items:center}
.order-product-copy-v2{display:flex;flex-direction:column;gap:5px;min-width:0}
.order-product-copy-v2 strong{font-size:.82rem;word-break:break-all}
.order-product-copy-v2 span{display:flex;align-items:center;gap:5px;font-size:.72rem;color:#64748b}
.order-product-copy-v2 .order-usd{font-size:.83rem;font-weight:800;color:#0f172a}
.order-image-button,.order-image-placeholder{width:78px;height:78px;border-radius:12px;border:1px solid var(--line);background:#fff;padding:4px;display:grid;place-items:center;overflow:hidden;flex:0 0 78px}
.order-image-button{cursor:zoom-in;transition:.15s ease}
.order-image-button:hover{border-color:#9bb8ff;box-shadow:0 0 0 3px rgba(36,99,235,.08);transform:translateY(-1px)}
.order-image-button img{width:100%;height:100%;object-fit:contain}
.order-image-placeholder{color:#cbd5e1;font-size:1.35rem}
.order-buyer-cell{display:flex;flex-direction:column;gap:5px}
.order-buyer-cell>strong{font-size:.8rem;word-break:break-all}
.order-buyer-cell>span{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:4px 7px;border-radius:999px;font-size:.66rem;font-weight:800}
.order-buyer-cell>small{display:flex!important;align-items:center;gap:5px;color:#64748b}
.buyer-passed{background:#ecfdf5;color:#047857}
.buyer-not-passed{background:#fff7ed;color:#b45309}
.order-deadline-cell{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.order-deadline-value{display:inline-flex;align-items:center;justify-content:center;min-width:78px;padding:7px 10px;border-radius:11px;background:#eff6ff;color:#1d4ed8;font-size:.88rem;font-weight:850;font-variant-numeric:tabular-nums}
.order-deadline-value.urgent{background:#fff7ed;color:#c2410c;box-shadow:0 0 0 2px rgba(234,88,12,.08)}
.order-deadline-value.late{background:#fee2e2;color:#b91c1c}
.order-deadline-value.shipped{background:#ecfdf5;color:#047857}
.order-deadline-value.muted{background:#f8fafc;color:#94a3b8}
.order-deadline-cell small{font-size:.67rem!important;color:#64748b}
.order-late-label,.order-urgent-label{display:flex!important;align-items:center;gap:5px;font-size:.68rem}
.order-late-label{color:#b91c1c}
.order-urgent-label{color:#c2410c}
.order-row-late>td{background:#fff1f2!important}
.order-row-late:hover>td,.order-row-late:focus>td{background:#ffe4e6!important}
.order-row-late td:first-child{box-shadow:inset 4px 0 0 #dc2626}
.order-row-urgent>td{background:#fffbeb!important}
.order-row-urgent:hover>td,.order-row-urgent:focus>td{background:#fef3c7!important}
.order-row-urgent td:first-child{box-shadow:inset 4px 0 0 #f59e0b}
.order-image-modal-content{border:0;border-radius:18px;overflow:hidden}
.order-image-modal-content .modal-body{height:min(76vh,760px);display:grid;place-items:center;background:#fff;padding:18px}
.order-image-modal-content .modal-body img{max-width:100%;max-height:100%;object-fit:contain}
.order-mobile-v2{display:none}
.order-mobile-card-v2{padding:0;overflow:hidden;cursor:pointer}
.order-mobile-card-v2.order-row-late{background:#fff1f2;border-color:#fecdd3}
.order-mobile-card-v2.order-row-urgent{background:#fffbeb;border-color:#fde68a}
.order-mobile-top{display:flex;justify-content:space-between;gap:10px;padding:14px 14px 10px}
.order-mobile-top>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.order-mobile-top>div>strong{font-size:.82rem;word-break:break-word}
.order-mobile-top small{font-size:.68rem;color:#64748b}
.order-mobile-product{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:10px;align-items:center;padding:10px 14px;border-top:1px solid var(--line)}
.order-mobile-product>div:first-child{display:flex;flex-direction:column;gap:4px}
.order-mobile-product>div:first-child strong{font-size:.78rem;word-break:break-all}
.order-mobile-product>div:first-child span{font-weight:800}
.order-mobile-product>div:first-child small{color:#64748b}
.order-mobile-product .order-image-button{width:70px;height:70px}
.order-mobile-meta-grid{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}
.order-mobile-meta-grid>div{padding:10px 14px;display:flex;flex-direction:column;gap:3px;min-width:0}
.order-mobile-meta-grid>div+div{border-left:1px solid var(--line)}
.order-mobile-meta-grid span{font-size:.62rem;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;font-weight:800}
.order-mobile-meta-grid strong{font-size:.74rem;word-break:break-word}
.order-mobile-meta-grid small{font-size:.66rem;color:#64748b}
.order-mobile-carrier{padding:9px 14px;border-top:1px solid var(--line);font-size:.68rem;color:#64748b;word-break:break-all}

@media(max-width:1199.98px){
  .order-filter-main-grid{grid-template-columns:1fr 1fr 1fr}
  .order-filter-submit{grid-column:1/-1;justify-content:flex-end}
}
@media(max-width:767.98px){
  .orders-head-count{min-width:72px;padding:8px 10px}
  .order-filter-main-grid{grid-template-columns:1fr 1fr}
  .order-transfer-filter{grid-column:1/-1}
  .order-filter-submit{grid-column:1/-1}
  .order-filter-submit .btn{flex:1}
  .order-status-grid{grid-template-columns:1fr 1fr!important}
  .order-list-panel-v2{display:none!important}
  .order-mobile-v2{display:grid!important;grid-template-columns:1fr;gap:10px}
}
@media(max-width:480px){
  .order-filter-main-grid{grid-template-columns:1fr}
  .order-transfer-filter,.order-filter-submit{grid-column:auto}
  .order-status-grid{grid-template-columns:1fr!important}
  .order-mobile-meta-grid{grid-template-columns:1fr}
  .order-mobile-meta-grid>div+div{border-left:0;border-top:1px solid var(--line)}
}


/* Orders multi-store workspace + summary */
.order-workspace-panel{padding:16px 18px;margin-bottom:14px}
.order-workspace-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}
.order-workspace-head h2{font-size:1rem;margin:2px 0 3px}
.order-workspace-head p{font-size:.72rem;color:var(--muted);margin:0}
.order-select-all{display:flex;align-items:center;cursor:pointer}
.order-select-all input{position:absolute;opacity:0;pointer-events:none}
.order-select-all span{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:.72rem;font-weight:800;color:#475569}
.order-select-all input:checked+span{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}
.order-store-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.order-store-chip{cursor:pointer;min-width:0}
.order-store-chip input{position:absolute;opacity:0;pointer-events:none}
.order-store-chip>span{display:flex;align-items:center;gap:8px;padding:10px 11px;border:1px solid var(--line);border-radius:12px;background:#fff;min-width:0;transition:.15s ease}
.order-store-chip>span>i{color:#94a3b8;flex:0 0 auto}
.order-store-chip>span strong{font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-store-chip>span small{margin-left:auto;font-size:.66rem;color:#64748b;white-space:nowrap}
.order-store-chip input:checked+span{border-color:#93c5fd;background:#eff6ff;box-shadow:0 0 0 2px rgba(59,130,246,.06)}
.order-store-chip input:checked+span>i,.order-store-chip input:checked+span strong{color:#1d4ed8}

.order-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.order-summary-card{display:flex;align-items:center;gap:11px;padding:13px 15px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow)}
.order-summary-icon{width:38px;height:38px;border-radius:11px;background:var(--surface-2);display:grid;place-items:center;font-size:1rem;color:#2563eb;flex:0 0 auto}
.order-summary-card>div:last-child{display:flex;flex-direction:column;min-width:0}
.order-summary-card span{font-size:.68rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:750}
.order-summary-card strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.order-filter-panel-v3{padding:16px 18px;margin-bottom:14px}
.order-list-panel-v3{border-radius:18px}
.order-table-v3{min-width:1080px}
.order-table-v3 thead th:nth-child(1){width:31%}
.order-table-v3 thead th:nth-child(2){width:27%}
.order-table-v3 thead th:nth-child(3){width:22%}
.order-table-v3 thead th:nth-child(4){width:20%}

.order-product-layout-v3{display:grid;grid-template-columns:78px minmax(0,1fr);gap:11px;align-items:center}
.order-product-copy-v3{display:flex;flex-direction:column;gap:4px;min-width:0}
.order-product-copy-v3>strong{font-size:.82rem;word-break:break-all}
.order-product-copy-v3>span{font-size:.71rem;color:#64748b}
.order-product-copy-v3>span b{font-weight:750;color:#475569}
.order-product-copy-v3 .order-usd{color:#0f172a}
.order-product-copy-v3 .order-usd b{color:#0f172a}

.order-buyer-cell-v3 .order-buyer-name{display:flex;align-items:center;gap:5px;color:#475569;font-size:.75rem;font-weight:750;margin-bottom:2px}
.order-buyer-cell-v3>strong{font-size:.75rem}
.order-buyer-cell-v3>span:not(.order-buyer-name){margin-top:1px}

.orders-prominent-back{display:inline-flex;align-items:center;gap:8px;border-radius:13px;padding:9px 15px;font-weight:800;box-shadow:0 6px 16px rgba(37,99,235,.16)}

.order-mobile-v3{display:none}
.order-mobile-card-v3{padding:0;overflow:hidden;cursor:pointer}
.order-mobile-product-v3{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;padding:10px 14px;border-top:1px solid var(--line)}
.order-mobile-product-v3>div:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.order-mobile-product-v3 strong{font-size:.78rem;word-break:break-all}
.order-mobile-product-v3 span{font-size:.7rem;color:#64748b}
.order-mobile-product-v3 .order-image-button{width:68px;height:68px}

@media(max-width:1199.98px){
  .order-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767.98px){
  .order-workspace-head{flex-direction:column}
  .order-select-all{width:100%}
  .order-select-all span{width:100%;justify-content:center}
  .order-summary-grid{grid-template-columns:1fr}
  .order-store-grid{grid-template-columns:1fr 1fr}
  .order-list-panel-v3{display:none!important}
  .order-mobile-v3{display:grid!important;grid-template-columns:1fr;gap:10px}
}
@media(max-width:480px){
  .order-store-grid{grid-template-columns:1fr}
  .order-workspace-panel,.order-filter-panel-v3{padding:13px}
}


/* Orders table column alignment fix */
.order-table-v3 td.order-buyer-cell,
.order-table-v3 td.order-deadline-cell,
.order-table-v2 td.order-buyer-cell,
.order-table-v2 td.order-deadline-cell{
    display:table-cell!important;
    vertical-align:middle!important;
}
.order-table-v3 td.order-buyer-cell>*,
.order-table-v3 td.order-deadline-cell>*,
.order-table-v2 td.order-buyer-cell>*,
.order-table-v2 td.order-deadline-cell>*{
    margin-bottom:5px;
}
.order-table-v3 td.order-buyer-cell>*:last-child,
.order-table-v3 td.order-deadline-cell>*:last-child,
.order-table-v2 td.order-buyer-cell>*:last-child,
.order-table-v2 td.order-deadline-cell>*:last-child{
    margin-bottom:0;
}


/* Orders compact store selector */
.order-store-combo-panel{padding:12px 16px;margin-bottom:12px}
.order-store-combo-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.order-store-combo-field{min-width:280px;max-width:460px;width:100%}
.order-store-combo-field .form-label{font-size:.7rem;font-weight:800;color:#64748b;margin-bottom:5px}
.order-store-dropdown{width:100%}
.order-store-dropdown-toggle{width:100%;display:flex;align-items:center;justify-content:flex-start;text-align:left;border:1px solid var(--line);border-radius:12px;background:#fff;padding:9px 12px;font-size:.78rem;box-shadow:none}
.order-store-dropdown-toggle::after{margin-left:auto}
.order-store-dropdown-toggle:hover,.order-store-dropdown-toggle:focus{background:#fff;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(59,130,246,.07)}
.order-store-dropdown-menu{width:100%;min-width:320px;max-height:360px;overflow-y:auto;padding:7px;border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 40px rgba(15,23,42,.14)}
.order-store-dropdown-item{display:block;margin:0;cursor:pointer}
.order-store-dropdown-item input{position:absolute;opacity:0;pointer-events:none}
.order-store-dropdown-item>span{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:9px;font-size:.73rem;color:#475569}
.order-store-dropdown-item>span>i{color:#94a3b8}
.order-store-dropdown-item>span strong{font-size:.73rem}
.order-store-dropdown-item>span small{margin-left:auto;color:#64748b;font-size:.66rem}
.order-store-dropdown-item:hover>span{background:#f8fafc}
.order-store-dropdown-item input:checked+span{background:#eff6ff;color:#1d4ed8}
.order-store-dropdown-item input:checked+span>i,.order-store-dropdown-item input:checked+span strong{color:#1d4ed8}
.order-store-select-all-item>span{font-weight:800}
.order-store-dropdown-divider{height:1px;background:var(--line);margin:5px 3px}
.order-store-combo-note{flex:0 0 auto;padding-bottom:9px}
.order-store-combo-note span{font-size:.68rem;color:#64748b;white-space:nowrap}
@media(max-width:767.98px){
  .order-store-combo-row{display:block}
  .order-store-combo-field{max-width:none;min-width:0}
  .order-store-combo-note{padding:7px 2px 0}
  .order-store-dropdown-menu{min-width:100%}
}


/* Orders compact operations UX */
.order-compact-box{
    border:1px solid #d9e1ec!important;
    box-shadow:none!important;
    border-radius:14px!important;
    background:#fff!important;
}
.order-compact-box-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:-2px 0 10px;
    padding-bottom:8px;
    border-bottom:1px solid #edf1f6;
}
.order-compact-box-title>span{
    display:flex;
    align-items:center;
    gap:7px;
    font-size:.72rem;
    font-weight:850;
    color:#334155;
    letter-spacing:.02em;
}
.order-compact-box-title>span i{color:#2563eb}
.order-compact-box-title>small{
    font-size:.64rem;
    color:#94a3b8;
    white-space:nowrap;
}

.order-store-combo-panel{
    padding:11px 13px!important;
    margin-bottom:9px!important;
}
.order-store-combo-row{
    align-items:center!important;
}
.order-store-combo-field{
    max-width:430px!important;
}
.order-store-combo-field .form-label{
    font-size:.62rem!important;
    margin-bottom:3px!important;
}
.order-store-dropdown-toggle{
    min-height:36px!important;
    padding:7px 10px!important;
    border-radius:10px!important;
}
.order-store-combo-note{
    padding:0!important;
}
.order-store-combo-note span{
    font-size:.64rem!important;
}

.order-summary-grid{
    gap:7px!important;
    margin-bottom:9px!important;
}
.order-summary-card{
    min-height:54px;
    padding:8px 11px!important;
    border-radius:12px!important;
    box-shadow:none!important;
}
.order-summary-icon{
    width:32px!important;
    height:32px!important;
    border-radius:9px!important;
    font-size:.88rem!important;
}
.order-summary-card span{
    font-size:.59rem!important;
}
.order-summary-card strong{
    font-size:.9rem!important;
}

.order-filter-panel-v3{
    padding:11px 13px!important;
    margin-bottom:9px!important;
}
.order-filter-main-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
}
.order-filter-main-grid .form-label{
    font-size:.62rem!important;
    margin-bottom:3px!important;
}
.order-filter-main-grid .form-control,
.order-filter-main-grid .form-select{
    min-height:35px;
    padding:6px 9px!important;
    border-radius:9px!important;
    font-size:.72rem!important;
}
.order-status-filter{
    margin-top:9px!important;
    padding-top:8px!important;
}
.order-status-filter-title{
    margin-bottom:5px!important;
}
.order-status-filter-title>span{
    font-size:.62rem!important;
}
.order-status-grid{
    gap:5px!important;
}
.status-filter-chip span{
    padding:5px 8px!important;
    font-size:.65rem!important;
}
.order-filter-submit-bottom{
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center;
    gap:6px!important;
    grid-column:auto!important;
    margin-top:9px;
    padding-top:8px;
    border-top:1px solid #edf1f6;
}
.order-filter-submit-bottom .btn{
    min-height:34px;
    padding:6px 12px!important;
    border-radius:9px!important;
    font-size:.7rem!important;
}
.order-filter-submit-bottom .btn-primary{
    min-width:112px;
}

/* Desktop: more rows visible */
@media(min-width:768px){
    .orders-head{
        margin-bottom:8px!important;
    }
    .orders-head h1{
        font-size:1.25rem!important;
        margin-bottom:1px!important;
    }
    .orders-head p{
        font-size:.68rem!important;
        margin-bottom:0!important;
    }
    .orders-head-count{
        padding:6px 10px!important;
        min-width:70px!important;
    }

    .order-list-panel-v3{
        border-radius:13px!important;
    }
    .order-table-v3 thead th{
        padding:7px 9px!important;
        font-size:.62rem!important;
        letter-spacing:.04em;
    }
    .order-table-v3 tbody td{
        padding:6px 9px!important;
        line-height:1.16!important;
    }
    .order-stack{
        gap:2px!important;
    }
    .order-number{
        font-size:.76rem!important;
    }
    .order-stack>span{
        gap:4px!important;
        font-size:.63rem!important;
    }
    .order-shipping-line{
        gap:3px!important;
        margin-top:0!important;
    }
    .order-shipping-line small{
        font-size:.6rem!important;
    }
    .status-pill{
        padding:3px 6px!important;
        font-size:.57rem!important;
    }

    .order-product-layout-v3{
        grid-template-columns:56px minmax(0,1fr)!important;
        gap:8px!important;
    }
    .order-image-button,
    .order-image-placeholder{
        width:54px!important;
        height:54px!important;
        flex-basis:54px!important;
        border-radius:9px!important;
        padding:3px!important;
    }
    .order-product-copy-v3{
        gap:2px!important;
    }
    .order-product-copy-v3>strong{
        font-size:.72rem!important;
    }
    .order-product-copy-v3>span{
        font-size:.62rem!important;
    }

    .order-buyer-cell-v3 .order-buyer-name{
        font-size:.66rem!important;
        margin-bottom:1px!important;
    }
    .order-buyer-cell-v3>strong{
        font-size:.67rem!important;
    }
    .order-buyer-cell>span{
        padding:3px 6px!important;
        font-size:.58rem!important;
    }

    .order-deadline-cell{
        gap:3px!important;
    }
    .order-deadline-value{
        min-width:66px!important;
        padding:5px 8px!important;
        border-radius:9px!important;
        font-size:.76rem!important;
    }
    .order-deadline-cell small{
        font-size:.58rem!important;
    }
    .order-late-label,.order-urgent-label{
        font-size:.59rem!important;
    }
}

/* Mobile: dense, app-like, thumb-friendly */
@media(max-width:767.98px){
    .content-wrap{
        padding-left:8px!important;
        padding-right:8px!important;
    }
    .orders-head{
        margin-bottom:7px!important;
        align-items:center!important;
    }
    .orders-head .eyebrow,
    .orders-head p{
        display:none!important;
    }
    .orders-head h1{
        font-size:1.08rem!important;
        margin:0!important;
    }
    .orders-head-count{
        min-width:62px!important;
        padding:5px 8px!important;
        border-radius:10px!important;
    }
    .orders-head-count strong{
        font-size:.85rem!important;
    }
    .orders-head-count span{
        font-size:.57rem!important;
    }

    .order-store-combo-panel,
    .order-filter-panel-v3{
        padding:9px!important;
        border-radius:12px!important;
    }
    .order-compact-box-title{
        margin-bottom:7px!important;
        padding-bottom:6px!important;
    }
    .order-compact-box-title>small{
        display:none!important;
    }
    .order-store-combo-field{
        max-width:none!important;
    }
    .order-store-combo-field .form-label{
        display:none!important;
    }
    .order-store-dropdown-toggle{
        min-height:38px!important;
    }
    .order-store-combo-note{
        padding-top:4px!important;
    }

    .order-summary-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
        gap:5px!important;
    }
    .order-summary-card{
        min-height:48px!important;
        padding:6px 7px!important;
        gap:6px!important;
        border-radius:10px!important;
    }
    .order-summary-icon{
        width:27px!important;
        height:27px!important;
        font-size:.75rem!important;
    }
    .order-summary-card span{
        font-size:.48rem!important;
    }
    .order-summary-card strong{
        font-size:.72rem!important;
    }

    .order-filter-main-grid{
        grid-template-columns:1fr 1fr!important;
        gap:5px!important;
    }
    .order-transfer-filter{
        grid-column:1/-1!important;
    }
    .order-filter-main-grid .form-control,
    .order-filter-main-grid .form-select{
        min-height:36px!important;
        font-size:.68rem!important;
    }
    .order-status-filter{
        margin-top:7px!important;
        padding-top:6px!important;
    }
    .order-status-grid{
        display:flex!important;
        flex-wrap:wrap;
        gap:4px!important;
    }
    .status-filter-chip span{
        padding:5px 7px!important;
        font-size:.6rem!important;
    }
    .order-filter-submit-bottom{
        margin-top:7px!important;
        padding-top:7px!important;
    }
    .order-filter-submit-bottom .btn{
        min-height:37px!important;
        flex:1;
    }
    .order-filter-submit-bottom .btn-primary{
        order:2;
        min-width:0;
    }

    .order-mobile-v3{
        gap:6px!important;
    }
    .order-mobile-card-v3{
        border-radius:11px!important;
        box-shadow:none!important;
    }
    .order-mobile-top{
        padding:8px 9px 6px!important;
        align-items:flex-start!important;
    }
    .order-mobile-top .eyebrow{
        display:none!important;
    }
    .order-mobile-top>div{
        gap:1px!important;
    }
    .order-mobile-top>div>strong{
        font-size:.7rem!important;
    }
    .order-mobile-top small{
        font-size:.57rem!important;
    }
    .order-mobile-top .status-pill{
        font-size:.54rem!important;
        padding:3px 6px!important;
    }

    .order-mobile-product-v3{
        grid-template-columns:52px minmax(0,1fr)!important;
        gap:7px!important;
        padding:6px 9px!important;
    }
    .order-mobile-product-v3 .order-image-button{
        width:50px!important;
        height:50px!important;
        border-radius:8px!important;
    }
    .order-mobile-product-v3>div:last-child{
        gap:1px!important;
    }
    .order-mobile-product-v3 strong{
        font-size:.68rem!important;
    }
    .order-mobile-product-v3 span{
        font-size:.58rem!important;
    }

    .order-mobile-meta-grid{
        grid-template-columns:1.15fr .85fr!important;
    }
    .order-mobile-meta-grid>div{
        padding:6px 9px!important;
        gap:1px!important;
    }
    .order-mobile-meta-grid span{
        font-size:.49rem!important;
    }
    .order-mobile-meta-grid strong{
        font-size:.63rem!important;
    }
    .order-mobile-meta-grid small{
        font-size:.55rem!important;
    }
    .order-mobile-carrier{
        padding:5px 9px!important;
        font-size:.55rem!important;
    }

    .order-image-modal-content .modal-body{
        height:70vh!important;
        padding:8px!important;
    }
}

@media(max-width:420px){
    .order-summary-card{
        display:block!important;
    }
    .order-summary-icon{
        display:none!important;
    }
    .order-summary-card span,
    .order-summary-card strong{
        display:block;
        text-align:center;
    }
    .order-mobile-meta-grid{
        grid-template-columns:1.15fr .85fr!important;
    }
}

/* ShippingLot case messaging */
.shippinglot-head{align-items:center;margin-bottom:10px}
.shippinglot-head-actions{display:flex;gap:7px;align-items:center}
.shippinglot-head-actions .btn{border-radius:11px;font-size:.72rem;font-weight:750}
.shippinglot-alert{border-radius:12px;font-size:.72rem;margin-bottom:9px}
.shippinglot-alert small{display:block;margin-top:3px;opacity:.8;word-break:break-word}
.shippinglot-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin-bottom:9px}
.shippinglot-summary-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:9px 11px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.shippinglot-summary-card span{font-size:.62rem;color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-weight:800}
.shippinglot-summary-card strong{font-size:1rem;color:#0f172a}
.shippinglot-summary-card.attention{background:#fff7ed;border-color:#fed7aa}
.shippinglot-summary-card.attention strong{color:#c2410c}
.shippinglot-filter-panel{padding:11px 13px;border:1px solid #d9e1ec;box-shadow:none;border-radius:13px;margin-bottom:7px}
.shippinglot-filter-grid{display:grid;grid-template-columns:minmax(280px,1.7fr) minmax(150px,.7fr) minmax(180px,.9fr) auto;gap:7px;align-items:end}
.shippinglot-filter-grid .form-label{font-size:.62rem;font-weight:800;color:#64748b;margin-bottom:3px}
.shippinglot-filter-grid .form-control,.shippinglot-filter-grid .form-select,.shippinglot-filter-grid .input-group-text{font-size:.7rem;border-color:var(--line);min-height:35px}
.shippinglot-filter-grid .form-control,.shippinglot-filter-grid .form-select{border-radius:9px;box-shadow:none}
.shippinglot-search-box .input-group-text{background:#f8fafc;border-radius:9px 0 0 9px}
.shippinglot-search-box .form-control{border-radius:0 9px 9px 0}
.shippinglot-filter-actions{display:flex;gap:6px}
.shippinglot-filter-actions .btn{min-height:35px;border-radius:9px;font-size:.68rem;white-space:nowrap}
.shippinglot-sync-meta{display:flex;justify-content:flex-end;margin:2px 2px 7px;color:#94a3b8;font-size:.6rem}
.shippinglot-sync-meta span{display:flex;align-items:center;gap:5px}
.shippinglot-case-list{display:grid;gap:6px}
.shippinglot-case-row{display:grid;grid-template-columns:minmax(300px,1.15fr) minmax(280px,1fr) 145px;gap:12px;align-items:center;padding:9px 11px;background:#fff;border:1px solid var(--line);border-radius:12px;color:inherit;transition:.15s ease}
.shippinglot-case-row:hover{color:inherit;border-color:#93c5fd;box-shadow:0 3px 12px rgba(15,23,42,.05);transform:translateY(-1px)}
.shippinglot-case-main{min-width:0}
.shippinglot-case-titleline{display:flex;align-items:center;gap:7px;margin-bottom:3px}
.shippinglot-case-titleline>strong{font-size:.73rem;color:#0f172a}
.shippinglot-case-main h2{font-size:.76rem;line-height:1.25;margin:0 0 5px;font-weight:750;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shippinglot-status{display:inline-flex;align-items:center;width:max-content;padding:3px 6px;border-radius:999px;font-size:.54rem;font-weight:850;text-transform:uppercase;letter-spacing:.03em;background:#f1f5f9;color:#475569}
.shippinglot-status-open{background:#eff6ff;color:#1d4ed8}
.shippinglot-status-awaiting-customer{background:#fff7ed;color:#c2410c}
.shippinglot-status-resolved{background:#ecfdf5;color:#047857}
.shippinglot-status-closed{background:#f1f5f9;color:#64748b}
.shippinglot-case-tags{display:flex;flex-wrap:wrap;gap:4px}
.shippinglot-case-tags span{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border-radius:7px;background:#f8fafc;color:#64748b;font-size:.57rem;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shippinglot-case-preview{min-width:0}
.shippinglot-preview-author{display:inline-flex;padding:2px 5px;border-radius:6px;font-size:.52rem;font-weight:850;margin-bottom:3px}
.shippinglot-preview-author.support{background:#eef2ff;color:#4338ca}
.shippinglot-preview-author.customer{background:#ecfdf5;color:#047857}
.shippinglot-case-preview p{margin:0;color:#64748b;font-size:.65rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.shippinglot-case-meta{display:grid;grid-template-columns:1fr auto;gap:2px 7px;align-items:center;text-align:right}
.shippinglot-case-meta strong{font-size:.62rem;color:#475569}
.shippinglot-case-meta span{font-size:.57rem;color:#94a3b8;grid-column:1}
.shippinglot-case-meta i{grid-row:1/3;grid-column:2;color:#94a3b8}
.shippinglot-empty{margin-top:8px}

.shippinglot-detail-topbar{display:flex;justify-content:space-between;gap:7px;align-items:center;margin-bottom:9px}
.shippinglot-detail-topbar .btn{border-radius:11px;font-size:.7rem;font-weight:750}
.shippinglot-back-btn{display:inline-flex;align-items:center;gap:7px}
.shippinglot-detail-grid{display:grid;grid-template-columns:300px minmax(0,1fr);gap:9px;align-items:start}
.shippinglot-case-info{padding:13px;border:1px solid #d9e1ec;box-shadow:none;border-radius:13px;position:sticky;top:76px}
.shippinglot-info-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:9px}
.shippinglot-info-head>span:first-child{font-size:.54rem;letter-spacing:.08em;font-weight:850;color:#94a3b8}
.shippinglot-info-head>strong{font-size:.78rem;color:#0f172a}
.shippinglot-case-info h1{font-size:.9rem;line-height:1.35;margin:0 0 12px;color:#0f172a}
.shippinglot-case-info dl{margin:0;display:grid;gap:0}
.shippinglot-case-info dl>div{display:grid;grid-template-columns:82px 1fr;gap:7px;padding:7px 0;border-top:1px solid #edf1f6}
.shippinglot-case-info dt{font-size:.58rem;color:#94a3b8;font-weight:800;text-transform:uppercase}
.shippinglot-case-info dd{font-size:.67rem;color:#475569;margin:0;word-break:break-word}
.shippinglot-orders-box{border-top:1px solid #edf1f6;padding-top:9px;margin-top:3px;display:grid;gap:5px}
.shippinglot-orders-box>span{font-size:.57rem;color:#94a3b8;text-transform:uppercase;font-weight:850}
.shippinglot-orders-box strong{display:flex;align-items:center;gap:5px;font-size:.65rem;color:#334155}
.shippinglot-thread-panel{padding:0;border:1px solid #d9e1ec;box-shadow:none;border-radius:13px;overflow:hidden}
.shippinglot-thread-head{height:48px;display:flex;align-items:center;padding:0 14px;border-bottom:1px solid #edf1f6;background:#fff}
.shippinglot-thread-head>div{display:flex;align-items:center;gap:8px}
.shippinglot-thread-head span{font-size:.58rem;color:#94a3b8;font-weight:850;letter-spacing:.06em}
.shippinglot-thread-head strong{font-size:.68rem;color:#475569}
.shippinglot-thread{height:calc(100vh - 300px);min-height:420px;max-height:720px;overflow-y:auto;padding:14px;background:#f8fafc;display:flex;flex-direction:column;gap:8px}
.shippinglot-message{display:flex}
.shippinglot-message.support{justify-content:flex-start}
.shippinglot-message.customer{justify-content:flex-end}
.shippinglot-message-bubble{max-width:min(76%,720px);padding:9px 11px;border-radius:13px;background:#fff;border:1px solid #e2e8f0;box-shadow:0 1px 3px rgba(15,23,42,.03)}
.shippinglot-message.customer .shippinglot-message-bubble{background:#eaf2ff;border-color:#bfdbfe;border-bottom-right-radius:4px}
.shippinglot-message.support .shippinglot-message-bubble{border-bottom-left-radius:4px}
.shippinglot-message-author{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.shippinglot-message-author strong{font-size:.62rem;color:#334155}
.shippinglot-message-author span{font-size:.54rem;color:#94a3b8;white-space:nowrap}
.shippinglot-message-bubble p{font-size:.7rem;line-height:1.45;color:#334155;margin:0;white-space:pre-wrap;word-break:break-word}
.shippinglot-reply-box{padding:10px;border-top:1px solid #e2e8f0;background:#fff}
.shippinglot-reply-box textarea{border-radius:10px;border-color:#cbd5e1;resize:vertical;min-height:78px;font-size:.72rem;box-shadow:none}
.shippinglot-reply-box>div{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}
.shippinglot-reply-box small{font-size:.57rem;color:#94a3b8}
.shippinglot-reply-box .btn{border-radius:9px;font-size:.68rem;min-width:100px}
.shippinglot-thread-closed{padding:12px;text-align:center;background:#f8fafc;color:#64748b;font-size:.67rem;border-top:1px solid #e2e8f0}

.shippinglot-create-head{margin-bottom:9px}
.shippinglot-create-panel{max-width:880px;margin:0 auto;padding:15px;border:1px solid #d9e1ec;box-shadow:none;border-radius:13px}
.shippinglot-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.shippinglot-create-full{grid-column:1/-1}
.shippinglot-create-grid .form-label{font-size:.65rem;font-weight:800;color:#64748b;margin-bottom:4px}
.shippinglot-create-grid .form-control,.shippinglot-create-grid .form-select{border-radius:10px;border-color:#cbd5e1;font-size:.72rem;box-shadow:none}
.shippinglot-create-grid small{font-size:.57rem;color:#94a3b8}
.shippinglot-field-hint{display:flex;justify-content:space-between;gap:8px;margin-top:3px;font-size:.57rem}
.shippinglot-force-option{display:flex;gap:8px;align-items:flex-start;padding:9px 10px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;cursor:pointer}
.shippinglot-force-option input{margin-top:3px}
.shippinglot-force-option span{display:grid;gap:2px}
.shippinglot-force-option strong{font-size:.66rem;color:#334155}
.shippinglot-create-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #edf1f6}
.shippinglot-create-actions .btn{border-radius:10px;font-size:.7rem}

@media(max-width:1199.98px){
  .shippinglot-filter-grid{grid-template-columns:1.5fr .7fr .8fr}.shippinglot-filter-actions{grid-column:1/-1;justify-content:flex-end}
  .shippinglot-case-row{grid-template-columns:minmax(270px,1.1fr) minmax(230px,.9fr) 125px}
}
@media(max-width:767.98px){
  .shippinglot-head{align-items:flex-start!important}.shippinglot-head p{display:none}.shippinglot-head h1{font-size:1.05rem;margin-bottom:0}.shippinglot-head .eyebrow{font-size:.55rem}
  .shippinglot-head-actions .btn{padding:6px 8px;font-size:.62rem}.shippinglot-head-actions .btn i{margin-right:3px!important}
  .shippinglot-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;overflow-x:auto}
  .shippinglot-summary-card{display:block;text-align:center;padding:6px 4px;border-radius:9px;min-width:62px}.shippinglot-summary-card span{display:block;font-size:.43rem;white-space:nowrap}.shippinglot-summary-card strong{display:block;font-size:.72rem}
  .shippinglot-filter-panel{padding:8px}.shippinglot-filter-grid{grid-template-columns:1fr 1fr;gap:5px}.shippinglot-search-box{grid-column:1/-1}.shippinglot-filter-actions{grid-column:1/-1}.shippinglot-filter-actions .btn{flex:1}
  .shippinglot-sync-meta{font-size:.52rem}
  .shippinglot-case-list{gap:5px}.shippinglot-case-row{grid-template-columns:1fr auto;gap:5px 8px;padding:8px;border-radius:10px}.shippinglot-case-main{grid-column:1}.shippinglot-case-preview{grid-column:1/-1;grid-row:2}.shippinglot-case-meta{grid-column:2;grid-row:1;align-self:start}.shippinglot-case-main h2{font-size:.69rem}.shippinglot-case-preview p{-webkit-line-clamp:1;font-size:.59rem}.shippinglot-case-tags span{font-size:.51rem}.shippinglot-case-meta strong{font-size:.54rem}.shippinglot-case-meta span{font-size:.5rem}
  .shippinglot-detail-grid{grid-template-columns:1fr;gap:7px}.shippinglot-case-info{position:static;padding:10px}.shippinglot-case-info h1{font-size:.78rem;margin-bottom:7px}.shippinglot-case-info dl{grid-template-columns:1fr 1fr}.shippinglot-case-info dl>div{display:block;padding:5px}.shippinglot-case-info dt{font-size:.49rem}.shippinglot-case-info dd{font-size:.6rem;margin-top:2px}.shippinglot-orders-box{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.shippinglot-orders-box>span{width:100%}
  .shippinglot-thread-head{height:40px;padding:0 10px}.shippinglot-thread{height:calc(100vh - 390px);min-height:330px;padding:8px;gap:6px}.shippinglot-message-bubble{max-width:88%;padding:7px 8px;border-radius:11px}.shippinglot-message-bubble p{font-size:.64rem}.shippinglot-message-author strong{font-size:.56rem}.shippinglot-message-author span{font-size:.49rem}.shippinglot-reply-box{padding:8px}.shippinglot-reply-box textarea{min-height:64px}.shippinglot-reply-box small{display:none}.shippinglot-reply-box .btn{margin-left:auto}
  .shippinglot-create-panel{padding:10px}.shippinglot-create-grid{grid-template-columns:1fr;gap:8px}.shippinglot-create-full{grid-column:auto}.shippinglot-create-actions .btn{flex:1}
}
@media(max-width:420px){
  .shippinglot-head-actions .btn{font-size:0}.shippinglot-head-actions .btn i{font-size:.85rem;margin:0!important}
  .shippinglot-filter-grid{grid-template-columns:1fr}.shippinglot-search-box,.shippinglot-filter-actions{grid-column:auto}
  .shippinglot-case-info dl{grid-template-columns:1fr 1fr}
}

/* ShippingLot case Amazon / Buyer enrichment */
.shippinglot-amazon-orders{margin-top:10px;padding-top:9px;border-top:1px solid #edf1f6;display:grid;gap:7px}
.shippinglot-amazon-orders-title{display:flex;align-items:center;gap:6px;font-size:.59rem;font-weight:850;text-transform:uppercase;color:#64748b}
.shippinglot-amazon-orders-title i{color:#111827}
.shippinglot-amazon-order-card{border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:8px;display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;align-items:start}
.shippinglot-amazon-order-copy{display:grid;gap:4px;min-width:0}
.shippinglot-amazon-order-copy>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:6px;align-items:start}
.shippinglot-amazon-order-copy span{font-size:.53rem;color:#94a3b8;text-transform:uppercase;font-weight:800}
.shippinglot-amazon-order-copy strong{font-size:.61rem;color:#334155;word-break:break-word}
.shippinglot-buyer-status{color:#1d4ed8!important}
.shippinglot-screenshot-thumb{border:1px solid #dbe4ef;border-radius:9px;background:#fff;padding:4px;cursor:zoom-in;display:grid;gap:4px;overflow:hidden}
.shippinglot-screenshot-thumb img{width:100%;height:68px;object-fit:cover;border-radius:6px;background:#f1f5f9}
.shippinglot-screenshot-thumb span{display:flex;align-items:center;justify-content:center;gap:4px;font-size:.53rem;font-weight:800;color:#475569}
.shippinglot-screenshot-modal{border:0;border-radius:14px;overflow:hidden}
.shippinglot-screenshot-modal .modal-body{height:min(78vh,780px);padding:10px;background:#0f172a;display:grid;place-items:center}
.shippinglot-screenshot-modal .modal-body img{max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:767.98px){
  .shippinglot-amazon-order-card{grid-template-columns:1fr 96px;padding:7px}
  .shippinglot-amazon-order-copy>div{grid-template-columns:92px minmax(0,1fr)}
  .shippinglot-screenshot-thumb img{height:58px}
}
@media(max-width:480px){
  .shippinglot-amazon-order-card{grid-template-columns:1fr}
  .shippinglot-screenshot-thumb{grid-template-columns:78px 1fr;align-items:center}
  .shippinglot-screenshot-thumb img{width:78px;height:50px}
}


/* ShippingLot Buyer Match modal + order card v2 */
.shippinglot-amazon-order-card-v2{
    display:block!important;
    padding:9px!important;
}
.shippinglot-amazon-order-card-v2 .shippinglot-amazon-order-copy{
    width:100%;
}
.shippinglot-amazon-order-card-v2 .shippinglot-amazon-order-copy>div{
    grid-template-columns:108px minmax(0,1fr);
}
.shippinglot-amazon-order-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:8px;
    padding-top:7px;
    border-top:1px solid #e7edf4;
}
.shippinglot-match-details-btn{
    display:inline-flex;
    align-items:center;
    gap:4px;
    border-radius:8px;
    font-size:.6rem;
    font-weight:800;
    padding:5px 8px;
}
.shippinglot-match-details-btn>span{
    min-width:19px;
    height:19px;
    padding:0 5px;
    border-radius:999px;
    display:grid;
    place-items:center;
    background:#eff6ff;
    color:#1d4ed8;
    font-size:.55rem;
}
.shippinglot-screenshot-thumb-bottom{
    width:100%!important;
    margin-top:8px;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:5px!important;
}
.shippinglot-screenshot-thumb-bottom img{
    width:100%!important;
    height:92px!important;
    object-fit:contain!important;
    background:#fff!important;
}
.shippinglot-screenshot-thumb-bottom span{
    padding:2px 0;
}
.shippinglot-match-modal .modal-content{
    border:0;
    border-radius:16px;
    overflow:hidden;
}
.shippinglot-match-modal .modal-header{
    align-items:flex-start;
}
.shippinglot-match-modal .modal-header h5{
    margin:2px 0 0;
    font-size:1rem;
}
.shippinglot-match-modal .modal-header small{
    color:#64748b;
    font-size:.68rem;
}
.shippinglot-match-list{
    display:grid;
    gap:10px;
}
.shippinglot-match-card{
    border:1px solid #e2e8f0;
    border-radius:13px;
    background:#fff;
    overflow:hidden;
}
.shippinglot-match-card-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    background:#f8fafc;
    border-bottom:1px solid #e8edf3;
}
.shippinglot-match-card-head>div{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.shippinglot-match-card-head span,
.shippinglot-match-facts span,
.shippinglot-match-address span{
    font-size:.58rem;
    color:#94a3b8;
    text-transform:uppercase;
    font-weight:800;
    letter-spacing:.03em;
}
.shippinglot-match-card-head strong{
    font-size:.78rem;
    word-break:break-word;
}
.shippinglot-match-status{
    flex:0 0 auto;
    padding:4px 7px;
    border-radius:999px;
    background:#eff6ff;
    color:#1d4ed8!important;
    font-size:.58rem!important;
}
.shippinglot-match-facts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0;
    padding:3px 12px;
}
.shippinglot-match-facts>div{
    min-width:0;
    padding:7px 0;
    border-bottom:1px solid #f0f3f7;
}
.shippinglot-match-facts>div:nth-child(odd){
    padding-right:10px;
}
.shippinglot-match-facts>div:nth-child(even){
    padding-left:10px;
    border-left:1px solid #f0f3f7;
}
.shippinglot-match-facts strong{
    display:block;
    margin-top:2px;
    font-size:.68rem;
    color:#334155;
    word-break:break-word;
}
.shippinglot-match-address{
    margin:7px 12px 10px;
    padding:8px 9px;
    border-radius:9px;
    background:#f8fafc;
}
.shippinglot-match-address strong{
    display:block;
    margin-top:3px;
    font-size:.65rem;
    color:#475569;
    word-break:break-word;
}
.shippinglot-match-items{
    margin:0 12px 12px;
    border:1px solid #e6ebf1;
    border-radius:10px;
    overflow:hidden;
}
.shippinglot-match-items-title{
    padding:7px 9px;
    background:#f8fafc;
    border-bottom:1px solid #e6ebf1;
    font-size:.6rem;
    font-weight:850;
    color:#64748b;
    text-transform:uppercase;
}
.shippinglot-match-items table{
    font-size:.64rem;
}
.shippinglot-match-items th{
    white-space:nowrap;
    font-size:.55rem;
    color:#64748b;
    text-transform:uppercase;
}
.shippinglot-match-items td,
.shippinglot-match-items th{
    padding:6px 8px;
    vertical-align:middle;
}

@media(max-width:767.98px){
    .shippinglot-amazon-order-card-v2 .shippinglot-amazon-order-copy>div{
        grid-template-columns:105px minmax(0,1fr)!important;
    }
    .shippinglot-screenshot-thumb-bottom img{
        height:78px!important;
    }
    .shippinglot-match-modal .modal-dialog{
        margin:8px;
    }
    .shippinglot-match-modal .modal-body{
        padding:8px;
    }
}
@media(max-width:480px){
    .shippinglot-amazon-order-card-v2 .shippinglot-amazon-order-copy>div{
        grid-template-columns:96px minmax(0,1fr)!important;
    }
    .shippinglot-amazon-order-actions{
        justify-content:stretch;
    }
    .shippinglot-match-details-btn{
        width:100%;
        justify-content:center;
    }
    .shippinglot-match-facts{
        grid-template-columns:1fr;
    }
    .shippinglot-match-facts>div:nth-child(odd),
    .shippinglot-match-facts>div:nth-child(even){
        padding-left:0;
        padding-right:0;
        border-left:0;
    }
}


/* ShippingLot single global Buyer Match modal fix */
#shippinglotBuyerMatchModal{
    z-index:1095;
}
#shippinglotBuyerMatchModal + .modal-backdrop{
    z-index:1090;
}
#shippinglotBuyerMatchModal .modal-dialog{
    height:calc(100vh - 32px);
    max-height:calc(100vh - 32px);
    margin-top:16px;
    margin-bottom:16px;
}
#shippinglotBuyerMatchModal .modal-content{
    max-height:100%;
    min-height:0;
    display:flex;
    flex-direction:column;
}
#shippinglotBuyerMatchModal .modal-header{
    flex:0 0 auto;
}
#shippinglotBuyerMatchModal .modal-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    background:#f8fafc;
    padding:12px;
}
#shippinglotBuyerMatchModal .shippinglot-match-list{
    padding-bottom:4px;
}
@media(max-width:767.98px){
    #shippinglotBuyerMatchModal .modal-dialog{
        height:calc(100dvh - 12px);
        max-height:calc(100dvh - 12px);
        margin:6px;
    }
    #shippinglotBuyerMatchModal .modal-content{
        border-radius:14px;
    }
    #shippinglotBuyerMatchModal .modal-header{
        padding:10px 12px;
    }
    #shippinglotBuyerMatchModal .modal-body{
        padding:7px;
    }
}


/* ShippingLot buyer match inline screenshot */
.shippinglot-match-preview{
    margin:0 12px 12px;
    border:1px solid #e6ebf1;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}
.shippinglot-match-preview-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:7px 9px;
    background:#f8fafc;
    border-bottom:1px solid #e6ebf1;
}
.shippinglot-match-preview-head span{
    font-size:.6rem;
    font-weight:850;
    color:#64748b;
    text-transform:uppercase;
}
.shippinglot-match-preview-head a{
    font-size:.62rem;
    text-decoration:none;
}
.shippinglot-match-preview img{
    width:100%;
    height:180px;
    object-fit:contain;
    display:block;
    background:#fff;
}
@media(max-width:767.98px){
    .shippinglot-match-preview img{
        height:145px;
    }
}


/* Cargo Price Definitions */
.cargo-price-head{margin-bottom:12px}
.cargo-price-head h1{margin-bottom:2px}
.cargo-price-head p{font-size:.82rem}
.cargo-price-alert{border-radius:12px;font-size:.78rem}
.cargo-price-marketplace-panel{
    padding:12px 14px;
    margin-bottom:10px;
    border-radius:14px;
    box-shadow:none;
}
.cargo-price-marketplace-row{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
}
.cargo-price-marketplace-field{
    width:min(100%,520px);
}
.cargo-price-marketplace-field .form-label{
    margin-bottom:4px;
    font-size:.66rem;
    font-weight:800;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.cargo-price-marketplace-field .form-select{
    min-height:38px;
    border-radius:10px;
    font-size:.75rem;
    font-weight:650;
}
.cargo-price-marketplace-current{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    padding-bottom:2px;
}
.cargo-price-marketplace-current span{
    font-size:.58rem;
    color:#94a3b8;
    text-transform:uppercase;
    font-weight:800;
}
.cargo-price-marketplace-current strong{
    font-size:.7rem;
    color:#334155;
}
.cargo-price-form{position:relative}
.cargo-price-table-panel{
    padding:0;
    overflow:hidden;
    border-radius:14px;
    box-shadow:none;
}
.cargo-price-table-head{
    min-height:51px;
    padding:9px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid #e8edf3;
}
.cargo-price-table-head>div:first-child{
    display:flex;
    flex-direction:column;
}
.cargo-price-table-head span{
    font-size:.56rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.06em;
}
.cargo-price-table-head strong{
    font-size:.78rem;
}
.cargo-price-table-head-note{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:.62rem;
    color:#64748b;
}
.cargo-price-table-wrap{
    max-height:calc(100vh - 315px);
    min-height:330px;
    overflow:auto;
}
.cargo-price-table{
    margin:0;
}
.cargo-price-table thead{
    position:sticky;
    top:0;
    z-index:4;
}
.cargo-price-table thead th{
    padding:7px 12px;
    background:#f8fafc;
    border-bottom:1px solid #dfe5ed;
    color:#64748b;
    font-size:.58rem;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.cargo-price-table tbody td{
    padding:4px 12px;
    border-color:#eef2f6;
    vertical-align:middle;
}
.cargo-price-table tbody tr:hover{
    background:#f8fbff;
}
.cargo-price-table th:first-child,
.cargo-price-table td:first-child{
    width:90px;
}
.cargo-price-table th:nth-child(2),
.cargo-price-table th:nth-child(3){
    width:220px;
}
.cargo-price-desi strong{
    display:inline-grid;
    place-items:center;
    width:31px;
    height:28px;
    border-radius:8px;
    background:#f1f5f9;
    color:#334155;
    font-size:.68rem;
}
.cargo-price-input{
    max-width:180px;
}
.cargo-price-input .form-control{
    height:31px;
    min-height:31px;
    padding:4px 8px;
    border-radius:8px;
    font-size:.7rem;
    text-align:right;
    font-variant-numeric:tabular-nums;
}
.cargo-price-input .form-control:focus{
    border-color:#93b4ff;
    box-shadow:0 0 0 3px rgba(37,99,235,.08);
}
.cargo-price-mobile-label{display:none}
.cargo-price-save-bar{
    position:sticky;
    bottom:10px;
    z-index:12;
    margin:10px auto 0;
    width:min(100%,760px);
    min-height:54px;
    padding:8px 10px 8px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:rgba(15,23,42,.95);
    backdrop-filter:blur(12px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:14px;
    box-shadow:0 16px 42px rgba(15,23,42,.22);
}
.cargo-price-save-bar>div{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.cargo-price-save-bar span{
    font-size:.54rem;
    color:#94a3b8;
    text-transform:uppercase;
    font-weight:800;
}
.cargo-price-save-bar strong{
    font-size:.68rem;
    color:#fff;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.cargo-price-save-bar .btn{
    flex:0 0 auto;
    min-height:36px;
    padding:7px 13px;
    border-radius:9px;
    font-size:.7rem;
    font-weight:750;
}

@media(max-width:767.98px){
    .cargo-price-head{
        margin-bottom:8px;
    }
    .cargo-price-head .eyebrow,
    .cargo-price-head p{
        display:none;
    }
    .cargo-price-head h1{
        font-size:1.08rem;
        margin:0;
    }
    .cargo-price-marketplace-panel{
        padding:9px;
        margin-bottom:7px;
        border-radius:11px;
    }
    .cargo-price-marketplace-row{
        display:block;
    }
    .cargo-price-marketplace-current{
        display:none;
    }
    .cargo-price-marketplace-field{
        width:100%;
    }
    .cargo-price-marketplace-field .form-label{
        font-size:.58rem;
    }
    .cargo-price-marketplace-field .form-select{
        min-height:37px;
        font-size:.7rem;
    }
    .cargo-price-table-panel{
        border-radius:11px;
    }
    .cargo-price-table-head{
        min-height:43px;
        padding:7px 9px;
    }
    .cargo-price-table-head-note{
        display:none;
    }
    .cargo-price-table-wrap{
        max-height:none;
        min-height:0;
        overflow:visible;
    }
    .cargo-price-table,
    .cargo-price-table tbody{
        display:block;
    }
    .cargo-price-table thead{
        display:none;
    }
    .cargo-price-table tbody{
        padding:4px 7px 7px;
    }
    .cargo-price-table tbody tr{
        display:grid;
        grid-template-columns:48px minmax(0,1fr) minmax(0,1fr);
        gap:6px;
        align-items:end;
        padding:6px 2px;
        border-bottom:1px solid #edf1f5;
    }
    .cargo-price-table tbody tr:last-child{
        border-bottom:0;
    }
    .cargo-price-table tbody td{
        display:block;
        width:auto!important;
        padding:0;
        border:0;
    }
    .cargo-price-mobile-label{
        display:block;
        margin:0 0 2px;
        font-size:.48rem;
        font-weight:800;
        color:#94a3b8;
        text-transform:uppercase;
    }
    .cargo-price-desi strong{
        width:34px;
        height:33px;
        font-size:.69rem;
    }
    .cargo-price-input{
        max-width:none;
    }
    .cargo-price-input .form-control{
        width:100%;
        height:33px;
        min-height:33px;
        padding:4px 7px;
        font-size:.68rem;
    }
    .cargo-price-save-bar{
        bottom:82px;
        width:calc(100% - 4px);
        margin-top:7px;
        min-height:50px;
        padding:7px 8px 7px 10px;
        border-radius:12px;
    }
    .cargo-price-save-bar .btn{
        min-height:36px;
    }
}


/* Profitability Definitions */
.profit-head{margin-bottom:10px}
.profit-head h1{margin-bottom:2px}
.profit-head p{font-size:.8rem}
.profit-alert{border-radius:12px;font-size:.76rem}
.profit-info-panel{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:11px 13px;
    margin-bottom:10px;
    border-radius:13px;
    box-shadow:none;
    border:1px solid #dbe7fb;
    background:#f8fbff;
}
.profit-info-icon{
    flex:0 0 auto;
    width:32px;
    height:32px;
    border-radius:9px;
    display:grid;
    place-items:center;
    background:#eaf2ff;
    color:#2563eb;
}
.profit-info-panel>div:last-child{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.profit-info-panel strong{font-size:.72rem;color:#1e293b}
.profit-info-panel span{font-size:.65rem;color:#64748b;line-height:1.45}
.profit-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
}
.profit-toolbar>div{
    display:flex;
    flex-direction:column;
}
.profit-toolbar span{
    font-size:.56rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.06em;
}
.profit-toolbar strong{
    font-size:.72rem;
    color:#334155;
}
.profit-toolbar .btn{
    border-radius:9px;
    font-size:.66rem;
}
.profit-price-list{
    display:grid;
    gap:9px;
}
.profit-price-card{
    padding:0;
    overflow:hidden;
    border-radius:14px;
    box-shadow:none;
    border:1px solid #dfe6ee;
}
.profit-price-card-head{
    display:grid;
    grid-template-columns:minmax(170px,1fr) 190px 34px;
    gap:10px;
    align-items:end;
    padding:10px 12px;
    background:#fbfcfe;
    border-bottom:1px solid #e9eef4;
}
.profit-price-title{
    display:flex;
    flex-direction:column;
    gap:2px;
}
.profit-price-title span,
.profit-desi-head span,
.profit-desi-range-copy span,
.profit-field label,
.profit-price-max label{
    font-size:.52rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.05em;
    text-transform:uppercase;
}
.profit-price-title strong{
    font-size:.85rem;
    color:#1e293b;
}
.profit-price-max{
    min-width:0;
}
.profit-price-max label,
.profit-field label{
    display:block;
    margin-bottom:3px;
}
.profit-price-max .form-control,
.profit-field .form-control{
    height:33px;
    min-height:33px;
    border-radius:8px;
    padding:4px 8px;
    font-size:.69rem;
    font-variant-numeric:tabular-nums;
}
.profit-infinity{
    height:33px;
    min-height:33px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    border:1px dashed #cbd5e1;
    border-radius:8px;
    background:#f8fafc;
    color:#475569;
    font-size:.66rem;
    font-weight:750;
}
.profit-infinity.compact{
    justify-content:flex-start;
    padding:0 9px;
}
.profit-remove-price,
.profit-remove-desi{
    width:32px;
    height:32px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:8px;
    color:#94a3b8;
}
.profit-remove-price:hover,
.profit-remove-desi:hover{
    color:#dc2626;
    background:#fff1f2;
}
.profit-desi-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:8px 12px 6px;
}
.profit-desi-head>div{
    display:flex;
    flex-direction:column;
}
.profit-desi-head small{
    font-size:.58rem;
    color:#94a3b8;
}
.profit-desi-head .btn{
    min-height:30px;
    border-radius:8px;
    padding:4px 8px;
    font-size:.6rem;
}
.profit-desi-list{
    padding:0 12px 10px;
    display:grid;
    gap:5px;
}
.profit-desi-row{
    display:grid;
    grid-template-columns:minmax(130px,1fr) minmax(150px,190px) minmax(150px,190px) 32px;
    gap:8px;
    align-items:end;
    padding:7px 8px;
    border:1px solid #edf1f5;
    border-radius:10px;
    background:#fff;
}
.profit-desi-range-copy{
    align-self:center;
    display:flex;
    flex-direction:column;
    gap:1px;
}
.profit-desi-range-copy strong{
    font-size:.7rem;
    color:#334155;
}
.profit-rate-input{
    position:relative;
}
.profit-rate-input .form-control{
    padding-right:27px;
    text-align:right;
}
.profit-rate-input span{
    position:absolute;
    top:50%;
    right:9px;
    transform:translateY(-50%);
    font-size:.64rem;
    color:#64748b;
    font-weight:800;
    pointer-events:none;
}
.profit-save-bar{
    position:sticky;
    bottom:10px;
    z-index:12;
    width:min(100%,820px);
    min-height:56px;
    margin:10px auto 0;
    padding:8px 10px 8px 13px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    border-radius:14px;
    background:rgba(15,23,42,.96);
    backdrop-filter:blur(12px);
    box-shadow:0 16px 42px rgba(15,23,42,.24);
}
.profit-save-bar>div{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.profit-save-bar span{
    font-size:.52rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.05em;
}
.profit-save-bar strong{
    font-size:.65rem;
    color:#f8fafc;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.profit-save-bar .btn{
    flex:0 0 auto;
    min-height:37px;
    border-radius:9px;
    padding:7px 12px;
    font-size:.68rem;
    font-weight:750;
}
.profit-form .is-invalid{
    border-color:#ef4444!important;
    box-shadow:0 0 0 3px rgba(239,68,68,.08)!important;
}

@media(max-width:767.98px){
    .profit-head{
        margin-bottom:7px;
    }
    .profit-head .eyebrow,
    .profit-head p{
        display:none;
    }
    .profit-head h1{
        margin:0;
        font-size:1.08rem;
    }
    .profit-info-panel{
        padding:8px 9px;
        gap:7px;
        margin-bottom:7px;
        border-radius:11px;
    }
    .profit-info-icon{
        width:28px;
        height:28px;
    }
    .profit-info-panel strong{font-size:.66rem}
    .profit-info-panel span{font-size:.58rem}
    .profit-toolbar{
        margin-bottom:6px;
    }
    .profit-toolbar .btn{
        padding:5px 7px;
        font-size:.58rem;
    }
    .profit-price-list{
        gap:7px;
    }
    .profit-price-card{
        border-radius:11px;
    }
    .profit-price-card-head{
        grid-template-columns:minmax(0,1fr) 112px 31px;
        gap:6px;
        padding:8px;
    }
    .profit-price-title strong{
        font-size:.72rem;
    }
    .profit-price-max .form-control{
        height:31px;
        min-height:31px;
        font-size:.64rem;
    }
    .profit-infinity{
        height:31px;
        min-height:31px;
        font-size:.6rem;
    }
    .profit-remove-price,
    .profit-remove-desi{
        width:30px;
        height:30px;
    }
    .profit-desi-head{
        padding:7px 8px 5px;
    }
    .profit-desi-head small{
        display:none;
    }
    .profit-desi-list{
        padding:0 7px 8px;
        gap:5px;
    }
    .profit-desi-row{
        grid-template-columns:1fr 1fr 30px;
        gap:5px;
        padding:6px;
    }
    .profit-desi-range-copy{
        grid-column:1/-1;
        padding-bottom:2px;
        border-bottom:1px dashed #eef2f6;
    }
    .profit-desi-range-copy strong{
        font-size:.65rem;
    }
    .profit-field .form-control{
        height:32px;
        min-height:32px;
        font-size:.65rem;
    }
    .profit-remove-desi{
        align-self:end;
    }
    .profit-save-bar{
        bottom:82px;
        width:calc(100% - 4px);
        min-height:51px;
        margin-top:7px;
        border-radius:12px;
    }
    .profit-save-bar>div{
        max-width:45%;
    }
    .profit-save-bar strong{
        font-size:.56rem;
    }
    .profit-save-bar .btn{
        min-height:36px;
        padding:6px 8px;
        font-size:.61rem;
    }
}

@media(max-width:430px){
    .profit-info-panel span{
        display:none;
    }
    .profit-price-card-head{
        grid-template-columns:minmax(0,1fr) 100px 30px;
    }
    .profit-desi-row{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) 29px;
    }
    .profit-save-bar>div{
        display:none;
    }
    .profit-save-bar .btn{
        width:100%;
    }
}


/* Profitability Definitions - larger action buttons */
.profit-toolbar .btn{
    min-height:36px!important;
    padding:7px 12px!important;
    font-size:.72rem!important;
    font-weight:750!important;
}
.profit-desi-head .btn{
    min-height:34px!important;
    padding:6px 10px!important;
    font-size:.68rem!important;
    font-weight:750!important;
}
.profit-remove-price,
.profit-remove-desi{
    width:36px!important;
    height:36px!important;
    font-size:.78rem!important;
}
.profit-save-bar .btn{
    min-height:42px!important;
    padding:9px 16px!important;
    font-size:.76rem!important;
    font-weight:800!important;
}

@media(max-width:767.98px){
    .profit-toolbar .btn{
        min-height:38px!important;
        padding:7px 10px!important;
        font-size:.68rem!important;
    }
    .profit-desi-head .btn{
        min-height:36px!important;
        padding:6px 9px!important;
        font-size:.64rem!important;
    }
    .profit-remove-price,
    .profit-remove-desi{
        width:34px!important;
        height:34px!important;
        font-size:.74rem!important;
    }
    .profit-save-bar .btn{
        min-height:42px!important;
        padding:8px 12px!important;
        font-size:.7rem!important;
    }
}


/* Profitability store scope selector */
.profit-scope-panel{
    padding:11px 13px;
    margin-bottom:9px;
    border-radius:13px;
    box-shadow:none;
    border:1px solid #dfe7f0;
}
.profit-scope-row{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
}
.profit-scope-field{
    width:min(100%,520px);
}
.profit-scope-field .form-label{
    margin-bottom:4px;
    font-size:.58rem;
    color:#64748b;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.05em;
}
.profit-scope-field .form-select{
    min-height:39px;
    border-radius:9px;
    font-size:.72rem;
    font-weight:700;
}
.profit-scope-current{
    min-width:220px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    text-align:right;
}
.profit-scope-current>span{
    font-size:.52rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.06em;
}
.profit-scope-current>strong{
    margin-top:1px;
    font-size:.7rem;
    color:#1e293b;
}
.profit-scope-current>small{
    margin-top:1px;
    font-size:.56rem;
    color:#64748b;
}
.profit-inherited-alert{
    padding:9px 11px;
    margin-bottom:9px;
    border-radius:11px;
    font-size:.65rem;
}

@media(max-width:767.98px){
    .profit-scope-panel{
        padding:8px;
        margin-bottom:7px;
        border-radius:11px;
    }
    .profit-scope-row{
        display:block;
    }
    .profit-scope-field{
        width:100%;
    }
    .profit-scope-field .form-select{
        min-height:40px;
        font-size:.68rem;
    }
    .profit-scope-current{
        margin-top:5px;
        min-width:0;
        align-items:flex-start;
        text-align:left;
    }
    .profit-scope-current>small{
        display:none;
    }
    .profit-inherited-alert{
        padding:7px 9px;
        font-size:.6rem;
    }
}


/* Profitability Definitions v2 - explicit price/desi range editor */
.profit-guide-panel{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 13px;
    margin-bottom:10px;
    border-radius:13px;
    box-shadow:none;
    border:1px solid #dfe7f0;
    background:#fbfdff;
}
.profit-guide-panel>.bi-arrow-right{
    flex:0 0 auto;
    color:#cbd5e1;
}
.profit-guide-step{
    flex:1 1 0;
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
}
.profit-guide-step>span{
    flex:0 0 auto;
    width:27px;
    height:27px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#2563eb;
    color:#fff;
    font-size:.65rem;
    font-weight:850;
}
.profit-guide-step>div{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.profit-guide-step strong{
    font-size:.66rem;
    color:#1e293b;
}
.profit-guide-step small{
    font-size:.56rem;
    color:#64748b;
}
.profit-v2-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
}
.profit-v2-toolbar>div{
    display:flex;
    flex-direction:column;
}
.profit-v2-toolbar span{
    font-size:.55rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.06em;
}
.profit-v2-toolbar strong{
    font-size:.72rem;
    color:#334155;
}
.profit-v2-toolbar .btn{
    min-height:40px;
    padding:8px 13px;
    border-radius:10px;
    font-size:.7rem;
    font-weight:800;
}
.profit-v2-price-list{
    display:grid;
    gap:10px;
}
.profit-v2-card{
    padding:0;
    overflow:hidden;
    border-radius:14px;
    box-shadow:none;
    border:1px solid #dbe3ec;
}
.profit-v2-card-head{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(330px,430px) 42px;
    gap:12px;
    align-items:end;
    padding:12px 13px;
    background:#f8fafc;
    border-bottom:1px solid #e5eaf0;
}
.profit-v2-band-title{
    display:flex;
    flex-direction:column;
    gap:2px;
    align-self:center;
}
.profit-v2-band-title>span,
.profit-v2-bound label,
.profit-v2-desi-head span,
.profit-v2-desi-columns span{
    font-size:.52rem;
    color:#94a3b8;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.055em;
}
.profit-v2-band-title>strong{
    font-size:.92rem;
    color:#0f172a;
}
.profit-v2-price-range{
    display:grid;
    grid-template-columns:1fr 24px 1fr;
    gap:6px;
    align-items:end;
}
.profit-v2-bound label{
    display:block;
    margin-bottom:3px;
}
.profit-v2-arrow{
    height:39px;
    display:grid;
    place-items:center;
    color:#94a3b8;
}
.profit-v2-readonly,
.profit-v2-infinity{
    min-height:39px;
    display:flex;
    align-items:center;
    padding:7px 10px;
    border:1px solid #dce3ea;
    border-radius:9px;
    background:#f1f5f9;
    color:#334155;
    font-size:.72rem;
    font-weight:750;
    font-variant-numeric:tabular-nums;
}
.profit-v2-infinity{
    justify-content:center;
    font-size:1.08rem;
    background:#fff;
    border-style:dashed;
    color:#64748b;
}
.profit-v2-bound .form-control,
.profit-v2-end-cell .form-control,
.profit-v2-rate .form-control{
    min-height:39px;
    border-radius:9px;
    font-size:.72rem;
    font-weight:700;
    font-variant-numeric:tabular-nums;
}
.profit-v2-bound .form-control:focus,
.profit-v2-end-cell .form-control:focus,
.profit-v2-rate .form-control:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,.10);
}
.profit-v2-delete{
    width:40px;
    height:40px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:10px;
}
.profit-v2-desi-section{
    padding:11px 13px 13px;
}
.profit-v2-desi-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:8px;
}
.profit-v2-desi-head>div{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.profit-v2-desi-head strong{
    margin-top:1px;
    font-size:.61rem;
    color:#64748b;
    font-weight:600;
}
.profit-v2-desi-head .btn{
    flex:0 0 auto;
    min-height:39px;
    padding:8px 12px;
    border-radius:10px;
    font-size:.68rem;
    font-weight:800;
}
.profit-v2-desi-table{
    border:1px solid #e6ebf1;
    border-radius:11px;
    overflow:hidden;
}
.profit-v2-desi-columns,
.profit-v2-desi-row{
    display:grid;
    grid-template-columns:minmax(115px,.9fr) minmax(145px,1.2fr) minmax(145px,1.1fr) 42px;
    gap:8px;
    align-items:center;
}
.profit-v2-desi-columns{
    padding:7px 8px;
    background:#f8fafc;
    border-bottom:1px solid #e6ebf1;
}
.profit-v2-desi-row{
    padding:7px 8px;
    border-bottom:1px solid #edf1f5;
    background:#fff;
}
.profit-v2-desi-row:last-child{
    border-bottom:0;
}
.profit-v2-desi-row:hover{
    background:#fcfdff;
}
.profit-v2-desi-row .profit-v2-readonly,
.profit-v2-desi-row .profit-v2-infinity{
    min-height:38px;
}
.profit-v2-rate{
    position:relative;
}
.profit-v2-rate .form-control{
    padding-right:31px;
    text-align:right;
}
.profit-v2-rate>span{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    color:#64748b;
    font-size:.68rem;
    font-weight:850;
    pointer-events:none;
}
.profit-v2-row-delete{
    width:38px;
    height:38px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:9px;
    color:#94a3b8;
}
.profit-v2-row-delete:hover{
    color:#dc2626;
    background:#fff1f2;
}
.profit-v2-desi-tip{
    margin-top:8px;
    padding:8px 10px;
    border-radius:9px;
    background:#fff8e7;
    border:1px solid #fde7ad;
    color:#745b18;
    font-size:.61rem;
    line-height:1.45;
}
.profit-v2-desi-tip i{
    margin-right:5px;
    color:#eab308;
}
.profit-form-v2 .is-invalid{
    border-color:#dc2626!important;
    background:#fff7f7!important;
    box-shadow:0 0 0 3px rgba(220,38,38,.08)!important;
}

@media(max-width:900px){
    .profit-v2-card-head{
        grid-template-columns:1fr minmax(285px,360px) 40px;
    }
}

@media(max-width:767.98px){
    .profit-guide-panel{
        gap:6px;
        padding:8px;
        overflow-x:auto;
    }
    .profit-guide-step{
        min-width:145px;
    }
    .profit-guide-panel>.bi-arrow-right{
        display:none;
    }
    .profit-v2-toolbar .btn{
        min-height:40px;
        padding:7px 10px;
        font-size:.66rem;
    }
    .profit-v2-card{
        border-radius:11px;
    }
    .profit-v2-card-head{
        grid-template-columns:minmax(0,1fr) 40px;
        gap:8px;
        padding:9px;
    }
    .profit-v2-band-title{
        grid-column:1/2;
    }
    .profit-v2-price-range{
        grid-column:1/-1;
        grid-row:2;
        grid-template-columns:1fr 20px 1fr;
    }
    .profit-v2-delete{
        grid-column:2;
        grid-row:1;
    }
    .profit-v2-desi-section{
        padding:9px;
    }
    .profit-v2-desi-head{
        align-items:flex-end;
    }
    .profit-v2-desi-head strong{
        display:none;
    }
    .profit-v2-desi-head .btn{
        min-height:40px;
        font-size:.66rem;
    }
    .profit-v2-desi-columns{
        display:none;
    }
    .profit-v2-desi-table{
        border:0;
        overflow:visible;
    }
    .profit-v2-desi-list{
        display:grid;
        gap:7px;
    }
    .profit-v2-desi-row{
        grid-template-columns:1fr 1fr 38px;
        gap:6px;
        padding:8px;
        border:1px solid #e4eaf0;
        border-radius:10px;
    }
    .profit-v2-desi-row .profit-v2-readonly{
        position:relative;
        padding-top:17px;
    }
    .profit-v2-desi-row .profit-v2-readonly::before{
        content:"Başlangıç Desi";
        position:absolute;
        top:4px;
        left:9px;
        font-size:.46rem;
        color:#94a3b8;
        font-weight:850;
        text-transform:uppercase;
    }
    .profit-v2-end-cell{
        position:relative;
        padding-top:14px;
    }
    .profit-v2-end-cell::before{
        content:"Bitiş Desi";
        position:absolute;
        top:0;
        left:2px;
        font-size:.46rem;
        color:#94a3b8;
        font-weight:850;
        text-transform:uppercase;
    }
    .profit-v2-rate{
        grid-column:1/3;
        position:relative;
        padding-top:14px;
    }
    .profit-v2-rate::before{
        content:"Minimum Kâr Oranı";
        position:absolute;
        top:0;
        left:2px;
        font-size:.46rem;
        color:#94a3b8;
        font-weight:850;
        text-transform:uppercase;
    }
    .profit-v2-row-delete{
        grid-column:3;
        grid-row:1/3;
        align-self:center;
    }
    .profit-v2-desi-tip{
        font-size:.58rem;
    }
}

@media(max-width:430px){
    .profit-guide-panel{
        display:none;
    }
    .profit-v2-desi-head{
        display:block;
    }
    .profit-v2-desi-head .btn{
        width:100%;
        margin-top:6px;
    }
    .profit-v2-price-range{
        grid-template-columns:1fr 18px 1fr;
    }
}


/* ListingCreate Logs */
.lc-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}
.lc-head h1{margin-bottom:2px}
.lc-head p{font-size:.78rem}
.lc-refresh{
    min-height:38px;
    border-radius:10px;
    font-size:.68rem;
    font-weight:750;
}
.lc-tabs-wrap{
    display:flex;
    gap:6px;
    margin-bottom:9px;
    padding:4px;
    width:max-content;
    max-width:100%;
    border:1px solid #dfe6ee;
    border-radius:12px;
    background:#fff;
}
.lc-tab{
    min-height:38px;
    display:flex;
    align-items:center;
    gap:7px;
    padding:7px 12px;
    border-radius:9px;
    color:#64748b;
    text-decoration:none;
    font-size:.68rem;
    font-weight:800;
}
.lc-tab:hover{
    color:#1d4ed8;
    background:#f8fafc;
}
.lc-tab.active{
    color:#fff;
    background:#2563eb;
    box-shadow:0 5px 14px rgba(37,99,235,.18);
}
.lc-alert{
    border-radius:11px;
    font-size:.7rem;
}
.lc-filter-panel{
    padding:10px 11px;
    margin-bottom:9px;
    border-radius:13px;
    box-shadow:none;
}
.lc-filter-form{
    display:grid;
    grid-template-columns:minmax(220px,1.8fr) minmax(170px,1fr) minmax(165px,1fr) minmax(130px,.8fr) 110px auto;
    gap:7px;
    align-items:end;
}
.lc-filter-form label{
    display:block;
    margin-bottom:3px;
    font-size:.49rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.055em;
}
.lc-filter-form .form-control,
.lc-filter-form .form-select,
.lc-filter-form .input-group-text{
    min-height:35px;
    border-radius:8px;
    font-size:.64rem;
}
.lc-filter-form .input-group .input-group-text{
    border-radius:8px 0 0 8px;
}
.lc-filter-form .input-group .form-control{
    border-radius:0 8px 8px 0;
}
.lc-filter-button{
    min-height:35px;
    border-radius:8px;
    padding:6px 11px;
    font-size:.64rem;
    font-weight:800;
}
.lc-table-panel,
.lc-counter-panel{
    padding:0;
    overflow:hidden;
    border-radius:13px;
    box-shadow:none;
}
.lc-table-title{
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 11px;
    border-bottom:1px solid #e8edf3;
    background:#fff;
}
.lc-table-title>div{
    display:flex;
    flex-direction:column;
}
.lc-table-title span{
    font-size:.5rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.06em;
}
.lc-table-title strong{
    font-size:.72rem;
    color:#1e293b;
}
.lc-table-title small{
    font-size:.58rem;
    color:#64748b;
}
.lc-table-scroll{
    max-height:calc(100vh - 300px);
    min-height:340px;
    overflow:auto;
}
.lc-table{
    margin:0;
    min-width:1180px;
}
.lc-table thead{
    position:sticky;
    top:0;
    z-index:4;
}
.lc-table thead th{
    padding:7px 8px;
    background:#f8fafc;
    border-bottom:1px solid #dfe5ed;
    color:#64748b;
    font-size:.49rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.04em;
    white-space:nowrap;
}
.lc-table tbody td{
    padding:5px 8px;
    border-color:#eef2f6;
    vertical-align:middle;
    font-size:.61rem;
}
.lc-table tbody tr:hover{
    background:#f8fbff;
}
.lc-date,
.lc-store-cell,
.lc-price{
    white-space:nowrap;
}
.lc-date,
.lc-store-cell{
    display:flex;
    flex-direction:column;
}
.lc-date strong,
.lc-store-cell strong{
    font-size:.61rem;
    color:#1e293b;
}
.lc-date small,
.lc-store-cell small,
.lc-price small{
    font-size:.49rem;
    color:#94a3b8;
}
.lc-code{
    max-width:230px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}
.lc-product-type{
    max-width:220px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.lc-price strong{
    display:block;
    font-size:.62rem;
}
.lc-status{
    display:inline-flex;
    align-items:center;
    min-height:23px;
    padding:3px 7px;
    border-radius:999px;
    font-size:.52rem;
    font-weight:850;
    white-space:nowrap;
}
.lc-status.accepted{
    background:#ecfdf3;
    color:#15803d;
}
.lc-status.other{
    background:#fff7ed;
    color:#c2410c;
}
.lc-pagination{
    min-height:49px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:7px 10px;
    border-top:1px solid #e8edf3;
    font-size:.6rem;
    color:#64748b;
}
.lc-pagination .btn{
    min-width:36px;
    min-height:32px;
    display:grid;
    place-items:center;
    padding:4px;
}
.lc-empty{
    min-height:240px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    color:#94a3b8;
}
.lc-empty i{
    font-size:1.5rem;
}
.lc-empty strong{
    color:#475569;
    font-size:.76rem;
}
.lc-empty span{
    font-size:.62rem;
}
.lc-counter-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-bottom:9px;
}
.lc-metric{
    padding:11px 12px;
    border-radius:12px;
    box-shadow:none;
}
.lc-metric span{
    display:block;
    font-size:.49rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.05em;
}
.lc-metric strong{
    display:block;
    margin:2px 0 1px;
    color:#0f172a;
    font-size:1.2rem;
    line-height:1.1;
    font-variant-numeric:tabular-nums;
}
.lc-metric small{
    font-size:.55rem;
    color:#64748b;
}
.lc-metric.warning strong{
    color:#b45309;
}
.lc-counter-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    padding:9px;
}
.lc-seller-counter{
    border:1px solid #e5eaf0;
    border-radius:11px;
    overflow:hidden;
    background:#fff;
}
.lc-seller-counter header{
    min-height:57px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 10px;
    background:#f8fafc;
    border-bottom:1px solid #e8edf3;
}
.lc-seller-counter header>div:first-child{
    min-width:0;
    display:flex;
    flex-direction:column;
}
.lc-seller-counter header span{
    font-size:.47rem;
    color:#94a3b8;
    font-weight:850;
}
.lc-seller-counter header strong{
    font-size:.72rem;
    color:#1e293b;
}
.lc-seller-counter header small{
    font-size:.5rem;
    color:#64748b;
}
.lc-market-badge{
    flex:0 0 auto;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    padding:4px 7px;
    border-radius:8px;
    background:#eef4ff;
    color:#1d4ed8;
    font-size:.57rem;
    font-weight:800;
}
.lc-market-badge small{
    color:#64748b!important;
    font-size:.44rem!important;
}
.lc-seller-counter-values{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.lc-seller-counter-values>div{
    min-height:63px;
    padding:8px 9px;
    border-right:1px solid #edf1f5;
    border-bottom:1px solid #edf1f5;
}
.lc-seller-counter-values>div:nth-child(3n){
    border-right:0;
}
.lc-seller-counter-values>div:nth-child(n+4){
    border-bottom:0;
}
.lc-seller-counter-values span{
    display:block;
    margin-bottom:2px;
    font-size:.47rem;
    color:#94a3b8;
    font-weight:750;
}
.lc-seller-counter-values strong{
    font-size:.9rem;
    color:#1e293b;
    font-variant-numeric:tabular-nums;
}
.lc-seller-counter-values .pending strong{
    color:#b45309;
}

@media(max-width:1100px){
    .lc-filter-form{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .lc-filter-search{
        grid-column:span 2;
    }
}

@media(max-width:767.98px){
    .lc-head{
        align-items:center;
        margin-bottom:7px;
    }
    .lc-head .eyebrow,
    .lc-head p{
        display:none;
    }
    .lc-head h1{
        margin:0;
        font-size:1.05rem;
    }
    .lc-refresh{
        min-height:36px;
        padding:6px 9px;
    }
    .lc-tabs-wrap{
        width:100%;
        margin-bottom:7px;
    }
    .lc-tab{
        flex:1 1 0;
        justify-content:center;
        min-height:40px;
    }
    .lc-filter-panel{
        padding:8px;
        border-radius:11px;
    }
    .lc-filter-form{
        grid-template-columns:1fr 1fr;
    }
    .lc-filter-search{
        grid-column:1/-1;
    }
    .lc-filter-button{
        min-height:38px;
    }
    .lc-table-panel,
    .lc-counter-panel{
        border-radius:11px;
    }
    .lc-table-scroll{
        max-height:none;
        min-height:0;
    }
    .lc-counter-summary{
        grid-template-columns:1fr 1fr;
        gap:6px;
    }
    .lc-metric{
        padding:9px 10px;
    }
    .lc-metric strong{
        font-size:1rem;
    }
    .lc-counter-grid{
        grid-template-columns:1fr;
        padding:7px;
    }
}

@media(max-width:480px){
    .lc-filter-form{
        grid-template-columns:1fr;
    }
    .lc-filter-search{
        grid-column:auto;
    }
    .lc-filter-button{
        width:100%;
    }
    .lc-seller-counter-values{
        grid-template-columns:1fr 1fr;
    }
    .lc-seller-counter-values>div{
        border-right:1px solid #edf1f5!important;
        border-bottom:1px solid #edf1f5!important;
    }
    .lc-seller-counter-values>div:nth-child(2n){
        border-right:0!important;
    }
    .lc-seller-counter-values>div:nth-child(n+5){
        border-bottom:0!important;
    }
}


/* ListingDelete Logs */
.lc-tab.disabled{
    opacity:.48;
    cursor:not-allowed;
    pointer-events:none;
}
.ld-filter-form{
    grid-template-columns:minmax(250px,1.8fr) minmax(160px,1fr) minmax(120px,.7fr) minmax(130px,.7fr) 110px auto;
}
.ld-table{
    min-width:1050px;
}
.ld-merchant{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:3px 7px;
    border-radius:7px;
    background:#f1f5f9;
    color:#334155;
    font-size:.58rem;
    font-weight:800;
    white-space:nowrap;
}
.ld-http{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:42px;
    min-height:24px;
    padding:3px 7px;
    border-radius:7px;
    font-size:.56rem;
    font-weight:850;
}
.ld-http.ok{
    background:#ecfdf3;
    color:#15803d;
}
.ld-http.error{
    background:#fff1f2;
    color:#be123c;
}
.ld-client-request{
    max-width:560px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
    color:#475569;
}
@media(max-width:1100px){
    .ld-filter-form{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}
@media(max-width:767.98px){
    .ld-filter-form{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:480px){
    .ld-filter-form{
        grid-template-columns:1fr;
    }
}


/* Profitability price-only + fixed profit editor */
.profit-priceonly-info{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px 12px;
    margin-bottom:9px;
    border-radius:12px;
    box-shadow:none;
    border:1px solid #dbe7fb;
    background:#f8fbff;
}
.profit-priceonly-info-icon{
    flex:0 0 auto;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#eaf2ff;
    color:#2563eb;
    font-size:.9rem;
}
.profit-priceonly-info>div:last-child{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.profit-priceonly-info strong{
    font-size:.69rem;
    color:#1e293b;
}
.profit-priceonly-info span{
    font-size:.61rem;
    color:#64748b;
    line-height:1.45;
}
.profit-priceonly-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
}
.profit-priceonly-toolbar>div{
    display:flex;
    flex-direction:column;
}
.profit-priceonly-toolbar span{
    font-size:.52rem;
    color:#94a3b8;
    font-weight:850;
    letter-spacing:.06em;
}
.profit-priceonly-toolbar strong{
    font-size:.72rem;
    color:#334155;
}
.profit-priceonly-toolbar .btn{
    min-height:40px;
    padding:8px 13px;
    border-radius:10px;
    font-size:.69rem;
    font-weight:800;
}
.profit-priceonly-panel{
    padding:0;
    overflow:hidden;
    border-radius:13px;
    box-shadow:none;
}
.profit-priceonly-columns,
.profit-priceonly-row{
    display:grid;
    grid-template-columns:minmax(125px,.9fr) minmax(145px,1fr) minmax(155px,1fr) minmax(155px,1fr) 42px;
    gap:8px;
    align-items:center;
}
.profit-priceonly-columns{
    padding:8px 10px;
    background:#f8fafc;
    border-bottom:1px solid #dfe6ee;
}
.profit-priceonly-columns span{
    font-size:.5rem;
    color:#64748b;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.045em;
}
.profit-priceonly-row{
    padding:7px 10px;
    background:#fff;
    border-bottom:1px solid #edf1f5;
}
.profit-priceonly-row:last-child{
    border-bottom:0;
}
.profit-priceonly-row:hover{
    background:#fbfdff;
}
.profit-priceonly-readonly,
.profit-priceonly-infinity{
    min-height:39px;
    display:flex;
    align-items:center;
    padding:7px 10px;
    border:1px solid #e1e7ee;
    border-radius:9px;
    background:#f1f5f9;
    color:#334155;
    font-size:.7rem;
    font-weight:800;
    font-variant-numeric:tabular-nums;
}
.profit-priceonly-infinity{
    justify-content:center;
    border-style:dashed;
    background:#fff;
    color:#64748b;
    font-size:1rem;
}
.profit-priceonly-row .form-control{
    min-height:39px;
    border-radius:9px;
    font-size:.7rem;
    font-weight:700;
    font-variant-numeric:tabular-nums;
}
.profit-priceonly-row .form-control:focus{
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,.09);
}
.profit-priceonly-percent{
    position:relative;
}
.profit-priceonly-percent .form-control{
    padding-right:30px;
    text-align:right;
}
.profit-priceonly-percent>span{
    position:absolute;
    top:50%;
    right:10px;
    transform:translateY(-50%);
    color:#64748b;
    font-size:.66rem;
    font-weight:850;
    pointer-events:none;
}
.profit-priceonly-percent.optional .form-control{
    background:#fffdf7;
    border-color:#eadfbf;
}
.profit-priceonly-percent.optional .form-control:focus{
    background:#fff;
    border-color:#eab308;
    box-shadow:0 0 0 3px rgba(234,179,8,.09);
}
.profit-priceonly-delete{
    width:39px;
    height:39px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:9px;
    color:#94a3b8;
}
.profit-priceonly-delete:hover{
    color:#dc2626;
    background:#fff1f2;
}
.profit-mobile-label{
    display:none;
}
.profit-priceonly-legend{
    display:flex;
    flex-wrap:wrap;
    gap:12px 20px;
    margin-top:8px;
    padding:0 2px;
    color:#64748b;
    font-size:.58rem;
}
.profit-priceonly-legend>div{
    display:flex;
    align-items:center;
    gap:4px;
}
.profit-priceonly-legend .dot{
    width:8px;
    height:8px;
    border-radius:50%;
}
.profit-priceonly-legend .dot.min{
    background:#2563eb;
}
.profit-priceonly-legend .dot.fixed{
    background:#eab308;
}
.profit-priceonly-legend strong{
    color:#334155;
}
.profit-priceonly-legend code{
    font-size:.56rem;
}
.profit-priceonly-form .is-invalid{
    border-color:#dc2626!important;
    background:#fff7f7!important;
    box-shadow:0 0 0 3px rgba(220,38,38,.08)!important;
}

@media(max-width:767.98px){
    .profit-priceonly-info{
        padding:8px 9px;
        margin-bottom:7px;
    }
    .profit-priceonly-info-icon{
        width:30px;
        height:30px;
    }
    .profit-priceonly-info span{
        font-size:.57rem;
    }
    .profit-priceonly-toolbar .btn{
        min-height:40px;
        padding:7px 10px;
        font-size:.65rem;
    }
    .profit-priceonly-panel{
        padding:7px;
        background:#f8fafc;
        overflow:visible;
    }
    .profit-priceonly-columns{
        display:none;
    }
    .profit-priceonly-list{
        display:grid;
        gap:7px;
    }
    .profit-priceonly-row{
        grid-template-columns:1fr 1fr 38px;
        gap:7px;
        padding:8px;
        border:1px solid #e2e8f0;
        border-radius:10px;
        background:#fff;
    }
    .profit-priceonly-start,
    .profit-priceonly-end,
    .profit-priceonly-rate,
    .profit-priceonly-fixed{
        min-width:0;
    }
    .profit-priceonly-rate{
        grid-column:1/2;
    }
    .profit-priceonly-fixed{
        grid-column:2/3;
    }
    .profit-priceonly-delete{
        grid-column:3;
        grid-row:1/3;
        align-self:center;
        width:36px;
        height:36px;
    }
    .profit-mobile-label{
        display:block;
        margin:0 0 3px 2px;
        color:#94a3b8;
        font-size:.46rem;
        font-weight:850;
        text-transform:uppercase;
        letter-spacing:.04em;
    }
    .profit-priceonly-readonly,
    .profit-priceonly-infinity,
    .profit-priceonly-row .form-control{
        min-height:38px;
        font-size:.67rem;
    }
    .profit-priceonly-legend{
        display:block;
        font-size:.55rem;
    }
    .profit-priceonly-legend>div+div{
        margin-top:3px;
    }
}

@media(max-width:430px){
    .profit-priceonly-info span{
        display:none;
    }
    .profit-priceonly-toolbar{
        align-items:end;
    }
    .profit-priceonly-toolbar .btn{
        font-size:.61rem;
    }
    .profit-priceonly-row{
        grid-template-columns:1fr 1fr 34px;
        gap:5px;
        padding:7px;
    }
    .profit-priceonly-delete{
        width:33px;
        height:33px;
    }
}
