/* =========================================================
   SHIKAI ERP — PRODUCT INFO CLEAN STYLE.CSS
   =========================================================
   SABSE IMPORTANT:
   Normally sirf SECTION 01 ke CONTROL PANEL ko edit karein.

   MOVE RULE:
   X positive  = right
   X negative  = left
   Y positive  = down
   Y negative  = up


   SIZE RULE:
   WIDTH  = left/right size
   HEIGHT = up/down size

   Example:
   --supplier-x: 10px;      Supplier right
   --supplier-y: -5px;      Supplier up
   --supplier-width: 340px; Supplier group wider
========================================================= */


/* =========================================================
   01. USER CONTROL PANEL
   ---------------------------------------------------------
   Future changes ke liye normally sirf yahin values badlein.
========================================================= */




/* =========================================================
   02. GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #25272b;
    background: #f3f4f6;
}

button,
input,
select {
    font: inherit;
}


/* =========================================================
   03. LOGIN PAGE
========================================================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        linear-gradient(
            120deg,
            rgba(43, 58, 104, 0.92),
            rgba(126, 35, 60, 0.90)
        );
}

.login-card {
    width: 420px;
    max-width: 100%;

    padding: 40px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;

    box-shadow: 0 12px 35px rgba(28, 32, 38, 0.12);
}

.login-brand {
    margin: 0 0 30px;

    color: #9a9da4;

    font-size: 13px;
    font-weight: 700;
}

.login-card h1 {
    margin: 0 0 26px;

    color: #283663;

    font-size: 28px;
}

.login-field {
    margin-bottom: 17px;
}

.login-field label {
    display: block;

    margin-bottom: 7px;

    color: #737881;

    font-size: 13px;
    font-weight: 600;
}

.login-field input {
    width: 100%;
    height: 48px;

    padding: 0 13px;

    background: #ffffff;

    border: 1px solid #d9dde3;
    border-radius: 8px;

    outline: none;
}

.login-field input:focus {
    border-color: #7b2638;

    box-shadow: 0 0 0 3px rgba(123, 38, 56, 0.12);
}

.login-button {
    width: 100%;
    height: 48px;

    color: #ffffff;
    background: #7b2638;

    border: 0;
    border-radius: 8px;

    font-weight: 700;

    cursor: pointer;
}

.login-button:hover {
    background: #651d2d;
}


/* =========================================================
   04. PAGE LAYOUT + SIDEBAR
========================================================= */

.dashboard-layout,
.product-page-layout {
    min-height: 100vh;

    display: flex;
}

.sidebar {
    width: 230px;
    min-width: 230px;
    min-height: 100vh;

    padding: 28px 18px;

    color: rgb(255, 255, 255);

    background:
        linear-gradient(
            180deg,
            #6f2234,
            #561927
        );
}

.sidebar-logo h2 {
    margin: 0 0 5px;

    font-size: 22px;
}

.sidebar-logo small {
    font-size: 11px;

    opacity: 0.75;
}

.sidebar-menu {
    margin-top: 35px;
}

.menu-link {
    display: block;

    margin-bottom: 8px;
    padding: 12px 14px;

    color: rgba(255, 255, 255, 0.88);

    border-radius: 7px;

    text-decoration: none;
}

.menu-link:hover,
.menu-link.active {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.15);
}

.dashboard-main,
.product-main {
    flex: 1;
    min-width: 0;

    padding: 28px;

    background-color: #d0d7d5;
}


/* =========================================================
   05. PAGE HEADER
========================================================= */

.dashboard-header,
.product-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.dashboard-header h1,
.product-page-header h1 {
    margin: 0;

    color: #7b2638;

    font-size: 30px;
}

.product-page-header .back-button {
    color: #9c0752;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    text-decoration: none;
}


/* =========================================================
   06. COMMON CARD DESIGN
========================================================= */









.product-card-header {
    height: 62px;

    display: flex;
    align-items: center;

    padding: 0 22px;

    border-bottom: 1px solid #d9dde3;
}



.product-card-body {
    padding: 22px;

    overflow-x: hidden;
}


/* =========================================================
   07. PRODUCT INFO MAIN COLUMNS
========================================================= */








/* =========================================================
   08. COMMON FIELD DESIGN
========================================================= */

.field-group,
.cost-field,
.pack-field {
    position: relative;
}

.field-group label,
.cost-field label,
.pack-field label {
    display: block;

    margin-bottom: 7px;

    color: #3f4248;

    font-size: 13px;
    font-weight: 700;
}

.field-group label span {
    color: #7b2638;
}

.field-group input,
.field-group select,
.cost-field input,
.pack-field input,
.pack-field select {
    padding: 0 13px;

    color: #25272b;
    background: #ffffff;

    border: 1px solid #d9dde3;
    border-radius: 8px;

    outline: none;
}

