﻿:root {
    --awow-background: #1b2742 !important;
    --awow-background-light: #5E46F566 !important;
}

html {
    font-size: 85% !important;
    -webkit-text-size-adjust: 85% !important;
}

body {
    font-family: 'poppins', sans-serif;
    font-size: 1rem;
}

.layout-navbar-fixed .wrapper .content-wrapper {
    margin-top: calc(3.5rem + 0px);
}

.main-footer {
    height: 56px;
    font-size: 12px;
    padding: 20px;
}

.brand-link .brand-image {
    float: left;
    margin-left: 0;
    margin-top: 8px;
    max-height: 40px;
    width: auto;
}

.sidebar-collapse .brand-link .brand-image {
    float: none;
    margin-left: -0.25rem;
    margin-right: .5rem;
    margin-top: 5px;
    max-height: 2rem;
    width: auto;
}

.brand-text {
    color: #fff;
}

.sidebar-collapse .brand-link .brand-text {
    display: none;
}

.sidebar-collapse .main-sidebar:hover .brand-image {
    float: left;
    margin-left: 0;
    margin-top: 8px;
    max-height: 40px;
    width: auto;
}

.stripe-line {
    height: 5px;
    position: fixed;
    top: 0;
    z-index: 1050;
    width: 100%;
    background: linear-gradient(270deg, #FF5A9F 5.63%, #982AB0 30.12%, #3C3FC1 55.07%, #10E1DE 82.5%, #40ABFF 107.54%), #D9D9D9;
}

.nav-sidebar .menu-open > .nav-link i.right {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.nav-link {
    padding: 0.6rem 1rem;
}


.layout-navbar-fixed .wrapper .main-header {
    min-height: 55px;
}

.brand-link {
    padding: .7rem .5rem;
    min-height: 55px;
}

.layout-navbar-fixed .wrapper .sidebar-dark-primary .brand-link:not([class*=navbar]) {
    background-color: transparent !important;
}

.sidebar-mini .main-sidebar {
    transition: width .3s ease-in-out;
}

    .sidebar-mini .main-sidebar .sidebar {
        top: 20px;
        position: relative;
    }

    .sidebar-mini .main-sidebar:hover .brand-link {
        height: 70px !important;
    }


.sidebar-mini.sidebar-collapse .main-sidebar .sidebar {
    top: 0;
}

.sidebar-mini.sidebar-collapse .main-sidebar.sidebar-focused .sidebar, .sidebar-mini.sidebar-collapse .main-sidebar:hover .sidebar {
    top: 20px;
}

.sidebar {
    padding-left: .3rem;
}

/*------------------------------------- Role menu permission -------------------------------------------*/



.role-menu-permission-card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.role-menu-permission-header {
    border-radius: 0.5rem 0.5rem 0 0 !important;
    padding: 1rem 1.5rem;
}

.role-menu-permission-body {
    padding: 1.5rem;
}

.role-menu-permission-list {
    border-radius: 0.5rem;
}

.role-menu-permission-item {
    border-left: none;
    border-right: none;
    padding: 1rem 1.25rem;
}

    .role-menu-permission-item:first-child {
        border-top: none;
    }

    .role-menu-permission-item:last-child {
        border-bottom: none;
    }

.role-menu-permission-parent {
    min-height: 2.5rem;
    align-items: center !important;
}

.role-menu-permission-label {
    font-weight: 600;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
}

.role-menu-permission-icon {
    font-size: 1.1rem;
}

.role-menu-permission-children {
    border-left: 2px solid #dee2e6;
}

.role-menu-permission-child-item {
    min-height: 2.25rem;
}

.role-menu-permission-child-label {
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    color: #6c757d;
}

.role-menu-permission-child-icon {
    font-size: 0.9rem;
}

.role-menu-permission-actions {
    display: flex;
    gap: 0.75rem;
}

.role-menu-permission-save,
.role-menu-permission-back {
    min-width: 120px;
}

.role-menu-permission-item:hover {
    background-color: #f8f9fa;
    z-index: 1;
}

.role-menu-permission-parent-checkbox:hover,
.role-menu-permission-child-checkbox:hover {
    cursor: pointer;
}

.role-menu-permission-parent-checkbox {
    margin-top: -5px !important;
    margin-left: -10px !important;
}

.role-menu-permission-child-checkbox {
    margin-top: -5px !important;
    margin-left: -15px !important;
}

.select2-container {
    width: 100% !important;
    z-index: 1060;
}

.no-zindex-select2 .select2-container {
    z-index: auto !important;
}

div.dataTables_wrapper div.dataTables_paginate {
    margin-top: 1rem;
}

div.dataTables_wrapper div.dataTables_info {
    float: left;
}

div.dataTables_wrapper div.dataTables_filter {
    float: left;
    margin-bottom: .5rem;
}

    div.dataTables_wrapper div.dataTables_filter input {
        width: 20vmax;
    }

/* -------- css for modal height ---------- */

#partNumber-modal .modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}

#supplier-modal .modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}

#company-modal .modal-body {
    max-height: calc(100vh - 200px) !important;
    overflow-y: auto !important;
}

/* ---------------------------------------- */
/* ------------- Cursor pointer ------------------ */


.cursor-pointer {
    cursor: pointer;
}

    .cursor-pointer:hover {
        opacity: 0.8;
        transform: scale(1.1);
        transition: 0.2s ease;
    }

/*===================== Pre Loader css ==========================*/

/* Full-screen overlay */
#preLoader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loader animation (Three bounce style) */
.sk-three-bounce {
    width: 70px;
    text-align: center;
}

    .sk-three-bounce .sk-child {
        width: 18px;
        height: 18px;
        background-color: var( --theme-focus-shadow);
        border-radius: 100%;
        display: inline-block;
        animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    }

    .sk-three-bounce .sk-bounce1 {
        animation-delay: -0.32s;
    }

    .sk-three-bounce .sk-bounce2 {
        animation-delay: -0.16s;
    }

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

#preLoader {
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

    #preLoader.hidden {
        opacity: 0;
        pointer-events: none;
    }

