/**
 * Tecno TA - Master Application Design System
 * File: public/demo1/css/tecno-ta.css
 * Brand Colors: Primary = Tecno Orange (#ff5900 / #f26522)
 */

/* ==========================================================================
   1. Brand Palette & Core Variables
   ========================================================================== */
:root {
    --brand-primary: #ff5900;
    --brand-primary-rgb: 255, 89, 0;
    --brand-primary-hover: #e04f00;
    --brand-primary-active: #cc4700;
    --brand-primary-light: #fff4ee;
    --bs-primary: var(--brand-primary);
    --bs-primary-rgb: var(--brand-primary-rgb);
    --bs-primary-hover: var(--brand-primary-hover);
    --bs-primary-active: var(--brand-primary-active);
    --tecno-orange: var(--brand-primary);
    --tecno-orange-hover: var(--brand-primary-hover);
    --tecno-orange-light: var(--brand-primary-light);
}

/* Primary Color Utilities */
.text-primary,
a.text-primary:hover,
.menu-item .menu-link.active .menu-title,
.pageTitleHeader .text-primary {
    color: var(--brand-primary) !important;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.bg-light-primary {
    background-color: var(--brand-primary-light) !important;
}

.bg-light-primary i,
.symbol.bg-light-primary i,
.symbol-circle.bg-light-primary i {
    color: var(--brand-primary) !important;
}

.badge-primary {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

.badge-light-primary {
    background-color: var(--brand-primary-light) !important;
    color: var(--brand-primary) !important;
    border: 1px solid rgba(var(--brand-primary-rgb), 0.25) !important;
}

/* Primary Button Overrides */
.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    color: #ffffff !important;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: var(--brand-primary-active) !important;
    border-color: var(--brand-primary-active) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   2. Cards & Semantical Borders
   ========================================================================== */
.card {
    border-radius: 0.75rem;
    box-shadow: 0 0.1rem 1rem 0.25rem rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.card.card-flush {
    border: 1px solid #eff2f5;
}

/* Top Color Accents for Cards */
.card.border-primary,
.card.card-border-primary {
    border-top: 4px solid var(--brand-primary) !important;
}

.card.border-info,
.card.card-border-info {
    border-top: 4px solid #009ef7 !important;
}

.card.border-success,
.card.card-border-success {
    border-top: 4px solid #50cd89 !important;
}

.card.border-warning,
.card.card-border-warning {
    border-top: 4px solid #ffaa00 !important;
}

.card.border-danger,
.card.card-border-danger {
    border-top: 4px solid #f1416c !important;
}

.card.border-dark,
.card.card-border-dark {
    border-top: 4px solid #181c32 !important;
}

.card-header {
    border-bottom: 0 !important;
    padding-top: 1.25rem;
    padding-bottom: 0.75rem;
}

/* ==========================================================================
   3. Table Action Buttons (Punchy, Vivid, High-Contrast)
   ========================================================================== */
.btn-icon.btn-sm {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0.45rem !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-icon.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* In Tables: Solid, Vibrant Colors (Never Pale/Washed-Out) */
table .btn-primary,
table .btn-light-primary,
table .btn-icon.btn-primary,
table .btn-icon.btn-light-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

table .btn-primary:hover,
table .btn-light-primary:hover,
table .btn-icon.btn-primary:hover,
table .btn-icon.btn-light-primary:hover {
    background-color: var(--brand-primary-hover) !important;
    border-color: var(--brand-primary-hover) !important;
    color: #ffffff !important;
}

table .btn-primary i,
table .btn-light-primary i,
table .btn-icon.btn-primary i,
table .btn-icon.btn-light-primary i {
    color: #ffffff !important;
}

table .btn-danger,
table .btn-light-danger,
table .btn-icon.btn-danger,
table .btn-icon.btn-light-danger {
    background-color: #f1416c !important;
    border-color: #f1416c !important;
    color: #ffffff !important;
}

table .btn-danger:hover,
table .btn-light-danger:hover,
table .btn-icon.btn-danger:hover,
table .btn-icon.btn-light-danger:hover {
    background-color: #d9214e !important;
    border-color: #d9214e !important;
    color: #ffffff !important;
}

table .btn-danger i,
table .btn-light-danger i,
table .btn-icon.btn-danger i,
table .btn-icon.btn-light-danger i {
    color: #ffffff !important;
}

table .btn-success,
table .btn-light-success,
table .btn-icon.btn-success,
table .btn-icon.btn-light-success {
    background-color: #50cd89 !important;
    border-color: #50cd89 !important;
    color: #ffffff !important;
}

table .btn-success:hover,
table .btn-light-success:hover,
table .btn-icon.btn-success:hover,
table .btn-icon.btn-light-success:hover {
    background-color: #47be7d !important;
    border-color: #47be7d !important;
    color: #ffffff !important;
}

table .btn-success i,
table .btn-light-success i,
table .btn-icon.btn-success i,
table .btn-icon.btn-light-success i {
    color: #ffffff !important;
}

table .btn-info,
table .btn-light-info,
table .btn-icon.btn-info,
table .btn-icon.btn-light-info {
    background-color: #009ef7 !important;
    border-color: #009ef7 !important;
    color: #ffffff !important;
}

table .btn-info:hover,
table .btn-light-info:hover,
table .btn-icon.btn-info:hover,
table .btn-icon.btn-light-info:hover {
    background-color: #0086d1 !important;
    border-color: #0086d1 !important;
    color: #ffffff !important;
}

table .btn-info i,
table .btn-light-info i,
table .btn-icon.btn-info i,
table .btn-icon.btn-light-info i {
    color: #ffffff !important;
}

table .btn-warning,
table .btn-light-warning,
table .btn-icon.btn-warning,
table .btn-icon.btn-light-warning {
    background-color: #ffaa00 !important;
    border-color: #ffaa00 !important;
    color: #ffffff !important;
}

table .btn-warning:hover,
table .btn-light-warning:hover,
table .btn-icon.btn-warning:hover,
table .btn-icon.btn-light-warning:hover {
    background-color: #e69900 !important;
    border-color: #e69900 !important;
    color: #ffffff !important;
}

table .btn-warning i,
table .btn-light-warning i,
table .btn-icon.btn-warning i,
table .btn-icon.btn-light-warning i {
    color: #ffffff !important;
}

table .btn-dark,
table .btn-light-dark,
table .btn-icon.btn-dark,
table .btn-icon.btn-light-dark {
    background-color: #3f4254 !important;
    border-color: #3f4254 !important;
    color: #ffffff !important;
}

table .btn-dark:hover,
table .btn-light-dark:hover,
table .btn-icon.btn-dark:hover,
table .btn-icon.btn-light-dark:hover {
    background-color: #181c32 !important;
    border-color: #181c32 !important;
    color: #ffffff !important;
}

table .btn-dark i,
table .btn-light-dark i,
table .btn-icon.btn-dark i,
table .btn-icon.btn-light-dark i {
    color: #ffffff !important;
}

/* ==========================================================================
   4. Tables & DataTables Styling
   ========================================================================== */
.table-responsive {
    border-radius: 0.5rem;
}

table.dataTable,
table.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    width: 100% !important;
}

table.dataTable thead tr,
table.table thead tr {
    background-color: #f5f8fa !important;
}

table.dataTable thead th,
table.table thead th {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #7e8299 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
    border-bottom: 0 !important;
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
    white-space: nowrap;
}

/* Rounded Header Corners */
table.dataTable thead tr th:first-child,
table.table thead tr th:first-child {
    border-top-left-radius: 0.475rem !important;
    border-bottom-left-radius: 0.475rem !important;
}

table.dataTable thead tr th:last-child,
table.table thead tr th:last-child {
    border-top-right-radius: 0.475rem !important;
    border-bottom-right-radius: 0.475rem !important;
}

table.dataTable tbody td,
table.table tbody td {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
    font-size: 0.9rem;
    border-bottom: 1px dashed #eff2f5 !important;
}

table.dataTable.table-hover tbody tr:hover,
table.table-hover tbody tr:hover {
    background-color: rgba(var(--brand-primary-rgb), 0.04) !important;
}

/* DataTables Pagination & Filter */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 0.475rem !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--brand-primary-light) !important;
    color: var(--brand-primary) !important;
    border: 0 !important;
    border-radius: 0.475rem !important;
}

/* ==========================================================================
   5. Form Controls Focus States
   ========================================================================== */
.form-control:focus,
.form-select:focus,
.form-control-solid:focus,
.form-select-solid:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.15) !important;
}

