/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* Firefox */
html,
body,
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ==============================
   SIDEBAR
================================ */
#sidebar,
.sidenav {
    width: 270px !important;
    transition: all .3s ease !important;
}

#sidebar.collapsed,
.sidenav.collapsed {
    width: 80px !important;
}

/* ==============================
   MAIN CONTENT
================================ */
#mainContent,
.main-content {
    margin-left: 270px !important;
    transition: all .3s ease;
}

#mainContent.expand,
.main-content.expand {
    margin-left: 80px !important;
}

/* ==============================
   COLLAPSED SIDEBAR
================================ */
#sidebar.collapsed .sidebar-text,
.sidenav.collapsed .sidebar-text {
    display: none;
}

#sidebar.collapsed .nav-link,
.sidenav.collapsed .nav-link {
    justify-content: center;
}

#sidebar.collapsed .nav-link i,
.sidenav.collapsed .nav-link i {
    margin-right: 0 !important;
    font-size: 18px;
}

/* ==============================
   FLOATING SUB MENU
================================ */
#sidebar.collapsed .collapse.show,
.sidenav.collapsed .collapse.show {
    position: fixed;
    left: 80px;
    width: 230px;
    background: #344767;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    z-index: 99999;
}

#sidebar.collapsed .collapse.show .nav-link,
.sidenav.collapsed .collapse.show .nav-link {
    justify-content: flex-start;
    color: #fff;
}

/* Hide arrows */
#sidebar.collapsed .fa-angle-down,
.sidenav.collapsed .fa-angle-down {
    display: none;
}

/* ==================================
   Sidebar Toggle Button
================================== */
.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .45);
    transition: all .3s ease;
    z-index: 9999;
}

#sidebar.collapsed .sidebar-toggle {
    right: -18px;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: scale(1.08);
}

.sidebar-toggle i {
    color: white;
    font-size: 18px;
    transition: .3s;
}

/* ==============================
   LOGO / USER AREA
================================ */
#sidebar .sidenav-header {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* ==============================
   MENU LINKS
================================ */
#sidebar .nav-link {
    font-size: 14px;
    padding: 12px 16px;
    margin: 4px 12px;
    border-radius: 10px;
    transition: .25s;
}

#sidebar .nav-link i {
    color: #94a3b8;
    font-size: 17px;
    width: 22px;
}

/* Hover */
#sidebar .nav-link:hover {
    background: rgba(59, 130, 246, .12);
    color: #ffffff !important;
}

#sidebar .nav-link:hover i {
    color: #60a5fa;
}

/* Active Parent Menu */
#sidebar .nav-link.active,
#sidebar .nav-link.parent-active {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(37, 99, 235, .35);
}

#sidebar .nav-link.active i,
#sidebar .nav-link.parent-active i {
    color: #ffffff;
}

/* ==============================
   SUBMENU
================================ */
#sidebar .submenu .nav-link {
    background: transparent;
    font-size: 14px;
}

#sidebar .submenu .nav-link.active {
    background: rgba(195, 216, 245, 0.18) !important;
    box-shadow: none;
}

@media(max-width:991px) {

    #sidebar {
        left: -280px;
        width: 280px !important;
        transition: left .3s ease;
    }


    #sidebar.mobile-show {
        left: 0;
    }


    /* do not shrink sidebar on mobile */
    #sidebar.collapsed {
        width: 280px !important;
    }


    #mainContent,
    #mainContent.expand {
        margin-left: 0 !important;
    }


    .admin-navbar,
    .admin-navbar.expand {
        left: 0 !important;
        width: 100% !important;
    }


    .admin-footer,
    .admin-footer.expand {
        margin-left: 0 !important;
    }

}

/* ==============================
   SECTION TITLES
================================ */
.menu-title {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==============================
   ADMIN FIXED FOOTER
================================ */
.admin-footer {
    position: fixed;
    bottom: 0;
    left: 270px;
    width: calc(100% - 270px);
    height: 60px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    z-index: 999;
    transition: all .3s ease;
}

/* ==============================
   FOOTER WHEN SIDEBAR COLLAPSED
================================ */
.admin-footer.expand {
    left: 80px;
    width: calc(100% - 80px);
}

/* ==============================
   FOOTER CONTENT
================================ */
.admin-footer .container-fluid {
    width: 100%;
}

.footer-copyright,
.footer-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1;
}

.footer-copyright span {
    color: #344767;
    font-weight: 600;
}

/* ==============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 768px) {

    .admin-footer,
    .admin-footer.expand {
        left: 0;
        width: 100%;
        height: 55px;
    }

    .footer-meta {
        display: none;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
    }

}

/* =================================
   ADMIN NAVBAR
================================= */
.admin-navbar {
    position: fixed;
    top: 0;
    left: 305px;
    width: calc(100% - 325px);
    height: 70px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 25px;
    z-index: 999;
    border-bottom: 1px solid #edf0f5;
    transition: .3s ease;
}

