/* ==========================================
   MINIMALIST & ULTRA-CLEAN DESIGN SYSTEM
   ========================================== */

/* --- SIDEBAR MINIMAL REDESIGN --- */

.left-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    transition: none !important;
}

.scroll-sidebar {
    background: #ffffff !important;
}

.sidebar-nav {
    background: #ffffff !important;
    padding: 16px 8px !important;
}

.sidebar-nav ul {
    background: transparent !important;
}

.sidebar-nav ul li {
    margin-bottom: 2px !important;
    margin-top: 2px !important;
}

.sidebar-nav ul li a {
    display: flex !important;
    align-items: center !important;
    color: #475569 !important; /* Flat dark slate */
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important; /* Sharp minimal corners */
    transition: color 0.15s ease !important;
    border-left: none !important;
    background: transparent !important;
    position: relative !important;
}

/* Icons */
.sidebar-nav ul li a i,
.sidebar-nav > ul > li > a i {
    width: 20px !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 10px !important;
    color: #64748b !important;
    transition: none !important;
}

/* Hover States */
.sidebar-nav ul li a:hover {
    color: #0284c7 !important;
    background: #f8fafc !important; /* Flat light gray/slate */
    text-decoration: none !important;
}

.sidebar-nav ul li a:hover i {
    color: #0284c7 !important;
    transform: none !important;
}

/* Active Main Item */
.sidebar-nav > ul > li > a.active {
    background: #f1f5f9 !important; /* Minimal flat gray */
    color: #0f172a !important; /* High contrast black */
    font-weight: 600 !important;
}

.sidebar-nav > ul > li > a.active i {
    color: #0284c7 !important;
}

/* Visual Active Indicator - Clean sutil left line */
.sidebar-nav > ul > li > a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #0284c7;
}

/* Submenu Styles - Flat Tree Layout */
body:not(.mini-sidebar) .sidebar-nav ul li ul {
    padding-left: 5px !important;
    margin: 2px 0 4px 10px !important;
    border-left: 1px solid #e2e8f0 !important;
    background: transparent !important;
}

body:not(.mini-sidebar) .sidebar-nav ul li ul li a {
    padding: 6px 12px !important;
    font-size: 13px !important;
    color: #64748b !important;
    border-radius: 4px !important;
}

body:not(.mini-sidebar) .sidebar-nav ul li ul li a:hover {
    color: #0284c7 !important;
    background: #f8fafc !important;
}

body:not(.mini-sidebar) .sidebar-nav ul li ul li a.active {
    color: #0284c7 !important;
    font-weight: 600 !important;
    background: #f1f5f9 !important;
}

body:not(.mini-sidebar) .sidebar-nav ul li ul li a::before {
    display: none !important; /* Remove dots for minimal style */
}

/* Arrow indicator overrides for dropdowns */
.sidebar-nav .has-arrow::after {
    border-color: #64748b !important;
    right: 16px !important;
}


