body {
    margin-top: 10px;
}

.block-7 {
    border-radius: 10%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    -webkit-box-shadow: 0px 24px 48px -13px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 24px 48px -13px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 24px 48px -13px rgba(0, 0, 0, 0.05);
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .block-7 {
        margin-top: 30px;
    }
}

.block-7 .img {
    height: 100px;
}

.block-7 .heading-2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.block-7 .price {
    margin: 0;
    padding: 0;
    display: block;
}

.block-7 .price sup {
    font-size: 24px;
    top: -1em;
    color: #b3b3b3;
}

.block-7 .price .number {
    font-size: 60px;
    font-weight: 600;
    color: #000000;
}

.block-7 .excerpt {
    margin-bottom: 0px;
    color: #00bd56;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.block-7 .label2 {
    text-transform: uppercase;
}

.block-7 .pricing-text,
.block-7 .pricing-text li {
    padding: 0;
    margin: 0;
}

.block-7 .pricing-text li {
    list-style: none;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #000000;
}

.block-7 .pricing-text li:nth-child(odd) {
    background: rgba(0, 0, 0, 0.05);
}

.block-7 .pricing-text li span.fa {
    color: #207dff;
}

.block-7 .btn-primary {
    color: #fff;
    text-transform: uppercase;
    font-style: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    width: 60%;
    margin: 0 auto;
}

.block-7 .btn-primary:hover,
.block-7 .btn-primary:focus {
    background: #00bd56 !important;
    color: #fff;
}

.block-7:hover,
.block-7:focus {
    -webkit-box-shadow: 0px 24px 48px -13px rgba(0, 0, 0, 0.11);
    -moz-box-shadow: 0px 24px 48px -13px rgba(0, 0, 0, 0.11);
    box-shadow: 0px 24px 48px -13px rgba(0, 0, 0, 0.11);
}

.block-container {
    padding: 15px;
}

/* Let's make sure all tables have defaults */
table td {
    vertical-align: top;
}

/* -------------------------------------
    BODY & CONTAINER
------------------------------------- */
body {
    background-color: #f6f6f6;
}

.body-wrap {
    background-color: #f6f6f6;
    width: 100%;
}

.container {
    display: block !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    /* makes it centered */
    clear: both !important;
}


.main-panel>.content {
    padding: 30px;
    border-radius: 1%;
    background: #fff;
    margin-top: initial;
}

/* -------------------------------------
    HEADER, FOOTER, MAIN
------------------------------------- */
.main {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 3px;
}

.content-block {
    padding: 0 0 20px;
}

.header {
    width: 100%;
    margin-bottom: 20px;
}

.footer {
    width: 100%;
    clear: both;
    color: #999;
    padding: 20px;
}

.footer a {
    color: #999;
}

.footer p,
.footer a,
.footer unsubscribe,
.footer td {
    font-size: 12px;
}

/* -------------------------------------
    TYPOGRAPHY
------------------------------------- */
h1,
h2,
h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    color: #000;
    margin: 40px 0 0;
    line-height: 1.2;
    font-weight: 400;
}