.field-group input:focus,
.field-group select:focus,
.cost-field input:focus,
.pack-field input:focus,
.pack-field select:focus {
    border-color: #7b2638;

    box-shadow: 0 0 0 3px rgba(123, 38, 56, 0.10);
}


/* =========================================================
   09. PRODUCT ROWS
========================================================= */




/* =========================================================
   10. SUPPLIER
========================================================= */












/* =========================================================
   11. BARCODE INPUT + AUTO BUTTON
========================================================= */










/* =========================================================
   12. INVOICE NUMBER
========================================================= */






/* =========================================================
   13. SK-UID / HS CODE
========================================================= */






/* =========================================================
   14. ITEM NUMBER
========================================================= */






/* =========================================================
   15. CATEGORY
========================================================= */










/* =========================================================
   16. DESCRIPTION
========================================================= */






/* =========================================================
   17. BARCODE + QR PREVIEW
========================================================= */





.barcode-display-box {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #ffffff;
}



.barcode-display-number {
    margin-top: 2px;

    font-size: 12px;
    font-weight: 600;
}

.qr-display-group {
    position: relative;

    width: 104px;

    text-align: center;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.qr-display-box {
    width: 104px;
    height: 104px;

    display: grid;
    place-items: center;

    padding: 6px;

    background: #ffffff;

    border: 1px solid #bfc3ca;
    border-radius: 9px;

    overflow: hidden;
}

.qr-display-box img,
.qr-display-box canvas {
    display: block;

    max-width: 100%;
    max-height: 100%;
}

.qr-display-label {
    display: block;

    margin-top: 5px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   18. SINGLE PRODUCT IMAGE
========================================================= */



.photo-upload-box {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: #5b5f66;
    background: #ffffff;

    border: 1px solid #bfc3ca;
    border-radius: 9px;

    overflow: hidden;

    cursor: pointer;
}

.single-product-image-box {
    width: 300px;
    height: 205px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.single-product-image-box:hover {
    border-color: #7b2638;

    background: #fcfafb;
}

.single-product-image-box input[type="file"] {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;

    z-index: 4;
}

.photo-plus {
    margin-bottom: 6px;

    color: #7b2638;

    font-size: 30px;
    line-height: 1;
}

.photo-text {
    color: #536589;

    font-size: 13px;
    font-weight: 700;
}

.photo-upload-box small {
    margin-top: 4px;

    color: #a4a9b2;

    font-size: 11px;
}

.photo-preview {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: none;

    object-fit: contain;
    object-position: center;

    background: #ffffff;

    z-index: 2;
}

.single-product-image-box.has-photo .photo-preview {
    display: block;
}

.single-product-image-box.has-photo .photo-plus,
.single-product-image-box.has-photo .photo-text,
.single-product-image-box.has-photo small {
    display: none;
}


/* =========================================================
   19. COST & EXTRA
========================================================= */



.currency-group {
    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.currency-group label {
    display: none;
}

#currencySelect {
    width: 75px;
    height: 35px;

    padding: 0 13px;

    color: #3b3f46;
    background: #ffffff;

    border: 1px solid #d7dbe2;
    border-radius: 8px;

    outline: none;
    cursor: pointer;
}

.cost-extra-body {
    padding: 22px;
}



.purchase-price-group {
    width: 320px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.sale-price-group {
    width: 320px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.gst-tax-group {
    width: 320px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.exw-price-group {
    width: 320px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.fob-price-group {
    width: 320px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.cif-price-group {
    width: 320px;

    transform:
        translate(
            0px,
            0px
        );

    transform-origin: top left;
}

.purchase-price-group .money-input-box {
    height: 35px;
}

.sale-price-group .money-input-box {
    height: 35px;
}

.gst-tax-group .percent-input-box {
    height: 35px;
}

.exw-price-group .money-input-box {
    height: 35px;
}

.fob-price-group .money-input-box {
    height: 35px;
}

.cif-price-group .money-input-box {
    height: 35px;
}



.money-input-box {
    grid-template-columns:
        42px
        minmax(0, 1fr);
}



.currency-symbol,
.percent-symbol,
.weight-symbol {
    display: grid;
    place-items: center;

    font-weight: 700;

    pointer-events: none;
}

.percent-symbol,
.weight-symbol {
    border-left: 1px solid #d9dde3;
}




/* =========================================================
   20. PACK & MEASURE
========================================================= */



.pack-measure-body {
    padding: 22px;
}
































/* =========================================================
   21. SAVE / CANCEL
========================================================= */



.cancel-button {
    width: 92px;
    height: 40px;

    color: #7b2638;
    background: #ffffff;

    border: 1px solid #d9dde3;
    border-radius: 8px;

    font-weight: 700;

    transform:
        translate(
            0px,
            0px
        );

    cursor: pointer;
}

.save-button {
    width: 92px;
    height: 40px;

    color: #ffffff;
    background: #7b2638;

    border: 1px solid #7b2638;
    border-radius: 8px;

    font-weight: 700;

    transform:
        translate(
            0px,
            0px
        );

    cursor: pointer;
}


/* =========================================================
   22. MODAL
========================================================= */

.add-modal {
    position: fixed;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.35);

    z-index: 9999;
}

.add-modal-content {
    width: 420px;
    max-width: 100%;

    padding: 24px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.20);
}

.add-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
}

.add-modal-header h3 {
    margin: 0;

    color: #8b1d3b;
}

.add-modal-close {
    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 8px;

    cursor: pointer;
}

.add-modal-body label {
    display: block;

    margin-bottom: 8px;

    font-weight: 600;
}

.add-modal-body input {
    width: 100%;

    padding: 12px;

    border: 1px solid #cccccc;
    border-radius: 8px;
}

.add-modal-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 20px;
}

.modal-cancel-button,
.modal-save-button {
    padding: 10px 22px;

    border: 0;
    border-radius: 8px;

    cursor: pointer;
}

.modal-save-button {
    color: #ffffff;
    background: #8b1d3b;
}


/* =========================================================
   23. FILLED VALUE EFFECT
========================================================= */






/* =========================================================
   24. NUMBER INPUT ARROWS HIDE
========================================================= */

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;

    appearance: none;
    -webkit-appearance: none;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}


/* =========================================================
   25. RESPONSIVE
========================================================= */

@media (max-width: 1320px) {

    
}

@media (max-width: 1150px) {

    
}

@media (max-width: 760px) {

    .dashboard-layout,
    .product-page-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        min-height: auto;
    }

    .dashboard-main,
    .product-main {
        padding: 22px 16px;
    }

    .product-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    

    

    

    

    

    

    

    .single-product-image-box {
        max-width: 100%;
    }

    

    
}

/* =========================================================
   26. EASY DIRECT MOVE / RESIZE CONTROL PANEL
   ---------------------------------------------------------
   SIRF IS SECTION MEIN VALUES CHANGE KAREIN.

   top:  10px = neeche
   top: -10px = upar
   left:  10px = right
   left: -10px = left
   width = horizontal size
   height = vertical size
========================================================= */

/* Complete left column */


/* Complete right column */


/* Supplier complete section */


/* Supplier dropdown */


/* Supplier plus button */


/* Barcode complete section */


/* Barcode input */


/* Auto Generate button */


/* Invoice Number section */


/* Invoice Number input */


/* SK-UID section */


/* SK-UID input */


/* Item Number section */


/* Item Number input */


/* Category complete section */


/* Category dropdown */


/* Category plus button */


/* Description section */


/* Description input */


/* Barcode preview */


/* Barcode black lines */


/* QR complete section */
.qr-display-group {
    position: relative;
    top: -5px;
    left: 0px;
    width: 104px;
    transform: none !important;
}

/* QR actual box */
.qr-display-box {
    position: relative;
    top: 20px;
    left: 60px;
    width: 50px;
    height: 50px;
    transform: none !important;
}

/* Complete single image group */


/* Single image upload box */
.single-product-image-box {
    position: relative !important;
    top: 5px !important;
    left: 65px !important;
    width: 250px !important;
    height: 190px !important;
    transform: none !important;
}

/* Currency dropdown */
.currency-group {
    position: relative;
    top: 0px;
    left: 0px;
    transform: none !important;
}

#currencySelect {
    width: 75px;
    height: 35px;
}

/* Purchase Price */
.purchase-price-group {
    position: relative;
    top: 0px;
    left: 0px;
    width: 320px;
    transform: none !important;
}
.purchase-price-group .money-input-box { width: 320px; height: 35px; }

/* Sale Price */
.sale-price-group {
    position: relative;
    top: 0px;
    left: 0px;
    width: 320px;
    transform: none !important;
}
.sale-price-group .money-input-box { width: 320px; height: 35px; }

/* GST / TAX */
.gst-tax-group {
    position: relative;
    top: 0px;
    left: 0px;
    width: 320px;
    transform: none !important;
}
.gst-tax-group .percent-input-box { width: 320px; height: 35px; }

/* EXW Price */
.exw-price-group {
    position: relative;
    top: 0px;
    left: 0px;
    width: 320px;
    transform: none !important;
}
.exw-price-group .money-input-box { width: 320px; height: 35px; }

/* FOB Price */
.fob-price-group {
    position: relative;
    top: 0px;
    left: 0px;
    width: 320px;
    transform: none !important;
}
.fob-price-group .money-input-box { width: 320px; height: 35px; }

/* C&F / CIF */
.cif-price-group {
    position: relative;
    top: 0px;
    left: 0px;
    width: 320px;
    transform: none !important;
}
.cif-price-group .money-input-box { width: 320px; height: 35px; }

/* Unit */



/* Packing / CTN */



/* Weight */



/* Carton Size */




/* CBM */



/* Mark */



/* Complete Save / Cancel area */


/* Cancel button */
.cancel-button {
    position: relative;
    top: 0px;
    left: 0px;
    width: 92px;
    height: 40px;
    transform: none !important;
}

/* Save button */
.save-button {
    position: relative;
    top: 0px;
    left: 0px;
    width: 92px;
    height: 40px;
    transform: none !important;
}
/* =========================================================
   PRINT CSS — COMPLETE PRODUCT PAGE ON ONE A4 PAGE
========================================================= */

@media print {

    @page {
        size: A4 landscape;
        margin: 5mm;
    }

    html,
    body {
        width: 100%;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;

        /* Complete page ko chhota karke ek page mein fit karega */
        zoom: 0.72;
    }

    /* Sidebar print mein hide */
    .sidebar {
        display: none !important;
    }

    /* Main page full width */
    

    /* Add Product heading ki extra spacing remove */
    .page-header,
    .product-page-header {
        margin: 0 0 5px 0 !important;
        padding: 0 !important;
    }

    /* Dashboard back button print mein hide */
    .back-button,
    .back-to-dashboard {
        display: none !important;
    }

    /* Sabhi cards ko page ke beech se tootne se roke */
    

    /* Unnecessary large height remove */
    

    /* Form fields compact */
    input,
    select,
    textarea,
    button {
        height: 28px !important;
        min-height: 28px !important;
        font-size: 11px !important;
    }

    textarea {
        height: 30px !important;
    }

    label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    /* Print mein colors aur borders same rakhe */
    * {
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}


/* =========================================================
   V12 FONT-ONLY PATCH — NO LAYOUT / POSITION / SIZE CHANGES
========================================================= */

/* Product/Add Product: all text stays inside Lato + Zona Pro family */


/* Headings prefer Zona Pro */


/* Form/UI text prefer Lato */



/* V13: RESTORED KNOWN-GOOD NAVIGATION RULES FROM V7 ONLY */


.sidebar {
    width: 230px;
    min-width: 230px;
    min-height: 100vh;

    padding: 28px 18px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #6f2234,
            #561927
        );
}


.sidebar-logo h2 {
    margin: 0 0 5px;

    font-size: 22px;
}


.sidebar-logo small {
    font-size: 11px;

    opacity: 0.75;
}


.sidebar-menu {
    margin-top: 35px;
}


.menu-link {
    display: block;

    margin-bottom: 8px;
    padding: 12px 14px;

    color: rgba(255, 255, 255, 0.88);

    border-radius: 7px;

    text-decoration: none;
}


.menu-link:hover,
.menu-link.active {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.15);
}