/* Sidebar collapsed */
.admin-navbar.expand {
    left: 120px;
    width: calc(100% - 150px);
}

/* LEFT AREA */
.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left h6 {
    color: #344767;
    font-size: 15px;
    font-weight: 700;
}

/* Sidebar button */
.sidebar-mobile-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-mobile-toggle i {
    font-size: 18px;
}

/* RIGHT AREA */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Search */
.navbar-search {
    width: 260px;
    height: 42px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}


.navbar-search i {
    color: #64748b;
    margin-right: 10px;
}

.navbar-search input {
    border: none;
    background: none;
    font-size: 14px;
}


.navbar-search input:focus {
    outline: none;
    box-shadow: none;
}

/* Notification */
.nav-icon {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    background: #f8fafc;
    color: #344767;
}

.nav-icon i {
    font-size: 18px;
}

.notification-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

/* USER */
.user-profile {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #344767;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-info {
    margin-left: 10px;
}

.user-info span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.user-info small {
    color: #64748b;
    font-size: 12px;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

/* ================================
      MOBILE DESIGN
================================ */
@media(max-width:1200px) {

    .admin-navbar,
    .admin-navbar.expand {
        left: 0;
        width: 100%;
    }
}

@media(max-width:768px) {
    .admin-navbar {
        height: 65px;
        padding: 0 15px;
    }

    .navbar-left h6 {
        display: none;
    }

    .navbar-search {
        display: none !important;
    }

    .user-info {
        display: none !important;
    }

    .avatar {
        width: 38px;
        height: 38px;
    }

    .navbar-right {
        gap: 8px;
    }
}

@media(max-width:1200px) {
    #sidebar {
        transform: translateX(-100%);
        transition: .3s ease;
    }


    #sidebar.mobile-show {
        transform: translateX(0);
    }

    #mainContent {
        margin-left: 0 !important;
    }
}

.content-wrapper {
    padding: 95px 25px 95px 25px;
}

.form-control {
    padding: 0.5rem 0.5rem;
}

.bg-gradient-green-custom {
    background: linear-gradient(135deg, #17491d, #3a8f42);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.form-select,
.form-select:focus {
    border: 1px solid #ced4da;
    box-shadow: none !important;
    outline: none !important;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
}

.was-validated .form-select:invalid,
.form-select.is-invalid {
    border-color: #fd5c70;
}

.select2-container--default .select2-selection {
    min-height: 38px !important;
}

.select2-container--default .select2-selection__rendered {
    line-height: 32px !important;
}

.select2-container--default .select2-selection {
    font-size: 14px !important;
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(94, 91, 91, 0.22);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.logo img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.loading {
    width: 50px;
    height: 50px;
    border: 5px solid #e5e5e5;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.select2-container .select2-selection--single {
    height: 38px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
    right: 8px;
}

.page-link.active,
.active>.page-link {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    border-color: #1e40af !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #ced4da !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    height: auto !important;
    padding: 2px 6px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search--inline {
    margin: 0 !important;
    padding: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    margin: 0 !important;
    height: 24px !important;
    line-height: 24px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
}

.purchaseOrderForm .po-summary {
    background: linear-gradient(135deg, #17491d, #3a8f42);
    color: #fff;
    border-radius: 12px;
    padding: 18px;
}

.purchaseOrderForm .erp-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.purchaseOrderForm .vendor-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #ececec;
}

.purchaseOrderForm .table-products th {
    font-size: .78rem;
    text-transform: uppercase;
    background: #f8f9fa;
    white-space: nowrap;
}

.purchaseOrderForm .table-products td {
    vertical-align: middle;
}

.purchaseOrderForm .badge-request {
    font-size: 12px;
}

.purchaseOrderForm .vendor-total {
    font-size: 22px;
    color: #198754;
    font-weight: 700;
}

.purchaseOrderForm .grand-total-card {
    background: #e8fff2;
    border-left: 4px solid #198754
}

.purchaseOrderForm .product-select {
    min-width: 250px;
}

.purchaseOrderForm .qty,
.purchaseOrderForm .price,
.purchaseOrderForm .discount,
.purchaseOrderForm .net-price,
.purchaseOrderForm .total {
    text-align: right;
}

.purchaseOrderForm .removeProduct {
    padding: .30rem .55rem;
}

/* .is-invalid~.invalid-feedback,
.is-invalid~.invalid-tooltip {
    display: none ! important;
} */

.form-control.is-valid {
    background-image: none !important;
}

.form-control.is-invalid {
    background-image: none !important;
}

.disabled {
    pointer-events: none;
    background-color: #f0f2f5 !important;
}