/* remove increment and decrement btn from input number */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.dt-length select {
    margin-right: 5px !important;
}

.d-flex-item-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.form-label {
    font-size: 12px !important;
}

.badge-orange {
    background-color: #f6721a !important;
    color: #ffffff !important;
}

.text-xs {
    font-size: 12px !important;
}

.btn-fit {
    width: 4.5rem !important;
    height: fit-content !important;
}

.w-max-content {
    width: max-content;
}

.font-semibold {
    font-weight: 600;
}

.form-control-red {
    border-color: #cb1100;
    box-shadow: 0 0 0 0.25rem rgb(234 11 11 / 45%) !important;
}

.text-blue {
    color: rgb(45, 45, 160)44;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.optional::after {
    content: " (optional)";
    color: #999;
    font-weight: normal;
}

.print {
    color: #ffffff !important;
}

.tk::after {
    content: "৳";
    color: #000;
    font-weight: normal;
}

.underline-none {
    text-decoration: none;
}

.underline {
    height: 3px;
    width: fit-content;
    background: #969696;
}

.font-semibold {
    font-weight: 600;
}


.register-msg-box {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: auto;
    padding: 10px 0;
}

.cursor-pointer {
    cursor: pointer;
}


.text-cyan {
    color: cyan;
}



.form-select {
    display: inline-block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .075);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


.relative {
    position: relative;
}


table.dataTable tbody tr.selected {
    background-color: #d3e2ff !important;
    /* Light blue */
    color: #000;
    /* Optional: Change text color */
}

.absolute {
    position: absolute;
}

.dataTables_length .custom-select {
    width: 4rem !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {

    margin-top: -8px !important;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    position: relative !important;
    width: fit-content;
}

.nav-tabs .nav-link.active::before,
.nav-tabs .nav-item.show .nav-link::before {
    content: '';
    background-color: var(--setColor) !important;
    height: 4px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-container {
    width: 50% !important;
}

.h-fit {
    height: fit-content !important;
}

.underline-none {
    text-decoration: none;
}


.register-box {
    width: auto !important;
    padding: 0 10px;
}


.reset-password-box {
    width: auto !important;
    padding: 0 10px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex {
    display: flex;
}

.h-30px {
    height: 30px;
}

.btn-cyan {
    background-color: #2c9795 !important;
    color: #ffffff !important;
}

.btn-cyan:hover {
    background-color: #1e7a79 !important;
    color: #ffffff !important;
}

.btn-brown {
    background-color: #85221d !important;
    color: #ffffff !important;
}

.btn-brown:hover {
    background-color: #6c130e !important;
    color: #ffffff !important;
}

.w-fill {
    width: -webkit-fill-available !important;
}


.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.btn-add {
    background-color: #1d7985 !important;
    color: #ffffff !important;
    width: auto;
}

.btn-assign-stock {
    background-color: #2d1d85 !important;
    color: #ffffff !important;
    width: auto !important;
}

.btn-remove {
    background-color: #ce1800 !important;
    color: #ffffff !important;
    width: auto;
}

.btn-remove:hover {
    background-color: #841709 !important;
}

.w-inherit {
    width: inherit !important;
}

.w-20 {
    width: 20% !important;
}

.w-3 {
    width: 1.5rem !important;
}

.w-8rem {
    width: 8rem !important;
}

.w-10rem {
    width: 10rem !important;
}

.text-semibold {
    font-weight: 700 !important;
}

.font-base {
    font-size: 14px !important;
}

.text-base {
    font-size: 14px !important;
}

.text-green {
    color: #00572f;
}

.grand-total {
    display: flex;
    margin-top: 12px;
    width: -webkit-fill-available;
    justify-content: end;
}

.w-80 {
    width: 80% !important;
}

.btn-add:hover {
    background-color: #0c606b !important;
    color: #ffffff !important;
}

.btn-navy {
    background-color: #0b3f72 !important;
    color: #ffffff !important;
    width: auto;
}

.btn-navy:hover {
    background-color: #001121 !important;
    color: #ffffff !important;
}


.add-new-sub-btn-bg-success {
    --bs-bg-opacity: 1;
    background-color: #198754 !important;
    color: white !important;
}

.addNewSubCategoryBtn:hover~.add-new-sub-btn-bg-success:hover {
    background-color: #00572f !important;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.timeline>div>.timeline-item-add-new {
    border-radius: .25rem;
    color: #495057;
    margin-left: 60px;
    margin-right: 15px;
    margin-top: 0;
    padding: 0;
    position: relative;
}

.timeline>div>.timeline-item-add-new h3 {
    font-size: 18px !important;
    padding: 10px;
    border-radius: 5px;
}

.h-2 {
    height: 2rem !important;
}

.w-2 {
    width: 2rem !important;
}

.timeline>div>.timeline-item-add-new>div {
    background: #000;
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: .25rem;
    background-color: #fff;
    color: #495057;
    padding: 5px 10px;
}


.btn-teal {
    background-color: #14AB9B !important;
    color: #ffffff !important;
}

.btn-purple {
    background-color: #8E56E0 !important;
    color: #ffffff !important;
}


.d-flex-centerd {
    display: flex;
    justify-content: center;
    align-items: center;
}


.add-new-sub-btn-bg-success:hover {
    background-color: #00572f !important;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.add_new_product_details_btn_container {
    display: flex;
}

.add_new_product_details_btn_container button {
    margin: 0 10px 10px 0;
}

.add_new_product_details_btn_container a {
    margin-bottom: 15px;
}

.form-select-red {
    box-shadow: 0 0 0 0.25rem rgba(245, 22, 22, 0.25);
}

.form-select-green {
    box-shadow: 0 0 0 0.25rem rgba(18, 127, 8, 0.25);
}




.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.company-logo,
.image-preview {
    height: 150px;
    width: auto !important;
}


.colored-toast.swal2-icon-success {
    background-color: #2baf81 !important;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

.colored-toast.swal2-icon-warning {
    background-color: #f8bb86 !important;
}

.colored-toast.swal2-icon-info {
    background-color: #3fc3ee !important;
}

.colored-toast.swal2-icon-question {
    background-color: #87adbd !important;
}

.colored-toast .swal2-title {
    color: white;
}

.colored-toast .swal2-close {
    color: white;
}

.colored-toast .swal2-html-container {
    color: white;
}

button {
    color: #ffffff !important;
}

.logo-upload-btn {
    border: 1px solid rgb(222, 226, 230) !important;
    font-weight: 400 !important;
    color: #7f7f7f !important;
}

.text-white {
    color: #ffffff;
}



/* tour and tips */
.tips_skips_container .modal-header {
    background: #031931;
    height: 15px;
}

.tips_skips_container .title {
    color: #ffffff !important;
    display: flex;
    margin: 6px 0 0 0;
    align-items: center !important;
    justify-content: center;
    width: -webkit-fill-available;
    position: relative;
}

.tips_skips_container .title button {
    margin-bottom: 6px;
    position: absolute !important;
    right: 6px;
    top: -2px !important;
}

.tips_skips_container .modal-body {
    background: #A5C6D8;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.tips_skips_container .modal-body img {
    height: 60px !important;
    width: 60px !important;
}

.tips_skips_container .modal-body .welcome_inventory {
    font-weight: bold !important;
    text-shadow: #001121 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.tips_skips_container .modal-body p {
    padding: 10px 0;
    font-size: 16px;
    text-shadow: #9f9f9f !important;
    text-align: justify !important;
}

.tips_skips_container .modal-body b {
    font-weight: bold !important;
}

.btn-no-thanks {
    background: transparent !important;
    color: #174a63 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.tips_skips_container .modal-body .btn-container {
    display: flex !important;
    flex-direction: column;
    color: #3BB5A0 !important;
}

.btn-guided-tour {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    /* Text color */
    background-color: #031931;
    /* Button background color */
    border: none;
    border-radius: 5px;
    /* Rounded corners */
    text-decoration: none;
    /* Remove underline from link */
    transition: background-color 0.3s, transform 0.3s;
    /* Smooth transition */
}

.btn-no-thanks:hover {
    transform: scale(1.05);
    /* Slightly enlarge the button */
    text-decoration: underline;
    ;
}

.sub_category_section {
    height: 15rem;
    overflow-y: scroll;
    overflow-x: hidden;

    /* Optional for better look */
    background-color: #f8f9fa;
    padding-right: 0.5rem;
    /* avoid content cutoff under scrollbar */
}

/* Custom scrollbar for Webkit browsers */
.sub_category_section::-webkit-scrollbar {
    width: 8px;
}

.sub_category_section::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.sub_category_section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #003c78, #001F3F);
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.sub_category_section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #003c78, #001F3F);
}

.btn-guided-tour:hover {
    background-color: #003c78;
    transform: scale(1.05);
}

.btn-no-thanks:active,
.btn-guided-tour:active {
    transform: scale(0.95);
    /* Slightly shrink the button when active */
}





:root {
    --tooltip-bg-color: #06BED7;
    --tooltip-text-color: #000000;
    --tooltip-btn-border-color: #000000;
    --tooltip-btn-bg-color: #000000;
    --tooltip-btn-text-color: #000000;
    --tooltip-btn-hover-text-color: #ffffff;
}

.tour-tips {
    position: absolute;
    top: var(--top);
    left: var(--left);
    z-index: 99999999;
    transition: all 0.5s ease-in-out;
}

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.hand {
    height: 50px;
    width: 50px;
    animation: animatePopAndDown 1s infinite;
}





.purchase_payment_supplier_based_card.active,
.purchase_payment_invoice_based_card.active {
    position: absolute;
    border: 3px red solid;
    height: 100%;
    width: 100%;
    animation: heightHanlde 2s linear 1;
}

.tooltip-content {
    position: absolute;
    bottom: -2.5rem;
    text-align: center;
    margin-left: 2rem;
    height: fit-content;
    width: fit-content;
    background: #000;
    padding: 2px 10px;
    border-radius: 10px;
    color: #fff;
}

.tooltip-content i {
    position: relative;
    top: -12px;
    font-size: 20px;
    color: black !important;

}

.typing-text {
    font-family: 'Courier', monospace;
    /* Monospace font for typewriter effect */
    white-space: nowrap;
    /* Prevents the text from wrapping */
    overflow: hidden;
    /* Ensures content is clipped when it overflows */
    border-right: 2px solid;
    /* Creates the cursor effect */
    width: 100%;
    /* Start with no width */
    animation: typing 4s steps(50, end), blink 0.75s step-end infinite;
}

/* Typing effect */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Blinking cursor effect */
@keyframes blink {
    50% {
        border-color: transparent;
    }
}



@keyframes heightHanlde {
    0% {
        height: 0%;
        width: 0%;
    }

    100% {
        height: 100%;
        width: 100%;
    }
}

@keyframes animatePopAndDown {
    0% {
        transform: scale(1.5);
        /* Start slightly smaller */
    }

    100% {
        transform: scale(1);
        /* Normal size */
    }
}


.tour-tips-box {
    border-radius: 10px;
    left: 5rem;
    position: relative;
    top: -2.5rem;
}

.tour-tips-box .content {
    background: var(--tooltip-bg-color);
    color: var(--tooltip-text-color);
    padding: 10px;
    border-radius: 10px;
}





.tour-tips-box-text::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--tooltip-bg-color);
    margin-left: 15px;
    font-size: 30px;
    position: relative;
    top: -23px;
}

.btn-next,
.btn-skip {
    padding: 0 10px;
    border: 1px solid var(--tooltip-btn-border-color);
    border-radius: 10%;
    font-size: 12px;
    margin: 0 5px;
    color: var(--tooltip-btn-text-color);
}

.btn-next:hover,
.btn-skip:hover {
    background: var(--tooltip-btn-bg-color);
    color: var(--tooltip-btn-hover-text-color);
}


.icon-btn {
    display: inline-block;
    color: #212529;
    background-color: #E9ECEF;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}


.addNewModalBtn {
    margin-top: 30px;
}

.addNewModalBtn i {
    color: #198754;
}

.addNewModalBtn:hover i {
    color: #ffffff;
}


/* media tag devices:start */
/*  320px — 480px: Mobile devices */
@media screen and (min-width: 320px) and (max-width: 480px) {
    .profile-container {
        width: 100% !important;
    }


    .addNewModalBtn {
        margin-top: 2px;
    }
}

/* 481px — 768px: iPads, Tablets */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .profile-container {
        width: 100% !important;
    }

    .addNewModalBtn {
        margin-top: 2px;
    }
}


@media only screen and (min-width:590px) {
    .register-box {
        width: 690px !important;
        padding: 0;
    }

    .reset-password-box {
        width: 690px !important;
        padding: 0 10px;
    }

    .profile-container {
        width: 100% !important;
    }

}


@media only screen and (min-width:767px) {
    .add_new_product_details_btn_container {
        display: inline-block;
        margin-top: 18px;
    }

    .add_new_product_details_btn_container button {
        margin: 10px auto auto auto;
    }

    .profile-container {
        width: 100% !important;
    }

}

/* 768px iPads, Tablets */
@media only screen and (min-width: 768px) {
    .profile-container {
        width: 100% !important;
    }
}

/* 769px — 1024px: Small screens, laptops */
@media screen and (min-width: 769px) and (max-width: 991px) {
    .addNewModalBtn {
        margin-top: 2px;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .profile-container {
        width: 100% !important;
    }

}

/* 1025px — 1200px: Desktops, large screens */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
    .profile-container {
        width: 90% !important;
    }
}

/* 1201px and more —  Extra large screens, TV */
@media screen and (min-width: 1201px) {
    .product_customization_note_amount {
        display: flex;
        justify-content: space-between;
        width: 100%
    }

    .product_customization_note {
        width: 100%;
        margin-right: 2rem;
    }

    .profile-container {
        width: 50% !important;
    }
}

/* media tag devices:end */

/* ==========================================================================
   MODERN UNIFIED DATATABLE & TABLE DESIGN SYSTEM (ALL TABLES)
   ========================================================================== */

/* 1. Card & Table Container Polish */
.card:has(.dataTable),
.card:has(table.table),
.card:has(.table-responsive) {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
    background: #ffffff !important;
    margin-bottom: 24px !important;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:has(.dataTable):hover,
.card:has(table.table):hover,
.card:has(.table-responsive):hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07) !important;
}

.card-header:has(+ .card-body .table),
.card-header:has(+ .card-body .dataTable),
.card-header:has(+ .card-body .table-responsive),
.card-header:has(+ .table-responsive) {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
}

.card-header .card-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 2. Responsive Wrapper & Smooth Scrollbar */
.table-responsive {
    border-radius: 8px !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.table-responsive::-webkit-scrollbar {
    height: 7px;
    width: 7px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 3. Modern Table Core */
table.dataTable,
.table:not(.invoice-table):not(.no-custom-style) {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    margin-top: 10px !important;
    margin-bottom: 16px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
}

/* 4. Table Header (thead th) */
table.dataTable thead th,
.table:not(.invoice-table):not(.no-custom-style) thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #1e293b !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 13px 14px !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-bottom: 2px dotted #94a3b8 !important;
    border-left: 1px dotted #cbd5e1 !important;
    border-right: 1px dotted #cbd5e1 !important;
    white-space: nowrap !important;
}

/* First & Last TH corner rounding */
table.dataTable thead tr:first-child th:first-child,
.table:not(.invoice-table):not(.no-custom-style) thead tr:first-child th:first-child {
    border-top-left-radius: 9px !important;
    border-left: none !important;
}

table.dataTable thead tr:first-child th:last-child,
.table:not(.invoice-table):not(.no-custom-style) thead tr:first-child th:last-child {
    border-top-right-radius: 9px !important;
    border-right: none !important;
}

/* 5. Table Body Rows & Cells (tbody td) */
table.dataTable tbody tr,
.table:not(.invoice-table):not(.no-custom-style) tbody tr {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #ffffff;
}

table.dataTable tbody tr:nth-of-type(even),
.table-striped tbody tr:nth-of-type(even) {
    background-color: #fbfcfe !important;
}

table.dataTable tbody tr:hover,
.table-hover tbody tr:hover {
    background-color: #f1f5f9 !important;
}

table.dataTable tbody tr:hover td,
.table-hover tbody tr:hover td {
    border-bottom: 1.5px dotted #64748b !important;
}

table.dataTable tbody td,
.table:not(.invoice-table):not(.no-custom-style) tbody td {
    padding: 11px 14px !important;
    vertical-align: middle !important;
    border-top: none !important;
    border-bottom: 1.5px dotted #cbd5e1 !important;
    border-left: 1px dotted #e2e8f0 !important;
    border-right: 1px dotted #e2e8f0 !important;
    color: #334155 !important;
    font-size: 13.5px !important;
}

table.dataTable tbody tr:last-child td,
.table:not(.invoice-table):not(.no-custom-style) tbody tr:last-child td {
    border-bottom: 2px dotted #94a3b8 !important;
}

table.dataTable tbody td:first-child,
.table:not(.invoice-table):not(.no-custom-style) tbody td:first-child {
    border-left: none !important;
}

table.dataTable tbody td:last-child,
.table:not(.invoice-table):not(.no-custom-style) tbody td:last-child {
    border-right: none !important;
}

/* 6. Table Footer (tfoot th, td) */
table.dataTable tfoot th,
table.dataTable tfoot td,
.table:not(.invoice-table):not(.no-custom-style) tfoot th,
.table:not(.invoice-table):not(.no-custom-style) tfoot td {
    background: #f8fafc !important;
    color: #1e293b !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 12px 14px !important;
    border-top: 2px dotted #475569 !important;
    border-bottom: 2px dotted #475569 !important;
    border-left: 1px dotted #cbd5e1 !important;
    border-right: 1px dotted #cbd5e1 !important;
}

table.dataTable tfoot th:first-child,
table.dataTable tfoot td:first-child,
.table:not(.invoice-table):not(.no-custom-style) tfoot th:first-child,
.table:not(.invoice-table):not(.no-custom-style) tfoot td:first-child {
    border-left: none !important;
    border-bottom-left-radius: 9px !important;
}

table.dataTable tfoot th:last-child,
table.dataTable tfoot td:last-child,
.table:not(.invoice-table):not(.no-custom-style) tfoot th:last-child,
.table:not(.invoice-table):not(.no-custom-style) tfoot td:last-child {
    border-right: none !important;
    border-bottom-right-radius: 9px !important;
}

/* 7. DataTables Controls (Filter, Length, Paginate, Info) */
.dataTables_wrapper {
    padding: 8px 0 !important;
    font-family: inherit !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 12px !important;
}

.dataTables_wrapper .dataTables_length {
    float: left;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Search Input */
.dataTables_wrapper .dataTables_filter input {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    margin-left: 6px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    outline: none !important;
    width: 220px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3b82f6 !important;
    width: 260px !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Page Length Dropdown */
.dataTables_wrapper .dataTables_length select,
.dataTables_length .custom-select {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background-color: #ffffff !important;
    width: auto !important;
    min-width: 4.5rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_length .custom-select:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Bottom Bar: Info & Pagination */
.dataTables_wrapper .dataTables_info {
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding-top: 14px !important;
    float: left;
}

.dataTables_wrapper .dataTables_paginate {
    float: right;
    padding-top: 10px !important;
}

/* Pagination buttons (DataTables default + Bootstrap 4) */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    margin: 0 2px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #1b2a4a 0%, #293e6c 100%) !important;
    color: #ffffff !important;
    border-color: #1b2a4a !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(27, 42, 74, 0.22) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
    background: #f8fafc !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 8. Export Buttons (Excel, Copy, CSV, etc.) */
.dt-buttons .dt-button,
button.dt-button {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2) !important;
    transition: all 0.2s ease !important;
    margin-right: 6px !important;
    margin-bottom: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dt-buttons .dt-button:hover,
button.dt-button:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3) !important;
    transform: translateY(-1px);
}

/* 9. Badges inside Table */
.table .badge {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.3 !important;
}

.table .badge-success, .table .bg-success {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.table .badge-danger, .table .bg-danger {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.table .badge-warning, .table .bg-warning {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}

.table .badge-info, .table .bg-info {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.table .badge-secondary, .table .bg-secondary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.table .badge-primary, .table .bg-primary {
    background-color: #e0e7ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
}

/* 10. Action Buttons inside Table Cells */
.table .btn-group {
    gap: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.table .btn-group .btn {
    border-radius: 6px !important;
    margin: 0 !important;
}

.table .btn-sm {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1.4 !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.table .btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.table .btn-fit {
    width: auto !important;
    min-width: 68px !important;
    padding: 4px 10px !important;
}

/* 11. Modal Tables Styling */
.modal-content .table {
    border: 1.5px dotted #cbd5e1 !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
}

.modal-content .table thead th {
    background: #f8fafc !important;
    font-size: 12px !important;
    padding: 10px 12px !important;
    border-bottom: 2px dotted #94a3b8 !important;
    border-right: 1px dotted #cbd5e1 !important;
}

.modal-content .table tbody td {
    padding: 10px 12px !important;
    font-size: 13px !important;
    border-bottom: 1.5px dotted #cbd5e1 !important;
    border-right: 1px dotted #e2e8f0 !important;
}

.modal-content .table tfoot td,
.modal-content .table tfoot th {
    background: #f8fafc !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
    border-top: 2px dotted #64748b !important;
    border-bottom: 2px dotted #64748b !important;
    border-right: 1px dotted #cbd5e1 !important;
}

/* 12. Processing Indicator & Empty state */
div.dataTables_processing {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    color: #1b2a4a !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 14px 24px !important;
    z-index: 9999 !important;
}

.dataTables_empty {
    text-align: center !important;
    padding: 35px 20px !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}


/* ==========================================================================
   13. Modern Dashboard Styling
   ========================================================================== */
:root {
    --dash-primary: #4f46e5;
    --dash-primary-light: #eef2ff;
    --dash-success: #10b981;
    --dash-success-light: #ecfdf5;
    --dash-warning: #f59e0b;
    --dash-warning-light: #fffbeb;
    --dash-danger: #ef4444;
    --dash-danger-light: #fef2f2;
    --dash-info: #06b6d4;
    --dash-info-light: #ecfeff;
    --dash-purple: #8b5cf6;
    --dash-purple-light: #f5f3ff;
    --dash-card-bg: #ffffff;
    --dash-border: #e2e8f0;
    --dash-text-dark: #0f172a;
    --dash-text-muted: #64748b;
}

.dashboard-wrapper {
    padding: 1.25rem 0.75rem 2.5rem;
}

/* Gap helpers for Bootstrap 4 */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Hero Banner */
.dash-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-radius: 18px !important;
    padding: 1.75rem 2rem !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25) !important;
    margin-bottom: 1.75rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.35) 0%, rgba(79, 70, 229, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dash-hero::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.dash-hero-title {
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem !important;
    color: #ffffff !important;
}

.dash-hero-sub {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}

.dash-date-badge {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.dash-btn-glow {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.dash-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.55) !important;
    color: #ffffff !important;
}

.dash-btn-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e2e8f0 !important;
    padding: 0.6rem 1.15rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.dash-btn-glass:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Section Headings */
.dash-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
}

.dash-section-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--dash-text-dark) !important;
    letter-spacing: -0.01em;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-section-badge {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 9999px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Metric Cards */
.dash-metric-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.25rem 1.35rem !important;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 145px;
    margin-bottom: 1rem;
}

.dash-metric-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.04) !important;
    border-color: #cbd5e1 !important;
}

.dash-metric-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 0.75rem !important;
}

.dash-metric-label {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
    margin: 0 !important;
}

.dash-icon-box {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1.15rem !important;
    transition: transform 0.25s ease !important;
    flex-shrink: 0 !important;
}

.dash-metric-card:hover .dash-icon-box {
    transform: scale(1.1) !important;
}

.dash-metric-value {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.02em;
    margin-bottom: 0.3rem !important;
    line-height: 1.2 !important;
}

.dash-metric-meta {
    font-size: 0.78rem !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem;
    margin: 0 !important;
}

/* Color Accents */
.dash-emerald .dash-icon-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}
.dash-emerald .dash-metric-value { color: #047857 !important; }

.dash-blue .dash-icon-box {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
}
.dash-blue .dash-metric-value { color: #1d4ed8 !important; }

.dash-purple .dash-icon-box {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3) !important;
}
.dash-purple .dash-metric-value { color: #6d28d9 !important; }

.dash-rose .dash-icon-box {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}
.dash-rose .dash-metric-value { color: #b91c1c !important; }

.dash-amber .dash-icon-box {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3) !important;
}
.dash-amber .dash-metric-value { color: #b45309 !important; }

.dash-indigo .dash-icon-box {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3) !important;
}
.dash-indigo .dash-metric-value { color: #4338ca !important; }

.dash-teal .dash-icon-box {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3) !important;
}
.dash-teal .dash-metric-value { color: #0f766e !important; }

/* Quick Action Cards */
.dash-action-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 1.35rem 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 1rem;
}

.dash-action-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05) !important;
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
}

.dash-action-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.85rem !important;
    transition: transform 0.3s ease !important;
}