#ajax-preLoader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    opacity: 1;
    transition: opacity 0.25s ease-out;
}

    #ajax-preLoader.hidden {
        opacity: 0;
        pointer-events: none;
    }

.model-popup-preLoader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1070;
    opacity: 1;
    transition: opacity 0.25s ease-out;
}

    .model-popup-preLoader.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Default (collapsed) → PLUS icon */
.collapse-toggle[aria-expanded="false"] i::before {
    content: "\f067"; /* FontAwesome plus */
}

/* Expanded → TIMES icon */
.collapse-toggle[aria-expanded="true"] i::before {
    content: "\f068"; /* FontAwesome times */
}
/*.nav-tabs .nav-item.show .nav-link:hover, .nav-tabs .nav-link.active {
    
    border-bottom: 2px !important;
    border-bottom-color: #3C3FC1 !important;
}*/

#customerOrderItem-sortableList li, #purchaseOrder-List li {
    background: #f9f9f9;
    border: 1px solid #e2e2e2;
    list-style-type: none;
    margin-bottom: 0.5rem;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    line-height: 18px;
}

.customer-row {
    background: #e9ecef;
    border: 1px solid #cfcfcf;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .customer-row:hover {
        background: #dee2e6;
        cursor: pointer;
    }

/* accordion body background */
.customer_accordion {
    background: #fff;
    border: 1px solid #cfcfcf;
    padding: 15px;
}

/* white card inside accordion */
.customer-orders-wrapper {
    background: #fff;
}

/* remove heavy table borders */
.table-customerOrder {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

    /* header style */
    .table-customerOrder thead th {
        border-top: none;
        border-bottom: 1px solid #e5e5e5;
        font-size: 13px;
    }

    /* rows */
    .table-customerOrder tbody td {
        border-top: 1px solid #f0f0f0;
        vertical-align: middle;
    }

.table thead th, table thead td {
    background-color: var(--awow-background);
    color: #fff;
}

.is-invalid .select2-container--default .select2-selection--single {
    border-color: #dc3545 !important;
}

a.fc-event {
    cursor: pointer;
}

.show-pass {
    cursor: pointer;
}

    .show-pass .fa-eye {
        display: none;
    }

    .show-pass.active .fa-eye-slash {
        display: none;
    }

    .show-pass.active .fa-eye {
        display: inline-block;
    }

.invalid-field {
    font-size: 80% !important;
    color: #dc3545 !important;
}


/* 🔥 Toggle style checkbox */
.toggle-switch {
    position: relative;
    width: 45px;
    height: 24px;
}

    .toggle-switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: 0.3s;
    }

.toggle-switch input:checked + .slider {
    background-color: #5e46f5;
}

    .toggle-switch input:checked + .slider:before {
        transform: translateX(21px);
    }

.toggle-label {
    margin-left: 10px;
    font-weight: 500;
}

.custom-thead th {
    background: #bac0cf !important;
    color: #000 !important;
    font-weight: 500;
}
/* Header */
.order-grid-header, .purchase-order-grid-header {
    background: #f4f6f9;
    border-bottom: 2px solid #dee2e6;
}

.header-row {
    font-weight: 600;
    color: #6c757d;
}

/* Grid */
.customer-order-item .row-grid,
.order-grid-header .row-grid {
    display: grid;
    grid-template-columns: 50px /* index */
    1fr /* part */
    100px /* price */
    70px /* qty */
    110px /* discount */
    120px /* total */
    120px; /* actions */
    /*align-items: center;*/
    gap: 0px;
}

/* Rows */
.customer-order-item, .purchase-order-item {
    border-bottom: 1px solid #eee;
}

    /* Hover */
.customer-order-item:hover, .purchase-order-item:hover {
        background: #fafafa;
    }

/* Notes */
.text-truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Actions */
.action-icon {
    cursor: pointer;
    margin-left: 12px;
    font-size: 14px;
    transition: 0.2s;
}

    .action-icon:hover {
        transform: scale(1.15);
    }

.purchase-order-item .row-grid,
.purchase-order-grid-header .row-grid {
    display: grid;
    grid-template-columns: 50px /* index */
    1fr /* part */
    120px /* qty */
    200px /* due date */
    200px /* planned date */
    120px; /* actions */
    /*align-items: center;*/
    gap: 12px;
}

.disabled {
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}