.form-check-input:checked {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

/* ==========================================================================
   6. Custom Scrollbars
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ==========================================================================
   7. Button Icon Contrast & Hover Fix
   Prevents icons from disappearing on hover when button background matches
   ========================================================================== */
.btn:hover i,
.btn:hover [class*="bi-"],
.btn:hover [class*="fa-"],
.btn:hover svg,
.btn:focus i,
.btn:focus [class*="bi-"],
.btn:focus [class*="fa-"],
.btn:focus svg,
.btn:active i,
.btn:active [class*="bi-"],
.btn:active [class*="fa-"],
.btn:active svg {
    color: inherit !important;
}

.btn-light-success:hover,
.btn-light-success:hover i,
.btn-light-success:hover [class*="bi-"],
.btn-light-success:hover [class*="fa-"] {
    color: #ffffff !important;
    background-color: #50cd89 !important;
}

.btn-light-info:hover,
.btn-light-info:hover i,
.btn-light-info:hover [class*="bi-"],
.btn-light-info:hover [class*="fa-"] {
    color: #ffffff !important;
    background-color: #009ef7 !important;
}

.btn-light-primary:hover,
.btn-light-primary:hover i,
.btn-light-primary:hover [class*="bi-"],
.btn-light-primary:hover [class*="fa-"] {
    color: #ffffff !important;
    background-color: var(--brand-primary-hover) !important;
}

.btn-light-danger:hover,
.btn-light-danger:hover i,
.btn-light-danger:hover [class*="bi-"],
.btn-light-danger:hover [class*="fa-"] {
    color: #ffffff !important;
    background-color: #f1416c !important;
}

.btn-light-warning:hover,
.btn-light-warning:hover i,
.btn-light-warning:hover [class*="bi-"],
.btn-light-warning:hover [class*="fa-"] {
    color: #ffffff !important;
    background-color: #ffaa00 !important;
}

/* ==========================================================================
   Aside Sidebar Styling (Slightly lighter modern slate-navy)
   ========================================================================== */
.aside.aside-dark {
    background-color: #272b3c !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.aside.aside-dark .aside-logo {
    background-color: #212534 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.aside.aside-dark .aside-footer {
    background-color: #212534 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.aside-dark .menu .menu-item {
    margin: 2px 10px !important;
}

.aside-dark .menu .menu-item .menu-section {
    color: #7b83a0 !important;
    font-weight: 600 !important;
    font-size: 0.725rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06rem !important;
    padding-left: 0.5rem !important;
    margin-top: 1rem !important;
}

.aside-dark .menu .menu-item .menu-link {
    border-radius: 10px !important;
    padding: 0.65rem 0.9rem !important;
    color: #b0b5cb !important;
    font-size: 0.925rem !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.aside-dark .menu .menu-item .menu-link .menu-title {
    color: #b0b5cb !important;
    font-size: 0.925rem !important;
    transition: color 0.2s ease !important;
}

.aside-dark .menu .menu-item .menu-link .menu-icon i,
.aside-dark .menu .menu-item .menu-link .menu-icon [class*="fa-"],
.aside-dark .menu .menu-item .menu-link .menu-icon [class*="bi-"] {
    color: #8b92b0 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.aside-dark .menu .menu-item .menu-link .menu-icon .svg-icon svg [fill]:not(.permanent):not(g) {
    fill: #8b92b0 !important;
    transition: transform 0.2s ease, fill 0.2s ease !important;
}

/* Fluid hover micro-interaction */
.aside-dark .menu .menu-item:not(.here):not(.show) > .menu-link:hover {
    transform: translateX(4px) !important;
    background-color: rgba(255, 255, 255, 0.07) !important;
}

.aside-dark .menu .menu-item:not(.here):not(.show) > .menu-link:hover .menu-title {
    color: #ffffff !important;
}

.aside-dark .menu .menu-item:not(.here):not(.show) > .menu-link:hover .menu-icon i,
.aside-dark .menu .menu-item:not(.here):not(.show) > .menu-link:hover .menu-icon [class*="fa-"] {
    color: var(--brand-primary) !important;
    transform: scale(1.12) !important;
}

.aside-dark .menu .menu-item:not(.here):not(.show) > .menu-link:hover .menu-icon .svg-icon svg [fill]:not(.permanent):not(g) {
    fill: var(--brand-primary) !important;
    transform: scale(1.12) !important;
}

/* Modern Active state with vertical indicator and glow */
.aside-dark .menu .menu-item.here > .menu-link,
.aside-dark .menu .menu-item.show > .menu-link,
.aside-dark .menu .menu-item .menu-link.active {
    background: linear-gradient(90deg, rgba(var(--brand-primary-rgb), 0.2) 0%, rgba(var(--brand-primary-rgb), 0.05) 100%) !important;
    box-shadow: inset 3px 0 0 0 var(--brand-primary), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

.aside-dark .menu .menu-item.here > .menu-link .menu-title,
.aside-dark .menu .menu-item.show > .menu-link .menu-title,
.aside-dark .menu .menu-item .menu-link.active .menu-title {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.aside-dark .menu .menu-item.here > .menu-link .menu-icon i,
.aside-dark .menu .menu-item.show > .menu-link .menu-icon i,
.aside-dark .menu .menu-item .menu-link.active .menu-icon i {
    color: var(--brand-primary) !important;
}

.aside-dark .menu .menu-item.here > .menu-link .menu-icon .svg-icon svg [fill]:not(.permanent):not(g),
.aside-dark .menu .menu-item.show > .menu-link .menu-icon .svg-icon svg [fill]:not(.permanent):not(g),
.aside-dark .menu .menu-item .menu-link.active .menu-icon .svg-icon svg [fill]:not(.permanent):not(g) {
    fill: var(--brand-primary) !important;
}

.aside-dark .menu .menu-item .menu-link.active .menu-bullet .bullet,
.aside-dark .menu .menu-item.here > .menu-link .menu-bullet .bullet {
    background-color: var(--brand-primary) !important;
}

.aside.aside-dark .aside-toggle svg [fill]:not(.permanent):not(g) {
    fill: #8b92b0 !important;
}

.aside.aside-dark .aside-toggle:hover svg [fill]:not(.permanent):not(g) {
    fill: var(--brand-primary) !important;
}

.aside.aside-dark .separator {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.aside-dark .hover-scroll-overlay-y {
    scrollbar-width: thin !important;
}

.aside-dark .hover-scroll-overlay-y::-webkit-scrollbar {
    width: 4px !important;
}

.aside-dark .hover-scroll-overlay-y::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   2026 Floating App Shell (Floating Header Island, Floating Sidebar, Fluid Cards)
   ========================================================================== */

/* Canvas Base Background */
body, #kt_body, .page {
    background-color: #f1f4f9 !important;
}

/* 1. Desktop Floating Aside Sidebar */
@media (min-width: 992px) {
    .aside-fixed .aside {
        top: 16px !important;
        left: 16px !important;
        bottom: 16px !important;
        height: calc(100vh - 32px) !important;
        max-height: calc(100vh - 32px) !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), left 0.3s ease, box-shadow 0.3s ease !important;
        z-index: 101 !important;
    }

    .aside .aside-logo {
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        height: 70px !important;
        background: #212534 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        transition: padding 0.3s ease !important;
    }

    .aside .aside-logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    .logo-default {
        display: block !important;
        max-height: 38px !important;
        width: auto !important;
        max-width: 170px !important;
        object-fit: contain !important;
        margin: 0 auto !important;
        transition: opacity 0.2s ease !important;
    }

    .logo-minimize {
        display: none !important;
    }

    .aside-brand-badge {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
        box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        margin: 0 auto;
    }

    .aside-brand-badge:hover {
        transform: scale(1.08);
    }

    .aside-brand-symbol {
        color: #ffffff;
        font-weight: 800;
        font-size: 1.15rem;
        letter-spacing: -0.5px;
        line-height: 1;
    }

    .aside-toggle-btn {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #8b92b0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        z-index: 2 !important;
    }

    .aside-toggle-btn:hover {
        background: rgba(var(--brand-primary-rgb), 0.2) !important;
        border-color: var(--brand-primary) !important;
        color: var(--brand-primary) !important;
        transform: scale(1.08);
    }

    .aside-toggle-icon {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .aside .aside-menu {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }

    #kt_aside_menu_wrapper {
        flex: 1 1 auto !important;
        max-height: 100% !important;
        overflow-y: auto !important;
    }

    .aside .aside-footer {
        background: #212534 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-bottom-left-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
        padding: 0.65rem 0.75rem !important;
        flex-shrink: 0 !important;
        margin-top: auto !important;
        transition: padding 0.3s ease !important;
    }

    .aside-user-card {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.07);
        border-radius: 12px;
        padding: 0.45rem 0.6rem;
        transition: all 0.2s ease;
        width: 100%;
    }

    .aside-user-card:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.14);
    }

    .btn-aside-action-logout {
        width: 30px !important;
        height: 30px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #94a3b8 !important;
        background: transparent !important;
        border: none !important;
        transition: all 0.2s ease !important;
        text-decoration: none !important;
    }

    .btn-aside-action-logout:hover {
        background: rgba(225, 29, 72, 0.18) !important;
        color: #f43f5e !important;
        transform: scale(1.1) !important;
    }

    .aside-mini-logout {
        display: none !important;
    }

    /* Wrapper offset when sidebar is active */
    .aside-enabled.aside-fixed .wrapper {
        padding-left: calc(265px + 32px) !important; /* 297px */
        transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Minimized aside state */
    body[data-kt-aside-minimize="on"].aside-enabled.aside-fixed .wrapper {
        padding-left: calc(75px + 32px) !important; /* 107px */
    }

    body[data-kt-aside-minimize="on"] .aside-fixed .aside {
        width: 75px !important;
        border-radius: 20px !important;
    }

    /* Minimized aside Brand Logo - perfectly centered */
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-logo {
        justify-content: center !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-logo a {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .logo-default {
        display: none !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .logo-minimize {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-brand-badge {
        margin: 0 auto !important;
        width: 42px !important;
        height: 42px !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-toggle-btn {
        display: none !important;
    }

    body[data-kt-aside-minimize="on"] .aside-toggle-icon {
        transform: rotate(180deg) !important;
    }

    /* Minimized Menu items - centered 44px icon tiles */
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-menu {
        padding: 0 !important;
        width: 100% !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) #kt_aside_menu_wrapper {
        padding: 0 !important;
        width: 100% !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu {
        padding: 0 0.5rem !important;
        width: 100% !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto 4px auto !important;
        padding: 0 !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-link {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 12px !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item:not(.here):not(.show) > .menu-link:hover {
        transform: scale(1.08) !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item.here > .menu-link,
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-link.active {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-link .menu-icon {
        margin: 0 !important;
        width: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-link .menu-icon i,
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-link .menu-icon [class*="fa-"],
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-link .menu-icon .svg-icon {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-arrow,
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-item .menu-title,
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .menu-content {
        display: none !important;
    }

    /* Minimized aside Footer - centered 42px button */
    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-footer {
        padding: 0.65rem 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-user-card {
        display: none !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-mini-logout {
        display: flex !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(var(--brand-primary-rgb), 0.14) !important;
        color: var(--brand-primary) !important;
        border: 1px solid rgba(var(--brand-primary-rgb), 0.28) !important;
        transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
        text-decoration: none !important;
    }

    body[data-kt-aside-minimize="on"] .aside:not(:hover) .aside-mini-logout:hover {
        background: var(--brand-primary) !important;
        color: #ffffff !important;
        transform: scale(1.08) !important;
        box-shadow: 0 4px 14px rgba(var(--brand-primary-rgb), 0.4) !important;
    }

    /* 2. Desktop Floating Header Island */
    .header-fixed .header {
        top: 16px !important;
        left: calc(265px + 32px) !important; /* 297px */
        right: 24px !important;
        width: auto !important;
        height: 65px !important;
        border-radius: 18px !important;
        border: 1px solid rgba(255, 255, 255, 0.85) !important;
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
        background-color: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), right 0.3s ease, top 0.3s ease !important;
        padding: 0 1.25rem !important;
        overflow: visible !important;
        z-index: 100 !important;
    }

    body[data-kt-aside-minimize="on"] .header,
    body[data-kt-aside-minimize="on"].header-fixed .header {
        left: calc(75px + 32px) !important; /* 107px */
    }

    /* Header inner container */
    .header .header-container,
    #kt_header > div {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Wrapper vertical padding for floating header */
    .header-fixed .wrapper {
        padding-top: 96px !important;
    }

    /* Page Content alignment with floating header grid */
    .content {
        padding: 16px 0 32px 0 !important;
    }

    #kt_content_container,
    .content > .container,
    .content > .container-fluid,
    .content > .container-xxl {
        padding-left: 0 !important;
        padding-right: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Footer alignment */
    #kt_footer .footer-container {
        padding-left: 0 !important;
        padding-right: 24px !important;
    }
}

/* Mobile & Tablet Floating Header */
@media (max-width: 991.98px) {
    .header-tablet-and-mobile-fixed .header {
        top: 10px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        height: 58px !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        padding: 0 1rem !important;
        overflow: visible !important;
    }

    .header-tablet-and-mobile-fixed .wrapper {
        padding-top: 80px !important;
    }

    /* Mobile Aside Drawer */
    .aside.drawer {
        border-top-right-radius: 20px !important;
        border-bottom-right-radius: 20px !important;
        overflow: hidden !important;
    }
}

/* Footer seamless integration */
.footer {
    background-color: transparent !important;
    border-top: none !important;
    padding-bottom: 24px !important;
}

/* Fluid, Less-Boxy UI Elements (Cards, Buttons, Tables) */
.card {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 6px 24px -6px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover {
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08) !important;
}

.card .card-header {
    border-top-left-radius: 18px !important;
    border-top-right-radius: 18px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    min-height: 65px !important;
}

.card .card-footer {
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn.btn-sm {
    border-radius: 8px !important;
}

.form-control, .form-select {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.modal-content {
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden !important;
}

/* Command Palette Search Input */
.search-input-modern {
    background-color: #f4f6fa !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9999px !important;
    padding-left: 2.75rem !important;
    padding-right: 5.25rem !important;
    height: 42px !important;
    font-size: 0.875rem !important;
    color: #1e293b !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-input-modern:focus {
    background-color: #ffffff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.12), 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.search-kbd-badge {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.675rem;
    font-weight: 600;
    color: #64748b;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.2;
}

/* Floating Search Results Dropdown */
.search-dropdown-modern {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.search-result-item {
    border-radius: 10px;
    padding: 8px 12px;
    transition: all 0.18s ease;
    text-decoration: none !important;
}

.search-result-item:hover {
    background-color: var(--brand-primary-light) !important;
    transform: translateX(3px);
}

/* Modern Topbar Avatar */
.symbol-modern-avatar {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.symbol-modern-avatar:hover {
    transform: scale(1.06);
}

.symbol-modern-avatar img {
    border: 2px solid #ffffff;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.avatar-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 11px;
    height: 11px;
    background-color: #10b981;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

/* Identity Card User Dropdown Menu */
.user-menu-modern {
    width: 290px !important;
    max-width: 300px !important;
    min-width: 275px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    padding: 0.85rem !important;
    background: #ffffff !important;
}

.user-card-header {
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, #ffffff 100%);
    border: 1px solid rgba(var(--brand-primary-rgb), 0.15);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.user-menu-modern .menu-link {
    border-radius: 10px !important;
    padding: 0.65rem 1rem !important;
    font-weight: 500 !important;
    transition: all 0.18s ease !important;
    color: #475569 !important;
}

.user-menu-modern .menu-link:hover {
    background-color: #f8fafc !important;
    color: var(--brand-primary) !important;
    transform: translateX(3px);
}

.user-menu-modern .menu-link.logout-item {
    color: #e11d48 !important;
}

.user-menu-modern .menu-link.logout-item:hover {
    background-color: #fff1f2 !important;
    color: #be123c !important;
}

/* Page Title Section Icon & Breadcrumbs */
.page-title-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary-light) 0%, #ffffff 100%);
    color: var(--brand-primary);
    box-shadow: 0 2px 6px rgba(var(--brand-primary-rgb), 0.12);
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.breadcrumb-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.775rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    transition: all 0.15s ease;
    text-decoration: none !important;
}

.breadcrumb-chip:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.breadcrumb-chip.active {
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   SISTEMA DESIGN UI/UX: GESTIONALE TECNOACCISE (WCAG AAA & MODERN TABLE SYSTEM)
   ========================================================================== */

/* 1. Status Navigation Pills */
.status-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease-in-out;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.2;
}
.status-pill:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}
.status-pill.active {
    background-color: #0f172a;
    color: #ffffff !important;
    border-color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.status-pill .pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-pill .pill-badge {
    margin-left: 0.15rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    background-color: #f1f5f9;
    color: #475569;
}
.status-pill.active .pill-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Dot colors */
.dot-all { background-color: #64748b; }
.dot-inviato, .dot-warning { background-color: #d97706; }
.dot-rilasciato, .dot-info { background-color: #0284c7; }
.dot-spedito, .dot-indigo { background-color: #6366f1; }
.dot-completato, .dot-success, .dot-attivo { background-color: #16a34a; }
.dot-scaduto, .dot-danger, .dot-bloccato, .dot-inattivo { background-color: #e11d48; }
.dot-bozza, .dot-generato, .dot-sospeso, .dot-secondary { background-color: #94a3b8; }

/* 2. Badge Semantici WCAG AAA */
.badge-op {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01rem;
    white-space: nowrap;
    line-height: 1.25;
}
.badge-op .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Specific semantic color maps */
.badge-op-warning, .badge-op-inviato, .badge-op-pending {
    background-color: #fffbeb !important;
    color: #78350f !important;
    border: 1px solid #fde68a !important;
}
.badge-op-warning .status-dot, .badge-op-inviato .status-dot, .badge-op-pending .status-dot { background-color: #d97706 !important; }

.badge-op-success, .badge-op-completato, .badge-op-attivo, .badge-op-validato {
    background-color: #f0fdf4 !important;
    color: #14532d !important;
    border: 1px solid #bbf7d0 !important;
}
.badge-op-success .status-dot, .badge-op-completato .status-dot, .badge-op-attivo .status-dot, .badge-op-validato .status-dot { background-color: #16a34a !important; }

.badge-op-info, .badge-op-rilasciato {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
.badge-op-info .status-dot, .badge-op-rilasciato .status-dot { background-color: #0284c7 !important; }

.badge-op-spedito {
    background-color: #f5f3ff !important;
    color: #5b21b6 !important;
    border: 1px solid #ddd6fe !important;
}
.badge-op-spedito .status-dot { background-color: #7c3aed !important; }

.badge-op-danger, .badge-op-scaduto, .badge-op-bloccato, .badge-op-inattivo, .badge-op-non-validato, .badge-op-anomalia {
    background-color: #fef2f2 !important;
    color: #881337 !important;
    border: 1px solid #fecaca !important;
}
.badge-op-danger .status-dot, .badge-op-scaduto .status-dot, .badge-op-bloccato .status-dot, .badge-op-inattivo .status-dot, .badge-op-non-validato .status-dot, .badge-op-anomalia .status-dot { background-color: #e11d48 !important; }

.badge-op-secondary, .badge-op-bozza, .badge-op-generato, .badge-op-sospeso {
    background-color: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
}
.badge-op-secondary .status-dot, .badge-op-bozza .status-dot, .badge-op-generato .status-dot, .badge-op-sospeso .status-dot { background-color: #94a3b8 !important; }

/* Global Override of Metronic Light Badges for High Contrast & WCAG Compliance */
.badge-light-warning {
    background-color: #fffbeb !important;
    color: #78350f !important;
    border: 1px solid #fde68a !important;
    font-weight: 600 !important;
}
.badge-light-warning i { color: #d97706 !important; }

.badge-light-success {
    background-color: #f0fdf4 !important;
    color: #14532d !important;
    border: 1px solid #bbf7d0 !important;
    font-weight: 600 !important;
}
.badge-light-success i { color: #16a34a !important; }

.badge-light-danger {
    background-color: #fef2f2 !important;
    color: #881337 !important;
    border: 1px solid #fecaca !important;
    font-weight: 600 !important;
}
.badge-light-danger i { color: #e11d48 !important; }

.badge-light-info {
    background-color: #f0f9ff !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
    font-weight: 600 !important;
}
.badge-light-info i { color: #0284c7 !important; }

/* 3. Chip Dati Monospace & Tag Puliti */
.chip-code, .chip-accisa, .chip-iva, .chip-targa, .chip-matricola {
    background-color: #f8fafc;
    color: #334155;
    font-family: var(--bs-font-monospace);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    letter-spacing: 0.02rem;
}
.chip-numreg {
    background-color: #eff6ff;
    color: #1e40af;
    font-family: var(--bs-font-monospace);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
    display: inline-block;
}
.chip-uadm {
    background-color: #1e293b;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.03rem;
    display: inline-block;
}
.chip-circ {
    background-color: #f1f5f9;
    color: #334155;
    font-weight: 600;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    display: inline-block;
}
.chip-tracking {
    background-color: #faf5ff;
    color: #6b21a8;
    font-family: var(--bs-font-monospace);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #e9d5ff;
    display: inline-block;
}

/* 4. Bottoni Azione Riga Unificati (.btn-table-action) */
.btn-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.12s ease-in-out;
    text-decoration: none !important;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.btn-table-action:hover {
    color: #0f172a;
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.btn-table-action.action-download:hover {
    color: #15803d;
    background-color: #f0fdf4;
    border-color: #86efac;
}
.btn-table-action.action-quick:hover {
    color: #92400e;
    background-color: #fffbeb;
    border-color: #fde68a;
}
.btn-table-action.action-edit:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
    border-color: #93c5fd;
}
.btn-table-action.action-delete:hover {
    color: #b91c1c;
    background-color: #fef2f2;
    border-color: #fca5a5;
}
.btn-table-action.action-view:hover {
    color: #0369a1;
    background-color: #f0f9ff;
    border-color: #7dd3fc;
}
.btn-table-action.action-sync:hover {
    color: #6b21a8;
    background-color: #faf5ff;
    border-color: #d8b4fe;
}

/* Pulsanti Documenti Specifici */
.btn-doc-excel {
    background-color: #f0fdf4;
    color: #15803d !important;
    border: 1px solid #bbf7d0;
    font-weight: 600;
}
.btn-doc-excel:hover {
    background-color: #dcfce7;
    color: #14532d !important;
    border-color: #86efac;
}
.btn-doc-pdf {
    background-color: #fef2f2;
    color: #991b1b !important;
    border: 1px solid #fecaca;
    font-weight: 600;
}
.btn-doc-pdf:hover {
    background-color: #fee2e2;
    color: #7f1d1d !important;
    border-color: #fca5a5;
}

/* 5. Tabelle Moderne & Standard Table Workflow */
.table-workflow th,
.table-modern th {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04rem;
    padding: 0.75rem 0.85rem;
}
.table-workflow td,
.table-modern td {
    padding: 0.75rem 0.85rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.table-workflow tbody tr:hover,
.table-modern tbody tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.1s ease;
}

/* 6. KPI Modern Cards */
.kpi-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}
.kpi-card-modern:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transform: translateY(-2px);
}
.kpi-card-modern .kpi-val {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}
.kpi-card-modern .kpi-lbl {
    font-size: 0.775rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03rem;
}
.kpi-card-modern .kpi-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}



