:root{
  --bg:#f4f7f5;--panel:#fff;--text:#14201b;--muted:#74827b;--line:#e3e9e5;
  --brand:#153d31;--brand2:#245c47;--green:#2f8b61;--green-soft:#e8f6ee;
  --amber:#a96c13;--amber-soft:#fff3dc;--red:#b44848;--red-soft:#fbeaea;
  --blue:#387ba5;--blue-soft:#eaf4fb;--shadow:0 12px 36px rgba(20,51,39,.07);
  --radius:18px
}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Tahoma,"Segoe UI",Arial,sans-serif}
a{color:inherit}.icon{width:18px;height:18px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor}
.shell{min-height:100vh}.main{margin-right:270px;min-height:100vh;display:flex;flex-direction:column}.main.full{margin:0}
.sidebar{position:fixed;right:0;top:0;bottom:0;width:270px;background:#102b22;color:#fff;padding:20px 17px;display:flex;flex-direction:column;z-index:100}
.brand-logo-wrap{display:flex;align-items:center;justify-content:center;background:#fff;border-radius:16px;padding:9px;min-height:82px;overflow:hidden;text-decoration:none}
.brand-logo-wrap img{width:100%;max-width:205px;height:62px;object-fit:contain}.system-name{text-align:center;color:#96aaa1;font-size:10px;margin:8px 0 22px}
.nav{display:flex;flex-direction:column;gap:6px}.nav-link{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:12px;text-decoration:none;color:#bed0c8;font-size:13px;position:relative}
.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.09);color:#fff}.nav-link .icon{width:19px;height:19px}.nav-badge{margin-right:auto;background:#efc86f;color:#513913;min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:grid;place-items:center;font-size:9px}
.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:14px}.install-app{width:100%;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#d3e0da;border-radius:11px;padding:10px 12px;display:flex;align-items:center;gap:9px;font:inherit;font-size:11px;cursor:pointer;margin-bottom:12px}
.user-chip{display:flex;gap:10px;align-items:center}.avatar{width:36px;height:36px;border-radius:50%;background:#315b4b;display:grid;place-items:center}.user-chip strong,.user-chip span{display:block}.user-chip span{font-size:10px;color:#9aafa6;margin-top:2px}.logout{display:block;margin-top:12px;color:#bfd0c8;font-size:12px;text-decoration:none}
.topbar{height:76px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 28px;position:sticky;top:0;z-index:60}
.menu-btn{display:none;border:0;background:none;font-size:22px}.top-search{flex:1;max-width:720px}.global-search{position:relative}.global-search>input{width:100%;height:44px;border:1px solid var(--line);border-radius:12px;padding:0 43px 0 38px;background:#f8faf9;font:inherit;outline:none}.global-search>input:focus{border-color:#a8bdb3;background:#fff}
.search-svg{position:absolute;right:14px;top:13px;width:18px;height:18px;color:#7d8d84}.clear-search{position:absolute;left:9px;top:8px;width:28px;height:28px;border:0;background:transparent;color:#9aa69f;font-size:20px;cursor:pointer}
.task-bell{position:relative;width:39px;height:39px;border-radius:11px;border:1px solid var(--line);background:#fff;display:grid;place-items:center;text-decoration:none}.task-bell.enabled{color:var(--green)}.task-bell.disabled{color:var(--red);opacity:.65}.task-bell b{position:absolute;top:-6px;left:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:var(--red);color:#fff;display:grid;place-items:center;font-size:9px}
.oracle-live{margin-right:auto;display:flex;align-items:center;gap:8px;min-width:150px}.live-dot{width:9px;height:9px;border-radius:50%;background:#99a59f}.oracle-live strong,.oracle-live span{display:block}.oracle-live strong{font-size:11px}.oracle-live span{font-size:9px;color:var(--muted);margin-top:2px}.oracle-live.good .live-dot{background:var(--green);box-shadow:0 0 0 4px rgba(47,139,97,.12)}.oracle-live.warn .live-dot{background:#df9828}.oracle-live.bad .live-dot{background:var(--red)}
.content{padding:32px;max-width:1520px;width:100%;margin:0 auto;flex:1}.login-content{max-width:none;padding:0}.site-footer{padding:18px 30px 22px;text-align:center;color:#8a9891;font-size:10px;line-height:1.8}.site-footer strong{color:#53645b}
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}.hero h1,.page-head h1{font-size:30px;margin:6px 0 8px;letter-spacing:-.5px}.hero p,.page-head p{margin:0;color:var(--muted);line-height:1.8}.eyebrow{font-size:10px;font-weight:700;color:#789087;letter-spacing:.3px}.hero-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.permission-chip{display:inline-flex;gap:6px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 10px;font-size:10px;color:#64736b}
.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:17px}.metrics-grid.five{grid-template-columns:repeat(5,1fr)}.metric-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:17px;box-shadow:var(--shadow);position:relative;min-height:126px;text-decoration:none}.metric-card>div:nth-child(2){display:flex;justify-content:space-between;align-items:flex-end;margin-top:22px}.metric-card span{font-size:12px;color:var(--muted)}.metric-card strong{font-size:27px}.metric-card small{display:block;color:#94a099;margin-top:10px;font-size:9px}.metric-icon{position:absolute;top:14px;left:15px;width:34px;height:34px;border-radius:10px;background:#eaf3ee;color:var(--brand);display:grid;place-items:center}.metric-card.warning .metric-icon{background:var(--amber-soft);color:var(--amber)}.metric-card.danger .metric-icon{background:var(--red-soft);color:var(--red)}.metric-link:hover{transform:translateY(-1px);transition:.15s}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}.span-2{grid-column:span 2}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:15px}.panel-head h2{font-size:18px;margin:4px 0 0}.inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.big-search{position:relative;display:flex;gap:10px}.search-input-wrap{position:relative;flex:1}.search-input-wrap>input{width:100%;height:52px;border:1px solid var(--line);border-radius:13px;padding:0 43px 0 38px;font:inherit;font-size:16px;outline:none}.search-input-wrap .search-svg{top:17px}.search-input-wrap .clear-search{top:12px}.search-help{font-size:10px;color:var(--muted);margin-top:9px}
.btn{border:0;border-radius:11px;padding:11px 15px;font:inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn.primary{background:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand2)}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--text)}.btn.small{padding:7px 10px;font-size:11px}.btn.tiny{padding:6px 8px;font-size:9px;border-radius:8px}.btn.wide{width:100%}
.autocomplete{display:none;position:absolute;right:0;left:0;top:49px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:0 18px 40px rgba(23,56,45,.13);z-index:200;max-height:390px;overflow:auto}.dashboard-auto{top:58px}.auto-row{padding:11px 13px;border-bottom:1px solid #eff2f0;cursor:pointer}.auto-row:hover{background:#f5f8f6}.auto-row strong{display:block;direction:ltr;text-align:right}.auto-row span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.mini-list{display:flex;flex-direction:column}.mini-row{display:flex;justify-content:space-between;align-items:center;text-decoration:none;padding:11px 2px;border-bottom:1px solid #eef1ef;gap:12px}.mini-row:last-child{border:0}.mini-row>div{min-width:0}.mini-row strong,.mini-row span,.mini-row em{display:block}.mini-row span{font-size:10px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}.mini-row em{font-style:normal;font-size:9px;color:#9aa69f;margin-top:3px}.state-icon,.favorite-icon,.arrow-icon{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}.state-icon .icon{width:16px;height:16px}.state-icon.out{background:var(--red-soft);color:var(--red)}.state-icon.new{background:var(--blue-soft);color:var(--blue)}.state-icon.back{background:var(--green-soft);color:var(--green)}.favorite-icon{color:#b58323}.arrow-icon{color:#809087}.empty{text-align:center;padding:23px 4px;color:var(--muted);font-size:12px}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:21px}.count-pill,.tag{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:10px;background:#eaf3ee;color:var(--brand)}.status-tag{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9px}.status-tag.on{background:var(--green-soft);color:var(--green)}.status-tag.off{background:var(--red-soft);color:var(--red)}.status-tag.pending{background:var(--amber-soft);color:var(--amber)}
.results-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.result-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;text-decoration:none;transition:.18s}.result-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.result-code{font-size:18px;font-weight:700}.result-name{color:var(--muted);min-height:38px;margin:7px 0 16px;line-height:1.6}.result-card>span{font-size:11px;color:var(--brand)}
.product-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:19px}.breadcrumb{display:flex;gap:7px;font-size:10px;color:var(--muted);margin-bottom:11px}.breadcrumb a{text-decoration:none}.product-code{font-size:13px;color:var(--brand);font-weight:700}.product-head h1{font-size:27px;margin:7px 0 9px}.product-meta{display:flex;gap:9px;flex-wrap:wrap}.product-meta span{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:var(--muted);background:#eef2f0;padding:6px 8px;border-radius:999px}
.product-summary{display:grid;grid-template-columns:1fr 2fr;gap:17px;margin-bottom:17px}.total-card,.planner-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--shadow)}.total-card{display:flex;flex-direction:column;justify-content:center}.total-card>span{color:var(--muted);font-size:11px}.total-card strong{font-size:46px;margin:5px 0}.total-card small{color:#95a39c;line-height:1.5;font-size:9px}.planner-card{display:flex;justify-content:space-between;align-items:center;gap:22px}.planner-card h2{margin:5px 0;font-size:20px}.planner-card p{margin:0;color:var(--muted);font-size:12px}.planner-form{display:flex;gap:8px}.planner-form input{width:130px;height:44px;border:1px solid var(--line);border-radius:11px;padding:0 12px;font:inherit;font-size:16px;outline:none}
.recommendation{display:flex;gap:15px;align-items:flex-start;background:#edf7f2;border:1px solid #cce6da;border-radius:18px;padding:20px;margin-bottom:17px}.recommendation.multi{background:#eef4f8;border-color:#d5e2ea}.recommendation.short{background:#fff3f0;border-color:#f1d3cc}.rec-icon{width:45px;height:45px;border-radius:14px;background:#d8eee2;color:#1b6e49;display:grid;place-items:center;flex:0 0 auto}.rec-copy{flex:1}.recommendation h2{margin:4px 0 7px;font-size:20px}.recommendation p{margin:0;color:#627168;font-size:12px}.allocation-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.allocation-chip{display:inline-block;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.06);border-radius:10px;padding:7px 10px;margin-top:9px;font-size:11px}.alternatives{margin-top:14px;padding-top:12px;border-top:1px solid rgba(0,0,0,.08)}.alternative-row{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:11px}
.stock-layout{display:grid;grid-template-columns:2fr 1fr;gap:17px}.warehouse-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.warehouse-group-card{border:1px solid var(--line);border-radius:15px;background:#fbfcfb;overflow:hidden}.warehouse-group-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#f2f6f4;border-bottom:1px solid #e6ece8}.warehouse-group-head span{display:block;font-size:8px;color:var(--muted)}.warehouse-group-head h3{margin:3px 0 0;font-size:13px}.group-total{text-align:left}.group-total strong{display:block;font-size:20px}.warehouse-clean-list{padding:3px 12px}.warehouse-clean-row{display:grid;grid-template-columns:1fr 56px;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf0ee}.warehouse-clean-row:last-child{border-bottom:0}.warehouse-title{display:flex;align-items:center;gap:7px}.warehouse-title strong{font-size:11px}.warehouse-state{width:27px;height:27px;border-radius:8px;display:grid;place-items:center}.warehouse-state .icon{width:15px;height:15px}.warehouse-state.available{background:var(--green-soft);color:var(--green)}.warehouse-state.negative{background:var(--red-soft);color:var(--red)}.warehouse-state.empty{background:#eef1ef;color:#89968f}.warehouse-code{font-size:9px;color:#92a098;margin-top:3px}.best-pill{font-size:8px;background:#dceee5;color:#1f6f4d;border-radius:999px;padding:3px 6px}.warehouse-clean-row .bar{height:5px;background:#edf1ef;border-radius:999px;margin-top:7px;overflow:hidden}.warehouse-clean-row .bar i{display:block;height:100%;background:#4c8971;border-radius:999px}.warehouse-clean-row .warehouse-qty{font-size:21px;font-weight:700;text-align:center}.warehouse-qty.negative{color:var(--red)}.availability{display:flex;flex-direction:column}.availability>div{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid #edf0ee}.availability>div:last-child{border-bottom:0}.availability span{color:var(--muted);font-size:11px}.availability strong{font-size:18px}
.movement-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.movement-tabs a,.period-filter a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:11px;padding:9px 11px;font-size:10px;color:#67766e}.movement-tabs a.active,.period-filter a.active{background:var(--brand);color:#fff;border-color:var(--brand)}.period-filter{display:flex;align-items:center;gap:7px;margin-bottom:15px;font-size:10px;color:var(--muted)}.period-filter a{padding:6px 9px}
.event-list{display:flex;flex-direction:column}.event-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 0;border-bottom:1px solid #edf0ee}.event-row:last-child{border-bottom:0}.event-product{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0;flex:1}.event-state{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto}.event-state.stockout{background:var(--red-soft);color:var(--red)}.event-state.new{background:var(--blue-soft);color:var(--blue)}.event-state.restocked{background:var(--green-soft);color:var(--green)}.event-state.critical{background:var(--amber-soft);color:var(--amber)}.event-state.negative{background:var(--red-soft);color:var(--red)}.event-product strong,.event-product span,.event-product small{display:block}.event-product span{font-size:11px;color:#56675e;margin-top:2px}.event-product small{font-size:9px;color:#98a49e;margin-top:3px}.event-task{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.assigned-pill,.reviewed-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 8px;font-size:9px;background:#eef3f0;color:#64736b}.reviewed-pill{background:var(--green-soft);color:var(--green)}.assigned-pill.muted{opacity:.7}.assign-form{display:flex;gap:5px}.assign-form select{height:31px;border:1px solid var(--line);border-radius:8px;padding:0 7px;font:inherit;font-size:9px;background:#fff}
.table-panel{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:780px}.data-table th,.data-table td{text-align:right;padding:12px 9px;border-bottom:1px solid #edf0ee;font-size:11px}.data-table th{color:var(--muted);font-weight:600}.actions{display:flex;gap:5px;flex-wrap:wrap}.actions form{margin:0}.icon-state{display:inline-flex;align-items:center;gap:5px;font-size:9px}.icon-state.green{color:var(--green)}.icon-state.red{color:var(--red)}
.form-panel{max-width:760px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{font-size:11px;font-weight:700}.form-grid input:not([type=checkbox]){width:100%;height:44px;border:1px solid var(--line);border-radius:10px;margin-top:7px;padding:0 11px;font:inherit}.form-grid .full{grid-column:1/-1}.form-grid .check{display:flex;gap:8px;align-items:center;background:#f7f9f8;border:1px solid var(--line);border-radius:11px;padding:12px}.hint-box{font-size:11px;color:var(--muted);background:#f5f8f6;padding:12px;border-radius:11px}.master-check{display:flex;gap:12px;align-items:center}.master-check input{width:19px;height:19px}.master-check strong,.master-check span{display:block}.master-check span{font-size:10px;color:var(--muted);margin-top:3px}.warehouse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.warehouse-grid.disabled{opacity:.45}.warehouse-option{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:12px;padding:11px;background:#fafbfa}.warehouse-option strong,.warehouse-option span{display:block}.warehouse-option strong{font-size:11px}.warehouse-option span{font-size:9px;color:var(--muted);margin-top:2px}.sticky-save{position:sticky;bottom:18px;margin-top:14px;text-align:left}
.flash{padding:11px 14px;border-radius:12px;background:#e9f5ee;border:1px solid #cfe8d9;margin-bottom:15px;font-size:11px}.flash.error{background:#fff0ee;border-color:#efd2cc}.error-panel{direction:ltr;text-align:left;white-space:pre-wrap;background:#fff0ee;color:#8d3434;border:1px solid #edcfca;border-radius:14px;padding:14px;margin-bottom:17px;font-size:11px}.muted-text{color:var(--muted)}
.login-wrap{min-height:100vh;background:linear-gradient(135deg,#102a22 0%,#183e32 54%,#eef3f0 54%);display:grid;place-items:center;padding:30px}.login-card{width:min(430px,100%);background:#fff;border-radius:24px;padding:30px;box-shadow:0 30px 70px rgba(8,31,23,.18)}.login-logo{display:flex;justify-content:center;border:1px solid var(--line);border-radius:17px;padding:14px;background:#fff;margin-bottom:24px}.login-logo img{width:245px;max-width:100%;height:105px;object-fit:contain}.login-copy{margin:27px 0 19px}.login-copy h2{font-size:24px;margin:0 0 8px}.login-copy p{color:var(--muted);font-size:12px;margin:0;line-height:1.7}.stack{display:flex;flex-direction:column;gap:13px}.stack label{font-size:11px;font-weight:700}.stack input{display:block;width:100%;height:44px;border:1px solid var(--line);border-radius:11px;margin-top:7px;padding:0 11px;font:inherit}.secure-note{text-align:center;font-size:9px;color:#99a69f;margin-top:17px}
@media(max-width:1250px){.metrics-grid.five{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1100px){.metrics-grid,.metrics-grid.five{grid-template-columns:repeat(2,1fr)}.warehouse-grid{grid-template-columns:repeat(2,1fr)}.product-summary,.stock-layout{grid-template-columns:1fr}.results-grid{grid-template-columns:repeat(2,1fr)}.warehouse-groups{grid-template-columns:1fr}}
@media(max-width:820px){.main{margin-right:0}.sidebar{transform:translateX(105%);transition:.2s}.sidebar.open{transform:translateX(0)}.menu-btn{display:block}.topbar{padding:0 13px;gap:10px}.oracle-live{display:none}.content{padding:19px 13px}.hero,.page-head,.product-head{align-items:flex-start;flex-direction:column}.hero-tools{justify-content:flex-start}.dashboard-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.planner-card{align-items:flex-start;flex-direction:column}.results-grid{grid-template-columns:1fr}.warehouse-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.event-row{align-items:flex-start;flex-direction:column}.event-task{justify-content:flex-start}.top-search{max-width:none}.site-footer{padding:16px 14px 20px}}
@media(max-width:520px){.metrics-grid,.metrics-grid.five{grid-template-columns:1fr}.big-search,.planner-form{flex-direction:column}.planner-form input{width:100%}.product-head h1,.hero h1,.page-head h1{font-size:23px}.total-card strong{font-size:38px}.movement-tabs{display:grid;grid-template-columns:1fr 1fr}.task-bell{display:none}}


/* V5.1 */
.dashboard-rights{
    margin-top:22px;
    padding:18px 12px 4px;
    text-align:center;
    color:#87958e;
    font-size:10px;
    line-height:1.9;
    border-top:1px solid #e3e9e5;
}
.dashboard-rights strong{color:#52635a}
.page-head form{margin:0}


/* V5.2 stockout responsibility */
.alert-mode-tabs{display:flex;gap:8px;margin-bottom:15px;flex-wrap:wrap}
.alert-mode-tabs a{display:inline-flex;align-items:center;gap:6px;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:11px;padding:9px 12px;font-size:10px;color:#65756c}
.alert-mode-tabs a.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.explain-card{margin-top:14px;background:#eef5f1;border:1px solid #d8e8df;border-radius:14px;padding:13px 15px;color:#5e6e65;font-size:10px;line-height:1.7}
.explain-card strong{display:block;color:var(--text);margin-bottom:3px}
.simple-event{text-decoration:none;color:inherit}


/* V5.2.3 — stable footer, natural layout */
.site-footer,
.dashboard-rights,
.global-footer{
    display:none !important;
}

.main{
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

.content{
    flex:1 0 auto;
}

.darak-footer{
    flex:0 0 auto;
    width:100%;
    margin-top:auto;
    padding:14px 18px 17px;
    text-align:center;
    color:#7f8e86;
    font-size:10px;
    line-height:1.9;
    border-top:1px solid rgba(227,233,229,.95);
    background:rgba(244,247,245,.92);
}

.darak-footer strong{
    color:#506158;
}

/* Keep the login card + footer in the first viewport */
.main.full .login-content{
    flex:1 1 auto;
    min-height:0;
}

.main.full .login-wrap{
    min-height:calc(100vh - 61px);
    height:auto;
}

.main.full .darak-footer{
    background:#eef4f1;
}

/* Remove any prior fixed-footer side effects */
body{
    padding-bottom:0 !important;
}

@media(max-width:820px){
    .darak-footer{
        padding:12px 10px 14px;
        font-size:9px;
    }
    .main.full .login-wrap{
        min-height:calc(100vh - 56px);
    }
}


/* ========================= V5.3 Barcode + Multilingual UI ========================= */
:root{
  --brand:#123f31;
  --brand-strong:#0d3126;
  --brand-soft:#eaf4ef;
  --surface:#ffffff;
  --surface-subtle:#f7faf8;
  --focus:#1d7d5a;
  --shadow-soft:0 10px 32px rgba(13,49,38,.065);
  --shadow-strong:0 18px 50px rgba(13,49,38,.12);
}
html[lang="bn"] body,html[lang="hi"] body{font-family:"Nirmala UI","Segoe UI",Tahoma,Arial,sans-serif}
body{font-size:14px;line-height:1.55;background:linear-gradient(180deg,#f8fbf9 0,#eef6f2 100%);min-height:100vh}
input,select,button{font-family:inherit}
.panel,.metric-card,.total-card,.planner-card{border-color:#dce8e1;box-shadow:var(--shadow-soft)}
.panel:hover,.metric-card:hover{border-color:#cbded4}
.content{padding-top:28px}
.hero-refined{padding:22px 24px;background:linear-gradient(135deg,#fff 0%,#f2f8f5 100%);border:1px solid #dce8e1;border-radius:22px;box-shadow:var(--shadow-soft)}
.hero-refined h1{font-size:32px}.hero-refined p{max-width:720px}
.topbar{height:80px;border-bottom-color:#dbe6e0;box-shadow:0 5px 18px rgba(15,55,42,.04)}
.topbar-actions{margin-inline-start:auto;display:flex;align-items:center;gap:10px}
.top-language{display:flex;align-items:center;gap:5px;height:40px;padding:0 9px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--brand);font-weight:700;font-size:10px}
.top-language select{max-width:112px;border:0;background:transparent;color:var(--text);outline:0;font-size:11px}
.sidebar-language{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;color:#bcd0c7;font-size:10px}
.language-select{height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 8px;color:var(--text)}
.language-select.dark{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.15);color:#fff;max-width:128px}.language-select.dark option{color:#111}
.global-search>input{height:48px;border-radius:14px;font-size:14px;background:#fbfdfc}
.global-search .search-svg{top:15px}.global-search .clear-search{top:10px}
.search-command{margin-bottom:18px;padding:24px;border-radius:22px;background:linear-gradient(135deg,#fff 0,#f6fbf8 70%,#eaf6f0 100%);position:relative;overflow:visible}
.search-command:before{content:"";position:absolute;inset-inline-end:-70px;top:-90px;width:240px;height:240px;border-radius:50%;background:rgba(29,125,90,.05);pointer-events:none}
.search-command-copy{margin-bottom:15px}.search-command-copy h2{font-size:24px;margin:5px 0}.search-command-copy p{margin:0;color:var(--muted)}
.big-search{z-index:3}.search-input-wrap>input{height:58px;border-width:1.5px;border-color:#bed4c8;background:#fff;font-size:16px}.search-input-wrap>input:focus{border-color:var(--focus);box-shadow:0 0 0 4px rgba(29,125,90,.10)}
.search-submit{min-width:112px;font-weight:700}.barcode-ready:after{content:"▥";position:absolute;inset-inline-end:44px;top:18px;color:#4f7968;font-size:18px;opacity:.75}
.search-methods{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.search-methods span{display:inline-flex;align-items:center;border:1px solid #d8e6df;border-radius:999px;padding:6px 10px;background:#fff;color:#5e7168;font-size:10px}.search-methods .barcode-method{background:#eaf6f0;color:#176947;border-color:#c9e4d6;font-weight:700}
.search-help{font-size:10px;margin-top:9px;color:#7b8b83}
.autocomplete{top:53px;border-radius:16px;border-color:#cfe0d7;box-shadow:var(--shadow-strong);overflow:hidden}.dashboard-auto{top:64px}
.auto-row{width:100%;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:inherit;padding:12px 14px;border-bottom:1px solid #edf2ef;cursor:pointer}.auto-row:hover,.auto-row:focus{background:#f2f8f5;outline:0}.auto-main{min-width:0}.auto-main strong,.auto-main span,.auto-main small{display:block}.auto-main strong{font-size:14px}.auto-main span{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.auto-main small{color:#527466;font-size:10px;margin-top:3px}.auto-source{flex:0 0 auto;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:700}.auto-source.item{background:#eef2f0;color:#66766e}.auto-source.barcode{background:#e4f5ec;color:#126b47}.auto-status{padding:15px;text-align:center;color:var(--muted)}.auto-status.error{color:var(--red)}
.metric-card{min-height:136px;padding:19px}.metric-card strong{font-size:30px}.metric-icon{width:38px;height:38px}
.data-language-note{margin-top:14px;padding:10px 12px;border-radius:12px;background:#eef4f1;color:#708078;font-size:10px;text-align:center}
.barcode-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:17px;padding:16px 20px;background:linear-gradient(135deg,#ecf8f2,#fff);border:1px solid #cde5d9;border-radius:17px;box-shadow:var(--shadow-soft)}.barcode-card span,.barcode-card strong,.barcode-card small{display:block}.barcode-card strong{font-size:23px;letter-spacing:1.1px;margin-top:4px;color:var(--brand)}.barcode-card small{font-size:9px;color:var(--green);margin-top:3px}
.result-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.match-badge{border-radius:999px;padding:5px 8px;font-size:9px;font-weight:700}.match-badge.item{background:#eef2f0;color:#64746b}.match-badge.barcode{background:#e5f6ed;color:#126b47}.barcode-result{border-color:#bcdcca;background:linear-gradient(135deg,#fff,#f2faf6)}.result-barcode{font-size:11px;color:#2b7256;margin:-8px 0 12px;letter-spacing:.6px}
.form-grid select{width:100%;height:44px;border:1px solid var(--line);border-radius:10px;margin-top:7px;padding:0 11px;background:#fff}
.login-wrap{position:relative}.login-language{position:absolute;top:24px;inset-inline-end:28px;z-index:5;display:flex;align-items:center;gap:8px;padding:8px 10px;background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.7);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.08)}.login-language label{font-size:10px;font-weight:700;color:var(--brand)}.login-language select{height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 8px}
.toast-host{position:fixed;inset-inline-start:18px;bottom:18px;z-index:1000}.simple-toast{background:var(--brand);color:#fff;padding:11px 14px;border-radius:11px;box-shadow:0 15px 40px rgba(0,0,0,.18);font-size:11px}.simple-toast.success{background:#2f7a58}
.sidebar-backdrop{display:none}

/* LTR layout for English, Bengali and Hindi */
html[dir="ltr"] .sidebar{left:0;right:auto}
html[dir="ltr"] .main{margin-left:270px;margin-right:0}
html[dir="ltr"] .main.full{margin-left:0}
html[dir="ltr"] .nav-badge{margin-left:auto;margin-right:0}
html[dir="ltr"] .oracle-live{margin-left:auto;margin-right:0}
html[dir="ltr"] .global-search>input,html[dir="ltr"] .search-input-wrap>input{padding-left:43px;padding-right:48px}
html[dir="ltr"] .search-svg{left:14px;right:auto}
html[dir="ltr"] .clear-search{right:9px;left:auto}
html[dir="ltr"] .barcode-ready:after{right:44px;left:auto}
html[dir="ltr"] .data-table th,html[dir="ltr"] .data-table td{text-align:left}
html[dir="ltr"] .group-total{text-align:right}
html[dir="ltr"] .sticky-save{text-align:right}
html[dir="ltr"] .arrow-icon{transform:scaleX(-1)}

@media(max-width:820px){
  .main,html[dir="ltr"] .main{margin:0}
  .topbar{height:72px;padding:0 10px;gap:8px}.topbar-actions{gap:6px}.top-language{padding:0 7px}.top-language select{width:76px}.task-bell{display:grid}.content{padding:15px 11px 22px}.hero-refined{padding:18px}.hero-refined h1{font-size:25px}.metrics-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{min-height:120px}.metric-card strong{font-size:25px}.sidebar-backdrop.show{display:block;position:fixed;inset:0;background:rgba(8,29,22,.45);z-index:90}.sidebar{z-index:110}.search-command{padding:18px}.search-command-copy h2{font-size:21px}.big-search{flex-direction:column}.search-submit{width:100%;height:48px}.search-input-wrap>input{height:56px}.dashboard-auto{top:62px}.barcode-card{align-items:flex-start;flex-direction:column}.product-summary{gap:12px}.warehouse-group-card{border-radius:14px}.login-language{top:12px;inset-inline-end:12px}.login-card{margin-top:50px}
  html[dir="ltr"] .sidebar{transform:translateX(-105%)}html[dir="ltr"] .sidebar.open{transform:translateX(0)}
}
@media(max-width:520px){
  .metrics-grid.five{grid-template-columns:1fr 1fr;gap:9px}.metric-card{padding:15px;min-height:112px}.metric-card>div:nth-child(2){margin-top:26px;display:block}.metric-card strong{display:block;margin-top:4px}.metric-card span{font-size:10px}.metric-card small{font-size:8px}.top-language span{display:none}.top-language select{width:70px}.search-command{border-radius:17px}.search-methods{gap:5px}.search-methods span{font-size:9px;padding:5px 8px}.product-head h1{font-size:22px}.barcode-card strong{font-size:20px}.login-wrap{padding:18px 12px}.login-card{padding:22px}.login-language{position:absolute}.darak-footer{font-size:8.5px}
}


/* ========================= V5.4 Camera Barcode Scanner ========================= */
body.scanner-open{overflow:hidden}
.camera-search-inline{position:absolute;inset-inline-end:39px;top:9px;width:30px;height:30px;border:0;border-radius:9px;background:#e8f4ee;color:var(--brand);display:grid;place-items:center;cursor:pointer;z-index:4}
.camera-search-inline:hover,.camera-search-inline:focus{background:#d7ecdf;outline:2px solid rgba(29,125,90,.14)}
.camera-search-inline .icon{width:16px;height:16px}
.global-search>input{padding-inline-start:43px!important;padding-inline-end:78px!important}
.global-search .search-svg{inset-inline-start:14px;left:auto;right:auto}
.global-search .clear-search{inset-inline-end:8px;left:auto;right:auto}
.camera-scan-primary{min-width:154px;background:#e5f4ec;color:#145f43;border:1px solid #bcdcca;font-weight:800}
.camera-scan-primary:hover,.camera-scan-primary:focus{background:#d8ede2;border-color:#9fcbb6}
.camera-scan-primary .icon{width:19px;height:19px}
.barcode-ready:after{display:none!important}

.barcode-scanner-modal{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:18px;opacity:0;transition:opacity .18s ease}
.barcode-scanner-modal.open{opacity:1}
.barcode-scanner-modal[hidden]{display:none!important}
.barcode-scanner-backdrop{position:absolute;inset:0;background:rgba(4,20,15,.72);backdrop-filter:blur(7px)}
.barcode-scanner-dialog{position:relative;width:min(620px,100%);max-height:calc(100vh - 28px);overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.55);border-radius:24px;box-shadow:0 28px 90px rgba(0,0,0,.32);padding:20px;transform:translateY(12px) scale(.985);transition:transform .2s ease}
.barcode-scanner-modal.open .barcode-scanner-dialog{transform:translateY(0) scale(1)}
.barcode-scanner-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.barcode-scanner-header h2{margin:4px 0 5px;font-size:22px}
.barcode-scanner-header p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}
.scanner-close-x{width:36px;height:36px;flex:0 0 auto;border:1px solid var(--line);border-radius:11px;background:#fff;color:#68776f;font-size:23px;line-height:1;cursor:pointer}
.barcode-camera-stage{position:relative;aspect-ratio:4/3;min-height:280px;overflow:hidden;border-radius:19px;background:#07110d;border:1px solid #183b2e}
.barcode-camera-stage video{width:100%;height:100%;object-fit:cover;display:block;transform:translateZ(0)}
.barcode-scan-shade{position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.05) 35%,rgba(0,0,0,.05) 65%,rgba(0,0,0,.28));pointer-events:none}
.barcode-scan-frame{position:absolute;left:8%;right:8%;top:31%;height:38%;border:1px solid rgba(255,255,255,.48);border-radius:16px;box-shadow:0 0 0 999px rgba(0,0,0,.20);pointer-events:none}
.barcode-scan-frame span{position:absolute;width:33px;height:33px;border-color:#9cf2c8;border-style:solid}
.barcode-scan-frame span:nth-child(1){top:-2px;left:-2px;border-width:4px 0 0 4px;border-radius:13px 0 0 0}
.barcode-scan-frame span:nth-child(2){top:-2px;right:-2px;border-width:4px 4px 0 0;border-radius:0 13px 0 0}
.barcode-scan-frame span:nth-child(3){bottom:-2px;left:-2px;border-width:0 0 4px 4px;border-radius:0 0 0 13px}
.barcode-scan-frame span:nth-child(4){bottom:-2px;right:-2px;border-width:0 4px 4px 0;border-radius:0 0 13px 0}
.barcode-scan-frame i{position:absolute;left:7%;right:7%;top:50%;height:2px;background:linear-gradient(90deg,transparent,#74e9af 15%,#d9fff0 50%,#74e9af 85%,transparent);box-shadow:0 0 13px #74e9af;animation:barcodeScanLine 2s ease-in-out infinite}
@keyframes barcodeScanLine{0%,100%{transform:translateY(-52px);opacity:.45}50%{transform:translateY(52px);opacity:1}}
.barcode-camera-status{position:absolute;inset-inline-start:12px;inset-inline-end:12px;bottom:12px;min-height:34px;display:flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:11px;background:rgba(7,24,18,.80);color:#fff;font-size:11px;text-align:center;backdrop-filter:blur(6px)}
.barcode-camera-status.scanning:before{content:"";width:7px;height:7px;margin-inline-end:7px;border-radius:50%;background:#8ff0bd;box-shadow:0 0 0 5px rgba(143,240,189,.12);animation:scannerPulse 1.2s ease-in-out infinite}
.barcode-camera-status.success{background:rgba(21,111,72,.92);font-weight:800}
.barcode-camera-status.error{background:rgba(145,42,42,.93)}
.barcode-camera-status.error-soft{background:rgba(123,83,25,.90)}
@keyframes scannerPulse{0%,100%{opacity:.4}50%{opacity:1}}
.barcode-scanner-tip{display:flex;align-items:flex-start;gap:8px;margin:12px 2px 0;padding:10px 11px;border-radius:12px;background:#f3f7f5;color:#68776f;font-size:10px;line-height:1.65}
.barcode-scanner-tip .icon{flex:0 0 auto;color:#a46c18;margin-top:1px}
.barcode-scanner-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.scanner-control{min-width:0;padding:10px 8px;font-size:10px;white-space:nowrap}
.scanner-control.active{background:#fff0ce;border-color:#e3bb5d;color:#815511}
.scanner-photo-button{cursor:pointer}
.scanner-close-button{width:100%;margin-top:12px}

html[dir="ltr"] .camera-search-inline{left:auto;right:39px}
@media(max-width:820px){
  .camera-scan-primary{width:100%;height:48px}
  .barcode-scanner-modal{padding:0;align-items:end}
  .barcode-scanner-dialog{width:100%;max-height:94vh;border-radius:24px 24px 0 0;padding:16px 13px 18px}
  .barcode-camera-stage{min-height:300px;border-radius:17px}
  .barcode-scanner-controls{grid-template-columns:1fr 1fr}
  .scanner-control{height:44px;font-size:11px}
}
@media(max-width:520px){
  .barcode-scanner-header h2{font-size:19px}
  .barcode-scanner-header p{font-size:10px}
  .barcode-camera-stage{aspect-ratio:3/4;min-height:390px}
  .barcode-scan-frame{top:34%;height:28%;left:6%;right:6%}
  .barcode-scanner-tip{font-size:9px}
}


/* ================= V5.4.1 Android RTL home layout hotfix ================= */
@media (max-width:820px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  .shell,.main,.content,.topbar,.hero,.hero-refined,
  .metrics-grid,.dashboard-grid,.panel{
    min-width:0;
    max-width:100%;
  }

  .main,
  html[dir="ltr"] .main{
    width:100%;
    margin:0!important;
  }

  /*
   * On Android RTL, a translated fixed sidebar still contributed about 58px
   * to scrollable overflow. Completely removing it from layout while closed
   * prevents the dark strip and clipped home page.
   */
  .sidebar,
  html[dir="ltr"] .sidebar{
    display:none!important;
    width:min(86vw,320px);
    transform:none!important;
    visibility:hidden;
    pointer-events:none;
  }

  .sidebar.open,
  html[dir="ltr"] .sidebar.open{
    display:flex!important;
    visibility:visible;
    pointer-events:auto;
  }

  html[dir="rtl"] .sidebar{
    right:0;
    left:auto;
  }

  html[dir="ltr"] .sidebar{
    left:0;
    right:auto;
  }

  body.menu-open{
    overflow:hidden;
  }

  .topbar{
    width:100%;
    min-width:0;
  }

  .menu-btn{
    display:grid;
    place-items:center;
    flex:0 0 42px;
    width:42px;
    height:42px;
    padding:0;
    border-radius:11px;
    background:#fff;
    border:1px solid var(--line);
    color:var(--brand);
  }

  .top-search{
    min-width:0;
    flex:1 1 0;
  }

  .global-search{
    width:100%;
    min-width:0;
  }

  .topbar-actions{
    min-width:0;
    flex:0 0 auto;
  }

  .content{
    width:100%;
    overflow-x:clip;
  }

  .metrics-grid>*,
  .dashboard-grid>*,
  .hero-refined>*{
    min-width:0;
  }
}

@media(max-width:390px){
  .metrics-grid.five{
    grid-template-columns:1fr;
  }
}


/* V5.4.2 — keep scanner codes visually LTR even in the Arabic interface. */
input.scanner-code-mode{
  direction:ltr!important;
  text-align:left!important;
  unicode-bidi:plaintext;
  font-variant-numeric:tabular-nums;
  letter-spacing:.025em;
}


/* ================= V5.5 permissions, prices and universal mobile polish ================= */
.commercial-section{margin:0 0 17px}.commercial-section-head{margin-bottom:10px}.commercial-section-head h2{margin:4px 0 2px;font-size:18px}.commercial-section-head p{margin:0;color:var(--muted);font-size:10px}
.commercial-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.price-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.price-card:before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:4px;background:#6e9d88}.price-card.retail:before{background:#4c8971}.price-card.wholesale:before{background:#6e86a0}.price-card.cost:before{background:#b28a4b}.price-card.supplier-price:before{background:#8c6f47}.price-card.supplier:before{background:#8b7e96}
.price-card-label{display:block;color:var(--muted);font-size:10px;font-weight:700;margin-bottom:9px}
.price-main{display:flex;align-items:center;gap:7px;direction:ltr}.price-main strong{font-size:29px;line-height:1;font-variant-numeric:tabular-nums}
.riyal-symbol{width:17px;height:21px;object-fit:contain;flex:0 0 auto}.riyal-symbol.small{width:12px;height:15px}.currency-symbol{font-size:18px;font-weight:800;line-height:1;color:#23342d;direction:ltr}
.price-vat-sub{margin-top:10px;padding-top:9px;border-top:1px solid #edf0ee;display:flex;align-items:center;gap:5px;flex-wrap:wrap;color:#78877f;font-size:9px}.price-vat-sub b{font-size:13px;color:#23342d;font-variant-numeric:tabular-nums}
.supplier-main strong{display:block;font-size:15px;line-height:1.6}.supplier-main small{display:block;color:var(--muted);font-size:9px;margin-top:6px}
.commercial-warning{margin-top:9px;padding:9px 11px;border-radius:10px;background:#fff4dc;color:#8a5c12;font-size:9px}
.permission-pills{display:flex;flex-wrap:wrap;gap:4px}.permission-pills span{font-size:8px;padding:4px 6px;border-radius:999px;background:#edf5f1;color:#2e6b53}.permission-pills em{font-size:9px;color:#98a39e;font-style:normal}
.subline{display:block;color:var(--muted);font-size:9px;margin-top:3px}.btn.danger{background:#fff;border-color:#efcdcd;color:#a43b3b}
.mobile-user-list{display:none}.form-section-title{border-bottom:1px solid #e8eeea;padding:4px 0 8px;margin-top:4px}.form-section-title h2{font-size:15px;margin:0}.form-section-title p{font-size:9px;color:var(--muted);margin:4px 0 0}.field-help{display:block;font-weight:400;color:var(--muted);font-size:9px;margin-top:5px}.form-actions{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.commercial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
 html,body{overscroll-behavior-x:none}.desktop-user-table{display:none}.mobile-user-list{display:grid;gap:11px}
 .user-mobile-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:14px;box-shadow:var(--shadow);min-width:0}
 .user-mobile-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.user-mobile-card>header strong{display:block;font-size:14px}.user-mobile-card>header span:not(.status-tag){display:block;color:var(--muted);font-size:9px;margin-top:3px}
 .user-card-role{margin:9px 0}.user-mobile-card footer{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.user-mobile-card footer form{margin:0}.user-mobile-card footer .btn{width:100%;min-height:44px;justify-content:center}
 .commercial-grid{grid-template-columns:1fr 1fr}.price-main strong{font-size:25px}.user-form-panel{max-width:none}.user-form-grid input:not([type=checkbox]),.user-form-grid select{font-size:16px}
 .btn{min-height:42px}.page-head .btn.primary{width:100%;justify-content:center}.planner-form input,.global-search input,.big-search input{font-size:16px}
}
@media(max-width:560px){
 .commercial-grid{grid-template-columns:1fr}.user-mobile-card footer{grid-template-columns:1fr}
 .topbar{min-height:70px;height:auto;padding-block:8px;flex-wrap:wrap}.top-search{order:2;flex-basis:100%}.topbar-actions{margin-inline-start:auto}
 .content{padding-top:12px}.warehouse-clean-row{grid-template-columns:minmax(0,1fr) 48px}.warehouse-title strong{overflow-wrap:anywhere}
}


/* V5.5.1 explicit destructive-action confirmation */
body.modal-open{overflow:hidden}
.delete-confirm-backdrop[hidden]{display:none!important}
.delete-confirm-backdrop{position:fixed;inset:0;z-index:5000;background:rgba(16,30,24,.55);backdrop-filter:blur(4px);display:grid;place-items:center;padding:18px}
.delete-confirm-modal{width:min(430px,100%);background:#fff;border:1px solid #ead6d6;border-radius:20px;padding:24px;box-shadow:0 24px 70px rgba(14,30,24,.24);text-align:center}
.delete-confirm-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:#fff0f0;color:#aa3333;font-size:24px;font-weight:800}
.delete-confirm-modal h2{margin:0 0 8px;font-size:20px}.delete-confirm-modal p{margin:0;color:var(--muted);font-size:11px;line-height:1.8}
.delete-confirm-user{margin:14px 0;padding:11px 13px;border-radius:12px;background:#f7f9f8;font-weight:800;font-size:14px}
.delete-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}.delete-confirm-actions .btn{justify-content:center;min-height:46px}
.confirm-danger{background:#a93a3a!important;color:#fff!important;border-color:#a93a3a!important}
@media(max-width:560px){.delete-confirm-modal{padding:19px;border-radius:17px}.delete-confirm-actions{grid-template-columns:1fr}.delete-confirm-actions .btn{min-height:48px}}


/* ================= V5.6 mobile Web Push ================= */
.push-settings-card{margin:0 0 16px;background:linear-gradient(135deg,#f7fbf9,#fff);border:1px solid #dce9e2;border-radius:18px;padding:17px;box-shadow:var(--shadow)}
.push-settings-main{display:flex;align-items:flex-start;gap:12px}.push-settings-icon{width:44px;height:44px;border-radius:13px;background:#e6f2ec;color:#24644c;display:grid;place-items:center;flex:0 0 auto}.push-settings-icon .icon{width:22px;height:22px}
.push-settings-main h2{margin:3px 0 3px;font-size:17px}.push-settings-main p{margin:0;max-width:700px;color:var(--muted);font-size:10px;line-height:1.7}
.push-status-line{display:inline-flex;margin-top:9px;padding:6px 9px;border-radius:999px;background:#f0f3f2;color:#65736d;font-size:9px;font-weight:800}
.push-status-line.success{background:#e7f5ed;color:#226a4d}.push-status-line.error{background:#fff0f0;color:#a23d3d}.push-status-line.warn{background:#fff5dc;color:#8a611e}.push-status-line.working{background:#edf3fb;color:#49647e}
.push-settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.push-settings-actions .btn{min-height:42px}
.push-device-meta{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:#66756e;font-size:9px}.push-device-meta b{color:#263a31}
.push-platform-hints{margin-top:11px;padding-top:10px;border-top:1px solid #e7eeea}.push-platform-hints p{margin:3px 0;color:#7b8781;font-size:8.5px;line-height:1.6}
@media(max-width:560px){
 .push-settings-card{padding:14px;border-radius:16px}.push-settings-main{gap:9px}.push-settings-icon{width:38px;height:38px;border-radius:11px}
 .push-settings-actions{display:grid;grid-template-columns:1fr}.push-settings-actions .btn{width:100%;justify-content:center;min-height:47px}
 .push-device-meta{justify-content:space-between}.push-platform-hints p{font-size:9px}
}


/* V5.7.1 — base supplier price source clarification */
.supplier-price-base-note{display:block;margin-top:9px;padding-top:8px;border-top:1px solid #edf0ee;color:#78877f;font-size:9px;font-weight:700;line-height:1.5}