h1 {
    font-size: 32px;
    font-weight: 500;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

h4 {
    font-size: 14px;
    font-weight: 600;
}

p,
ul,
ol {
    margin-bottom: 10px;
    font-weight: normal;
}

p li,
ul li,
ol li {
    margin-left: 5px;
    list-style-position: inside;
}

/* -------------------------------------
    LINKS & BUTTONS
------------------------------------- */
a {
    color: #1ab394;
    text-decoration: underline;
}

.btn-primary {
    text-decoration: none;
    color: #FFF;
    background-color: #1ab394;
    border: solid #1ab394;
    border-width: 5px 10px;
    line-height: 2;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    border-radius: 5px;
    text-transform: capitalize;
}

/* -------------------------------------
    OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.last {
    margin-bottom: 0;
}

.first {
    margin-top: 0;
}

.aligncenter {
    text-align: center;
}

.alignright {
    text-align: right;
}

.alignleft {
    text-align: left;
}

.clear {
    clear: both;
}

/* -------------------------------------
    ALERTS
    Change the class depending on warning email, good email or bad email
------------------------------------- */
.alert {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    padding: 20px;
    text-align: center;
    border-radius: 3px 3px 0 0;
}

.alert a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.alert.alert-warning {
    background: #f8ac59;
}

.alert.alert-bad {
    background: #ed5565;
}

.alert.alert-good {
    background: #1ab394;
}

/* -------------------------------------
    INVOICE
    Styles for the billing table
------------------------------------- */
.invoice {
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
    width: 90%;
}

.invoice td {
    padding: 5px 0;
}

.invoice .invoice-items {
    width: 100%;
}

.invoice .invoice-items td {
    border-top: #eee 1px solid;
}

.invoice .invoice-items .total td {
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    font-weight: 700;
}

.bg-light {
    background: #effdf5 !important;
    height: 800px;
    overflow-y: scroll;
}

/* -------------------------------------
    RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 640px) {

    h1,
    h2,
    h3,
    h4 {
        font-weight: 600 !important;
        margin: 20px 0 5px !important;
    }

    h1 {
        font-size: 22px !important;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    .container {
        width: 100% !important;
    }

    .content,
    .content-wrap {
        padding: 10px !important;
    }

    .invoice {
        width: 100% !important;
    }
}

.btn-icon {
    font-size: 20px;
}

.btn-boton-size {
    font-size: 16px;
    width: 100%;
    padding: 0px;
    border-right-width: 0px;
    border-left-width: 0px;
    border-top-width: 0px;
    border-bottom-width: 0px;
}

.btn-boton-size:hover {
    border-color: #34b5b8 !important;
}

.form-group input[type=file] {
    opacity: initial !important;
    position: initial !important;
}

.active_pro {
    background-color: #6bd098 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: #6bd098 !important;
}

.hidden_pro {
    display: none;
}

.tableFixHead {
    overflow: auto;
    height: 100px;
}

.tableFixHead thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.cons-fact {
    font-size: 40px;
    float: right;
    font-weight: bold;
}

.texto_option_f {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

/* Responsive container padding */
.responsive-padding {
    height: 100vh;
    padding: 30px;
}

@media (max-width: 991px) {
    .responsive-padding {
        padding: 5px 10px;
    }
}

/* Fix for nested main-panels inherited from previous bad layout structure */
.main-panel .main-panel {
    width: 100% !important;
    min-height: auto !important;
    float: none !important;
    margin: 0 !important;
}

/* Navbar adjustments */
.navbar.navbar-absolute {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
    margin-top: -10px !important;
}

/* Mobile Sidebar Custom Toggler Fixes */
@media (max-width: 991px) {
    .sidebar {
        position: fixed !important;
        display: block !important;
        top: 0;
        height: 100vh;
        width: 260px;
        right: auto;
        left: 0;
        margin: 0;
        border-radius: 0;
        z-index: 1032 !important;
        visibility: visible;
        overflow-y: auto;
        padding: 0;
        transition: all 0.5s cubic-bezier(0.685, 0.0473, 0.346, 1);
        transform: translate3d(-260px, 0, 0) !important;
    }

    html.nav-open-custom .sidebar {
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Responsive Pagination */
.pagination-wrapper {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    text-align: center;
}

.pagination-wrapper .pagination {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    margin-bottom: 0;
}

/* -------------------------------------
    MODERN UI OVERHAUL (PRODUCTS, NAVBAR, SIDEBAR)
------------------------------------- */

/* Colors and Gradients */
:root {
    --primary-color: #2c9aff;
    --primary-hover: #1b85e9;
    --secondary-color: #f4f6f9;
    --text-main: #333333;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --success-color: #28a745;
    --success-hover: #218838;
    --warning-color: #ffc107;
    --warning-hover: #e0a800;
    --info-color: #17a2b8;
    --info-hover: #138496;
    --sidebar-bg: #ffffff;
    --sidebar-text: #495057;
    --sidebar-active-bg: #eaf4ff;
    --sidebar-active-text: #2c9aff;
}

body {
    background-color: var(--secondary-color);
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-main);
}

/* Modern Card */
.modern-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.modern-card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 1.5rem 1rem;
}

.modern-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.modern-card-body {
    padding: 1.5rem;
}

/* Modern Buttons */
.btn-modern {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.btn-modern:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-modern.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-modern.btn-info:hover {
    background-color: var(--info-hover);
}

.btn-modern.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-modern.btn-success:hover {
    background-color: var(--success-hover);
}

.btn-modern.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-modern.btn-warning:hover {
    background-color: var(--warning-hover);
}

.btn-modern.btn-outline-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-modern.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 2px 5px rgba(44, 154, 255, 0.3);
}

.btn-modern.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Make them perfectly round */
    font-size: 1.1rem;
}

/* Edit Button Specific Style */
.btn-modern.btn-outline-warning {
    color: #ff9800;
    border: 1px solid #ff9800;
    background: transparent;
}

.btn-modern.btn-outline-warning:hover {
    background-color: #ff9800;
    color: #fff;
    box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3);
}

/* Header Actions Container */
.header-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Modern Input Fields */
.form-control-modern {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafbfe;
}

.form-control-modern:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 154, 255, 0.15);
    background-color: #fff;
}

/* Modern Table */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead th {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    border-top: none;
}

.modern-table tbody tr {
    transition: background-color 0.2s ease;
}

.modern-table tbody tr:hover {
    background-color: #fcfcfc;
}

