/********** Template CSS **********/
:root {
    --primary: #0050a0;
    --light: #F3F6F9;
    --dark: #191C24;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--light);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-area {
    flex-grow: 1;
}

.site-footer {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--dark);
    font-weight: 500;
    border-left: 3px solid var(--light);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: #FFFFFF;
    border-color: var(--primary);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--light);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--dark);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 40px;
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--primary);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--primary);
}

/* 23/4/25 SAYALI */

/* SALES CSS START */
.form-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

@media (max-width: 576px) {
    td .btn-sm {
        width: 100%;
    }
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #003d80) !important;
}

.btn-info:hover {
    background-color: #138496 !important;
}

.btn-warning:hover {
    background-color: #e0a800 !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
}

/* SALES CSS END */

/* INVOICE CSS START */
@media (max-width: 576px) {
    .btn-sm {
        width: 100%;
    }
}

.card {
    border-radius: 10px;
}

.card-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@media (max-width: 767px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-header h1 {
        font-size: 1.5rem;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem;
        padding: 0.75rem;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
        vertical-align: middle;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #495057;
    }
}

/* INVOICE CSS END */

/* CUSTOMERS INDEX CSS START */
body {
    background-color: #f8f9fa;
}

.card {
    border-radius: 10px;
    transition: transform 0.2s;
}

.card-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* CUSTOMERS INDEX CSS END */

/* CUSTOMERS CREATE CSS START */
.form-label {
    font-weight: 500;
    color: #343a40;
}

.form-control {
    border-radius: 5px;
}

.text-danger {
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

@media (max-width: 767px) {
    .card {
        margin: 0 10px;
    }

    h1 {
        font-size: 1.8rem;
    }
}

/* CUSTOMERS CREATE CSS END */

/* CUSTOMERS EDIT CSS START */
.btn-outline-secondary {
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #fff;
}

/* CUSTOMERS EDIT CSS END */

/* CUSTOMERS SHOW CSS START */
strong {
    color: #343a40;
}

/* CUSTOMERS SHOW CSS END */

/* INVOICES PDF BLADE START */
.invoice-details-table td {
    font-size: 11px;
}

/* INVOICES PDF BLADE END */

/* ACTIVE NAV-ITEMS CSS START */
body.act-dash a.act-dash,
body.act-product a.act-product,
body.act-customers a.act-customers,
body.act-sales a.act-sales,
body.act-charts a.act-charts,
body.act-invoice a.act-invoice,
body.act-parties a.act-parties,
body.act-payments a.act-payments,
body.act-receiptnotes a.act-receiptnotes,
body.act-purchaseentries a.act-purchaseentries,
body.act-po a.act-po,
body.act-staff a.act-staff {
    background: var(--light) !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
}

/* ACTIVE NAV-ITEMS CSS END */