﻿@import "bootstrap/scss/bootstrap";

html {
    font-size: 16px;
}

html, body {
    height: 100%;
    margin: 0;
}

/* ✅ Default (Desktop / Wide Screen) */
.login-box {
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    /* Left image for Desktop */
    .login-box .login-left {
        flex: 1 1 50%;
        background: url('../img/leftside.png') no-repeat center;
        background-size: cover;
        min-height: 300px;
    }

    /* Right form */
    .login-box .login-right {
        flex: 1 1 50%;
        padding: 2rem;
        background-image: url('../img/Login_tile.png');
        background-repeat: repeat;
    }

/* ✅ Mobile view */
@media (max-width: 768px) {
    .login-box {
        flex-direction: column;
        max-width: 95%;
    }

        .login-box .login-left {
            /* Remove desktop image and replace with mobile */
            background: url('../img/top-login.png') no-repeat center !important;
            background-size: contain;
            background-color: #fff;
            flex: 1 1 100%;
            min-height: 150px;
        }

        .login-box .login-right {
            flex: 1 1 100%;
        }
}

.tiled-background {
    background-image: url('../img/webb.png');
    background-repeat: repeat;
    width: 100%;
}

.container {
    overflow: hidden; /* or 'auto' or 'scroll' depending on your needs */
}

/*.login-box {
    background-image: url('../img/Login.png');*/
/*object-fit: cover;
    background-size: 100% 100%;*/ /* Stretches to match div size */
/*padding: 2rem;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-repeat: no-repeat;
    background-size: cover;*/ /* or contain */
/*background-position: top;*/
/* background-size: cover;*/
}

.CustomerDropdown {
    width: 100%; /* or a fixed width like 200px */
    max-width: 100%; /* Prevents stretching beyond the parent */
    height: auto;
}

/* ===============================
   Prescription Table – Responsive
   =============================== */

/* Base (ALL screen sizes) */


.prescription-table {
    margin-bottom: 0;
    height: auto !important;
}

    .prescription-table table {
        margin-bottom: 0 !important;
        width: 100%;
        border-collapse: collapse;
    }

.small-input {
    width: 100%;
}

.prescription-row {
    display: flex;
    align-items: stretch; /* 🔥 same height */
    gap: 10px; /* space between Right & Left */
}

.prescription-col {
    display: flex;
    flex-direction: column;
}

/* Reduce table row height */
.prescription-table th,
.prescription-table td {
    padding: 4px 6px; /* 🔥 reduce space */
    line-height: 1.2; /* 🔥 tighter text */
}
.prescription-table th {
    padding: 6px;
    font-size: 13px;
}
/* Remove extra spacing from rows */
.prescription-table tr {
    height: auto;
}

    .prescription-col .table-responsive {
        flex: 1; /* 🔥 fill full height */
    }

/* ===============================
   Tablets & Mobile (≤ 991px)
   =============================== */
@media (max-width: 991px) {

    .prescription-table {
        overflow-x: auto;
        white-space: normal; /* ✅ allow wrapping */
    }

        .prescription-table table {
            min-width: 100%; /* ✅ remove 600px restriction */
            table-layout: fixed; /* ✅ equal column width */
        }

        .prescription-table th,
        .prescription-table td {
            padding: 4px; /* ✅ reduce spacing */
            font-size: 12px; /* ✅ smaller text */
        }

    .small-input {
        font-size: 12px;
        padding: 2px 4px;
        height: 28px; /* ✅ compact input */
    }
}

@media (max-width: 576px) {
    .prescription-table th {
        font-size: 11px;
    }
}
/* ===============================
   Mobile only (≤ 768px)
   =============================== */