@media (max-width: 760px) {

    .dashboard-layout,
    .product-page-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        min-width: 100%;
        min-height: auto;
    }

    .dashboard-main,
    .product-main {
        padding: 22px 16px;
    }

    .product-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    

    

    

    

    

    

    

    .single-product-image-box {
        max-width: 100%;
    }

    

    
}



/* Header movement */
.sidebar-head-block {
    position: relative;

    top: 0px;
    left: 0px;

    width: 100%;
}



/* Three top dots */
.sidebar-window-dots {
    position: relative;

    top: 0px;
    left: 0px;

    height: 12px;

    display: flex;

    gap: 6px;

    margin: 0 0 17px 4px;
}


.sidebar-window-dots span {
    width: 9px;
    height: 9px;

    display: block;

    border-radius: 50%;
}


.sidebar-window-dots span:nth-child(1) {
    background: #ff6258;
}


.sidebar-window-dots span:nth-child(2) {
    background: #ffbe2f;
}


.sidebar-window-dots span:nth-child(3) {
    background: #28c840;
}



/* Brand */
.sidebar-brand-row {
    position: relative;

    top: 0px;
    left: 0px;

    height: 44px;

    display: flex;
    align-items: center;

    gap: 10px;
}


.sidebar-brand-badge {
    width: 38px;
    min-width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background: #343434;

    border: 1px solid #454545;
    border-radius: 50%;

    font-size: 17px;
    font-weight: 800;
}