.modern-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.95rem;
}

.modern-table tbody tr:last-child td {
    border-bottom: none;
}

/* Product Image Thumbnail */
.product-img-modern {
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 1px solid #f0f0f0;
}

.product-img-modern:hover {
    transform: scale(1.1);
}

/* Sidebar Modernization */
.sidebar {
    background: var(--sidebar-bg);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.03);
    border-right: 1px solid var(--border-color);
}

.sidebar .logo {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
}

.sidebar .logo .simple-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.sidebar .nav {
    padding-top: 15px;
}

.sidebar .nav li>a {
    margin: 5px 15px;
    border-radius: 8px;
    color: #333;
    /* More professional dark color */
    padding: 10px 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.sidebar .nav li>a i {
    font-size: 1.5rem;
    /* Larger, more professional icons */
    color: #333;
    /* Matching text color for consistency */
    margin-right: 12px;
    transition: all 0.3s ease;
}

.sidebar .nav li>a:hover,
.sidebar .nav li.active>a {
    background-color: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
}

.sidebar .nav li>a:hover i,
.sidebar .nav li.active>a i {
    color: var(--primary-color);
}

/* Dropdown menus in sidebar */
.sidebar .nav .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    margin-top: 5px;
    padding: 8px;
}

.sidebar .nav .dropdown-item {
    border-radius: 6px;
    padding: 8px 15px;
    color: var(--text-main);
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.9rem;
}

.sidebar .nav .dropdown-item:hover {
    background-color: var(--sidebar-active-bg);
    color: var(--primary-color);
}

/* Navbar Modernization */
.navbar.navbar-absolute.fixed-top {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.navbar .navbar-brand {
    font-weight: 600;
    color: var(--text-main) !important;
}

.navbar .nav-item .nav-link {
    font-weight: 500;
    color: var(--text-muted) !important;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar .nav-item .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--sidebar-active-bg);
}

.navbar-toggler-bar {
    background-color: var(--text-muted) !important;
}

/* Modern Pagination — !important overrides to beat Bootstrap specificity */
.pagination-modern .pagination {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    list-style: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10) !important;
}

.pagination-modern .page-item .page-link {
    position: relative !important;
    display: block !important;
    padding: 0.55rem 1rem !important;
    line-height: 1.4 !important;
    color: var(--primary-color) !important;
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
}

.pagination-modern .page-item.active .page-link {
    z-index: 3 !important;
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.pagination-modern .page-item .page-link:hover {
    z-index: 2 !important;
    color: var(--primary-hover) !important;
    text-decoration: none !important;
    background-color: #eaf4ff !important;
    border-color: #c2deff !important;
}

.pagination-modern .page-item.disabled .page-link {
    color: #adb5bd !important;
    pointer-events: none !important;
    cursor: default !important;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
}

/* Pagination Info Text */
.pagination-info-text {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.pagination-info-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Navbar User Badge */
.navbar-user-badge {
    display: inline-flex;
    align-items: center;
    background-color: #eaf4ff;
    color: var(--primary-color);
    border: 1px solid #c2deff;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.navbar-user-badge .nc-icon {
    font-size: 1rem;
}

/* Navbar Logout Icon Button */
.btn-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #e53935;
    color: #ffffff !important;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
}

.btn-logout-icon:hover {
    background-color: #c62828;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.55);
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* ====================================
   MOBILE IMPROVEMENTS
   ==================================== */

/* Modern Hamburger Toggle Button */
.navbar-toggler,
button.navbar-toggler,
#mobile-sidebar-trigger {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background-color: #f0f4ff !important;
    border: 1px solid #d0e0ff !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(44, 154, 255, 0.12) !important;
}

.navbar-toggler:hover,
#mobile-sidebar-trigger:hover {
    background-color: #dceeff !important;
    border-color: #2c9aff !important;
    box-shadow: 0 4px 10px rgba(44, 154, 255, 0.2) !important;
}