@media (max-width: 768px) {

    html {
        font-size: 16px;
    }

    .small-input {
        min-width: 60px;
        font-size: 12px;
        padding: 4px;
    }
    .prescription-col .table-responsive {
        flex: unset;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.login-heading {
    color: #f6f6f6; /* your custom color */
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
}

.login-text {
    color: #f6f6f6; /* your custom color */
    font-family: 'Georgia', serif;
    font-size: 12px;
    font-weight: 200;
    font-style: normal;
}

.Logo-bar {
    background: linear-gradient(130deg, #197885, #50c1d7);
}

.Mega-Menu-custom {
    background: linear-gradient(178deg, #18636d, #0c88a1);
}

.Menu-bar {
    background: linear-gradient(181deg, #bceef5, #bceef5);
}

.Header-bar {
    background: linear-gradient(178deg, #235771, #14373e);
}


.ButtonEdit {
    background: linear-gradient(161deg, #4347ad, #000000);
    color: white !important; /* Change text color */
    transition: background 0.3s ease;
}

    .ButtonEdit:hover {
        color: yellow !important; /* Change color on hover */
        background: linear-gradient(45deg, #3d8bfd, #0b5ed7);
    }

.ButtonAdd {
    background: linear-gradient(161deg, #43ad71, #050505);
    color: white !important; /* Change text color */
    transition: background 0.3s ease;
}

    .ButtonAdd:hover {
        color: yellow !important;
        background: linear-gradient(161deg, #90d5ae, #3a7e77);
    }


.ButtonSave {
    background: linear-gradient(161deg, #b3d590, #2e352c);
    color: white !important; /* Change text color */
    transition: background 0.3s ease;
}

    .ButtonSave:hover {
        color: yellow !important;
        background: linear-gradient(161deg, #303f22, #76886d);
    }

.Panel-Custom {
    background: linear-gradient(161deg, #88a09b, #868a85);
}

.navbar .nav-link {
    color: white !important; /* Change text color */
}

    .navbar .nav-link:hover {
        color: yellow !important; /* Change color on hover */
    }

.btn-custom {
    /*    background: linear-gradient(45deg, #007bff, #00d4ff);*/
    background: linear-gradient(45deg, #03081b, #1d5fc7);
    border: none;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    transition: all 0.3s ease;
    width: 200px;
}

    .btn-custom:hover {
        background: linear-gradient(45deg, #0abdee, #4098d3);
        transform: scale(1.05);
    }

#sidebar .nav-link {
    padding: 10px;
    border-radius: 5px;
}

    #sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    #sidebar {
        display: none;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
}

#treeparent {
    display: block;
    max-width: 350px;
    margin: auto;
    overflow: auto;
    border: 1px solid #dddddd;
    border-radius: 3px;
}

.mytree .e-list-img {
    width: 40px; /* your desired size */
    height: 20px;
    object-fit: contain;
}

.details {
    padding-left: 10px;
}

.mytree .e-level-1 > .e-text-content .e-list-text {
    font-style: italic;
}
/*apply custom css to second level*/
.mytree .e-level-2 > .e-text-content .e-list-text {
    color: darkmagenta;
}
/*apply custom css to all the leaf nodes*/
.mytree .e-level-3 > .e-text-content .e-list-text {
    font-weight: bold;
}


/* 🎯 Style each header cell <th> */
.table-Right thead tr:nth-child(2) th {
    background-color: rgb(206, 209, 178); /* orange-red */
    color: black;
    text-align: center;
    padding: 8px;
}

.section-header {
    background-color: rgb(174, 174, 166) !important;
    color: black;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.section-header-Left {
    background-color: rgb(180, 172, 148) !important;
    color: black;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.custom-header {
    background-color: rgb(245, 244, 216) !important; /* Blue */
    color: black !important;
}

.table-Right tr:hover td {
    background-color: #ffeaa7;
}


/* 🎯 Style each header cell <th> */
.table-Left thead tr:nth-child(2) th {
    background-color: rgb(208, 188, 156);
    color: black;
    text-align: center;
    padding: 8px;
}

.table-Left tr:hover td {
    background-color: #ffeaa7;
}

.custom-header-left {
    background-color: rgb(199, 184, 160) !important; /* Blue */
    color: black !important;
}

input.form-control.small-input {
    font-size: 12px !important; /* force override */
    padding: 2px 6px !important; /* smaller height */
}
/* Change header background */
.e-grid .e-headercell {
    background-color: rgb(199, 184, 160) !important;
    color: black;
    font-weight: bold;
}

/* Row hover effect */
.e-grid .e-row:hover {
    background-color: #f5f5f5;
}

/* Toolbar button style */
.e-grid .e-toolbar .e-btn {
    border-radius: 8px;
    padding: 6px 14px;
}

Jobtable {
    table-layout: fixed;
    width: 100%;
}

.Jobtable td,
.Jobtable th {
    padding: 4px 6px !important; /* reduce row height */
    vertical-align: middle;
}

.Job-col-SerNo {
    width: 5%;
    min-width: 20px;
}

/* Text columns */
.Job-col-ItemCode {
    width: 12%;
    min-width: 90px;
}

.Job-col-ItemDes {
    width: 42%;
    min-width: 220px;
}

/* Numeric columns */
.Job-col-Qty {
    width: 8%;
    min-width: 60px;
}

.Job-col-Price {
    width: 15%;
    min-width: 90px;
}

.Job-col-Discount {
    width: 8%;
    min-width: 70px;
}

.Job-col-DiscountAmt {
    width: 8%;
    min-width: 70px;
}

.Job-col-total {
    width: 20%;
    min-width: 110px;
}

/* Action */
.Job-col-action {
    width: 6%;
    min-width: 40px;
}



.tree-container ul {
    list-style: none;
    margin: 0;
    padding-left: 20px;
    border-left: 1px dashed #ccc; /* vertical line */
}

.tree-container li {
    margin: 4px 0;
    position: relative;
}

    /* Horizontal connector from parent line to node */
    .tree-container li::before {
        content: "";
        position: absolute;
        top: 12px;
        left: -20px;
        width: 20px;
        border-top: 1px dashed #ccc;
    }

/* Tree node wrapper */


.tree-node {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Expand/collapse button */
.toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #666;
    background-color: #f9f9f9;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

    .toggle:hover {
        background-color: #0078d7;
        color: white;
        border-color: #0078d7;
    }

    /* Placeholder keeps alignment for leaves */
    .toggle.empty {
        border: none;
        background: transparent;
        cursor: default;
    }

/* Node label */
.label {
    cursor: pointer;
    user-select: none;
}

.accounts-container {
    display: flex;
    align-items: flex-start; /* keep both aligned at the top */
}

.treeview {
    border-right: 1px solid #ddd;
    padding: 10px;
}

    .treeview ul {
        list-style-type: none; /* ✅ removes bullets */
        padding-left: 20px; /* optional: control indent */
        margin: 0; /* optional: reset default spacing */
    }

    .treeview li {
        list-style-type: none; /* ensure no bullet on li also */
    }

.account-details {
    flex: 1; /* takes remaining space */
    padding: 15px;
}

.tree-node .label {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

    .tree-node .label:hover {
        background-color: #444040;
        color: white;
    }

.tree-node .selected-node {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.tree-node .match-node {
    background-color: yellow;
    font-weight: bold;
    border-radius: 4px;
}

.node-blocked {
    color: red !important;
    text-decoration: line-through;
    opacity: 0.8; /* optional, make it slightly faded */
}

.account-group {
    font-weight: bold;
    font-size: 15px;
    color: #2c3e50; /* dark blue/grey */
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.account-item {
    font-weight: normal;
    font-size: 14px;
    color: #555; /* softer grey */
    font-family: "Arial", sans-serif;
    padding-left: 4px;
}


.context-menu {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 150px;
    box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
}

    .context-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .context-menu li {
        padding: 8px 12px;
        cursor: pointer;
    }

        .context-menu li:hover {
            background: #f0f0f0;
        }

.category-root {
    font-weight: bold;
    font-size: 16px;
    color: #004085;
}

.group-item {
    font-size: 14px;
    color: #333;
}

.selected-node {
    background: #e0f0ff;
    border-radius: 4px;
    padding: 2px 4px;
}

.match-node {
    background: yellow;
}

.label.selected-node {
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
}

.form-check-input {
    margin-top: 0.3rem;
}

.select2-container {
    z-index: 9999 !important;
}

.list-group-item.disabled {
    pointer-events: none;
    opacity: 0.5;
}
/* =========================================================
   ✅ FIX: Mega Menu Top Color + Remove White Divider Line
   ========================================================= */

/* 🌊 Navbar Background Gradient */
:root {
    --navbar-bg: linear-gradient(181deg, #18636d, #0c88a1);
}

/* 🔹 Make Navbar Full Width */
.navbar,
.navbar.bg-primary {
    width: 100% !important;
    max-width: 100vw !important;
    background: var(--navbar-bg) !important;
    margin: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
}

    /* 🔹 Ensure container is also full-width */
    .navbar > .container,
    .navbar > .container-fluid {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 🔹 Mega Menu Full Width + Gradient */
    /*.navbar .dropdown-menu.mega-menu {
        position: absolute !important;
        right: 0 !important;*/ /* ✅ Align to the right side */
    /*left: auto !important;*/ /* ✅ Prevent left alignment */
    /*width: 90vw !important;
        margin-top: 0 !important;
        padding: 1rem 1.5rem !important;
        background: linear-gradient(178deg, #18636d, #0c88a1) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 10px !important;*/ /* smooth corners */
    /*box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2),*/ /* soft drop shadow */
    /*inset 0 2px 3px rgba(255, 255, 255, 0.1),*/ /* top light reflection */
    /*inset 0 -3px 6px rgba(0, 0, 0, 0.25);*/ /* bottom inner shadow */
    /*transform: perspective(800px) rotateX(1deg);*/ /* subtle 3D tilt */
    /*transition: all 0.25s ease-in-out;*/ /* smooth hover animation */
    /*}*/

    .navbar .dropdown-menu.mega-menu {
        position: absolute;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-top: 0;
        padding: 1rem 1.5rem;
        background: linear-gradient(178deg, #18636d, #0c88a1);
        color: #ffffff;
        border: none;
        border-radius: 10px;
        overflow-x: auto;
    }

/* 🔹 Text + Links Styling */
.mega-menu {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    border: none !important;
}

    .mega-menu .row {
        display: flex;
        flex-wrap: wrap;
    }

    /* ✅ FIX COLUMN WIDTH */
    .mega-menu .col-md-2 {
        flex: 1 1 220px;
        min-width: 200px;
    }

    /* 🔹 Each dropdown item (links inside menu) */
    .mega-menu .dropdown-item {
        color: #ffffff !important;
        padding: 6px 10px !important;
        border-radius: 5px;
        font-size: 0.9rem;
        transition: all 0.2s ease-in-out;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
    }


        /* ✨ Hover effect for each dropdown link */
        .mega-menu .dropdown-item:hover {
            background: linear-gradient(180deg, #1fa6b7, #0b6978);
            color: #ffffff !important;
            transform: translateX(4px); /* subtle slide to the right */
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

@media (max-width: 768px) {

    .navbar .dropdown-menu.mega-menu {
        position: static !important;
        width: 100% !important;
    }

    .mega-menu .row {
        flex-direction: column;
    }

    .mega-menu .col-md-2 {
        width: 100%;
    }
}

/* Remove pseudo-elements / separators */
.navbar .dropdown-menu.mega-menu::before,
.navbar .dropdown-menu.mega-menu::after {
    display: none !important;
    content: none !important;
}

/* Remove top border line */
.navbar .dropdown.position-static > .dropdown-menu {
    border-top: none !important;
}

.navbar .dropdown-menu.mega-menu:hover {
    transform: perspective(800px) rotateX(0deg) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 2px 3px rgba(255, 255, 255, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}

/* 🌈 Each Section Header in Mega Menu */
.mega-menu h6 {
    display: block;
    background: rgba(255, 255, 255, 0.15); /* subtle white overlay */
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    padding: 6px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2); /* 3D depth */
}

.navbar,
.navbar .nav-link,
.mega-menu,
.mega-menu .dropdown-item,
.mega-menu h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
    -webkit-font-smoothing: antialiased;
}

}
/* 🌀 Hover effect for headers */
.mega-menu h6:hover {
    background: linear-gradient(180deg, #2db3c6, #107d8f);
    color: #ffffff !important;
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}


.mega-menu h6.masters {
    background: #0e7387;
}

.mega-menu h6.ac {
    background: #0c88a1;
}

.mega-menu h6.sales {
    background: #107c92;
}

.mega-menu h6.users {
    background: #158ba4;
}

.mega-menu h6.utils {
    background: #0b6478;
}

/* 🌿 WinERP Themed Tree Highlight */
.tree-node {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .tree-node:hover {
        background: linear-gradient(180deg, #e0f7fa, #b2ebf2);
        color: #004d57;
    }

    /* ✅ Selected node (teal highlight to match navbar) */
    .tree-node.selected {
        background: linear-gradient(181deg, #18636d, #0c88a1);
        color: white !important;
        font-weight: 600;
        box-shadow: 0 0 6px rgba(12, 136, 161, 0.4);
    }

        /* Keep folder/item icons readable */
        .tree-node.selected span,
        .tree-node.selected strong {
            color: #fff !important;
        }

        /* Slightly brighter on hover */
        .tree-node.selected:hover {
            background: linear-gradient(181deg, #1d7b8b, #11a0b8);
        }

/* 🔷 Global Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* The white box in the middle */
.loading-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 45px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-family: "Segoe UI", sans-serif;
    color: #004b6e;
}

    .loading-box img.spinner {
        width: 70px;
        height: 70px;
        display: block;
        margin: 0 auto 10px auto;
        animation: spin 1s linear infinite;
    }

/* Spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Optional: Smooth fade in/out */
.loading-overlay {
    transition: opacity 0.2s ease-in-out;
}

.list-group-item {
    cursor: pointer;
    font-size: 1.1rem;
}

    .list-group-item:hover {
        background: #f1f1f1;
    }

.branch-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}

.branch-modal .modal-header {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: white;
    border-radius: 18px 18px 0 0;
}

.branch-modal .modal-title {
    font-size: 20px;
    font-weight: 600;
}

.branch-modal .modal-body {
    padding: 20px 25px;
}

.branch-modal .list-group-item {
    border: 0;
    padding: 14px 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px !important;
    transition: 0.2s ease-in-out;
}

    .branch-modal .list-group-item:hover {
        background: rgba(0, 123, 255, 0.08);
        transform: scale(1.02);
        cursor: pointer;
    }

.branch-modal .btn-select {
    border-radius: 12px;
    padding: 6px 14px;
    font-weight: 600;
}

.branch-modal .btn-close {
    filter: invert(1);
}

/* overlay background */
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* white box */
.processing-box {
    max-width: 400px;
    background: white;
    padding: 14px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.processing-spinner-img {
    width: 100%;
    height: auto;
    max-height: 260px;
}


/* text under spinner */
.processing-text {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.flower-spinner {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background-image: url('../img/SPINNER.png');
    background-size: contain;
    background-repeat: no-repeat;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.context-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background: transparent;
    z-index: 9998; /* BELOW menu, ABOVE page */
}

.context-menu {
    position: fixed;
    z-index: 9999;
    min-width: 180px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.JobOrdertable-scroll {
    max-height: none; /* remove height restriction */
    overflow-y: visible; /* no vertical scroll */
    overflow-x: auto; /* allow horizontal scroll only */
    border: 1px solid #dee2e6;
}

.Purtable-scroll {
    width: 100%;
    overflow-x: auto; /* horizontal scroll */
    overflow-y: hidden;
    white-space: nowrap; /* prevent column wrap */
}

* Smooth scrollbar (optional) */
.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.Purtable-scroll::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.Purtable-scroll::-webkit-scrollbar-track {
    background: #eee;
}
/* Keep fixed layout */
.Purtable {
    table-layout: fixed;
    min-width: 1400px; /* FORCE scroll when screen is smaller */
}


.table-scroll table {
    margin-bottom: 0;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fa;
}

/* Purchase Table */

Purtable {
    table-layout: fixed;
    width: 100%;
}

/*.Purtable td,
.Purtable th {
    padding: 4px 6px !important;*/ /* reduce row height */
/*vertical-align: middle;
}*/

/* Text columns */
.Pur-col-Group {
    width: 15%;
    min-width: 90px;
}


.Pur-col-Barcode {
    width: 12%;
    min-width: 80px;
}

.Pur-col-ItemDes {
    width: 25%;
    min-width: 220px;
}

/* Numeric columns */
.Pur-col-Qty {
    width: 10%;
    min-width: 45px;
}

.Pur-col-PurPrice {
    width: 14%;
    min-width: 60px;
}

.Pur-col-Tax {
    width: 8%;
    min-width: 50px;
}

.Pur-col-Discount {
    width: 8%;
    min-width: 40px;
}

.Pur-col-DiscountAmt {
    width: 10%;
    min-width: 50px;
}

.Pur-col-RetailPrice {
    width: 12%;
    min-width: 100px;
}

.Pur-col-MRP {
    width: 12%;
    min-width: 90px;
}

.Pur-col-BatchNo {
    width: 15%;
    min-width: 110px;
}

.Pur-col-total {
    width: 14%;
    min-width: 110px;
}

/* Action */
.Job-col-action {
    width: 6%;
    min-width: 40px;
}


/* Compact layout */
.card-body {
    padding: 0.5rem !important;
}

.form-control,
.form-select {
    padding: 0.25rem 0.5rem;
    height: 32px;
    font-size: 13px;
}

label {
    margin-bottom: 2px;
    font-size: 12px;
}

.mb-3, .mt-3 {
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem !important;
}

.purchase-table input {
    height: 30px;
    font-size: 12px;
    padding: 2px 6px;
}

.purchase-table th {
    white-space: normal !important; /* allow wrap */
    word-break: break-word;
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
}

.purchase-table td {
    padding: 3px;
}

/*::placeholder {
    font-size: 10px;*/ /* adjust size */
/*opacity: 0.7;*/ /* optional: lighter look */
/*}*/
::placeholder {
    font-size: 10px;
    color: #aaa;
}

.card-header {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}

.card {
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.Jobcard-header {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
}

.Jobcard {
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.amount-box input {
    font-weight: 600;
    background: #f8fafc;
}

.form-label-fixed {
    width: 120px;
    min-width: 120px;
}

.customer-autocomplete {
    position: relative;
    display: inline-block; /* ⭐ KEY FIX */
    width: 500px; /* match textbox width */
}

    .customer-autocomplete input {
        width: 100%;
    }

.SalesExecutive-autocomplete {
    position: relative;
    display: inline-block; /* ⭐ KEY FIX */
    width: 500px; /* match textbox width */
}

    .SalesExecutive-autocomplete input {
        width: 100%;
    }

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* now equals input width */

    background: #fff;
    border: 1px solid #ccc;
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,.15);
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

    .autocomplete-item:hover {
        background: #f1f1f1;
    }


.product-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.table-card {
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table-modern {
    border-collapse: separate;
    border-spacing: 0;
}

    .table-modern thead {
        background: #0d6efd;
        color: white;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .table-modern th {
        font-weight: 600;
        padding: 10px;
    }

    .table-modern td {
        padding: 9px;
        vertical-align: middle;
    }

    .table-modern tbody tr {
        transition: all 0.15s ease;
    }

        .table-modern tbody tr:hover {
            background: #f2f7ff;
        }

        .table-modern tbody tr:nth-child(even) {
            background: #fafafa;
        }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scroll on mobile */
    height: auto !important;
    overflow: visible !important;
}


.tax-autocomplete {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.autocomplete-item {
    padding: 6px 10px;
    cursor: pointer;
}

    .autocomplete-item:hover {
        background-color: #f1f1f1;
    }


.img-loader {
    position: absolute;
    top: 20px;
    left: 20px;
}


/* 🔥 COMMON ICON STYLE */
.icon-circle {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none; /* ❌ REMOVE BLACK BORDER */
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    /* ICON SIZE */
    .icon-circle i {
        font-size: 18px;
        color: #ffffff;
    }

    /* 🔵 INSTALL */
    .icon-circle.install {
        box-shadow: 0 0 8px rgba(0, 200, 255, 0.6);
    }

        .icon-circle.install:hover {
            background: #00c6ff;
            box-shadow: 0 0 18px #00eaff;
            transform: scale(1.1);
        }

    /* 🔴 LOGOUT (FIXED STYLE) */
    .icon-circle.logout {
        box-shadow: 0 0 8px rgba(255, 80, 80, 0.6);
    }

        .icon-circle.logout i {
            color: #ff6b6b;
        }

        /* HOVER */
        .icon-circle.logout:hover {
            background: #ff4d4d;
            box-shadow: 0 0 18px #ff4d4d;
            transform: scale(1.1);
        }

            .icon-circle.logout:hover i {
                color: #ffffff;
            }

/* 👤 ADMIN PILL */
.admin-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 500;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 8px rgba(255,255,255,0.2);
    transition: 0.3s;
}

    .admin-pill i {
        font-size: 18px;
    }

    .admin-pill:hover {
        background: rgba(255,255,255,0.3);
        transform: scale(1.05);
    }

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
}

.icon-item {
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 20px;
    transition: 0.2s;
}

    .icon-item:hover {
        background: #f0f0f0;
    }

    .icon-item.active {
        background: #0d6efd;
        color: white;
    }

.lang-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .lang-btn:hover {
        background: rgba(255,255,255,0.25);
    }

.lang-menu {
    border-radius: 10px;
    padding: 6px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .dropdown-item.active {
        background: #0d6efd;
        color: white;
    }

.flag {
    width: 20px;
    height: 14px;
    border-radius: 3px;
}

.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.modal-container {
    background: #fff;
    padding: 20px;
    width: 450px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-backdrop-custom {
    position: fixed; /* 🔥 MUST */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 🔥 VERY IMPORTANT */
}

.modal-container {
    background: white;
    padding: 20px;
    width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}
/* MOBILE */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

    /* Make buttons compact */
    .action-buttons button,
    .action-buttons a {
        height: 36px;
        font-size: 13px;
    }

    /* ✅ Exit on right side */
    .action-buttons .exit {
        justify-self: end;
    }

/* DESKTOP */
@media (min-width: 992px) {
    .action-buttons {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

        .action-buttons .exit {
            margin-left: auto; /* push to right */
        }
}


.total-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

    /* Label */
    .total-row .label {
        font-weight: 600;
    }

    /* Numbers alignment */
    .total-row .qty,
    .total-row .amount {
        min-width: 80px;
        text-align: right;
    }

/* Mobile fix */
@media (max-width: 576px) {
    .total-row {
        justify-content: space-between;
    }

        .total-row .label {
            flex: 1 1 100%;
        }
}


.erp-row {
    display: flex;
    align-items: stretch;
}

.erp-col {
    display: flex;
}

    .erp-col .card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.card-body {
    flex-grow: 1;
}

.card {
    border: 1px solid #dcdcdc;
}

.card-header {
    background: linear-gradient(180deg, #6f7f7b, #5f6f6a);
}