.sidebar-brand-text {
    width: 150px;

    overflow: hidden;

    white-space: nowrap;

    transition:
        width 220ms ease,
        opacity 140ms ease;
}


.sidebar-brand-text h2 {
    margin: 0 0 3px;

    color: #ffffff;

    font-size: 14px;
    line-height: 1.2;
}


.sidebar-brand-text small {
    display: block;

    color: #97979d;

    font-size: 9px;
}



/* Collapse arrow movement control */
.sidebar-toggle-button {
    position: absolute;

    top: 28px;
    right: -28px;

    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    padding: 0;

    color: #e9e9eb;
    background: #2c2c2d;

    border: 1px solid #454548;
    border-radius: 50%;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);

    cursor: pointer;

    z-index: 300;
}


.sidebar-toggle-button svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: transform 220ms ease;
}



/* Search movement */
.sidebar-search-box {
    position: relative;

    top: 0px;
    left: 0px;

    width: 100%;
    height: 36px;

    margin-top: 18px;
}


.sidebar-search-box input {
    width: 100%;
    height: 36px;

    padding: 0 10px 0 35px;

    color: #f5f5f6;
    background: #29292a;

    border: 1px solid #343436;
    border-radius: 7px;

    outline: none;

    font-size: 12px;
}


.sidebar-search-box input:focus {
    border-color: #55555a;

    box-shadow: none;
}