/* Make the bars inside the toggle styled consistently */
.navbar-toggler-bar.bar1,
.navbar-toggler-bar.bar2,
.navbar-toggler-bar.bar3,
.navbar-toggler-bar.navbar-kebab {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 2px !important;
    background-color: #2c9aff !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

/* Responsive Pagination — horizontal scroll on mobile */
@media (max-width: 767px) {

    /* Pagination section scrolls horizontally */
    .pagination-modern {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        max-width: 100% !important;
        padding-bottom: 4px !important;
    }

    .pagination-modern .pagination {
        flex-wrap: nowrap !important;
        min-width: max-content !important;
    }

    /* Make the pagination info + buttons stack vertically on very small screens */
    .modern-card-body .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .pagination-info-text {
        font-size: 0.88rem !important;
    }

    /* Separate content from navbar on mobile */
    .main-panel.responsive-padding {
        margin-top: 20px !important;
    }

    /* Slightly smaller pagination buttons on mobile */
    .pagination-modern .page-item .page-link {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.82rem !important;
    }

    /* Header actions wrap properly */
    .header-actions-container {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Pagination right-side breathing room */
.pagination-modern {
    padding-right: 2px;
}

/* Right navbar toggle — vertical 3-dot (kebab) style */
.navbar-toggler-bar.navbar-kebab {
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background-color: #2c9aff !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Container for the kebab toggle is already vertical by default (flex-direction: column set above) */
.navbar-toggler:not(#mobile-sidebar-trigger) {
    gap: 4px !important;
}

/* Mobile: slightly smaller toggles */
@media (max-width: 767px) {

    .navbar-toggler,
    button.navbar-toggler,
    #mobile-sidebar-trigger {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }
}

/* ═══════════════════════════════════════════════════
   SIDEBAR MINI — Desktop collapse to icon-only mode
   ═══════════════════════════════════════════════════ */

@media (min-width: 992px) {

    /* The sidebar itself */
    .sidebar-mini .sidebar {
        width: 64px !important;
        overflow: visible !important;
        transition: width 0.3s ease !important;
    }

    /* Hide the text label inside nav links */
    .sidebar-mini .sidebar .nav li>a>p,
    .sidebar-mini .sidebar .nav li>a>span:not(.nc-icon),
    .sidebar-mini .sidebar .nav li a .dropdown-toggle::after {
        display: none !important;
        opacity: 0 !important;
    }

    /* Hide text nodes (direct text inside <a>) behind icon */
    .sidebar-mini .sidebar .nav li>a {
        text-align: center !important;
        padding: 12px 0 !important;
        justify-content: center !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    /* Center the icon */
    .sidebar-mini .sidebar .nav li>a>i,
    .sidebar-mini .sidebar .nav li>a>.nc-icon {
        margin: 0 auto !important;
        float: none !important;
    }

    /* Hide the dropdown-toggle caret */
    .sidebar-mini .sidebar .nav li>a::after {
        display: none !important;
    }

    /* Keep dropdowns above the sidebar when hovered */
    .sidebar-mini .sidebar .nav li.dropdown:hover>.dropdown-menu {
        display: block !important;
        left: 64px !important;
        top: 0 !important;
        position: fixed !important;
        min-width: 180px !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        z-index: 2000 !important;
    }

    /* Logo area: shrink and hide text */
    .sidebar-mini .sidebar .logo {
        padding: 10px 0 !important;
        text-align: center !important;
    }

    .sidebar-mini .sidebar .logo .logo-normal {
        display: none !important;
    }

    /* Expand main-panel to fill the extra space */
    .sidebar-mini .main-panel {
        width: calc(100% - 64px) !important;
        transition: width 0.3s ease !important;
    }

    /* Navbar adjusts too */
    .sidebar-mini .navbar.fixed-top {
        left: 64px !important;
        transition: left 0.3s ease !important;
    }

    /* Sidebar transition when expanding back */
    .sidebar {
        transition: width 0.3s ease !important;
    }

    .main-panel {
        transition: width 0.3s ease !important;
    }

    .navbar.fixed-top {
        transition: left 0.3s ease !important;
    }
}

/* ── Sidebar dropdown-item hover: soft green text dark ── */
.sidebar .dropdown-menu .dropdown-item:hover,
.sidebar .dropdown-menu .dropdown-item:focus {
    background-color: rgba(40, 167, 69, 0.10) !important;
    color: #212529 !important;
}

/* ── Sidebar main nav items hover: soft green ── */
.sidebar .nav>li>a:hover {
    background-color: rgba(40, 167, 69, 0.10) !important;
    color: #28a745 !important;
    border-radius: 8px;
}

/* ── Navbar: move desktop sidebar-toggle more to the left ── */
@media (min-width: 992px) {
    .navbar-wrapper .navbar-toggle {
        margin-left: -22px;
    }
}

/* ── Sidebar: more space between items + bigger icons ── */
.sidebar .nav>li {
    margin-bottom: 8px;
}

.sidebar .nav>li>a {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    display: flex !important;
    align-items: center !important;
}

.sidebar .nav>li>a i,
.sidebar .nav>li>a .nc-icon {
    font-size: 18px !important;
    width: 35px !important;
    color: #6c757d !important;
    margin-right: 10px !important;
    text-align: center !important;
}

/* ── Dashboard Utility Classes ── */
.bg-success-light {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

.bg-info-light {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.bg-warning-light {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-danger-light {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.modern-card {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .05) !important;
}

.kpi-card .card-body {
    padding: 1.5rem !important;
}

.uppercase {
    text-transform: uppercase;
}