/* --- MINI SIDEBAR OVERRIDES --- */
@media (min-width: 768px) {
    .mini-sidebar .left-sidebar,
    .mini-sidebar .scroll-sidebar,
    .mini-sidebar .sidebar-nav {
        overflow: visible !important;
    }

    .mini-sidebar .sidebar-nav #sidebarnav > li.has-submenu:hover > a {
        width: 75px !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li.has-submenu:hover > a .hide-menu {
        display: none !important;
    }

    .mini-sidebar .sidebar-nav {
        padding: 8px 0 !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li {
        margin: 0 !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li > a {
        padding: 12px 0 !important;
        width: 75px !important;
        border-radius: 0 !important;
        justify-content: center !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li > ul {
        left: 75px !important;
        top: 0 !important;
        width: 220px !important;
        background: #ffffff !important;
        border-radius: 0 4px 4px 0 !important;
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        padding: 8px 0 !important;
        position: absolute !important;
        z-index: 99999 !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li:hover > ul {
        display: block !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li > ul li {
        margin: 2px 4px !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li > ul li a {
        padding: 8px 12px !important;
        font-size: 13px !important;
        border-radius: 4px !important;
        color: #475569 !important;
    }
    
    .mini-sidebar .sidebar-nav #sidebarnav > li > ul li a:hover {
        background: #f8fafc !important;
        color: #0284c7 !important;
    }
}


/* --- MINIMALIST TABLES REDESIGN --- */

.xdesign-table-wrapper {
    background: #ffffff !important;
    border-radius: 4px !important; /* Minimal rounded corners */
    box-shadow: none !important; /* No shadows */
    border: 1px solid #e2e8f0 !important;
    margin-top: 15px !important;
}

.xdesign-table-wrapper .card-body {
    padding: 0 !important;
}

.xdesign-table-wrapper .table {
    border-collapse: collapse !important;
    width: 100% !important;
}

/* Table Headers */
.xdesign-table-wrapper .table thead th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-top: none !important;
    padding: 10px 14px !important; /* Very tight minimal padding */
}

.xdesign-table-wrapper .table thead th a {
    color: #475569 !important;
}

/* Rows & Cells */
.xdesign-table-wrapper .table tbody tr {
    transition: none !important;
}

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

.xdesign-table-wrapper .table tbody td {
    padding: 10px 14px !important; /* Compact design */
    border-bottom: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 13px !important;
}

/* Links inside Table */
.xdesign-table-wrapper .table tbody td a {
    color: #0284c7 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.xdesign-table-wrapper .table tbody td a:hover {
    text-decoration: underline !important;
}

/* Invoice ID and Abonado styling */
.xdesign-table-wrapper .table td.invoices_col_id a {
    background: transparent !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-weight: 600 !important;
}

.xdesign-table-wrapper .table td.invoices_col_project a {
    color: #334155 !important;
    font-weight: 600 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Flat Status Badges */
.xdesign-table-wrapper .table .label {
    padding: 2px 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 2px !important;
    border: 1px solid transparent !important;
}

.xdesign-table-wrapper .table .label-success {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.xdesign-table-wrapper .table .label-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

.xdesign-table-wrapper .table .label-warning {
    background: #fffbeb !important;
    color: #92400e !important;
    border-color: #fef3c7 !important;
}

.xdesign-table-wrapper .table .label-info,
.xdesign-table-wrapper .table .label-default {
    background: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}

/* Minimal Reading & Consumption Button */
.xdesign-table-wrapper .table td.invoices_col_r_prev_r_current button.btn-outline-info {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.xdesign-table-wrapper .table td.invoices_col_r_prev_r_current button.btn-outline-info:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    box-shadow: none !important;
}




/* --- MINIMALIST PAYMENT MODAL & CASHIER SIMULATOR --- */

/* Meta data details */
.modal-meta-data {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.modal-meta-data small {
    font-size: 13px !important;
}

/* Form Controls & Input Groups inside Modal */
#commonModal .form-group label,
#actionsModal .form-group label {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 4px !important;
}

#commonModal .form-control,
#actionsModal .form-control {
    border-radius: 4px !important; /* Sharp minimalist style */
    border: 1px solid #cbd5e1 !important;
    padding: 6px 10px !important;
    font-size: 13.5px !important;
    box-shadow: none !important;
}

#commonModal .form-control:focus,
#actionsModal .form-control:focus {
    border-color: #0284c7 !important;
    box-shadow: none !important;
}

#commonModal .input-group,
#actionsModal .input-group {
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
}

#commonModal .input-group-addon,
#actionsModal .input-group-addon {
    background: #f8fafc !important;
    border: none !important;
    font-size: 13.5px !important;
    padding: 6px 12px !important;
}

/* Minimal Cashier Simulator Panel */
.highlighted-panel-res-234 {
    background: #ffffff !important; /* Clean flat white */
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 14px !important;
    margin: 15px 0 !important;
    box-shadow: none !important;
}

.highlighted-panel-res-234 h3.txt-center {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 12px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding-bottom: 6px !important;
}

/* Change Output Highlight (Minimal styling) */
#total_calculator_sum {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #166534 !important; /* Clean green text */
    background: #ffffff !important; /* Pure white background */
    border: 1px solid #cbd5e1 !important;
}

/* Minimal Switch panel */
.spacer.row {
    margin: 15px 0 !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
}

.spacer.row .title {
    font-size: 13px !important;
    color: #475569 !important;
}

/* Select2 minimal styling */
.select2-container--default .select2-selection--single {
    border-radius: 4px !important;
    border: 1px solid #cbd5e1 !important;
    height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
    font-size: 13px !important;
}