.sidebar-search-symbol {
    position: absolute;

    top: 10px;
    left: 11px;

    width: 16px;
    height: 16px;

    color: #8d8d92;

    pointer-events: none;

    z-index: 2;
}


.sidebar-search-symbol svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}



/* Menu label */
.sidebar-section-title {
    position: relative;

    top: 0px;
    left: 0px;

    margin: 19px 5px 8px;

    color: #7f7f84;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.8px;
}



/* Menu */
#erpSidebar .sidebar-menu {
    position: relative;

    top: 0px;
    left: 0px;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-top: 0px;
}


#erpSidebar .menu-link {
    position: relative;

    top: 0px;
    left: 0px;

    width: 100%;
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 12px;

    margin: 0;
    padding: 0 11px;

    color: #c4c4c8;
    background: transparent;

    border-radius: 7px;

    text-decoration: none;
    white-space: nowrap;

    overflow: hidden;
}


#erpSidebar .menu-link:hover {
    color: #ffffff;
    background: #303031;
}


#erpSidebar .menu-link.active {
    color: #ffffff;
    background: #3a383f;
}



/* Icon movement / size */
.menu-icon {
    position: relative;

    top: 0px;
    left: 0px;

    width: 20px;
    min-width: 20px;
    height: 20px;

    display: grid;
    place-items: center;
}


.menu-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.menu-text {
    position: relative;

    top: 0px;
    left: 0px;

    overflow: hidden;

    font-size: 12px;
    font-weight: 600;

    transition:
        width 220ms ease,
        opacity 140ms ease;
}


.sidebar-menu-spacer {
    flex: 1;

    min-height: 18px;
}



/* =========================================================
   LANGUAGE + LIGHT / DARK
========================================================= */

.sidebar-preference-panel {
    position: relative;

    top: 0px;
    left: 0px;

    width: 100%;

    margin: 8px 0 10px;
    padding: 9px 0;

    border-top: 1px solid #353536;
    border-bottom: 1px solid #353536;
}


.sidebar-preference-row {
    width: 100%;
    min-height: 38px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 8px;

    color: #bebec2;

    font-size: 11px;
}


.sidebar-theme-toggle {
    position: relative;

    width: 44px;
    height: 24px;

    padding: 0;

    background: #514f55;

    border: 0;
    border-radius: 999px;

    cursor: pointer;
}


.sidebar-theme-toggle-knob {
    position: absolute;

    top: 3px;
    left: 23px;

    width: 18px;
    height: 18px;

    background: #ffffff;

    border-radius: 50%;

    transition: left 180ms ease;
}


.menu-link--logout {
    color: #f16370 !important;

    border-radius: 7px !important;
}



/* =========================================================
   LIGHT NAVIGATION MODE
========================================================= */

body.sidebar-light #erpSidebar {
    color: #25252a;
    background: #ffffff;

    border-right: 1px solid #dedee2;
}


body.sidebar-light .sidebar-brand-badge {
    color: #333238;
    background: #f1f1f4;

    border-color: #dddddf;
}


body.sidebar-light .sidebar-brand-text h2 {
    color: #25252a;
}


body.sidebar-light .sidebar-brand-text small,
body.sidebar-light .sidebar-section-title {
    color: #929298;
}


body.sidebar-light .sidebar-search-box input {
    color: #29292d;
    background: #f5f5f6;

    border-color: #e3e3e6;
}


body.sidebar-light #erpSidebar .menu-link {
    color: #5e5e65;
}


body.sidebar-light #erpSidebar .menu-link:hover {
    color: #28282d;
    background: #f3f3f5;
}


body.sidebar-light #erpSidebar .menu-link.active {
    color: #37313f;
    background: #efedf5;
}


body.sidebar-light .sidebar-preference-panel {
    border-color: #e1e1e4;
}


body.sidebar-light .sidebar-preference-row {
    color: #626269;
}


body.sidebar-light #sidebarLanguage {
    color: #333338;
    background: #f5f5f7;

    border-color: #dddddf;
}


body.sidebar-light .sidebar-theme-toggle {
    background: #d8d8dc;
}


body.sidebar-light .sidebar-theme-toggle-knob {
    left: 3px;
}



/* =========================================================
   COLLAPSED NAVIGATION
   Narrow icon bar remains; sidebar never disappears.
========================================================= */

.dashboard-layout.sidebar-is-collapsed #erpSidebar {
    width: 70px;
    min-width: 70px;
    max-width: 70px;

    flex-basis: 70px;

    padding-left: 10px;
    padding-right: 10px;
}


