/* Seller panel — page styles on top of lebabak.css */

.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.side-brand .mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--pink); color: #fff; flex: none; }
.side-brand .mark svg { width: 18px; height: 22px; }
.side-brand b { display: block; font-size: 15px; line-height: 1.2; }
.side-brand small { font-size: 12px; color: var(--muted); }

.store-switch { position: relative; }
.store-switch > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--petal); text-align: start; }
.store-switch > button:hover { border-color: #F3C4D8; }
.store-switch .sw-art { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; flex: none; }
.store-switch .sw-art .emo { width: 26px; height: 26px; filter: none; }
.store-switch b { display: block; font-size: 13.5px; line-height: 1.3; }
.store-switch small { display: block; font-size: 11.5px; color: var(--muted); }
.store-switch > button > svg { width: 16px; height: 16px; color: var(--muted); margin-inline-start: auto; flex: none; }
.sw-menu { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 30; display: none; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2); }
.store-switch.open .sw-menu { display: block; }
.sw-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; text-align: start; }
.sw-menu button:hover { background: var(--blush-2); }
.sw-menu button svg { width: 16px; height: 16px; color: var(--pink); margin-inline-start: auto; visibility: hidden; }
.sw-menu button.active svg { visibility: visible; }

.side-help { margin-top: auto; padding: 16px; border-radius: 16px; background: var(--lavender); }
.side-help b { font-size: 14px; display: block; }
.side-help p { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 10px; }

/* topbar */
.store-state { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.store-state .dotty { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.store-state.closed .dotty { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-bg); }
.top-user { display: flex; align-items: center; gap: 10px; }
.top-user b { display: block; font-size: 13px; line-height: 1.2; }
.top-user small { font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .top-user .who, .topbar .search { display: none; } }

/* numbers */
.tnum { font-variant-numeric: tabular-nums; }

/* dashboard */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1180px) { .dash-grid { grid-template-columns: 1fr; } }
.chart { width: 100%; height: 240px; display: block; }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.chart .val { fill: var(--ink-2); font-weight: 600; font-size: 11.5px; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }

.need-list { display: flex; flex-direction: column; }
.need-item { display: flex; gap: 12px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.need-item:last-child { border-bottom: 0; }
.need-item .grow b { font-size: 14px; }
.need-item .grow small { display: block; color: var(--muted); font-size: 12.5px; }

.countdown { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; }
.countdown svg { width: 13px; height: 13px; }
.countdown.late { background: var(--bad-bg); color: var(--bad); }

.top-prod { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.top-prod + .top-prod { border-top: 1px solid var(--line); }
.top-prod .emo-tile { width: 44px; height: 44px; border-radius: 12px; }
.top-prod .emo { width: 30px; height: 30px; filter: none; }
.rank { width: 22px; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }

.usage { display: flex; flex-direction: column; gap: 6px; }
.usage + .usage { margin-top: 14px; }
.usage .row-between { font-size: 13px; }

/* orders kanban */
.board { display: grid; grid-template-columns: repeat(5, minmax(206px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--petal); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 320px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.col-head b { font-size: 14px; }
.col-head .n { margin-inline-start: auto; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: #fff; font-size: 12px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); }
.col-dot { width: 8px; height: 8px; border-radius: 50%; }
.col-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13px; padding: 20px 8px; }

.ocard { background: #fff; border: 1px solid #F3E2EA; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sh-1); animation: pop .3s var(--ease); cursor: pointer; text-align: start; }
.ocard:hover { border-color: #F2C2D6; }
.ocard-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ocard-top b { font-size: 14px; direction: ltr; white-space: nowrap; }
.ocard-top .ago { font-size: 11.5px; color: var(--muted); margin-inline-start: auto; white-space: nowrap; }
.ocard-items { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.ocard-items span { display: flex; gap: 6px; }
.ocard-items em { font-style: normal; font-weight: 700; color: var(--pink); min-width: 22px; }
.ocard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ocard-meta .badge { height: 24px; font-size: 11.5px; }
.ocard-foot { display: flex; gap: 8px; }
.ocard-foot .btn { flex: 1; }
.ocard-note { font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: #8A4B05; }
.drv-line { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: var(--lavender); }
.drv-line svg { width: 15px; height: 15px; color: var(--grape); }
.prep-bar { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }

/* drawer content */
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 20px; }
.drawer-foot { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.drawer-foot .btn { flex: 1; }
.sec-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.line-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.line-item + .line-item { border-top: 1px dashed var(--line-2); }
.line-item .emo-tile { width: 44px; height: 44px; border-radius: 12px; }
.line-item .emo { width: 30px; height: 30px; filter: none; }

/* products */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.filters .input-icon { width: min(300px, 100%); }
.filters .select { width: auto; min-width: 150px; height: 40px; }
.filters .input { height: 40px; }
.p-cell { display: flex; align-items: center; gap: 12px; }
.p-cell .emo-tile { width: 46px; height: 46px; border-radius: 12px; }
.p-cell .emo { width: 32px; height: 32px; filter: none; }
.p-cell b { display: block; font-size: 14px; }
.p-cell small { color: var(--muted); font-size: 12px; }
.stock-mini { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.stock-mini span { display: flex; justify-content: space-between; gap: 12px; }
.stock-low { color: var(--bad); font-weight: 600; }

.form-sec { display: flex; flex-direction: column; gap: 14px; }
.form-sec + .form-sec { padding-top: 20px; border-top: 1px solid var(--line); }
.form-sec h4 { font-size: 15px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-2 { grid-template-columns: 1fr; } }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.toggle-row .grow b { font-size: 14px; display: block; }
.toggle-row .grow small { color: var(--muted); font-size: 12.5px; }
.uploader { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.uploader > div { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: var(--blush-2); }
.uploader .add { border: 1.5px dashed #F0B3CC; background: #fff; color: var(--pink); font-size: 12px; font-weight: 600; flex-direction: column; gap: 4px; display: flex; align-items: center; justify-content: center; }
.uploader .add svg { width: 20px; height: 20px; }
.var-table td, .var-table th { padding: 8px 10px; }
.var-table .input { height: 38px; }
.drawer-box.wide { width: min(620px, 100%); }

/* inventory */
.stock-bar { width: 140px; }
.mv-plus { color: var(--ok); font-weight: 700; direction: ltr; display: inline-block; }
.mv-minus { color: var(--bad); font-weight: 700; direction: ltr; display: inline-block; }

/* returns */
.ret-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 22px; }
.ret-card + .ret-card { border-top: 1px solid var(--line); }
.ret-card .emo-tile { width: 64px; height: 64px; }
.ret-photos { display: flex; gap: 8px; margin-top: 10px; }
.ret-photos span { width: 54px; height: 54px; border-radius: 10px; display: grid; place-items: center; background: #F7EEF3; border: 1px solid var(--line); }
.ret-photos .emo { width: 34px; height: 34px; filter: none; }
.ret-reason { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); padding: 10px 12px; border-radius: 12px; background: var(--petal); }
.ret-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 170px; }
.ret-steps { display: flex; gap: 4px; margin-top: 10px; }
.ret-steps i { height: 4px; flex: 1; border-radius: 3px; background: var(--line); }
.ret-steps i.on { background: var(--pink); }
@media (max-width: 760px) { .ret-card { grid-template-columns: 1fr; } }

/* earnings */
.balance { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: linear-gradient(140deg, #FFF1F6, #FFE2EE); border: 1px solid #F8D8E6; }
.balance .big { font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.balance .big .price small { font-size: 18px; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.formula span { padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.formula b { color: var(--muted); }
.credit { color: var(--ok); font-weight: 600; }
.debit { color: var(--bad); font-weight: 600; }

/* reviews */
.rev-sum { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.rev-big { text-align: center; }
.rev-big .n { font-size: 52px; font-weight: 700; line-height: 1; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; color: #FFB800; fill: #FFB800; }
.stars svg.off { color: #EADCE3; fill: #EADCE3; }
.dist-row { display: grid; grid-template-columns: 58px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.dist-row + .dist-row { margin-top: 8px; }
.review { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.review + .review { border-top: 1px solid var(--line); }
.review p { font-size: 14px; color: var(--ink-2); }
.reply { margin-inline-start: 52px; padding: 10px 14px; border-radius: 12px; background: var(--petal); font-size: 13.5px; border-inline-start: 3px solid var(--pink); }
.reply-form { margin-inline-start: 52px; display: none; gap: 8px; flex-direction: column; }
.reply-form.open { display: flex; }
@media (max-width: 700px) { .rev-sum { grid-template-columns: 1fr; } .reply, .reply-form { margin-inline-start: 0; } }

/* settings */
.hours { display: flex; flex-direction: column; }
.hour-row { display: grid; grid-template-columns: 120px 60px 1fr; gap: 14px; align-items: center; padding: 12px 0; }
.hour-row + .hour-row { border-top: 1px solid var(--line); }
.hour-row .times { display: flex; align-items: center; gap: 8px; }
.hour-row .input { height: 40px; width: 120px; direction: ltr; text-align: center; }
.hour-row.off .times { opacity: .4; pointer-events: none; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }

/* team */
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; }
.chk { width: 20px; height: 20px; accent-color: var(--pink); }

/* subscription */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; } }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.current { border: 2px solid var(--pink); box-shadow: var(--sh-2); }
.plan .p { font-size: 32px; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan li svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.plan .btn { margin-top: auto; }

.view-toggle .segmented button { display: inline-flex; align-items: center; gap: 6px; }
.view-toggle .segmented svg { width: 15px; height: 15px; }

/* lebabak.css .switch is an inline label; make it a box everywhere */
.switch { display: inline-block; vertical-align: middle; }
.drv-line .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#inventory .dash-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1180px) { #inventory .dash-grid { grid-template-columns: 1fr; } }
#mvTable td:last-child { white-space: normal; min-width: 160px; }


/* the off-canvas sidebar sits past the right edge in RTL; keep it from widening the page */
html, body { overflow-x: hidden; }
@media (max-width: 620px) { .page-head h1 { font-size: 22px; } .content { padding-top: 18px; } .store-state #storeStateTxt { display: none; } }

body:has(.drawer.open) .proto-back, body:has(.modal.open) .proto-back { display: none; }


/* real maps */
.branch-map { height: 260px; }
.zones-map { height: 320px; }
.order-map { height: 210px; }
.ltr-input { direction: ltr; text-align: right; }

.balance .price-alt { text-align: right; font-size: 14px; margin-top: 4px; }