.dash-action-card:hover .dash-action-icon {
    transform: scale(1.15) rotate(2deg) !important;
}

.dash-action-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 0.25rem !important;
}

.dash-action-desc {
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.dash-action-arrow {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.75rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.dash-action-card:hover .dash-action-arrow {
    color: #4f46e5 !important;
    transform: translate(2px, -2px);
}

/* Card panels */
.dash-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 1.5rem !important;
    overflow: hidden;
}

.dash-card-header {
    padding: 1.15rem 1.4rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

.dash-card-title {
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
}

.dash-card-body {
    padding: 1.4rem !important;
}

/* Directory / Counter Cards */
.dash-stat-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.85rem !important;
}

@media (max-width: 576px) {
    .dash-stat-row {
        grid-template-columns: 1fr !important;
    }
}

.dash-counter-tile {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.dash-counter-tile:hover {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 14px -3px rgba(15, 23, 42, 0.08) !important;
}

.dash-counter-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
}

.dash-counter-val {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.dash-counter-name {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 !important;
}

/* Recent Invoices Table (Dotted Theme Consistency) */
.dash-table {
    width: 100% !important;
    margin-bottom: 0 !important;
    border: 1.5px dotted #cbd5e1 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.dash-table thead th {
    background: #f8fafc !important;
    color: #1e293b !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px !important;
    border-bottom: 2px dotted #94a3b8 !important;
    border-right: 1px dotted #e2e8f0 !important;
}

.dash-table tbody td {
    padding: 10px 14px !important;
    font-size: 0.84rem !important;
    color: #334155 !important;
    vertical-align: middle !important;
    border-bottom: 1.5px dotted #cbd5e1 !important;
    border-right: 1px dotted #e2e8f0 !important;
}

.dash-table tbody tr:hover {
    background-color: #f8fafc !important;
}

.dash-table tbody tr:last-child td {
    border-bottom: none !important;
}


/* ==========================================================================
   14. Modern Sidebar Design & Styling
   ========================================================================== */

/* Main Sidebar Container */
.main-sidebar {
    background: linear-gradient(180deg, #0b1329 0%, #0f172a 60%, #111c38 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: 4px 0 24px -2px rgba(0, 0, 0, 0.25) !important;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Brand Link / Header */
.main-sidebar .brand-link {
    background: rgba(11, 19, 41, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0.95rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
}

.main-sidebar .brand-link .brand-image {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    object-fit: cover !important;
    margin-right: 0.75rem !important;
    margin-left: 0.25rem !important;
    background: #ffffff;
}

.main-sidebar .brand-link .brand-text {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* User Profile Panel */
.main-sidebar .user-panel {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    margin: 0.85rem 0.65rem 1rem !important;
    padding: 0.65rem 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
}

.main-sidebar .user-panel:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    transform: translateY(-1px);
}

.main-sidebar .user-panel .image {
    position: relative !important;
    padding-left: 0 !important;
}

.main-sidebar .user-panel .image img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(99, 102, 241, 0.4) !important;
    object-fit: cover !important;
}

.main-sidebar .user-panel .image::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.main-sidebar .user-panel .info {
    padding-left: 0.7rem !important;
    overflow: hidden;
}

.main-sidebar .user-panel .info a {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    line-height: 1.2 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.main-sidebar .user-panel .info .user-role {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-top: 2px !important;
    display: block !important;
}

/* Sidebar Search Box */
.main-sidebar .form-inline {
    padding: 0 0.65rem !important;
    margin-bottom: 0.85rem !important;
}

.main-sidebar .form-control-sidebar {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px 0 0 10px !important;
    color: #f1f5f9 !important;
    font-size: 0.85rem !important;
    padding: 0.45rem 0.75rem !important;
    transition: all 0.25s ease !important;
}

.main-sidebar .form-control-sidebar:focus {
    background: rgba(255, 255, 255, 0.09) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
    color: #ffffff !important;
}

.main-sidebar .form-control-sidebar::placeholder {
    color: #64748b !important;
}

.main-sidebar .btn-sidebar {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0 !important;
    color: #94a3b8 !important;
    padding: 0.45rem 0.75rem !important;
}

.main-sidebar .btn-sidebar:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Menu Section Divider / Header */
.main-sidebar .nav-header {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 0.95rem 1rem 0.35rem !important;
}

/* Navigation List & Items */
.main-sidebar .nav-sidebar {
    padding: 0 0.5rem 2rem !important;
}

.main-sidebar .nav-sidebar > .nav-item {
    margin-bottom: 0.25rem !important;
}

.main-sidebar .nav-sidebar .nav-link {
    border-radius: 10px !important;
    padding: 0.55rem 0.85rem !important;
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
}

.main-sidebar .nav-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

.main-sidebar .nav-sidebar .nav-link p {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    font-size: 0.88rem !important;
}

.main-sidebar .nav-sidebar .nav-link .nav-icon {
    font-size: 1rem !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 0.75rem !important;
    margin-left: 0.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s ease !important;
}

.main-sidebar .nav-sidebar .nav-link:hover .nav-icon {
    transform: scale(1.15) !important;
}

/* Active State on Parent Links */
.main-sidebar .nav-sidebar > .nav-item > .nav-link.active,
.main-sidebar .nav-sidebar > .nav-item.menu-open > .nav-link {
    background: rgba(79, 70, 229, 0.18) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: 3px solid #6366f1 !important;
    border-radius: 4px 10px 10px 4px !important;
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link.active .nav-icon,
.main-sidebar .nav-sidebar > .nav-item.menu-open > .nav-link .nav-icon {
    filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.6)) !important;
}

/* Angle Arrow in Treeview */
.main-sidebar .nav-sidebar .nav-link p .right {
    font-size: 0.75rem !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: #64748b !important;
    margin-left: auto !important;
}

.main-sidebar .nav-sidebar .menu-open > .nav-link p .right,
.main-sidebar .nav-sidebar .menu-is-opening > .nav-link p .right {
    transform: rotate(-90deg) !important;
    color: #a5b4fc !important;
}

/* Treeview Submenu */
.main-sidebar .nav-treeview {
    background: rgba(0, 0, 0, 0.18) !important;
    border-radius: 10px !important;
    margin: 0.25rem 0 0.4rem 0.5rem !important;
    padding: 0.35rem 0.35rem 0.35rem 0.65rem !important;
    border-left: 2px solid rgba(255, 255, 255, 0.08) !important;
}

.main-sidebar .nav-treeview .nav-item {
    margin-bottom: 0.2rem !important;
}

.main-sidebar .nav-treeview .nav-link {
    font-size: 0.82rem !important;
    padding: 0.45rem 0.75rem !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
    border-left: none !important;
}

.main-sidebar .nav-treeview .nav-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

/* Submenu active item */
.main-sidebar .nav-treeview .nav-link.active {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35) !important;
    transform: none !important;
}

.main-sidebar .nav-treeview .nav-link .nav-icon {
    font-size: 0.45rem !important;
    width: 14px !important;
    margin-right: 0.55rem !important;
    color: #64748b !important;
}

.main-sidebar .nav-treeview .nav-link.active .nav-icon {
    color: #ffffff !important;
}

/* Custom Scrollbar for Sidebar */
.main-sidebar .sidebar::-webkit-scrollbar {
    width: 5px;
}

.main-sidebar .sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.main-sidebar .sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.main-sidebar .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}