.dashboard-layout.sidebar-is-collapsed .sidebar-window-dots,
.dashboard-layout.sidebar-is-collapsed .sidebar-brand-text,
.dashboard-layout.sidebar-is-collapsed .sidebar-search-box,
.dashboard-layout.sidebar-is-collapsed .sidebar-section-title,
.dashboard-layout.sidebar-is-collapsed .preference-text,
.dashboard-layout.sidebar-is-collapsed #sidebarLanguage,
.dashboard-layout.sidebar-is-collapsed .sidebar-theme-toggle,
.dashboard-layout.sidebar-is-collapsed .menu-text {
    display: none;
}


.dashboard-layout.sidebar-is-collapsed .sidebar-brand-row {
    justify-content: center;
}


.dashboard-layout.sidebar-is-collapsed #erpSidebar .menu-link {
    width: 46px;

    justify-content: center;

    gap: 0;

    margin-left: auto;
    margin-right: auto;

    padding: 0;
}


.dashboard-layout.sidebar-is-collapsed .sidebar-preference-panel {
    padding: 7px 0;
}


.dashboard-layout.sidebar-is-collapsed .sidebar-preference-row {
    justify-content: center;

    padding: 0;
}


.dashboard-layout.sidebar-is-collapsed .sidebar-toggle-button svg {
    transform: rotate(180deg);
}


@media (max-width: 650px) {

    .dashboard-layout,
    .product-page-layout {
        display: flex !important;
    }

    #erpSidebar {
        width: 70px;
        min-width: 70px;
        max-width: 70px;

        flex-basis: 70px;

        padding-left: 10px;
        padding-right: 10px;
    }

    #erpSidebar .sidebar-window-dots,
    #erpSidebar .sidebar-brand-text,
    #erpSidebar .sidebar-search-box,
    #erpSidebar .sidebar-section-title,
    #erpSidebar .preference-text,
    #erpSidebar #sidebarLanguage,
    #erpSidebar .sidebar-theme-toggle,
    #erpSidebar .menu-text {
        display: none;
    }

    #erpSidebar .sidebar-brand-row {
        justify-content: center;
    }

    #erpSidebar .menu-link {
        width: 46px;

        justify-content: center;

        gap: 0;

        margin-left: auto;
        margin-right: auto;

        padding: 0;
    }
}




/* Arabic navigation alignment */
body.sidebar-language-ar #erpSidebar .menu-link,
body.sidebar-language-ar #erpSidebar .sidebar-preference-row {
    direction: rtl;
    text-align: right;
}


body.sidebar-language-ar #erpSidebar .sidebar-search-box input {
    direction: rtl;
    text-align: right;
    padding: 0 35px 0 10px;
}


body.sidebar-language-ar #erpSidebar .sidebar-search-symbol {
    left: auto;
    right: 11px;
}


#erpSidebar .sidebar-head-block {
    overflow: visible !important;
}


#sidebarToggleButton.sidebar-toggle-button {
    position: fixed !important;
    top: 92px !important;
    left: 224px !important;

    width: 30px !important;
    height: 30px !important;

    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;

    color: #ffffff !important;
    background: #7b263d !important;

    border: 2px solid rgba(255,255,255,0.88) !important;
    border-radius: 50% !important;

    z-index: 9999 !important;
}


.dashboard-layout.sidebar-is-collapsed #sidebarToggleButton.sidebar-toggle-button {
    left: 56px !important;
}


@media (max-width: 700px) {
    #sidebarToggleButton.sidebar-toggle-button {
        left: 56px !important;
    }

    .supplier-grid,
    .form-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
    }
}


.dashboard-layout.sidebar-is-collapsed #erpSidebar {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}


.dashboard-layout.sidebar-is-collapsed {
    padding-left: 70px !important;
}


/* 2) Arrow always visible. */
#sidebarToggleButton.sidebar-toggle-button {
    position: fixed !important;

    top: 92px !important;
    left: 223px !important;
    right: auto !important;

    width: 30px !important;
    height: 30px !important;

    display: grid !important;
    place-items: center !important;

    visibility: visible !important;
    opacity: 1 !important;

    color: #ffffff !important;
    background: #7b263d !important;

    border: 2px solid #ffffff !important;
    border-radius: 50% !important;

    z-index: 5000 !important;
}


.dashboard-layout.sidebar-is-collapsed #sidebarToggleButton.sidebar-toggle-button {
    left: 55px !important;
}


body.sidebar-light #erpSidebar #sidebarLanguage {
    color: #2b2b30 !important;
    background: #f3f3f6 !important;
    border-color: #d7d7dd !important;
}


@media (max-width: 650px) {
    #erpSidebar {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }

    .dashboard-layout,
    .product-page-layout {
        padding-left: 70px !important;
    }

    #sidebarToggleButton.sidebar-toggle-button {
        left: 55px !important;
    }
}



