:root{
    --inv-dark:#0f172a;
    --inv-blue:#2563eb;
    --inv-purple:#7c3aed;
    --inv-green:#16a34a;
    --inv-orange:#f97316;
    --inv-line:#e5e7eb;
    --inv-muted:#64748b;
    --inv-soft:#f8fafc;
}
body{background:linear-gradient(180deg,#f8fbff 0%,#eef4ff 100%)}
.inventory-shell{padding:18px 0 90px}
.inventory-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:18px;
}
.inventory-brand{
    display:flex;
    align-items:center;
    gap:14px;
    color:inherit;
    text-decoration:none;
}
.inventory-logo,.inventory-fallback{
    width:70px;
    height:70px;
    border-radius:20px;
    object-fit:cover;
    background:#fff;
    border:1px solid var(--inv-line);
    box-shadow:0 10px 28px rgba(15,23,42,.08);
}
.inventory-fallback{
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:1000;
    background:linear-gradient(135deg,var(--inv-dark),var(--inv-blue),var(--inv-purple));
}
.inventory-title h1{margin:0;font-size:30px;letter-spacing:-.03em}
.inventory-title p{margin:5px 0 0;color:var(--inv-muted);font-weight:800}

.inv-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.inv-card{
    background:#fff;
    border:1px solid var(--inv-line);
    border-radius:24px;
    padding:18px;
    box-shadow:0 14px 36px rgba(15,23,42,.07);
}
.inv-side{position:sticky;top:14px}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:14px}
.section-title h3{margin:0;font-size:20px}
.category-list{display:grid;gap:10px}
.category-btn{
    width:100%;
    border:0;
    border-radius:16px;
    padding:14px 16px;
    text-align:left;
    font:inherit;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:.25px;
    cursor:pointer;
    background:#f3f4f6;
    color:#111827;
}
.category-btn:nth-child(6n+1){background:linear-gradient(135deg,#fff7ed,#ffedd5);color:#9a3412}
.category-btn:nth-child(6n+2){background:linear-gradient(135deg,#ecfeff,#cffafe);color:#155e75}
.category-btn:nth-child(6n+3){background:linear-gradient(135deg,#f0fdf4,#dcfce7);color:#166534}
.category-btn:nth-child(6n+4){background:linear-gradient(135deg,#f5f3ff,#ede9fe);color:#5b21b6}
.category-btn:nth-child(6n+5){background:linear-gradient(135deg,#fdf2f8,#fce7f3);color:#9d174d}
.category-btn:nth-child(6n+6){background:linear-gradient(135deg,#eff6ff,#dbeafe);color:#1d4ed8}
.category-btn.active{
    color:#fff!important;
    background:linear-gradient(135deg,var(--inv-dark),var(--inv-blue),var(--inv-purple))!important;
    box-shadow:0 14px 28px rgba(37,99,235,.22);
}
.mobile-category-bar{display:none;position:sticky;top:0;z-index:30;margin-bottom:12px}
.mobile-category-trigger{
    width:100%;
    border:0;
    border-radius:22px;
    min-height:58px;
    padding:0 15px;
    color:#fff;
    background:linear-gradient(135deg,var(--inv-dark),var(--inv-blue),var(--inv-purple));
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    font-weight:1000;
    box-shadow:0 16px 34px rgba(37,99,235,.26);
}
.mobile-category-menu{
    display:none;
    margin-top:9px;
    background:#fff;
    border:1px solid #dbeafe;
    border-radius:20px;
    padding:9px;
    box-shadow:0 20px 45px rgba(15,23,42,.14);
    max-height:350px;
    overflow:auto;
}
.mobile-category-menu.open{display:grid;gap:8px}
.mobile-category-option{
    border:1px solid #e5e7eb;
    border-radius:15px;
    background:#f8fafc;
    padding:13px;
    text-align:left;
    font-weight:1000;
    text-transform:uppercase;
}
.mobile-category-option.active{background:#111827;color:#fff}
.search-wrap{margin-bottom:14px}
.search-input{
    width:100%;
    min-height:48px;
    border:1px solid #cbd5e1;
    border-radius:16px;
    padding:0 14px;
    font:inherit;
    font-weight:800;
}
.inventory-list{display:grid;gap:14px}
.inv-item-card{
    border:1px solid var(--inv-line);
    border-radius:22px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 10px 26px rgba(15,23,42,.05);
}
.inv-item-summary{
    width:100%;
    border:0;
    background:linear-gradient(135deg,#fff,#f8fbff);
    padding:14px;
    display:grid;
    grid-template-columns:74px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    text-align:left;
    cursor:pointer;
}
.inv-thumb{
    width:74px;
    height:74px;
    border-radius:18px;
    object-fit:cover;
    background:#f3f4f6;
    border:1px solid var(--inv-line);
}
.inv-thumb-fallback{
    width:74px;
    height:74px;
    border-radius:18px;
    display:grid;
    place-items:center;
    background:#f1f5f9;
    color:#94a3b8;
    font-weight:1000;
    border:1px solid var(--inv-line);
}
.inv-name{margin:0 0 5px;font-size:18px;color:#0f172a}
.inv-desc{margin:0;color:var(--inv-muted);font-size:13px;line-height:1.35}
.inv-mini-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(92px,1fr));
    gap:7px;
    margin-top:9px;
}
.inv-mini{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:13px;
    padding:7px 8px;
    font-size:11px;
    font-weight:900;
    color:#475569;
}
.inv-mini b{display:block;color:#0f172a;font-size:13px;margin-top:3px}
.inv-open-pill{
    border-radius:999px;
    background:#111827;
    color:#fff;
    padding:8px 11px;
    font-size:12px;
    font-weight:1000;
}
.inv-item-body{
    display:none;
    border-top:1px solid var(--inv-line);
    background:#fff;
    padding:14px;
}
.inv-item-card.open .inv-item-body{display:block}
.inv-edit-grid{display:grid;gap:12px}
.inv-edit-row{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(120px,.75fr)) auto;
    gap:9px;
    align-items:end;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:12px;
}
.inv-edit-title strong{display:block;color:#0f172a;font-size:15px}
.inv-edit-title small{display:block;color:var(--inv-muted);font-weight:800;margin-top:3px}
.inv-field label{
    display:block;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.35px;
    color:#64748b;
    font-weight:1000;
    margin-bottom:5px;
}
.inv-input-wrap{
    display:flex;
    align-items:center;
    gap:6px;
}
.inv-field input{
    width:100%;
    min-height:42px;
    border:1px solid #cbd5e1;
    border-radius:13px;
    padding:0 10px;
    font-weight:900;
    background:#fff;
}
.inv-qty-btn{
    border:0;
    min-width:36px;
    height:36px;
    border-radius:12px;
    color:#fff;
    background:#0f172a;
    font-weight:1000;
    cursor:pointer;
}
.inv-readonly{
    min-height:42px;
    display:flex;
    align-items:center;
    padding:0 10px;
    border-radius:13px;
    border:1px solid #dbeafe;
    background:#eff6ff;
    color:#1d4ed8;
    font-weight:1000;
}
.inv-profit.positive{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.inv-profit.negative{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.inv-save{
    border:0;
    min-height:42px;
    border-radius:14px;
    padding:0 13px;
    background:linear-gradient(135deg,#16a34a,#22c55e);
    color:#fff;
    font-weight:1000;
    cursor:pointer;
}
.inv-note{
    margin-top:12px;
    border:1px solid #dbeafe;
    background:#eff6ff;
    color:#1e40af;
    border-radius:16px;
    padding:11px 12px;
    font-size:13px;
    font-weight:800;
}
.toast{
    position:fixed;
    left:50%;
    bottom:20px;
    transform:translateX(-50%);
    z-index:200;
    border-radius:999px;
    background:#111827;
    color:#fff;
    padding:11px 15px;
    font-weight:1000;
    box-shadow:0 18px 40px rgba(15,23,42,.28);
    display:none;
}
.toast.show{display:block}
.empty-box{
    padding:24px;
    text-align:center;
    border:1px dashed #cbd5e1;
    background:#fff;
    border-radius:20px;
    color:#64748b;
    font-weight:850;
}
@media(max-width:980px){
    .inv-layout{grid-template-columns:1fr}
    .inv-side{display:none}
    .mobile-category-bar{display:block}
    .inv-edit-row{grid-template-columns:1fr 1fr}
    .inv-save{grid-column:1/-1}
}
@media(max-width:640px){
    .inventory-shell{padding:12px 0 80px}
    .inventory-head{
        display:grid;
        grid-template-columns:1fr;
        gap:10px;
        margin-bottom:12px;
    }
    .inventory-brand{
        background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed);
        color:#fff;
        border-radius:22px;
        padding:12px;
        box-shadow:0 16px 34px rgba(37,99,235,.22);
    }
    .inventory-logo,.inventory-fallback{width:56px;height:56px;border-radius:17px}
    .inventory-title h1{font-size:23px;color:#fff}
    .inventory-title p{font-size:12px;color:rgba(255,255,255,.82)}
    
    .inv-card{border-radius:20px;padding:13px}
    .inv-item-summary{
        grid-template-columns:60px minmax(0,1fr);
        align-items:start;
        padding:12px;
    }
    .inv-thumb,.inv-thumb-fallback{width:60px;height:60px;border-radius:16px}
    .inv-open-pill{grid-column:1/-1;width:100%;text-align:center}
    .inv-mini-grid{grid-template-columns:1fr 1fr}
    .inv-edit-row{grid-template-columns:1fr;padding:11px;border-radius:16px}
    .inv-input-wrap{display:grid;grid-template-columns:36px 1fr 36px}
    .inv-field input{text-align:center}
}


.inv-simple-note{
    margin-top:10px;
    border:1px solid #dbeafe;
    background:#eff6ff;
    color:#1d4ed8;
    border-radius:14px;
    padding:10px 12px;
    font-size:12px;
    font-weight:850;
    line-height:1.4;
}


/* v96 inventory input/button fix */
.inv-input-wrap input{
    pointer-events:auto!important;
    user-select:auto!important;
    -webkit-user-select:auto!important;
}
.inv-qty-btn{
    pointer-events:auto!important;
    touch-action:manipulation;
}
.inv-edit-row{
    align-items:end;
}


.low-stock-backdrop{
    position:fixed;
    inset:0;
    z-index:260;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
    background:rgba(15,23,42,.60);
    backdrop-filter:blur(8px);
}
.low-stock-backdrop.open{display:flex}
.low-stock-card{
    width:100%;
    max-width:430px;
    background:#fff;
    border-radius:26px;
    border:1px solid #fed7aa;
    box-shadow:0 28px 80px rgba(15,23,42,.32);
    overflow:hidden;
    animation:lowStockPop .18s ease-out;
}
@keyframes lowStockPop{
    from{transform:translateY(12px) scale(.97);opacity:.2}
    to{transform:translateY(0) scale(1);opacity:1}
}
.low-stock-top{
    padding:18px;
    color:#fff;
    background:
        radial-gradient(circle at top left,rgba(250,204,21,.35),transparent 38%),
        linear-gradient(135deg,#991b1b,#f97316);
}
.low-stock-top strong{
    display:block;
    font-size:22px;
    line-height:1.1;
}
.low-stock-top small{
    display:block;
    margin-top:5px;
    font-weight:850;
    color:rgba(255,255,255,.88);
}
.low-stock-body{padding:18px}
.low-stock-item{
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#7c2d12;
    border-radius:18px;
    padding:13px;
    margin-bottom:12px;
}
.low-stock-item b{
    display:block;
    color:#111827;
    font-size:18px;
    margin-bottom:3px;
}
.low-stock-item span{
    font-weight:900;
}
.low-stock-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-top:14px;
}
.low-stock-actions button{
    min-height:46px;
    border-radius:16px;
    border:0;
    cursor:pointer;
    font-weight:1000;
    box-shadow:0 12px 24px rgba(15,23,42,.10);
}
.low-stock-update{
    background:linear-gradient(135deg,#111827,#2563eb);
    color:#fff;
}
.low-stock-later{
    background:#f3f4f6;
    color:#111827;
}
.low-stock-actions button:active{transform:scale(.97)}
@media(max-width:680px){
    .low-stock-card{border-radius:22px}
    .low-stock-actions{grid-template-columns:1fr}
}


.low-stock-list{
    display:grid;
    gap:10px;
    max-height:320px;
    overflow:auto;
    padding-right:4px;
    margin:12px 0;
}
.low-stock-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
    align-items:center;
    background:#fff7ed;
    border:1px solid #fed7aa;
    border-radius:18px;
    padding:12px;
}
.low-stock-row b{
    display:block;
    color:#111827;
    font-size:15px;
    line-height:1.25;
}
.low-stock-row small{
    display:block;
    color:#9a3412;
    font-weight:900;
    margin-top:4px;
}
.low-stock-row button{
    min-height:38px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,#111827,#2563eb);
    color:#fff;
    font-weight:1000;
    padding:0 12px;
    cursor:pointer;
    box-shadow:0 10px 22px rgba(37,99,235,.20);
}
.low-stock-summary{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    border-radius:999px;
    background:#fef3c7;
    color:#92400e;
    padding:0 10px;
    font-size:12px;
    font-weight:1000;
    margin-top:8px;
}
@media(max-width:680px){
    .low-stock-list{max-height:360px}
    .low-stock-row{grid-template-columns:1fr}
    .low-stock-row button{width:100%}
}


.demo-preview-notice{
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#9a3412;
    border-radius:16px;
    padding:10px 12px;
    font-weight:900;
    margin:0 0 14px;
}


.empty-state{
    padding:22px;
    border:1px dashed #cbd5e1;
    border-radius:18px;
    background:#f8fafc;
    color:#64748b;
    font-weight:900;
    text-align:center;
}

/* v130 desktop inventory layout fix */
@media (min-width:981px){
    .mobile-category-bar{display:none!important}
    .inv-layout{
        display:grid!important;
        grid-template-columns:280px minmax(0,1fr)!important;
        gap:18px!important;
        align-items:start!important;
    }
    .inv-side{
        display:block!important;
        position:sticky!important;
        top:14px!important;
        max-height:calc(100vh - 28px);
        overflow:auto;
    }
    .category-list{
        display:grid!important;
        gap:10px!important;
    }
    .category-btn{
        display:block!important;
        width:100%!important;
        min-height:48px;
    }
    .category-panel{
        min-height:120px;
    }
}



/* v132 desktop single-category-sidebar fix */
@media (min-width:701px){
    .mobile-category-bar{display:none!important}
    .inv-side{
        display:block!important;
        visibility:visible!important;
        opacity:1!important;
    }
    .inv-side .category-list{
        display:grid!important;
        visibility:visible!important;
        opacity:1!important;
    }
    .inv-side .category-btn{
        display:block!important;
        visibility:visible!important;
        opacity:1!important;
    }
}


.inv-top-actions{display:flex;justify-content:flex-end;margin-bottom:12px}
.plus-add-btn{width:46px;height:46px;border:0;border-radius:17px;background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;font-size:28px;line-height:1;font-weight:1000;box-shadow:0 14px 30px rgba(34,197,94,.25);cursor:pointer}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);display:none;align-items:center;justify-content:center;z-index:280;padding:18px;backdrop-filter:blur(8px)}
.modal-backdrop.open{display:flex}
.modal-card{background:#fff;border-radius:28px;width:100%;max-width:980px;max-height:92vh;overflow:auto;box-shadow:0 28px 80px rgba(15,23,42,.32)}
.floating-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;color:#fff;background:linear-gradient(135deg,#111827,#2563eb,#7c3aed)}
.floating-modal-head h3{margin:0;font-size:22px}.floating-modal-body{padding:20px;background:linear-gradient(180deg,#fff,#f8fbff)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form-row.full{grid-column:1/-1}.label{display:block;margin-bottom:6px;font-size:12px;font-weight:1000;color:#475569;text-transform:uppercase;letter-spacing:.3px}
.input{width:100%;min-height:46px;border:1px solid #cbd5e1;border-radius:14px;padding:0 12px;font:inherit;font-weight:850;background:#fff}
textarea.input{padding:12px;min-height:82px}.inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ghost-btn,.solid-btn{border:0;border-radius:14px;min-height:44px;padding:0 15px;font-weight:1000;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.ghost-btn{background:#f1f5f9;color:#0f172a}.solid-btn{background:linear-gradient(135deg,#111827,#2563eb);color:#fff}
.variation-box{border:1px solid #e5e7eb;border-radius:18px;padding:14px;background:#f9fafb;margin-bottom:12px}
.variation-grid{display:grid;grid-template-columns:1.6fr .9fr .9fr .9fr .9fr auto;gap:12px;align-items:end}
.deal-grid{display:grid;grid-template-columns:1.7fr 1fr auto;gap:12px;align-items:end}
.variation-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 12px;gap:10px}
.variation-title{font-size:14px;font-weight:1000;color:#374151}
.inventory-notice{margin:0 0 12px;border-radius:16px;padding:11px 12px;font-weight:900}
.inventory-notice.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}
.inventory-notice.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
@media(max-width:780px){.form-grid,.variation-grid,.deal-grid{grid-template-columns:1fr}.modal-backdrop{align-items:flex-start}.modal-card{border-radius:22px}}


/* v152 beautiful low-stock later button */
.low-stock-actions{
    margin-top:16px!important;
}
.low-stock-later{
    position:relative;
    min-height:52px!important;
    border-radius:18px!important;
    border:1px solid #fed7aa!important;
    color:#7c2d12!important;
    background:
        radial-gradient(circle at top left,rgba(251,191,36,.38),transparent 36%),
        linear-gradient(135deg,#fff7ed,#fed7aa,#fdba74)!important;
    box-shadow:0 14px 30px rgba(249,115,22,.18)!important;
    font-size:14px!important;
    letter-spacing:.1px;
    overflow:hidden;
}
.low-stock-later::before{
    content:"⏰";
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    border-radius:999px;
    margin-right:8px;
    background:#fff;
    color:#ea580c;
    box-shadow:0 8px 18px rgba(124,45,18,.12);
    vertical-align:middle;
}
.low-stock-later:hover{
    transform:translateY(-1px);
    box-shadow:0 18px 36px rgba(249,115,22,.24)!important;
}
.low-stock-later:active{
    transform:scale(.98)!important;
}
@media(max-width:680px){
    .low-stock-later{
        min-height:54px!important;
        font-size:13px!important;
    }
}


/* v153 inventory Add New Item card same behavior as Admin */
#addInventoryItemModal .modal-card{
    max-width:980px!important;
    max-height:92vh!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding:0!important;
    border-radius:28px!important;
}
#addInventoryItemModal .floating-modal-body{
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    max-height:calc(92vh - 74px)!important;
}
#addInventoryItemModal .form-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#addInventoryItemModal #variationSectionInvAdd,
#addInventoryItemModal #dealSectionInvAdd{
    border:1px solid #e5e7eb;
    border-radius:22px;
    padding:14px;
    background:#fff;
    box-shadow:0 10px 24px rgba(15,23,42,.05);
}
#addInventoryItemModal .variation-head:first-child{
    margin-top:0!important;
}
@media(max-width:780px){
    #addInventoryItemModal .form-grid,
    #addInventoryItemModal .variation-grid,
    #addInventoryItemModal .deal-grid{
        grid-template-columns:1fr!important;
    }
    #addInventoryItemModal .modal-card{
        max-height:94vh!important;
        border-radius:22px!important;
    }
    #addInventoryItemModal .floating-modal-body{
        max-height:calc(94vh - 72px)!important;
        padding:14px!important;
    }
}


/* v154 inventory action buttons */
.inventory-title-actions{
    display:flex;
    align-items:center;
    gap:9px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.plus-add-btn.add-item-pill,
.add-category-pill{
    width:auto!important;
    min-width:126px!important;
    height:46px!important;
    padding:0 15px!important;
    border-radius:17px!important;
    font-size:14px!important;
    line-height:1!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    white-space:nowrap!important;
}
.add-category-pill{
    border:0;
    background:linear-gradient(135deg,#111827,#2563eb,#7c3aed);
    color:#fff;
    font-weight:1000;
    box-shadow:0 14px 30px rgba(37,99,235,.22);
    cursor:pointer;
}
#addInventoryCategoryModal .modal-card{
    max-width:560px!important;
    padding:0!important;
    overflow:hidden!important;
}
@media(max-width:640px){
    .inventory-title-actions{
        width:100%;
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .plus-add-btn.add-item-pill,
    .add-category-pill{
        min-width:0!important;
        width:100%!important;
        height:42px!important;
        font-size:13px!important;
        padding:0 10px!important;
    }
}


/* Desktop category scrolling: use natural height up to 14 categories. */
@media (min-width:981px){
    .inv-side{
        max-height:none!important;
        overflow:visible!important;
    }
    .inv-side.category-scroll-enabled{
        max-height:calc(100vh - 28px)!important;
        overflow-x:hidden!important;
        overflow-y:auto!important;
        scrollbar-gutter:stable;
    }
}

/* V10 inventory purchase confirmation */
.inventory-cost-confirm-backdrop{position:fixed;inset:0;z-index:420;background:rgba(15,23,42,.58);backdrop-filter:blur(8px);display:none;align-items:center;justify-content:center;padding:18px}
.inventory-cost-confirm-backdrop.open{display:flex}
.inventory-cost-confirm-card{width:min(650px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:26px;box-shadow:0 30px 90px rgba(15,23,42,.34);border:1px solid rgba(148,163,184,.32)}
.inventory-cost-confirm-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;color:#fff;background:linear-gradient(135deg,#0f172a,#2563eb,#7c3aed)}
.inventory-cost-confirm-head small{display:block;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;opacity:.78}
.inventory-cost-confirm-head h3{margin:3px 0 0;font-size:22px;letter-spacing:-.02em}
.inventory-cost-confirm-close{border:0;border-radius:999px;background:#fff;color:#172554;font-weight:900;padding:10px 15px;cursor:pointer}
.inventory-cost-confirm-body{padding:20px;background:linear-gradient(180deg,#fff,#f8fbff)}
.inventory-cost-product{font-size:18px;font-weight:950;color:#0f172a;margin-bottom:14px}
.inventory-cost-calc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.inventory-cost-calc-box{border:1px solid #dbe4f0;border-radius:16px;padding:12px;background:#fff;min-width:0}
.inventory-cost-calc-box.accent{border-color:#c4b5fd;background:#f5f3ff}
.inventory-cost-calc-box small{display:block;color:#64748b;font-weight:850;font-size:11px;line-height:1.25;margin-bottom:6px}
.inventory-cost-calc-box strong{display:block;color:#0f172a;font-size:17px;overflow:hidden;text-overflow:ellipsis}
.inventory-cost-formula{margin:16px 0;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;border:1px dashed #93c5fd;background:#eff6ff;border-radius:18px;padding:15px;color:#1e3a8a;font-weight:950}
.inventory-cost-formula strong{font-size:22px;color:#1d4ed8}
.inventory-cost-total-label{display:block;color:#0f172a;font-weight:950;margin:4px 0 8px}
.inventory-cost-total-label small{display:block;font-weight:750;color:#64748b;margin-top:4px;line-height:1.35}
.inventory-cost-total-input{display:flex;align-items:center;border:2px solid #cbd5e1;background:#fff;border-radius:16px;overflow:hidden}
.inventory-cost-total-input:focus-within{border-color:#6366f1;box-shadow:0 0 0 4px rgba(99,102,241,.12)}
.inventory-cost-total-input span{padding:0 0 0 14px;color:#475569;font-weight:950}
.inventory-cost-total-input input{width:100%;border:0!important;outline:0!important;box-shadow:none!important;padding:13px 14px;font-size:18px;font-weight:950;color:#0f172a;background:transparent}
.inventory-cost-total-input input:disabled{background:#f8fafc;color:#94a3b8}
.inventory-cost-note{margin-top:12px;border-radius:14px;padding:11px 12px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-weight:800;font-size:13px;line-height:1.4}
.inventory-cost-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
@media(max-width:700px){.inventory-cost-confirm-backdrop{align-items:flex-end;padding:0}.inventory-cost-confirm-card{width:100%;max-height:90vh;border-radius:24px 24px 0 0}.inventory-cost-calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-cost-confirm-actions{display:grid;grid-template-columns:1fr 1fr}.inventory-cost-confirm-actions button{width:100%}}