/* =========================================================
   FINAL USER CORRECTIONS V5
========================================================= */

/* Three top dots removed / hidden. */
.sidebar-window-dots {
    display: none !important;
}


.dashboard-layout.sidebar-is-collapsed {
    grid-template-columns:
        70px
        minmax(0, 1fr) !important;
}


/* Navigation arrow follows nav width. */
#sidebarToggleButton.sidebar-toggle-button {
    position: fixed !important;

    top: 92px !important;
    left: 223px !important;

    z-index: 9999 !important;
}


.dashboard-layout.sidebar-is-collapsed
#sidebarToggleButton.sidebar-toggle-button {
    left: 55px !important;
}


/* ---------------------------------------------------------
   THEME:
   Light/Dark switch affects SIDEBAR ONLY.
   Main page always remains light.
--------------------------------------------------------- */

body,
body.erp-page-dark,
body.sidebar-light {
    background: rgb(255, 255, 255) !important;
    color: #252832 !important;
}


/* Sidebar light mode */
body.sidebar-light #erpSidebar {
    color: #25252a !important;
    background: #ffffff !important;
    border-right-color: #dedee2 !important;
}


@media (max-width: 720px) {

    .dashboard-layout,
    .product-page-layout,
    .dashboard-layout.sidebar-is-collapsed {
        grid-template-columns:
            70px
            minmax(0, 1fr) !important;
    }

    #erpSidebar {
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    #sidebarToggleButton.sidebar-toggle-button {
        left: 55px !important;
    }

    
}


/* Minimized sidebar */
.dashboard-layout.sidebar-is-collapsed,
.product-page-layout.sidebar-is-collapsed {
    padding-left: 70px !important;
}


.dashboard-layout.sidebar-is-collapsed #erpSidebar,
.product-page-layout.sidebar-is-collapsed #erpSidebar {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
}


/* Arrow remains fixed with sidebar. */
#sidebarToggleButton.sidebar-toggle-button {
    position: fixed !important;

    top: 92px !important;
    left: 223px !important;

    z-index: 6000 !important;
}


.dashboard-layout.sidebar-is-collapsed
#sidebarToggleButton.sidebar-toggle-button,
.product-page-layout.sidebar-is-collapsed
#sidebarToggleButton.sidebar-toggle-button {
    left: 55px !important;
}
/* V13 sidebar media safety */
.sidebar img,
.sidebar svg,
.sidebar .nav-icon,
.sidebar .menu-icon,
.sidebar .profile-img,
.sidebar .avatar {
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: cover;
}
.sidebar .nav-icon,
.sidebar .menu-icon {
    width: 22px !important;
    height: 22px !important;
}

/* =========================================================
   V13 NAVIGATION-ONLY FINAL CORRECTION
   IMPORTANT: Page/form/column positions are NOT changed here.
   Use only these EASY SETTINGS for navigation adjustments.
========================================================= */

:root {
    /* NAVIGATION SIZE */
    --nav-open-width: 230px;       /* increase/decrease expanded nav width */
    --nav-closed-width: 70px;      /* increase/decrease minimized nav width */

    /* NAVIGATION COLOUR */
    --nav-dark-color: #202020;     /* dark navigation colour */
    --nav-dark-color-2: #202020;   /* keep same for solid reference colour */

    /* TOGGLE EASY MOVE SETTINGS */
    --nav-toggle-top: 9px;        /* bigger = DOWN, smaller = UP */
    --nav-toggle-open-left: 223px; /* bigger = RIGHT, smaller = LEFT */
    --nav-toggle-close-left: 55px; /* minimized: bigger = RIGHT, smaller = LEFT */
    --nav-toggle-size: 30px;       /* increase/decrease toggle size */

    /* NAV INNER SPACE */
    --nav-padding-top: 28px;       /* bigger = content DOWN */
    --nav-padding-side: 18px;      /* increase/decrease left-right inner space */
}

/* Reference navigation colour + dimensions only. */
#erpSidebar.sidebar,
#erpSidebar {
    width: var(--nav-open-width) !important;
    min-width: var(--nav-open-width) !important;
    max-width: var(--nav-open-width) !important;
    flex-basis: var(--nav-open-width) !important;
    padding-top: var(--nav-padding-top) !important;
    padding-left: var(--nav-padding-side) !important;
    padding-right: var(--nav-padding-side) !important;
    margin: 0 !important;
    background: linear-gradient(180deg, var(--nav-dark-color), var(--nav-dark-color-2)) !important;
}

/* CRITICAL GAP FIX:
   V13 uses flex, so collapsed sidebar already occupies 70px.
   Extra padding-left was creating the blank strip. */
.dashboard-layout.sidebar-is-collapsed,
.product-page-layout.sidebar-is-collapsed {
    padding-left: 0 !important;
}

.dashboard-layout.sidebar-is-collapsed #erpSidebar,
.product-page-layout.sidebar-is-collapsed #erpSidebar {
    width: var(--nav-closed-width) !important;
    min-width: var(--nav-closed-width) !important;
    max-width: var(--nav-closed-width) !important;
    flex-basis: var(--nav-closed-width) !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin: 0 !important;
}

/* Toggle easy movement: change only variables above. */
#sidebarToggleButton.sidebar-toggle-button {
    top: var(--nav-toggle-top) !important;
    left: var(--nav-toggle-open-left) !important;
    width: var(--nav-toggle-size) !important;
    height: var(--nav-toggle-size) !important;
}

.dashboard-layout.sidebar-is-collapsed #sidebarToggleButton.sidebar-toggle-button,
.product-page-layout.sidebar-is-collapsed #sidebarToggleButton.sidebar-toggle-button {
    left: var(--nav-toggle-close-left) !important;
}

/* Keep page theme untouched; light mode changes navigation only. */
body.sidebar-light #erpSidebar {
    background: #ffffff !important;
}

/* Three dots remain removed. */
.sidebar-window-dots {
    display: none !important;
}



/* =========================================================
   MINIMAL SAFE FIX — KEEP CURRENT AUTO ADJUSTMENT UNCHANGED
   1) Navigation fixed
   2) Remove label white background
   3) Supplier blank-field reveal effect
========================================================= */

/* ---------- EASY CONTROLS ---------- */
:root {
    --nav-fixed-top: 0px;        /* + = DOWN, - = UP */
    --nav-fixed-left: 0px;       /* + = RIGHT, - = LEFT */

    --toggle-top: 9px;          /* + = DOWN, - = UP */
    --toggle-open-left: 223px;   /* + = RIGHT, - = LEFT */
    --toggle-close-left: 55px;   /* + = RIGHT, - = LEFT */
}

/* ---------- 1. NAVIGATION FIXED / STILL ---------- */
/* Keep the existing sidebar width/collapse/page auto-adjustment.
   Only change sticky/scroll behavior to fixed. */
#erpSidebar {
    position: fixed !important;
    top: var(--nav-fixed-top) !important;
    left: var(--nav-fixed-left) !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    z-index: 5000 !important;
}

/* Existing layout is flex-based, so reserve exactly the same sidebar width
   without changing current Product/Supplier inner columns. */
.dashboard-layout,
.product-page-layout {
    position: relative !important;
}

/* Desktop expanded */
.dashboard-layout:not(.sidebar-is-collapsed),
.product-page-layout:not(.sidebar-is-collapsed) {
    padding-left: 238px !important;
}

/* Collapsed */
.dashboard-layout.sidebar-is-collapsed,
.product-page-layout.sidebar-is-collapsed {
    padding-left: 70px !important;
}

/* Main content remains fluid inside reserved space */
.dashboard-layout > main,
.product-page-layout > main,
.dashboard-main,
.product-main {
    min-width: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
}

/* Toggle stays with the fixed nav */
#sidebarToggleButton.sidebar-toggle-button {
    position: fixed !important;
    top: var(--toggle-top) !important;
    left: var(--toggle-open-left) !important;
    right: auto !important;
    z-index: 6000 !important;
}

.dashboard-layout.sidebar-is-collapsed #sidebarToggleButton.sidebar-toggle-button,
.product-page-layout.sidebar-is-collapsed #sidebarToggleButton.sidebar-toggle-button {
    left: var(--toggle-close-left) !important;
}

/* ---------- 2. SUPPLIER PAGE ISOLATION ---------- */
/*
   IMPORTANT:
   Supplier page ke field layout/effects yahan define NAHI honge.
   Supplier page ka complete control static/css/supplier.css ke paas hai.
   Isse global style.css filled borders, placeholders, Status ya field sizes
   ko override nahi karegi.
*/

/* Mobile: preserve current collapsed nav behavior */
@media (max-width: 650px) {
    .dashboard-layout,
    .product-page-layout,
    .dashboard-layout.sidebar-is-collapsed,
    .product-page-layout.sidebar-is-collapsed {
        padding-left: 70px !important;
    }

    #erpSidebar {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }

    #sidebarToggleButton.sidebar-toggle-button {
        left: var(--toggle-close-left) !important;
    }
}

/* Supplier-specific global overrides removed intentionally. */

/* ========================================================================== */
/* BizBook validation messages — text only (no red alert card)               */
/* ========================================================================== */
.alert.alert--error,
.po-alert.po-alert--error,
.product-list-alert.product-list-alert--error,
.supplier-list-alert.supplier-list-alert--error,
.pol-alert.pol-alert--error {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px 0 !important;
    color: #9a3f48 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.alert.alert--error .alert__close {
    display: none !important;
}


/* V52 — notification messages are text-only across BizBook. */
.alert, .supplier-list-alert, .product-list-alert, .po-alert, .pol-alert, .admin-alert, .chat-toast, .shikai-live-toast {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.alert__close, .shikai-live-toast button { display: none !important; }
