/**
 * Custom Global CSS - Platinum Laravel Gull
 * Styling custom yang digunakan secara global di seluruh aplikasi
 * Dicompile oleh Vite untuk performa optimal
 *
 * IMPORTANT: Semua CSS custom WAJIB ditambahkan ke file ini.
 * Jangan buat file CSS terpisah untuk menghindari fragmentasi.
 * File ini menjadi satu-satunya sumber CSS custom aplikasi.
 */

/* ========================================
   Legacy Styles (from fdme.css)
   ======================================== */
.min-width {
  min-width: 600px;
}

.scroll-x {
  overflow-x: auto;
}

.main-header {
  border-radius: 5px !important;
  height: 45px !important;
}

/* Auth Layout */
@media (min-width: 1024px) {
  .auth-layout-wrap .auth-content {
    min-width: 760px !important;
  }
}

/* Modal Sizing */
@media (min-width: 992px) {
  .modal-pgxl {
    max-width: 1400px;
  }
  .modal-pgfc {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
}

/* Sidebar */
.layout-sidebar-vertical .sidebar-panel .scroll-nav {
  height: calc(85vh - 64px) !important;
}

/* SmartWizard - Using default library styles */

/* ========================================
   Card Styling
   ======================================== */
.card {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Digital Clock in Header - Modern Design
   ======================================== */
.digital-clock {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.digital-clock:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.25);
    transform: translateX(-50%) translateY(-2px);
    border-color: rgba(66, 165, 245, 0.3);
}

.digital-clock i {
    font-size: 0.95rem;
    color: #1976d2;
    animation: rotate 3s ease-in-out infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-5deg);
    }
}

#digitalClock {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    color: #1565c0;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px rgba(21, 101, 192, 0.1);
    min-width: 80px;
    text-align: center;
}

/* Dark mode - soft dark gradient */
[data-theme="dark"] .digital-clock {
    background: linear-gradient(135deg, #37474f 0%, #455a64 100%);
    border-color: rgba(96, 125, 139, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .digital-clock:hover {
    background: linear-gradient(135deg, #455a64 0%, #546e7a 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(96, 125, 139, 0.5);
}

[data-theme="dark"] .digital-clock i {
    color: #81d4fa;
}

[data-theme="dark"] #digitalClock {
    color: #b3e5fc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Mobile - more compact */
@media (max-width: 768px) {
    .digital-clock {
        padding: 0.3rem 0.8rem;
        gap: 0.4rem;
    }

    .digital-clock i {
        font-size: 0.875rem;
    }

    #digitalClock {
        font-size: 0.875rem;
        letter-spacing: 1.2px;
        min-width: 70px;
    }
}

/* ========================================
   Form Controls
   ======================================== */
.form-control:focus,
.form-select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Ultra Small Form Controls - Consistent 28px height */
.form-control-sm,
.form-select-sm {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 0.5rem !important;
    font-size: 11px !important;
    line-height: 26px !important;
    border-radius: 0.25rem !important;
}

.form-control-sm:focus,
.form-select-sm:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Input Group with Select2 */
.input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}

/* SmartWizard Select2 Full Width */
#smartwizard .select2-container {
    width: 100% !important;
}

#smartwizard select.form-select {
    width: 100%;
}

.input-group .select2-container .select2-selection {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group .select2-container--bootstrap-5 .select2-selection {
    border-left: 0;
}

.input-group .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.input-group .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-left: 1px solid #4CAF50;
}

/* ========================================
   Dashboard Table Modern Tools
   ======================================== */
.dashboard-table-tools {
    display: flex;
    justify-content: flex-end;
}

.dashboard-table-ytd {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
}

.dashboard-col-toggle-wrap .dropdown-menu {
    min-width: 220px;
    max-height: 260px;
    overflow-y: auto;
}

.dashboard-col-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 12px;
    margin-bottom: 0.35rem;
    cursor: pointer;
}

.dashboard-col-toggle-item:last-child {
    margin-bottom: 0;
}

.dataTables_wrapper .dt-sticky-col {
    box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
}

.dashboard-service-tools {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.6rem;
    background: #fff;
}

.dashboard-service-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 170px;
    gap: 0.5rem;
}

.table-responsive.dashboard-table-loading {
    position: relative;
    min-height: 220px;
}

.table-responsive.dashboard-table-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 9;
    border-radius: 8px;
    background: linear-gradient(110deg, rgba(248, 249, 250, 0.9) 8%, rgba(233, 236, 239, 0.95) 18%, rgba(248, 249, 250, 0.9) 33%);
    background-size: 200% 100%;
    animation: dashboardTableShimmer 1.1s linear infinite;
}

.table-responsive.dashboard-table-loading::after {
    content: 'Memuat tabel...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes dashboardTableShimmer {
    to {
        background-position-x: -200%;
    }
}

.dashboard-row-enter {
    animation: dashboardRowFadeIn 220ms ease forwards;
    animation-delay: var(--row-delay, 0ms);
    opacity: 0;
}

@keyframes dashboardRowFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .dashboard-service-tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Validation States */
.form-control.error,
.form-select.error {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

label.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 400;
}

/* ========================================
   Select2 Bootstrap 5 Theme
   ======================================== */
.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem;
    min-height: 38px;
    height: 38px;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 3px;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #4CAF50 !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

/* Select2 Small Size - Match with form-control-sm height (28px) */
.select2-container--bootstrap-5 .form-select-sm .select2-selection--single,
.select2-container--bootstrap-5.select2-container--small .select2-selection,
.form-select-sm + .select2-container--bootstrap-5 .select2-selection,
.select2-container[class*="form-select-sm"] .select2-selection {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 2rem 0 0.5rem !important;
    font-size: 11px !important;
    line-height: 26px !important;
}

.select2-container--bootstrap-5 .form-select-sm .select2-selection__rendered,
.select2-container--bootstrap-5.select2-container--small .select2-selection__rendered {
    line-height: 26px !important;
    padding: 0 0.5rem !important;
    font-size: 11px !important;
}

.form-select-sm + .select2-container--bootstrap-5 .select2-selection__arrow,
.select2-container--bootstrap-5.select2-container--small .select2-selection__arrow {
    height: 26px !important;
    top: 1px !important;
    right: 1px !important;
    width: 20px !important;
}

/* Select2 Error State */
.select2-container--bootstrap-5.is-invalid .select2-selection,
.select2-container--bootstrap-5.error .select2-selection {
    border-color: #dc3545 !important;
}

/* Select2 Dropdown */
.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #4CAF50;
    color: white;
}

/* ========================================
   Modal Styling
   ======================================== */
.modal-dialog {
    max-width: 600px;
    margin: 1.75rem auto;
}

/* Modal XL - Force large width with higher specificity */
.modal-dialog.modal-xl,
.modal.fade .modal-dialog.modal-xl,
.modal.show .modal-dialog.modal-xl {
    max-width: 1200px !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Modal Kas - force wide modal regardless of breakpoints */
.modal-kas .modal-dialog.modal-xl {
    max-width: 1200px !important;
    width: 95% !important;
}

/* Better centering with higher specificity */
.modal-dialog.modal-dialog-centered,
.modal .modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: calc(100vh - 3.5rem) !important;
    margin: 1.75rem auto !important;
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 100%;
}

.modal-header {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 1.5rem 2rem;
    border-bottom: none;
    color: #fff;
}

/* Modal Header - Delete/Danger (Red Gradient) */
.modal-header.bg-danger,
.modal-header.modal-danger {
    background: linear-gradient(135deg, #f85032 0%, #e73827 100%) !important;
}

/* Modal Header - Add/Success (Green Gradient) */
.modal-header.bg-success,
.modal-header.modal-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%) !important;
}

/* Modal Header - Edit/Primary (Blue Gradient) */
.modal-header.bg-primary,
.modal-header.modal-primary,
.modal-header.bg-info,
.modal-header.modal-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* ========================================
   Dashboard Tabs
   ======================================== */
.dashboard-tabs {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 249, 251, 0.95) 0%, rgba(244, 246, 249, 0.98) 100%);
    border: 1px solid rgba(20, 34, 56, 0.08);
}

.dashboard-tabs .card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-tabs-title {
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #1b2a4e;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.dashboard-tab-nav .nav-link {
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-weight: 600;
    color: #2f3a56;
    border: 1px solid rgba(20, 34, 56, 0.12);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(27, 42, 78, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-tab-nav .nav-link.active {
    background: linear-gradient(135deg, #1f5fbf 0%, #2f80ed 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(47, 128, 237, 0.3);
    transform: translateY(-1px);
}

.dashboard-tab-nav .nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(27, 42, 78, 0.14);
}

.dashboard-tab-content {
    padding-top: 0.25rem;
}

@media (max-width: 768px) {
    .dashboard-tabs .card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Modal Header - Warning (Orange Gradient) */
.modal-header.bg-warning,
.modal-header.modal-warning {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%) !important;
}

/* Modal Header Text Color */
.modal-header .modal-title,
.modal-header .btn-close {
    color: #fff;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
    background-color: #fff;
}

.modal-footer {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.modal-backdrop.show {
    opacity: 0.6;
}

/* Modal Buttons - Gradient Matching Header */
/* Delete Modal - Red Button */
.modal-danger .btn-danger,
.modal-danger .btn-delete,
.btn-modal-danger {
    background: linear-gradient(135deg, #f85032 0%, #e73827 100%) !important;
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(248, 80, 50, 0.4);
    transition: all 0.3s ease;
}

.modal-danger .btn-danger:hover,
.modal-danger .btn-delete:hover,
.btn-modal-danger:hover {
    background: linear-gradient(135deg, #e73827 0%, #d32f2f 100%) !important;
    box-shadow: 0 6px 16px rgba(248, 80, 50, 0.5);
    transform: translateY(-2px);
}

/* Add Modal - Green Button */
.modal-success .btn-success,
.modal-success .btn-save,
.btn-modal-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%) !important;
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(86, 171, 47, 0.4);
    transition: all 0.3s ease;
}

.modal-success .btn-success:hover,
.modal-success .btn-save:hover,
.btn-modal-success:hover {
    background: linear-gradient(135deg, #4a9428 0%, #96cc58 100%) !important;
    box-shadow: 0 6px 16px rgba(86, 171, 47, 0.5);
    transform: translateY(-2px);
}

/* Edit Modal - Blue Button */
.modal-primary .btn-primary,
.modal-primary .btn-update,
.modal-info .btn-info,
.btn-modal-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.modal-primary .btn-primary:hover,
.modal-primary .btn-update:hover,
.modal-info .btn-info:hover,
.btn-modal-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8e 100%) !important;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* Cancel Button - Secondary */
.modal-footer .btn-secondary,
.modal-footer .btn-cancel {
    background: #6c757d;
    border: none;
    color: #fff;
    padding: 0.5rem 1.25rem !important; /* Increased padding for better UX */
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Ensure all modal footer buttons have consistent padding */
.modal-footer .btn {
    padding: 0.5rem 1.25rem !important;
}

/* ========================================
   DataTables Styling
   ======================================== */
.table-responsive {
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

#tableDT,
.table-bordered {
    border: 1px solid #dee2e6;
    margin-bottom: 0;
    width: 100%;
    min-width: max-content;
}

/* DataTables Header - tetap warna asli, lebih rapat */
table.dataTable thead .header-row th,
table.dataTable thead tr th,
#tableDT thead .header-row th,
#tableDT2Service thead tr th,
#omsetService thead tr th,
#labaService thead tr th,
#omsetBadminton thead tr th,
#labaBadminton thead tr th,
#gajiSlip thead tr th,
.table-bordered thead .header-row th {
    border: 1px solid #d0d4db !important;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 0.45rem 0.5rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    white-space: nowrap !important;
    line-height: 1.25 !important;
    height: auto !important;
}

table.dataTable,
#tableDT,
#tableDT.dataTable,
#tableDT2Service,
#omsetService,
#labaService,
#omsetBadminton,
#labaBadminton,
#gajiSlip,
.table-bordered {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Search Row Styling */
#tableDT thead .search-row th {
    background: #f8f9fa;
    padding: 0.35rem 0.4rem;
    border: 1px solid #dee2e6;
    white-space: nowrap;
    vertical-align: middle;
}

#tableDT thead .search-row .column-search {
    width: 100%;
    font-size: 0.75rem;
}

/* Select2 in search row - compact styling */
#tableDT thead .search-row .select2-container {
    width: 100% !important;
}

#tableDT thead .search-row .select2-selection {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    font-size: 0.75rem !important;
    border-color: #ced4da !important;
    border-radius: 4px !important;
}

#tableDT thead .search-row .select2-selection__rendered {
    line-height: 30px !important;
    padding-left: 0.5rem !important;
    padding-right: 1.5rem !important;
    font-size: 0.75rem !important;
}

#tableDT thead .search-row .select2-selection__arrow {
    height: 30px !important;
    top: 1px !important;
    right: 4px !important;
}

#tableDT thead .search-row .select2-selection__arrow b {
    border-width: 4px 4px 0 4px !important;
    margin-top: -2px !important;
}

/* Header hover effect */
table.dataTable thead .header-row th:hover,
table.dataTable thead tr th:hover,
#tableDT thead .header-row th:hover,
#tableDT2Service thead tr th:hover,
#omsetService thead tr th:hover,
#labaService thead tr th:hover,
#omsetBadminton thead tr th:hover,
#labaBadminton thead tr th:hover,
#gajiSlip thead tr th:hover,
.table-bordered thead .header-row th:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
}

/* Sortable column indicator */
/* Add padding-right to sortable columns for icon space */
table.dataTable thead tr th.sorting,
table.dataTable thead tr th.sorting_asc,
table.dataTable thead tr th.sorting_desc,
#tableDT thead .header-row th.sorting,
#tableDT thead .header-row th.sorting_asc,
#tableDT thead .header-row th.sorting_desc,
#tableDT2Service thead tr th.sorting,
#tableDT2Service thead tr th.sorting_asc,
#tableDT2Service thead tr th.sorting_desc,
#omsetService thead tr th.sorting,
#omsetService thead tr th.sorting_asc,
#omsetService thead tr th.sorting_desc,
#labaService thead tr th.sorting,
#labaService thead tr th.sorting_asc,
#labaService thead tr th.sorting_desc,
#omsetBadminton thead tr th.sorting,
#omsetBadminton thead tr th.sorting_asc,
#omsetBadminton thead tr th.sorting_desc,
#labaBadminton thead tr th.sorting,
#labaBadminton thead tr th.sorting_asc,
#labaBadminton thead tr th.sorting_desc,
#gajiSlip thead tr th.sorting,
#gajiSlip thead tr th.sorting_asc,
#gajiSlip thead tr th.sorting_desc {
    padding-right: 1.5rem !important;
}

/* Sorting icons styling */
table.dataTable thead tr th.sorting:before,
table.dataTable thead tr th.sorting:after,
table.dataTable thead tr th.sorting_asc:before,
table.dataTable thead tr th.sorting_asc:after,
table.dataTable thead tr th.sorting_desc:before,
table.dataTable thead tr th.sorting_desc:after,
#tableDT thead .header-row th.sorting:before,
#tableDT thead .header-row th.sorting:after,

/* ========================================
   Service Pricelist (tabs & chips)
   ======================================== */
.service-group-nav .nav-link {
    border-radius: 14px;
    padding: 8px 14px;
    font-weight: 600;
}

.service-group-nav .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.service-layout .service-group-nav {
    gap: 6px;
}

.service-layout .service-group-nav .nav-link {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 600;
    border: 1px solid #e9ecef;
    background: #fff;
}

.service-layout .service-group-nav .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

@media (max-width: 576px) {
    .service-layout .service-group-nav {
        gap: 4px;
    }

    .service-layout .service-group-nav .nav-link {
        padding: 1px 5px;
        border-radius: 10px;
        font-size: 0.78rem;
    }

    .svc-series-name {
        margin-bottom: 1px;
        font-size: 13px;
    }

    .svc-chip-label {
        margin-right: 2px;
        font-weight: 600;
        font-size:12px;
    }

    .svc-chip-value {

        font-size:12px;
    }

    .svc-item {
        padding: 3px 4px;
    }

    .svc-chip {
        padding: 1px 3px;
        font-size: 10px;
    }

}

.svc-table-wrapper table.svc-table {
    font-size: 0.9rem;
}

.svc-table-wrapper thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
}

.svc-table-wrapper td,
.svc-table-wrapper th {
    padding: 8px;
    vertical-align: middle;
}

.svc-table-wrapper tbody tr:nth-child(odd) {
    background: #fbfcfd;
}

@media (max-width: 768px) {
    .svc-table-wrapper table.svc-table {
        font-size: 0.88rem;
    }

    .svc-table-wrapper td,
    .svc-table-wrapper th {
        padding: 6px;
    }
}

/* Service list chips (compact) */
.svc-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.svc-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 6px 8px;
    background: #fff;
}

.svc-series-name {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.svc-price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.svc-chip {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.8rem;
    background: #f9fafb;
}

.svc-chip-label {
    color: #6b7280;
    margin-right: 3px;
    font-weight: 600;
    font-size: 0.78rem;
}

.svc-chip-value {
    font-weight: 700;
    font-size: 0.82rem;
}

.svc-chip.is-price .svc-chip-value {
    color: #e63946;
}

.svc-chip.is-offline .svc-chip-value {
    color: #9aa0a6;
}

@media (max-width: 576px) {
    .svc-item {
        padding: 3px 4px;
    }

    .svc-series-name {
        margin-bottom: 1px;
        font-size: 10px;
    }

    .svc-chip-label {
        margin-right: 2px;
        font-weight: 600;
        font-size: 10px;
    }

    .svc-chip-value {
        font-size: 11px;
    }
}
#tableDT thead .header-row th.sorting_asc:before,
#tableDT thead .header-row th.sorting_asc:after,
#tableDT thead .header-row th.sorting_desc:before,
#tableDT thead .header-row th.sorting_desc:after,
.table-bordered thead .header-row th.sorting:before,
.table-bordered thead .header-row th.sorting:after,
.table-bordered thead .header-row th.sorting_asc:before,
.table-bordered thead .header-row th.sorting_asc:after,
.table-bordered thead .header-row th.sorting_desc:before,
.table-bordered thead .header-row th.sorting_desc:after {
    opacity: 0.8 !important;
    color: #ffffff !important;
    right: 0.5rem !important;
    line-height: 1 !important;
}

/* Active sorting state - highlighted background */
table.dataTable thead tr th.sorting_asc,
table.dataTable thead tr th.sorting_desc,
#tableDT thead .header-row th.sorting_asc,
#tableDT thead .header-row th.sorting_desc,
#tableDT2Service thead tr th.sorting_asc,
#tableDT2Service thead tr th.sorting_desc,
#omsetService thead tr th.sorting_asc,
#omsetService thead tr th.sorting_desc,
#labaService thead tr th.sorting_asc,
#labaService thead tr th.sorting_desc,
#omsetBadminton thead tr th.sorting_asc,
#omsetBadminton thead tr th.sorting_desc,
#labaBadminton thead tr th.sorting_asc,
#labaBadminton thead tr th.sorting_desc,
#gajiSlip thead tr th.sorting_asc,
#gajiSlip thead tr th.sorting_desc {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* Table Body */
#tableDT tbody td,
.table-bordered tbody td {
    border-bottom: 1px solid #e1e5eb;
    border-right: 1px solid #e1e5eb;
    vertical-align: middle !important;
    font-size: 0.8125rem;
    line-height: 1.4;
}

#tableDT tbody td:first-child,
#tableDT thead th:first-child,
#tableDT tfoot th:first-child {
    border-left: 1px solid #d0d5e0;
}

#tableDT tbody td:last-child,
#tableDT thead th:last-child,
#tableDT tfoot td:last-child {
    border-right: 1px solid #d0d5e0;
}

#tableDT tbody tr:last-child td {
    border-bottom: 1px solid #c7ccd8;
}

/* Fix double border issue for table-hover table-sm */
.table-hover.table-sm {
    border-collapse: collapse;
}

.table-hover.table-sm thead th {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    border-left: none;
    border-right: none;
}

.table-hover.table-sm tbody td {
    border-top: 1px solid #dee2e6;
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.table-hover.table-sm tbody tr:last-child td {
    border-bottom: 1px solid #dee2e6;
}

/* Remove vertical borders between cells for cleaner look */
.table-hover.table-sm thead th:not(:first-child),
.table-hover.table-sm tbody td:not(:first-child) {
    border-left: 1px solid #f1f5f9;
}

.table-hover.table-sm thead th:first-child,
.table-hover.table-sm tbody td:first-child {
    border-left: 1px solid #dee2e6;
}

.table-hover.table-sm thead th:last-child,
.table-hover.table-sm tbody td:last-child {
    border-right: 1px solid #dee2e6;
}

/* Buttons inside table cells - ensure proper vertical alignment */
#tableDT tbody td .btn,
#tableDT tbody td a.btn,
#tableDT tbody td button.btn {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

/* Button groups in cells */
#tableDT tbody td .btn-group {
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

#tableDT tbody tr:hover,
.table-hover tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* Striped rows */
#tableDT tbody tr:nth-of-type(odd),
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Column Width Optimization */
#tableDT thead th:first-child,
#tableDT tbody td:first-child,
#tableDT tfoot th:first-child {
    width: 50px;
    min-width: 50px;
    text-align: center !important;
    padding: 0.6rem 0.25rem;
}

#tableDT thead th:nth-child(2),
#tableDT tbody td:nth-child(2),
#tableDT tfoot th:nth-child(2) {
    width: 85px;
    min-width: 85px;
    text-align: center !important;
    padding: 0.6rem 0.3rem;
}

/* Button size consistency in ACTION column */
#tableDT tbody td:nth-child(2) .btn,
#tableDT tbody td:nth-child(2) a.btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.2;
    min-width: auto;
    height: 28px;
}

/* Body TD with buttons - add consistent spacing */
#tableDT tbody td {
    white-space: nowrap;
    padding: 0.3rem 0.45rem;
}

/* Table Footer */
#tableDT tfoot th,
#tableDT tfoot td {
    border: 1px solid #d0d4db;
    background: linear-gradient(135deg, #f4f5f7 0%, #e2e5ee 100%);
    color: #000000;
    font-weight: 700;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem !important;
    letter-spacing: 0.15px;
}

#tableDT tfoot th.tableFooterSum,
#tableDT tfoot td.tableFooterSum {
    text-align: right !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    padding: 0.3rem 0.45rem !important;
    white-space: nowrap !important;
    width: auto !important;
}

.dataTables_scrollFoot tfoot,
.dataTables_scrollFoot tfoot tr,
.dataTables_scrollFoot tfoot th,
.dataTables_scrollFoot tfoot td {
    border-bottom: 1px solid #d0d4db;
    border-top: 1px solid #d0d4db;
    background: linear-gradient(135deg, #f4f5f7 0%, #e2e5ee 100%) !important;
    color: #000000 !important;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15px;
}

.dataTables_scrollFoot tfoot th.tableFooterSum,
.dataTables_scrollFoot tfoot td.tableFooterSum {
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    padding: 0.3rem 0.45rem !important;
    text-align: right !important;
}

/* DataTables Controls */
#tableDT_wrapper .dataTables_length,
#tableDT_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

#tableDT_wrapper .dataTables_length select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

#tableDT_wrapper .dataTables_filter input {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
}

#tableDT_wrapper .dataTables_info {
    padding-top: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

#tableDT_wrapper .dataTables_paginate {
    padding-top: 1rem;
}

/* Pagination Buttons */
#tableDT_wrapper .dataTables_paginate .pagination {
    margin: 0;
}

#tableDT_wrapper .dataTables_paginate .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 0.75rem;
}

#tableDT_wrapper .dataTables_paginate .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

#tableDT_wrapper .dataTables_paginate .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#tableDT_wrapper .dataTables_paginate .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* DataTables Export Buttons */
.dt-buttons .dt-button {
    border-radius: 0.375rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dt-buttons .dt-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Excel Button - Green */
.dt-buttons .buttons-excel {
    background-color: #28a745 !important;
    color: white !important;
    border: none !important;
}

.dt-buttons .buttons-excel:hover {
    background-color: #218838 !important;
}

/* PDF Button - Red */
.dt-buttons .buttons-pdf {
    background-color: #dc3545 !important;
    color: white !important;
    border: none !important;
}

/* ========================================
    PG Pricelist Embed Compact Styles
    ======================================== */
.pgprlist-page,
.pgprlist-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

.pgprlist-page {
    font-size: 0.95rem;
    min-width: 0;
    width: 100%;
}

.pgprlist-page .cache-info {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.8rem;
}

.pgprlist-page .main-wrapper {
    gap: 0.5rem;
}

.pgprlist-page .nav-pills-modern .nav-link {
    padding: 0.35rem 0.8rem;
    font-size: 0.95rem;
}

.pgprlist-page .price-card {
    margin-bottom: 0.75rem;
}

.pgprlist-page .card-header-modern {
    padding: 0.65rem 0.85rem;
}

.pgprlist-page .card-header-modern .fa-2x {
    font-size: 1.4rem;
}

.pgprlist-page .store-title,
.pgprlist-page .card-header-modern h5 {
    font-size: 1.05rem;
}

.pgprlist-page .card-body {
    padding: 0.65rem;
}

.pgprlist-page .content-scroll {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.pgprlist-page .price-item {
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
}

.pgprlist-page .product-name,
.pgprlist-page .product-price {
    font-size: 0.95rem;
}

.pgprlist-page .badge,
.pgprlist-page .badge-stock {
    font-size: 8px;
    padding: 0.25em 0.5em;
}

@media (min-width: 375px) and (max-width: 767px) {
    .pgprlist-page .product-name {
        font-size: 0.9rem;
    }

    .pgprlist-page .main-wrapper {
        padding: 0px;
    }
}

.pgprlist-page .warranty-card {
    padding: 0.75rem;
}

.pgprlist-page .warranty-item {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.pgprlist-page .pgprlist-note {
    padding: 0.65rem 0.75rem;
}

/* Sparepart/Service vertical tab list: make it grid and scrollable */
.pgprlist-page .ps-section-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.35rem;
    max-height: 520px;
    overflow-y: auto;
}

.pgprlist-page .ps-section-nav .nav-link {
    padding: 0.45rem 0.65rem;
    font-size:10px;
    border-radius: 0.6rem;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.pgprlist-page .ps-section-nav .nav-link:hover {
    background: #f1f3f5;
    color: #212529;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.pgprlist-page .ps-section-nav .nav-link.active,
.pgprlist-page .ps-section-nav .nav-link.active:hover {
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.pgprlist-page .service-table-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pgprlist-page .service-table-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.pgprlist-page .service-table-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: linear-gradient(135deg, #ffb347 0%, #ffcc33 100%);
    color: #fff;
}

.pgprlist-page .service-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
}

.pgprlist-page .service-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.15;
}

.pgprlist-page .service-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    line-height: 1.1;
}

.pgprlist-page .service-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.35rem 0.65rem;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    position: relative;
}

.pgprlist-page .service-scrollbar {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    height: 14px;
    margin: 0.25rem 0 0.15rem;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
    border-bottom: 1px solid #f1f3f5;
    border-top: 1px solid #f8f9fa;
    border-radius: 6px;
}

.pgprlist-page .service-scrollbar-inner {
    height: 2px;
}

.pgprlist-page .service-table {
    width: max-content;
    min-width: 520px;
    font-size: 11px;
    color: #343a40;
    border-collapse: separate;
    border-spacing: 0;
}

.pgprlist-page .service-table thead th {
    background: #f8f9fb;
    border-bottom: 1px solid #e9ecef;
    font-weight: 700;
    padding: 0.25rem 0.32rem;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pgprlist-page .service-table tbody td,
.pgprlist-page .service-table tbody th {
    padding: 0.2rem 0.28rem;
    border-top: 1px solid #f1f3f5;
    font-weight: 600;
    background: #fff;
    white-space: nowrap;
}

.pgprlist-page .service-table tbody tr:nth-child(even) td,
.pgprlist-page .service-table tbody tr:nth-child(even) th {
    background: #fbfcfe;
}

.pgprlist-page .service-col-series {
    position: sticky;
    left: 0;
    background: #fff;
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, 0.2);
    min-width: 115px;
    z-index: 2;
    text-align: left;
}

.pgprlist-page .service-table thead .service-col-series {
    z-index: 3;
    background: #f8f9fb;
}

.pgprlist-page .svc-price-on {
    background: #f5fff8;
    color: #e74c3c;
    border-left: 1px solid #e2f5e7;
    border-right: 1px solid #e2f5e7;
}

.pgprlist-page .svc-price-off {
    color: #adb5bd;
    background: #fdfdfe;
}

@media (max-width: 768px) {
    .pgprlist-page .service-table {
        font-size: 9px;
    }

    .pgprlist-page .service-table-header {
        padding: 0.65rem 0.75rem;
    }

    .pgprlist-page .service-col-series {
        min-width: 100px;
    }
}


.badge-status-new {
    background: #0b7a3b !important;
    color: #fff !important;
}

.badge-status-second-resmi {
    background: #0a3c8a !important;
    color: #fff !important;
}

.badge-status-bc {
    background: #fd7e14 !important;
    color: #fff !important;
}

.badge-status-inter {
    background: #6f42c1 !important;
    color: #fff !important;
}

.badge-status-minus {
    background: #dc3545 !important;
    color: #fff !important;
}

.badge-status-cuci {
    background: #6c757d !important;
    color: #fff !important;
}

.pgprlist-page .status-legend-card {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
}

.pgprlist-page .legend-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.pgprlist-page .status-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.pgprlist-page .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
}

.pgprlist-page .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.pgprlist-page .legend-dot.status-new {
    background: #0b7a3b;
}

.pgprlist-page .legend-dot.status-second-resmi {
    background: #0a3c8a;
}

.pgprlist-page .legend-dot.status-bc {
    background: #fd7e14;
}

.pgprlist-page .legend-dot.status-inter {
    background: #6f42c1;
}

.pgprlist-page .legend-dot.status-minus {
    background: #dc3545;
}

.pgprlist-page .legend-dot.status-cuci {
    background: #6c757d;
}

.badge-garansi {
    background: #ffcf66;
    color: #7a4b00;
    border: 1px solid #f3b84a;
    font-weight: 600;
}

@media (max-width: 576px) {

    .price-card .card-body,
    .price-card .content-scroll,
    .price-item {
        padding-left: 1px !important;
        padding-right: 1px !important;
    }

    .price-item {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .pgprlist-page .row > [class*="col-"] {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
}

/* ========================================
   Tukar Tambah Embed Styles
   ======================================== */
.tt-page {
    --tt-primary: #dc3545;
    --tt-secondary: #c82333;
    --tt-success: #06d6a0;
    --tt-danger: #ef476f;
    --tt-dark: #212529;
    background: #f6f8fb;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
    color: #2a2e37;
}

.tt-page .tt-wrapper {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e6e9f0;
    overflow: hidden;
    padding: 0.9rem;
    margin: 0 auto;
    max-width: 820px;
    width: 100%;
}

.tt-page .tt-header {
    background: linear-gradient(135deg, var(--tt-primary) 0%, var(--tt-secondary) 100%);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 11px;
    margin-bottom: 0.75rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.28);
}

.tt-page .tt-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
}

.tt-page .tt-header p {
    margin: 0.28rem 0 0;
    opacity: 0.95;
    font-size: 0.85rem;
}

.tt-page .tt-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ebf2;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.6rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tt-page .tt-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: #dde2ee;
}

.tt-page .tt-card-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--tt-dark);
    margin-bottom: 0.55rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    letter-spacing: 0.01em;
}

.tt-page .tt-card-title i {
    color: var(--tt-primary);
}

.tt-page .form-label {
    font-weight: 600;
    color: var(--tt-dark);
    margin-bottom: 0.25rem;
    font-size: 0.88rem;
}

.tt-page .form-control,
.tt-page .form-select {
    border-radius: 10px;
    border: 1px solid #e4e7ee;
    background: #fbfbfd;
    padding: 0.5rem 0.72rem;
    transition: all 0.2s ease;
    font-size: 0.93rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tt-page .tt-select-wrapper {
    position: relative;
    border: 1px solid #e4e7ee;
    border-radius: 12px;
    background: #fff;
    min-height: 44px;
    padding: 0.2rem 0.85rem;
    display: flex;
    align-items: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-page .tt-select-wrapper:focus-within {
    border-color: var(--tt-primary);
    box-shadow: 0 0 0 0.15rem rgba(220, 53, 69, 0.15);
}

.tt-page .tt-select-wrapper.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tt-page .tt-select-wrapper select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.tt-page .tt-select-display {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1f2937;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.tt-page .form-control:focus,
.tt-page .form-select:focus {
    border-color: var(--tt-primary);
    box-shadow: 0 0 0 0.16rem rgba(220, 53, 69, 0.14);
}

.tt-page .form-select:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.65;
}

.tt-page .form-select:not(:disabled) {
    border-color: var(--tt-primary);
    background: #fff;
}

.tt-page .result-table {
    background: #fdfdff;
    border-radius: 12px;
    padding: 0.78rem 0.9rem;
    margin-top: 0.6rem;
    border: 1px solid #eceff5;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.02);
}

.tt-page .result-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

.tt-page .result-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1f2937;
}

.tt-page .result-highlight {
    background: linear-gradient(135deg, var(--tt-primary) 0%, var(--tt-secondary) 100%);
    color: #fff;
    padding: 0.82rem;
    border-radius: 12px;
    margin-top: 0.6rem;
    box-shadow: 0 12px 26px rgba(220, 53, 69, 0.2);
}

.tt-page .result-highlight .result-label {
    color: #fff;
    opacity: 0.95;
}

.tt-page .result-highlight .result-value {
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.tt-page .exchange-icon {
    text-align: center;
    padding: 0.4rem 0;
    color: var(--tt-primary);
    font-size: 1.4rem;
    position: relative;
}

.tt-page .exchange-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.08);
    z-index: 0;
}

.tt-page .exchange-icon i {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .tt-page .tt-wrapper {
        padding: 0.6rem;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    }

    .tt-page .tt-header {
        padding: 0.5rem 0.6rem;
        margin-bottom: 0.4rem;
    }

    .tt-page .tt-header h2 {
        font-size: 0.9rem;
    }

    .tt-page .tt-header p {
        font-size: 0.65rem;
        margin-top: 0.15rem;
    }

    .tt-page .tt-card {
        padding: 0.35rem 0.4rem;
        margin-bottom: 0.35rem;
        border-radius: 10px;
    }

    .tt-page .tt-card-title {
        font-size: 0.68rem;
        margin-bottom: 0.3rem;
        gap: 0.3rem;
    }

    .tt-page .form-label {
        font-size: 0.62rem;
        margin-bottom: 0.2rem;
    }

    .tt-page .form-control,
    .tt-page .form-select {
        padding: 3px 6px;
        font-size: 10px;
        border-radius: 8px;
        min-height: 28px;
        line-height: 1.2;
        box-sizing: border-box;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tt-page .form-select option,
    .tt-page .form-control option {
        font-size: 10px;
        padding: 2px 4px;
        white-space: normal;
    }

    .tt-page .result-table {
        padding: 0.35rem 0.45rem;
        margin-top: 0.35rem;
    }

    .tt-page .result-row {
        padding: 0.22rem 0;
        margin: 1px 0;
    }

    .tt-page .result-label {
        font-size: 0.6rem;
    }

    .tt-page .result-value {
        font-size: 0.65rem;
    }

    .tt-page .result-highlight {
        padding: 0.35rem;
        margin-top: 0.35rem;
    }

    .tt-page .result-highlight .result-value {
        font-size: 0.8rem;
    }

    .tt-page .exchange-icon {
        font-size: 1.1rem;
        padding: 0.35rem 0;
    }

    .tt-page .tt-select-wrapper {
        min-height: 32px;
        padding: 0.15rem 0.35rem;
        border-radius: 9px;
    }

    .tt-page .tt-select-display {
        font-size: 10px;
    }
}

@media (max-width: 991.98px) {
    .pgprlist-page .ps-section-nav {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-height: 420px;
    }

    .pgprlist-page .content-scroll {
        max-height: none !important;
        overflow: visible !important;
        padding:5px;
    }
}

.dt-buttons .buttons-pdf:hover {
    background-color: #c82333 !important;
}

/* Print Button - Yellow */
.dt-buttons .buttons-print {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border: none !important;
}

.dt-buttons .buttons-print:hover {
    background-color: #e0a800 !important;
}

/* ========================================
   Badge Styling
   ======================================== */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 6px;
}

/* ========================================
   Empty State Styling
   ======================================== */
/* Remove border from empty state table header */
table thead tr th.border-0 {
    border: none !important;
}

table thead tr th.p-0 {
    padding: 0 !important;
}

.empty-state-container {
    background: linear-gradient(135deg, #a8c0ff 0%, #c0b3e8 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    color: #1a202c;
    text-align: center;
    box-shadow: 0 4px 16px rgba(168, 192, 255, 0.2);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.empty-state-icon i {
    font-size: 2.5rem;
    color: #2d3748;
    opacity: 1;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a202c;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.empty-state-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-hint {
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #2d3748;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.empty-state-hint i {
    color: #f59e0b;
}

/* Dark mode empty state */
[data-theme="dark"] .empty-state-container {
    background: linear-gradient(135deg, #4a5f7f 0%, #3d4f66 100%);
    box-shadow: 0 4px 16px rgba(74, 95, 127, 0.3);
    color: #e2e8f0;
}

[data-theme="dark"] .empty-state-icon {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .empty-state-icon i {
    color: #cbd5e0;
}

[data-theme="dark"] .empty-state-title {
    color: #f7fafc;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .empty-state-text {
    color: #cbd5e0;
}

[data-theme="dark"] .empty-state-hint {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

[data-theme="dark"] .empty-state-hint i {
    color: #fbbf24;
}

/* ========================================
   Animation Classes
   ======================================== */
.animate__faster {
    animation-duration: 0.5s;
}

.tableDT.invisible {
    min-height: 300px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-dialog.modal-xl {
        max-width: calc(100% - 1rem);
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 540px;
    }

    .modal-dialog.modal-xl,
    .modal .modal-dialog.modal-xl {
        max-width: 95% !important;
        width: 95% !important;
    }
}

@media (min-width: 768px) {
    .modal-dialog.modal-xl,
    .modal .modal-dialog.modal-xl {
        max-width: 720px !important;
        width: 90% !important;
    }
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 600px;
    }

    .modal-dialog.modal-xl,
    .modal .modal-dialog.modal-xl {
        max-width: 980px !important;
        width: 90% !important;
    }
}

@media (min-width: 1200px) {
    .modal-dialog.modal-xl,
    .modal .modal-dialog.modal-xl {
        max-width: 1200px !important;
        width: 90% !important;
    }
}

@media (min-width: 1400px) {
    .modal-dialog.modal-xl,
    .modal .modal-dialog.modal-xl {
        max-width: 1300px !important;
        width: 85% !important;
    }
}

@media (min-width: 1600px) {
    .modal-dialog.modal-xl,
    .modal .modal-dialog.modal-xl {
        max-width: 1400px !important;
        width: 80% !important;
    }
}/* ========================================
   Dark Mode Support
   ======================================== */
[data-theme="dark"] .card {
    background-color: #2a2e3a;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .modal-content {
    background-color: #2a2e3a;
    color: #fff;
}

[data-theme="dark"] .modal-header {
    border-bottom: none;
}

[data-theme="dark"] .modal-body {
    background-color: #2a2e3a;
}

[data-theme="dark"] .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
}

/* Dark mode - Gradient headers tetap terlihat jelas */
[data-theme="dark"] .modal-header.bg-danger,
[data-theme="dark"] .modal-header.modal-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%) !important;
}

[data-theme="dark"] .modal-header.bg-success,
[data-theme="dark"] .modal-header.modal-success {
    background: linear-gradient(135deg, #51cf66 0%, #94d82d 100%) !important;
}

[data-theme="dark"] .modal-header.bg-primary,
[data-theme="dark"] .modal-header.modal-primary,
[data-theme="dark"] .modal-header.bg-info,
[data-theme="dark"] .modal-header.modal-info {
    background: linear-gradient(135deg, #748ffc 0%, #8d66c3 100%) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: #1e2128;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

[data-theme="dark"] .input-group-text {
    background-color: #1e2128;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Select2 Dark Mode */
[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
    background-color: #1e2128 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: #1e2128;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #fff;
}

[data-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #4CAF50;
}

[data-theme="dark"] .table {
    color: #e0e6ed;
}

/* Dark mode table borders */
[data-theme="dark"] #tableDT,
[data-theme="dark"] #tableDT thead th,
[data-theme="dark"] #tableDT tbody td,
[data-theme="dark"] .table-bordered,
[data-theme="dark"] .table-bordered thead th,
[data-theme="dark"] .table-bordered tbody td {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dark Mode - DataTables Header dengan Gradient yang lebih terang */
[data-theme="dark"] #tableDT thead .header-row th,
[data-theme="dark"] .table-bordered thead .header-row th {
    background: linear-gradient(135deg, #3d4f66 0%, #4a5f7f 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] #tableDT thead .header-row th:hover,
[data-theme="dark"] .table-bordered thead .header-row th:hover {
    background: linear-gradient(135deg, #4a5f7f 0%, #3d4f66 100%);
}

/* Dark mode search row */
[data-theme="dark"] #tableDT thead .search-row th {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] #tableDT thead .search-row .select2-selection {
    background: #4a5568 !important;
    border-color: #718096 !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] #tableDT thead .search-row .select2-selection__rendered {
    color: #e2e8f0 !important;
}

[data-theme="dark"] #tableDT thead .search-row .select2-selection__placeholder {
    color: #a0aec0 !important;
}

[data-theme="dark"] #tableDT thead .search-row .select2-selection__arrow b {
    border-top-color: #cbd5e0 !important;
}

/* =====================================================
   Frontend Price List (PG Price List)
   ===================================================== */
.pgprlist-page {
    --primary-color: #dc3545;
    --secondary-color: #c82333;
    --success-color: #06d6a0;
    --danger-color: #ef476f;
    --warning-color: #ffd60a;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    background: #fff;
    min-height: 100vh;
    font-family: 'Nunito', sans-serif;
}

.pgprlist-page .main-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
    padding: 0.75rem;
    max-width: 100%;
    width: 100%;
}

.pgprlist-page .price-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all .3s ease;
}

.pgprlist-page .price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, .15);
}

.pgprlist-page .card-header-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 0.6rem 0.75rem;
    border: none;
}

.pgprlist-page .card-header-modern h5,
.pgprlist-page .card-header-modern small,
.pgprlist-page .card-header-modern .header-inline i {
    color: #fff;
}

.pgprlist-page .card-header-modern.ps-sparepart {
    background: linear-gradient(135deg, #4c6fff 0%, #6b8bff 100%);
}

.pgprlist-page .card-header-modern.ps-jasa {
    background: linear-gradient(135deg, #ff9a3c 0%, #ff6f61 100%);
}

.pgprlist-page .card-header-modern .header-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.pgprlist-page .card-header-modern .header-inline i {
    font-size: 1.25rem;
}

.pgprlist-page .pgprlist-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: linear-gradient(135deg, #fff, #f8f9ff);
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    font-size: 0.82rem;
    color: #4a5568;
}

.pgprlist-page .pgprlist-note .note-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b6b, #f06595);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.35);
}

.pgprlist-page .pgprlist-note .note-title {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2px;
}

.pgprlist-page .pgprlist-note .note-text {
    line-height: 1.35;
}

@media (max-width: 992px) {
    .pgprlist-page .main-wrapper {
        padding: 0.65rem;
        border-radius: 15px;
    }

    .pgprlist-page .card-header-modern {
        padding: 0.65rem;
    }

    .pgprlist-page .nav-pills-modern .nav-link {
        font-size: .76rem;
        padding: .28rem .52rem;
    }

    .pgprlist-page .price-item {
        padding: .36rem .5rem;
    }

    .pgprlist-page .product-name {
        font-size: .78rem;
    }

    .pgprlist-page .product-price {
        font-size: .85rem;
    }

    .pgprlist-page .content-scroll {
        max-height: 380px;
    }
}

@media (max-width: 576px) {
    .pgprlist-page .container-fluid {
        padding: .28rem !important;
    }

    .pgprlist-page .store-switch {
        padding: .2rem;
        border-radius: 11px;
    }

    .pgprlist-page .nav-pills-modern .nav-link {
        margin: 0 .06rem .2rem;
    }

    .pgprlist-page .price-card {
        border-radius: 11px;
    }

    .pgprlist-page .content-scroll {
        max-height: 320px;
    }
}

/* Extra-compact mobile tweaks for Sparepart & Service view */
@media (max-width: 576px) {
    .pgprlist-page .tab-content {
        padding: 0 !important;
    }

    .pgprlist-page {
        font-size: 0.85rem;
    }

    /* Top pills (Handphone / Sparepart & Service) and store tabs */
    .pgprlist-page .nav-pills-modern {
        gap: 0.05rem;
        margin-bottom: 0.12rem !important;
    }

    .pgprlist-page .nav-pills-modern .nav-link {
        padding: 0.12rem 0.3rem;
        font-size: 0.62rem;
        border-radius: 5px;
        line-height: 1.15;
        margin: 0 0.04rem 0.08rem;
    }

    .pgprlist-page .nav-pills-modern .nav-link i {
        font-size: 0.5em;
        margin-right: 0.12rem;
    }

    /* Header card (badge + title) */
    .pgprlist-page .card-header-modern {
        padding: 0.45rem 0.55rem;
        border-radius: 10px;
    }

    .pgprlist-page .card-header-modern h5,
    .pgprlist-page .store-title {
        font-size: 0.85rem;
        margin-bottom: 0.05rem;
    }

    .pgprlist-page .card-header-modern .badge {
        font-size: 0.64rem;
        padding: 0.18rem 0.45rem;
    }

    /* Body spacing */
    .pgprlist-page .card-body {
        padding: 0.45rem !important;
    }

    /* Price item cards */
    .pgprlist-page .price-item {
        padding: 0.28rem 0.45rem;
        border-radius: 10px;
        gap: 0.15rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .pgprlist-page .product-name,
    .pgprlist-page .product-price {
        font-size: 8px;
    }

    .pgprlist-page .product-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        line-height: 1.2;
        margin-inline-end: 0.45rem;
    }

    .pgprlist-page .product-stock {
        font-size: 0.58rem;
        line-height: 1.1;
        margin-inline-start: 0.35rem;
    }

    /* Order and alignment: name → stok → harga */
    .pgprlist-page .product-name { order: 1; }
    .pgprlist-page .product-stock { order: 2; }
    .pgprlist-page .product-price {
        order: 3;
        font-weight: 700;
        font-size: 10px;
        margin-top: 0.1rem;
    }

    /* Info banner spacing */
    .pgprlist-page .cache-info {
        padding: 0.55rem 0.65rem;
        margin-bottom: 0.6rem;
        border-radius: 12px;
    }
}

.pgprlist-page .nav-pills-modern .nav-link {
    border-radius: 8px;
    padding: .32rem .6rem;
    margin: 0 .1rem;
    font-weight: 600;
    font-size: .8rem;
    color: #6c757d;
    background: #f8f9fa;
    transition: all .3s ease;
    border: 2px solid transparent;
}

.pgprlist-page .nav-pills-modern .nav-link:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.pgprlist-page .nav-pills-modern .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    border-color: transparent;
}

.pgprlist-page .store-switch {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: .25rem;
    margin-bottom: .55rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);
}

.pgprlist-page .store-switch .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-transform: uppercase;
    letter-spacing: .2px;
}

.pgprlist-page .store-switch .nav-link .badge {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: .13rem .4rem;
    font-weight: 700;
}

.pgprlist-page .price-item {
    padding: .4rem .55rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all .2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.pgprlist-page .price-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.pgprlist-page .price-item:last-child {
    border-bottom: none;
}

.pgprlist-page .product-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    gap: 0.25rem;
}

.pgprlist-page .product-stock {
    font-size: .7rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
}

.pgprlist-page .product-price {
    font-size: .9rem;
    font-weight: 700;
    color: var(--danger-color);
}

.pgprlist-page .badge-stock {
    background: linear-gradient(135deg, var(--success-color) 0%, #00b894 100%);
    color: #fff;
    padding: .22rem .5rem;
    border-radius: 8px;
    font-size: .64rem;
    font-weight: 600;
}

.pgprlist-page .content-scroll {
    max-height: none !important;
    overflow: visible !important;
    padding:5px;
}

.pgprlist-page .warranty-card {
    background: #fff;
    border-radius: 15px;
    padding: .8rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.pgprlist-page .warranty-item {
    padding: .5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: .35rem;
    border-left: 4px solid var(--success-color);
}

.pgprlist-page .store-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
}

.pgprlist-page .empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.pgprlist-page .cache-info {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(200, 35, 51, 0.1) 100%);
    border-radius: 12px;
    padding: 9px 14px;
    margin-bottom: 12px;
    border: 2px solid rgba(220, 53, 69, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgprlist-page .cache-info .info-text {
    font-size: 12px;
    color: #495057;
    text-align: center;
}

.pgprlist-page .cache-info .info-text i {
    color: var(--primary-color);
    margin-right: 8px;
}

@media (max-width: 374px) {
    .pgprlist-page .container-fluid {
        padding: .25rem !important;
    }

    .pgprlist-page .main-wrapper {
        padding: 0px;
        border-radius: 12px;
    }

    .pgprlist-page .price-card {
        margin-bottom: .25rem;
        border-radius: 8px;
        border-width: 0.5px;
    }

    .pgprlist-page .card-header-modern {
        padding: .4rem;
        border-radius: 8px 8px 0 0;
    }

    .pgprlist-page .card-header-modern i {
        font-size: 1rem !important;
        margin-right: .5rem !important;
    }

    .pgprlist-page .store-title {
        font-size: .85rem;
        line-height: 1.2;
    }

    .pgprlist-page .card-header-modern p {
        font-size: .6rem !important;
        margin-top: .1rem;
    }

    .pgprlist-page .card-body {
        padding: .5rem !important;
    }

    .pgprlist-page .nav-pills-modern {
        gap: .15rem;
        margin-bottom: .35rem !important;
        justify-content: center;
    }

    .pgprlist-page .nav-pills-modern .nav-link {
        font-size: .55rem;
        padding: .25rem .35rem;
        margin: 0 .05rem .15rem .05rem;
        border-radius: 6px;
        white-space: nowrap;
    }

    .pgprlist-page .nav-pills-modern .nav-link i {
        font-size: .5rem;
        margin-right: .15rem;
    }

    .pgprlist-page .price-item {
        padding: 1px;
        gap: 2px;
        flex-direction: row;
    }

    .pgprlist-page .product-name {
        font-size: 8px;
        flex-wrap: nowrap;
        margin-inline-end: 0px;
    }

    .pgprlist-page .product-stock {
        font-size: .55rem;
        margin-left: 0 !important;
        margin-top: .15rem;
        display: block;
        width: 100%;
    }

    .pgprlist-page .product-price {
        font-size: 8px;
        font-weight: 700;
        align-self: flex-end;
        text-align: right;
        white-space: nowrap;
    }

    .pgprlist-page .badge-stock {
        padding: .1rem .3rem;
        font-size: .5rem;
        border-radius: 4px;
    }

    .pgprlist-page .content-scroll {
        max-height: 350px;
    }

    .pgprlist-page .warranty-card {
        padding: .4rem;
        border-radius: 8px;
        margin-top: .5rem;
    }

    .pgprlist-page .warranty-card h5 {
        font-size: .75rem;
        margin-bottom: .3rem !important;
    }

    .pgprlist-page .warranty-item {
        padding: .25rem;
        font-size: .6rem;
        margin-bottom: .2rem;
        border-radius: 6px;
        border-left-width: 3px;
    }

    .pgprlist-page .warranty-item i {
        font-size: .55rem;
        margin-right: .15rem;
    }

    .pgprlist-page .empty-state {
        padding: 1rem;
        font-size: .7rem;
    }

    .pgprlist-page .empty-state i {
        font-size: 1.5rem !important;
        margin-bottom: .5rem !important;
    }
}

@media (min-width: 375px) and (max-width:767px) {
    .pgprlist-page .container-fluid {
        padding: .4rem !important;
    }

    .pgprlist-page .main-wrapper {
        padding: .75rem;
    }

    .pgprlist-page .price-card {
        margin-bottom: .4rem;
        border-radius: 12px;
    }

    .pgprlist-page .card-header-modern {
        padding: .5rem;
    }

    .pgprlist-page .store-title {
        font-size: 1rem;
    }

    .pgprlist-page .card-header-modern p {
        font-size: .7rem !important;
    }

    .pgprlist-page .card-header-modern i {
        font-size: 1.2rem !important;
    }

    .pgprlist-page .card-body {
        padding: .5rem !important;
    }

    .pgprlist-page .nav-pills-modern {
        flex-wrap: wrap;
        margin-bottom: .5rem !important;
    }

    .pgprlist-page .nav-pills-modern .nav-link {
        margin-bottom: .25rem;
        font-size: .65rem;
        padding: .3rem .5rem;
        margin: 0 .1rem .25rem .1rem;
    }

    .pgprlist-page .nav-pills-modern .nav-link i {
        font-size: .6rem;
    }

    .pgprlist-page .price-item {
        padding: 1px;
        flex-direction: row;
    }

    .pgprlist-page .product-name {
        font-size: 8px;
        flex-wrap: wrap;
        margin-inline-end: 0px;
    }

    .pgprlist-page .product-stock {
        font-size: 9px;
        margin-inline-start: 0px;
    }

    .pgprlist-page .product-price {
        font-size: 8px;
        white-space: nowrap;
    }

    .pgprlist-page .badge-stock {
        padding: .15rem .4rem;
        font-size: .6rem;
    }

    .pgprlist-page .content-scroll {
        max-height: none !important;
        overflow: visible !important;
    }

    /* Ultra-small phones: allow horizontal scrolling for wide tables/lists */
    @media (max-width: 374px) {
        .pgprlist-page .content-scroll {
            overflow-x: auto !important;
            overflow-y: visible !important;
            -webkit-overflow-scrolling: touch;
        }
    }

    .pgprlist-page .warranty-card {
        padding: .5rem;
        border-radius: 12px;
    }

    .pgprlist-page .warranty-card h5 {
        font-size: .9rem;
        margin-bottom: .5rem !important;
    }

    .pgprlist-page .warranty-item {
        padding: .35rem;
        font-size: .7rem;
        margin-bottom: .25rem;
    }

    .pgprlist-page .warranty-item i {
        font-size: .65rem;
    }

    .pgprlist-page .empty-state {
        padding: 1.5rem;
        font-size: .8rem;
    }

    .pgprlist-page .empty-state i {
        font-size: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pgprlist-page .container-fluid {
        padding: .75rem !important;
    }

    .pgprlist-page .nav-pills-modern .nav-link {
        font-size: .75rem;
        padding: .4rem .6rem;
    }

    .pgprlist-page .price-item {
        padding: .5rem .75rem;
    }

    .pgprlist-page .product-name {
        font-size: .85rem;
    }

    .pgprlist-page .product-price {
        font-size: .9rem;
    }
}

@media (max-width: 576px) {
    .pgprlist-page .cache-info {
        padding: 10px 15px;
    }

    .pgprlist-page .cache-info .info-text {
        font-size: 12px;
    }
}

[data-theme="dark"] #tableDT thead .header-row th.sorting_asc,
[data-theme="dark"] #tableDT thead .header-row th.sorting_desc {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}

/* Dark mode table body */
[data-theme="dark"] #tableDT tbody td,
[data-theme="dark"] .table-bordered tbody td {
    background-color: #1e2128;
    color: #e0e6ed;
}

[data-theme="dark"] #tableDT tbody tr:hover,
[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #tableDT tbody tr:nth-of-type(odd),
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Dark mode controls */
[data-theme="dark"] #tableDT_wrapper .dataTables_length select,
[data-theme="dark"] #tableDT_wrapper .dataTables_filter input {
    background-color: #1e2128;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e6ed;
}

[data-theme="dark"] #tableDT_wrapper .dataTables_info {
    color: #9ca3af;
}

[data-theme="dark"] #tableDT_wrapper .dataTables_paginate .page-link {
    background-color: #2a2e3a;
    border-color: rgba(255, 255, 255, 0.2);
    color: #e0e6ed;
}

[data-theme="dark"] #tableDT_wrapper .dataTables_paginate .page-link:hover {
    background-color: #3d4f66;
    border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] #tableDT_wrapper .dataTables_paginate .page-item.active .page-link {
    background: linear-gradient(135deg, #748ffc 0%, #8d66c3 100%);
    border-color: #748ffc;
    color: #fff;
    box-shadow: 0 2px 8px rgba(116, 143, 252, 0.4);
}

/* Dark Mode - DataTables Export Buttons */
[data-theme="dark"] .dt-buttons .buttons-excel {
    background-color: #28a745 !important;
    color: white !important;
}

[data-theme="dark"] .dt-buttons .buttons-excel:hover {
    background-color: #218838 !important;
}

[data-theme="dark"] .dt-buttons .buttons-pdf {
    background-color: #dc3545 !important;
    color: white !important;
}

[data-theme="dark"] .dt-buttons .buttons-pdf:hover {
    background-color: #c82333 !important;
}

[data-theme="dark"] .dt-buttons .buttons-print {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

[data-theme="dark"] .dt-buttons .buttons-print:hover {
    background-color: #e0a800 !important;
}

/* ========================================
   Dark Mode Legacy (from fdme.css)
   ======================================== */
.dark-theme p,
.dark-theme ol,
.dark-theme ul,
.dark-theme li,
.dark-theme thead,
.dark-theme tbody,
.dark-theme label,
.dark-theme input,
.dark-theme tr,
.dark-theme th,
.dark-theme td,
.dark-theme th:before,
.dark-theme td:before,
.dark-theme th:after,
.dark-theme td:after,
.dark-theme button,
.dark-theme i,
.dark-theme .text-dark,
.dark-theme .btn-dark,
.dark-theme .dropdown-header,
.dark-theme .sidebar-compact-switch {
  color: #c2c6dc !important;
  border-color: #c2c6dc !important;
}

.dark-theme .text-primary {
  color: #6547d4 !important;
}

.dark-theme .border-primary {
  border-color: #6547d4 !important;
}

.dark-theme .btn-primary {
  color: #fff !important;
  border-color: #fff !important;
  background-color: #6547d4 !important;
}

.dark-theme .btn-outline-primary {
  color: #6547d4 !important;
  border-color: #6547d4 !important;
  background-color: transparent !important;
}

.dark-theme .text-warning {
  color: #ffc107 !important;
}

.dark-theme .border-warning {
  border-color: #ffc107 !important;
}

.dark-theme .btn-warning {
  color: #727272 !important;
  border-color: #fff !important;
  background-color: #ffc107 !important;
}

.dark-theme .btn-outline-warning {
  color: #ffc107 !important;
  border-color: #ffc107 !important;
  background-color: transparent !important;
}

.dark-theme .text-success {
  color: #28a745 !important;
}

.dark-theme .border-success {
  border-color: #28a745 !important;
}

.dark-theme .btn-success {
  color: #fff !important;
  border-color: #fff !important;
  background-color: #28a745 !important;
}

.dark-theme .btn-outline-success {
  color: #28a745 !important;
  border-color: #28a745 !important;
  background-color: transparent !important;
}

.dark-theme .text-secondary {
  color: #5e5e5e !important;
}

.dark-theme .border-secondary {
  border-color: #5e5e5e !important;
}

.dark-theme .btn-secondary {
  color: #5e5e5e !important;
  border-color: #5e5e5e !important;
  background-color: #c2c6dc !important;
}

.dark-theme .btn-outline-secondary {
  color: #c2c6dc !important;
  border-color: #c2c6dc !important;
  background-color: transparent !important;
}

.dark-theme .text-danger {
  color: #f44336 !important;
}

.dark-theme .border-danger {
  border-color: #f44336 !important;
}

.dark-theme .btn-danger {
  color: #fff !important;
  border-color: #fff !important;
  background-color: #f44336 !important;
}

.dark-theme .btn-outline-danger {
  color: #f44336 !important;
  border-color: #f44336 !important;
  background-color: transparent !important;
}

.dark-theme .text-info {
  color: #3c85df !important;
}

.dark-theme .border-info {
  border-color: #3c85df !important;
}

.dark-theme .btn-info {
  color: #fff !important;
  border-color: #fff !important;
  background-color: #3c85df !important;
}

.dark-theme .btn-outline-info {
  color: #3c85df !important;
  border-color: #3c85df !important;
  background-color: transparent !important;
}

.dark-theme .modal-content {
  background-color: #10163a !important;
}

.dark-theme img {
  filter: invert(100%) !important;
}

.dark-theme .select2-selection,
.dark-theme .select2-selection__rendered,
.dark-theme .select2-search,
.dark-theme .select2-results,
.dark-theme #smartwizard .nav,
.dark-theme #smartwizard .step-content,
.dark-theme #smartwizard .btn-toolbar {
  background-color: #10163a !important;
  color: #c2c6dc !important;
  border-color: #c2c6dc !important;
}

/* ========================================
   Print Styles - Thermal & Normal Templates
   ======================================== */

/* Thermal Print (Receipt 58mm-80mm) */
@media print {
  .thermal-print body, .thermal-print div, .thermal-print table, .thermal-print td, .thermal-print th { font-family: 'Tahoma', 'Verdana', Arial, sans-serif !important; font-size: 11pt !important; color: #000 !important; }
  .thermal-print .font-bold { font-weight: bold; }
  .thermal-print .font-large { font-size: 13pt !important; }
  .thermal-print .font-small { font-size: 9pt !important; }
  .thermal-print .border-dashed { border-top: 1px dashed #000 !important; }
}

/* A5 Landscape Print (210x148mm) */
/* @page { size: A5 landscape; margin: 4mm; } - Disabled for thermal */
/* .print-normal - Disabled */
@media print {
  .a5-landscape body { margin: 0; }
}
.print-container { width: 202mm; margin: 0 auto; font-family: 'Arial', 'Helvetica', sans-serif; color: #000; background: #fff; font-size: 7pt; }
.print-header { border: 2px solid #000; border-radius: 2px; overflow: hidden; margin-bottom: 2mm; }
.print-header-row { display: flex; align-items: stretch; }
.print-header-left { width: 35%; border-right: 2px solid #000; padding: 3px 5px; background: #f8f9fa; }
.print-header-center { width: 40%; border-right: 2px solid #000; padding: 3px 5px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.print-header-right { width: 25%; padding: 3px 5px; background: #f8f9fa; }
.print-title { font-size: 14pt; font-weight: 800; margin: 0; padding: 0; letter-spacing: 0.3px; }
.print-subtitle { font-size: 7pt; margin: 1px 0; line-height: 1.2; }
.print-warehouse { font-size: 8pt; font-weight: 700; margin: 2px 0; padding-bottom: 2px; border-bottom: 1px solid #666; }
.print-address { font-size: 6pt; margin: 1px 0; }
.meta-table { width: 100%; font-size: 7pt; border-collapse: collapse; }
.meta-table td { padding: 0.5px 1px; line-height: 1.2; }
.meta-label { font-weight: 600; width: 70px; }
.meta-separator { width: 6px; text-align: center; }
.print-section { border: 2px solid #000; border-radius: 2px; margin-top: 2mm; overflow: hidden; }
.section-title { font-size: 8pt; font-weight: 700; text-align: center; padding: 2px; background: #000; color: #fff; }
.section-content { padding: 3px 5px; }
.print-table { width: 100%; border-collapse: collapse; font-size: 7pt; }
.print-table thead th { background: #000; color: #fff; padding: 2px 3px; font-weight: 700; text-align: center; border: 1px solid #000; }
.print-table tbody td { padding: 1px 3px; border: 1px solid #000; line-height: 1.2; }
.print-table tfoot td { padding: 2px 3px; font-weight: 700; border: 1px solid #000; }
.barcode-container { text-align: center; margin: 2px 0; }
.info-box { border: 1px solid #000; border-radius: 2px; padding: 2px 4px; margin: 1mm 0; background: #f8f9fa; }
.info-label { font-weight: 700; display: inline-block; min-width: 80px; }
.summary-box { border: 2px solid #000; border-radius: 2px; padding: 3px 5px; margin-top: 2mm; background: #f8f9fa; }
.summary-table { width: 100%; font-size: 7pt; }
.summary-table td { padding: 1px 2px; line-height: 1.2; }
.summary-label { font-weight: 700; text-align: right; width: 70%; }
.summary-value { font-weight: 700; text-align: right; border-bottom: 1px solid #ddd; }
.print-footer { margin-top: 2mm; display: flex; justify-content: space-between; gap: 3mm; }
.signature-box { flex: 1; border: 1.5px solid #000; border-radius: 2px; text-align: center; padding: 2px; }
.signature-title { font-size: 7pt; font-weight: 700; padding: 2px; background: #000; color: #fff; border-radius: 2px 2px 0 0; margin: -2px -2px 0 -2px; }
.signature-space { height: 15mm; border-bottom: 1px solid #000; margin: 2mm 5mm; }
.signature-name { font-size: 6pt; margin-top: 2px; }

/* A5 Portrait Service Print (148x210mm) */
.service-container { width: 138mm; margin: 5mm auto; padding: 0; font-family: 'Arial', 'Helvetica', sans-serif; color: #000; background: #fff; position: relative; }
.service-header { border: 2px solid #000; border-radius: 3px; overflow: hidden; }
.service-info { border-right: 2px solid #000; padding: 5px 8px; }
.service-title { font-size: 18pt; font-weight: 800; letter-spacing: 0.5px; margin: 0; padding: 0; color: #1a1a1a; }
.service-subtitle { font-size: 8pt; margin: 2px 0; line-height: 1.2; }
.service-contact { font-size: 9pt; margin: 2px 0; line-height: 1.3; }
.service-meta { padding: 3px 5px; background: #f8f9fa; }

/* Print Utilities */
.text-6pt { font-size: 6pt; }
.text-7pt { font-size: 7pt; }
.text-8pt { font-size: 8pt; }
.text-9pt { font-size: 9pt; }
.text-10pt { font-size: 10pt; }
.mt-1 { margin-top: 1mm; }
.mt-2 { margin-top: 2mm; }
.mb-1 { margin-bottom: 1mm; }
.mb-2 { margin-bottom: 2mm; }
.p-1 { padding: 1mm; }
.p-2 { padding: 2mm; }
.text-red { color: #dc3545; }
.text-green { color: #28a745; }
.text-blue { color: #007bff; }
.bg-gray { background-color: #f8f9fa; }
.bg-light-gray { background-color: #f1f3f5; }
.border-top{border-top:1px solid #000}.border-bottom{border-bottom:1px solid #000}.border-left{border-left:1px solid #000}.border-right{border-right:1px solid #000}.border-all{border:1px solid #000}.d-flex{display:flex}.justify-between{justify-content:space-between}.align-center{align-items:center}.gap-2{gap:2mm}

/* ========== MODERN SIDEBAR (Minimized from sidebar-modern.css) ========== */
@media(max-width:1150px){.layout-sidebar-vertical .sidebar-panel{left:-300px!important}.sidebar-panel.sidebar-switch-open{left:0!important;transition:left .3s ease}}
.scroll-nav{scroll-behavior:smooth;-webkit-overflow-scrolling:touch;height:calc(100vh - 200px)!important;max-height:calc(100vh - 200px)!important;overflow-y:auto!important;overflow-x:hidden!important;position:relative!important}
.scroll-nav::-webkit-scrollbar{width:8px}.scroll-nav::-webkit-scrollbar-track{background:rgba(0,0,0,.05);border-radius:4px}.scroll-nav::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:4px;transition:background .2s}.scroll-nav::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.4)}.scroll-nav::-webkit-scrollbar-thumb:active{background:rgba(0,0,0,.5)}
.scroll-nav.ps{overflow-y:auto!important}.scroll-nav.ps>.ps__rail-y{display:none!important}
.scroll-nav .side-nav,.scroll-nav .main-menu{height:100%}
.sidebar-panel{will-change:transform;transition:all .3s cubic-bezier(.4,0,.2,1);overflow:hidden!important;display:flex;flex-direction:column}
.metismenu{padding:.5rem 0}.metismenu>li{margin-bottom:.25rem;transition:all .2s ease}.metismenu>li>a{display:flex;align-items:center;padding:.85rem 1.5rem;border-radius:.5rem;margin:0 .75rem;transition:all .3s cubic-bezier(.4,0,.2,1);position:relative;overflow:hidden}
.metismenu>li>a:hover{background:rgba(99,102,241,.08);transform:translateX(4px);box-shadow:0 2px 8px rgba(99,102,241,.15)}
.metismenu>li.mm-active>a,.metismenu>li>a.font-weight-bold{background:linear-gradient(135deg,rgba(99,102,241,.15) 0%,rgba(139,92,246,.15) 100%);color:#6366f1!important;font-weight:700!important;box-shadow:0 4px 12px rgba(99,102,241,.25);border-left:4px solid #6366f1;padding-left:calc(1.25rem - 4px);position:relative}
.metismenu>li.mm-active>a::before,.metismenu>li>a.font-weight-bold::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#6366f1 0%,#8b5cf6 100%);box-shadow:0 0 10px rgba(99,102,241,.5)}
.metismenu>li.mm-active>a i,.metismenu>li>a.font-weight-bold i{color:#6366f1!important;animation:iconPulse 1.5s ease-in-out infinite;transform-origin:center}
.metismenu>li.mm-active>a .item-name,.metismenu>li>a.font-weight-bold .item-name{color:#6366f1!important;letter-spacing:.3px}
@keyframes iconPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
.metismenu a i{transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:.85rem;flex-shrink:0}
.metismenu .item-name{font-size:14px!important;line-height:1.5;white-space:nowrap;overflow:visible;text-overflow:clip;flex:1;min-width:0}
.metismenu>li>a:hover i{transform:rotate(5deg) scale(1.1);color:#6366f1}
.metismenu .has-arrow::after{transition:all .3s ease}.metismenu .mm-active.has-arrow::after{transform:rotate(180deg);color:#6366f1}
.metismenu ul{background:rgba(0,0,0,.02);border-radius:.5rem;margin:.25rem .75rem;padding:.5rem 0;overflow:hidden;max-height:0;opacity:0;transition:all .4s cubic-bezier(.4,0,.2,1)}
.metismenu .mm-show{max-height:2500px!important;opacity:1}.metismenu ul li{margin-bottom:.2rem}
.metismenu ul li a{padding:.65rem 1.25rem .65rem 2.75rem;border-radius:.375rem;margin:0 .5rem;display:flex;align-items:center;transition:all .2s ease;position:relative}
.metismenu ul li a::before{content:'';position:absolute;left:1.5rem;width:6px;height:6px;background:#94a3b8;border-radius:50%;transition:all .3s ease}
.metismenu ul li a:hover{background:rgba(99,102,241,.08);transform:translateX(4px);padding-left:3rem}.metismenu ul li a:hover::before{background:#6366f1;transform:scale(1.3)}
.metismenu ul li a.font-weight-bold{background:rgba(99,102,241,.15);color:#6366f1!important;font-weight:700!important;border-left:3px solid #6366f1;padding-left:calc(2.75rem - 3px)}
.metismenu ul li a.font-weight-bold::before{background:#6366f1;transform:scale(1.8);box-shadow:0 0 8px rgba(99,102,241,.6)}
.metismenu ul li a.font-weight-bold span{color:#6366f1!important;letter-spacing:.3px}
.badge-pill{animation:badgePulse 2s ease-in-out infinite;box-shadow:0 2px 8px rgba(239,68,68,.3)}
@keyframes badgePulse{0%,100%{transform:scale(1);box-shadow:0 2px 8px rgba(239,68,68,.3)}50%{transform:scale(1.05);box-shadow:0 4px 12px rgba(239,68,68,.5)}}
.sidebarSmallSize{transition:all .3s ease}.sidebarSmallSize:hover{background:rgba(99,102,241,.05);border-radius:.5rem}
.ps__rail-y{background:transparent!important;opacity:1!important}.ps__thumb-y{background:rgba(99,102,241,.3)!important;border-radius:6px!important;width:6px!important;right:2px!important}.ps__thumb-y:hover{background:rgba(99,102,241,.5)!important}
.sidebar-compact .metismenu>li>a{justify-content:center;padding:.85rem .5rem}.sidebar-compact .metismenu>li>a i{margin-right:0}.sidebar-compact .metismenu>li>a:hover{transform:scale(1.1)}
@media(min-width:769px) and (max-width:900px){.sidebar-panel{width:300px!important}.app-admin-wrap.sidebar-full .sidebar-panel{width:300px!important}.sidebar-panel.sidebar-switch-open{left:0!important}}
@media(max-width:768px){.sidebar-panel{box-shadow:0 0 24px rgba(0,0,0,.15);width:280px!important}.app-admin-wrap.sidebar-full .sidebar-panel{width:280px!important}.sidebar-panel.sidebar-switch-open{left:0!important}.scroll-nav{height:calc(100vh - 180px)!important}.metismenu>li>a{padding:.65rem 1rem!important;margin:0 .5rem!important;font-size:13px}.metismenu ul li a{padding:.55rem .75rem .55rem 2.25rem!important;font-size:12px}.metismenu a i{width:20px;height:20px;font-size:18px}.metismenu ul li a i{width:16px;height:16px;font-size:13px}.metismenu .item-name{font-size:13px!important}.metismenu ul li a .menu-icon-text span{font-size:12px}}
@media(max-width:576px){.sidebar-panel{width:260px!important}.app-admin-wrap.sidebar-full .sidebar-panel{width:260px!important}.sidebar-panel.sidebar-switch-open{left:0!important}.scroll-nav{height:calc(100vh - 160px)!important}}
@media(min-width:1151px){.layout-sidebar-vertical .sidebar-panel{width:300px!important}.app-admin-wrap.sidebar-full .sidebar-panel{width:300px!important}.app-admin-wrap.sidebar-full .main-content-wrap{width:calc(100% - 300px)!important}}
.switch-overlay{display:none;position:fixed;top:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:999;cursor:pointer;transition:opacity .3s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
@media(min-width:1151px){.switch-overlay{left:300px;width:calc(100% - 300px)}}
@media(max-width:1150px){.switch-overlay{left:300px;width:calc(100% - 300px)}}
@media(min-width:769px) and (max-width:900px){.switch-overlay{left:300px;width:calc(100% - 300px)}}
@media(max-width:768px){.switch-overlay{left:280px;width:calc(100% - 280px)}}
@media(max-width:576px){.switch-overlay{left:260px;width:calc(100% - 260px)}}

/* ========== TRANSACTION MODERN STYLES (Minified from transaction-modern.css) ========== */
:root{--transaction-primary:#0d6efd;--transaction-primary-hover:#0b5ed7;--transaction-primary-light:#cfe2ff;--transaction-secondary:#6c757d;--transaction-secondary-hover:#5c636a;--transaction-secondary-light:#e9ecef;--transaction-success:#198754;--transaction-success-hover:#157347;--transaction-success-light:#d1e7dd;--transaction-warning:#ffc107;--transaction-warning-hover:#ffca2c;--transaction-warning-light:#fff3cd;--transaction-danger:#dc3545;--transaction-danger-hover:#bb2d3b;--transaction-danger-light:#f8d7da;--transaction-bg-primary:#f8f9fa;--transaction-bg-secondary:#fff;--transaction-bg-tertiary:#e9ecef;--transaction-card-bg:#fff;--transaction-card-border:#dee2e6;--transaction-card-shadow:rgba(0,0,0,.08);--transaction-text-primary:#212529;--transaction-text-secondary:#6c757d;--transaction-text-muted:#adb5bd;--transaction-border-color:#dee2e6;--transaction-border-radius:12px;--transaction-box-shadow:0 2px 8px var(--transaction-card-shadow);--transaction-box-shadow-hover:0 4px 16px var(--transaction-card-shadow);--transaction-spacing-xs:.25rem;--transaction-spacing-sm:.5rem;--transaction-spacing-md:.75rem;--transaction-spacing-lg:1rem;--transaction-transition:all .3s cubic-bezier(.4,0,.2,1)}
.dark-theme{--transaction-primary:#0d6efd;--transaction-primary-hover:#3d8bfd;--transaction-primary-light:#052c65;--transaction-secondary:#adb5bd;--transaction-secondary-hover:#ced4da;--transaction-secondary-light:#495057;--transaction-success:#25ab69;--transaction-success-hover:#4ebf7d;--transaction-success-light:#0a3622;--transaction-warning:#ffc107;--transaction-warning-hover:#ffcd39;--transaction-warning-light:#664d03;--transaction-danger:#dc3545;--transaction-danger-hover:#e4606d;--transaction-danger-light:#58151c;--transaction-bg-primary:#1a1d24;--transaction-bg-secondary:#252830;--transaction-bg-tertiary:#2d3139;--transaction-card-bg:#252830;--transaction-card-border:#3a3f4d;--transaction-card-shadow:rgba(0,0,0,.3);--transaction-text-primary:#e9ecef;--transaction-text-secondary:#adb5bd;--transaction-text-muted:#6c757d;--transaction-border-color:#3a3f4d}
.transaction-card{background-color:var(--transaction-card-bg);border:1px solid var(--transaction-card-border);border-radius:var(--transaction-border-radius);box-shadow:var(--transaction-box-shadow);transition:var(--transaction-transition);margin-bottom:var(--transaction-spacing-md);overflow:hidden}
.transaction-card:hover{box-shadow:var(--transaction-box-shadow-hover)}
.card-header-modern{background:linear-gradient(135deg,rgba(13,110,253,.05) 0%,rgba(13,110,253,.15) 100%);color:var(--transaction-text-primary);padding:.25rem .5rem;border-bottom:1px solid var(--transaction-border-color)}
.card-title-modern{margin:0;font-size:1rem;font-weight:600;display:flex;align-items:center;gap:.5rem}
.card-title-modern i{font-size:1.125rem;color:var(--transaction-primary)}
.card-body-modern{padding:.25rem .5rem;background-color:var(--transaction-card-bg)}
.card-footer-modern{background-color:var(--transaction-bg-tertiary);padding:.25rem .5rem;border-top:1px solid var(--transaction-border-color)}
.transaction-wizard{margin-bottom:var(--transaction-spacing-lg)}
.wizard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;position:relative;padding:0 .25rem}
.wizard-header::before{content:'';position:absolute;top:24px;left:10%;right:10%;height:3px;background-color:var(--transaction-border-color);z-index:0}
.wizard-step{display:flex;flex-direction:column;align-items:center;gap:var(--transaction-spacing-xs);position:relative;z-index:1;flex:1;cursor:pointer;transition:var(--transaction-transition)}
.wizard-step:hover{transform:translateY(-2px)}
.step-number{width:48px;height:48px;border-radius:50%;background-color:var(--transaction-card-bg);border:3px solid var(--transaction-border-color);display:flex;align-items:center;justify-content:center;font-size:1.25rem;font-weight:700;color:var(--transaction-text-secondary);transition:var(--transaction-transition)}
.step-title{font-size:.875rem;font-weight:600;color:var(--transaction-text-secondary);text-align:center;transition:var(--transaction-transition)}
.wizard-step.active .step-number{background:linear-gradient(135deg,rgba(13,110,253,.9) 0%,rgba(11,94,215,.8) 100%);border-color:var(--transaction-primary);color:#fff;box-shadow:0 2px 8px var(--transaction-primary-light)}
.wizard-step.active .step-title{color:var(--transaction-primary)}
.wizard-step.completed .step-number{background-color:var(--transaction-success);border-color:var(--transaction-success);color:#fff}
.wizard-step.completed .step-number::after{content:'✓';font-size:1.5rem}
.wizard-step.completed .step-title{color:var(--transaction-success)}
.wizard-step.disabled{pointer-events:none;opacity:.5}
.wizard-content{background-color:var(--transaction-card-bg);border:1px solid var(--transaction-card-border);border-radius:var(--transaction-border-radius);padding:var(--transaction-spacing-sm);box-shadow:var(--transaction-box-shadow)}
.wizard-step-content{display:none}
.wizard-step-content.active{display:block;animation:fadeInTx .3s ease-in-out}
@keyframes fadeInTx{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.form-group-modern{margin-bottom:.25rem}
.form-label-modern{font-weight:600;color:var(--transaction-text-primary);margin-bottom:.125rem;display:flex;align-items:center;gap:.25rem;font-size:.875rem}
.form-label-modern .required{color:var(--transaction-danger)}
.form-control-modern{border:1px solid var(--transaction-border-color);border-radius:4px;padding:.25rem .5rem;font-size:.875rem;transition:var(--transaction-transition);background-color:var(--transaction-card-bg);color:var(--transaction-text-primary);height:calc(1.5em + .5rem + 2px)}
.form-control-modern:focus{border-color:var(--transaction-primary);box-shadow:0 0 0 .25rem var(--transaction-primary-light);outline:none}
.form-control-modern:disabled,.form-control-modern[readonly]{background-color:var(--transaction-bg-tertiary);opacity:.7}
.btn-modern{padding:.375rem .75rem;border-radius:4px;font-weight:600;font-size:.875rem;display:inline-flex;align-items:center;gap:.5rem;transition:var(--transaction-transition);border:none;cursor:pointer}
.btn-modern:hover{transform:translateY(-1px);box-shadow:var(--transaction-box-shadow)}
.btn-modern:active{transform:translateY(0)}
.btn-modern-primary{background:linear-gradient(135deg,rgba(13,110,253,.9) 0%,rgba(11,94,215,.85) 100%);color:#fff}
.btn-modern-primary:hover{background:linear-gradient(135deg,rgba(11,94,215,.95) 0%,rgba(13,110,253,.9) 100%)}
.btn-modern-success{background:linear-gradient(135deg,rgba(25,135,84,.9) 0%,rgba(21,115,71,.85) 100%);color:#fff}
.btn-modern-danger{background:linear-gradient(135deg,rgba(220,53,69,.9) 0%,rgba(187,45,59,.85) 100%);color:#fff}
.btn-modern-secondary{background-color:var(--transaction-secondary);color:#fff}
.btn-modern-outline{background-color:transparent;border:2px solid var(--transaction-primary);color:var(--transaction-primary)}
.btn-modern-outline:hover{background-color:var(--transaction-primary);color:#fff}
.btn-icon{width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}
.table-modern{width:100%;border-collapse:separate;border-spacing:0;background-color:var(--transaction-card-bg);border-radius:var(--transaction-border-radius);overflow:hidden;box-shadow:var(--transaction-box-shadow)}
.table-modern thead{background:linear-gradient(135deg,#2c3e50 0%,#34495e 100%)!important;color:#fff!important;border-bottom:2px solid var(--transaction-primary);box-shadow:0 2px 4px rgba(0,0,0,.1)}
.table-modern thead th{padding:.6rem .4rem!important;font-weight:700!important;text-align:center!important;font-size:.75rem!important;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap;line-height:1.2;vertical-align:middle;border:1px solid #d0d4db!important}
.table-modern tbody tr{transition:var(--transaction-transition)}
.table-modern tbody tr:hover{background-color:var(--transaction-bg-tertiary)}
.table-modern tbody td{padding:.25rem .5rem;border-bottom:1px solid var(--transaction-border-color);color:var(--transaction-text-primary);font-size:.875rem}
.table-modern tbody tr:last-child td{border-bottom:none}
.table-modern tfoot{background-color:var(--transaction-bg-tertiary);font-weight:700}
.table-modern tfoot td{padding:.375rem .5rem;border-top:2px solid var(--transaction-border-color)}
.table-responsive-modern{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--transaction-border-radius)}
.modal-modern .modal-content{border:none;border-radius:var(--transaction-border-radius);box-shadow:0 10px 40px rgba(0,0,0,.2);background-color:var(--transaction-card-bg)}
.modal-modern .modal-header{background:linear-gradient(135deg,rgba(13,110,253,.08) 0%,rgba(11,94,215,.12) 100%);color:var(--transaction-text-primary);border-bottom:1px solid var(--transaction-border-color);padding:.375rem .5rem;border-radius:var(--transaction-border-radius) var(--transaction-border-radius) 0 0}
.modal-modern .modal-title{font-weight:600;font-size:1rem;color:var(--transaction-primary)}
.modal-modern .modal-body{padding:.5rem}
.modal-modern .modal-footer{background-color:var(--transaction-bg-tertiary);border-top:1px solid var(--transaction-border-color);padding:.375rem .5rem;border-radius:0 0 var(--transaction-border-radius) var(--transaction-border-radius)}
.badge-modern{padding:.25rem .625rem;border-radius:12px;font-weight:600;font-size:.75rem;display:inline-flex;align-items:center;gap:.375rem}
.badge-success-modern{background-color:var(--transaction-success-light);color:var(--transaction-success)}
.badge-warning-modern{background-color:var(--transaction-warning-light);color:var(--transaction-warning)}
.badge-danger-modern{background-color:var(--transaction-danger-light);color:var(--transaction-danger)}
.alert-modern{border:none;border-radius:var(--transaction-border-radius);padding:var(--transaction-spacing-sm);margin-bottom:var(--transaction-spacing-sm);display:flex;align-items:center;gap:.5rem}
.alert-success-modern{background-color:var(--transaction-success-light);color:var(--transaction-success)}
.alert-warning-modern{background-color:var(--transaction-warning-light);color:var(--transaction-warning)}
.alert-danger-modern{background-color:var(--transaction-danger-light);color:var(--transaction-danger)}
.alert-info-modern{background-color:var(--transaction-primary-light);color:var(--transaction-primary)}
.transaction-summary{background:linear-gradient(135deg,rgba(248,249,250,.5) 0%,rgba(255,255,255,.8) 100%);border:1px solid var(--transaction-border-color);border-radius:var(--transaction-border-radius);padding:.5rem;margin-top:.5rem}
.summary-row{display:flex;justify-content:space-between;align-items:center;padding:.25rem 0;border-bottom:1px solid var(--transaction-border-color);font-size:.875rem}
.summary-row:last-child{border-bottom:none;padding-top:.25rem;margin-top:.25rem;border-top:2px solid var(--transaction-primary);font-weight:600}
.summary-label{font-weight:600;color:var(--transaction-text-secondary);font-size:1rem}
.summary-value{font-weight:700;color:var(--transaction-text-primary);font-size:1.125rem}
.summary-total .summary-label,.summary-total .summary-value{font-size:1.5rem;color:var(--transaction-primary)}
.text-bank-primary{color:var(--transaction-primary)!important}
.text-bank-success{color:var(--transaction-success)!important}
.text-bank-warning{color:var(--transaction-warning)!important}
.text-bank-danger{color:var(--transaction-danger)!important}
.bg-bank-light{background-color:var(--transaction-bg-tertiary)!important}
.border-bank{border:1px solid var(--transaction-border-color)!important}
.rounded-bank{border-radius:var(--transaction-border-radius)!important}
.loading-spinner{width:60px;height:60px;border:6px solid var(--transaction-border-color);border-top-color:var(--transaction-primary);border-radius:50%;animation:spinTx 1s linear infinite}
@keyframes spinTx{to{transform:rotate(360deg)}}
.pulse-animation{animation:pulseTx 2s ease-in-out infinite}
@keyframes pulseTx{0%,100%{opacity:1}50%{opacity:.7}}
@media(max-width:992px){.wizard-header{flex-wrap:wrap}.wizard-step{flex:1 1 50%;margin-bottom:var(--transaction-spacing-md)}.wizard-header::before{display:none}}
@media(max-width:768px){.wizard-step{flex:1 1 100%}.card-header-modern,.card-body-modern{padding:var(--transaction-spacing-sm)}.table-modern thead th,.table-modern tbody td{padding:.5rem;font-size:.875rem}.btn-modern{padding:.5rem 1rem;font-size:.875rem}}
@media(max-width:576px){:root{--transaction-border-radius:8px;--transaction-spacing-md:1rem;--transaction-spacing-lg:1.5rem}.transaction-summary{padding:var(--transaction-spacing-sm)}.summary-label,.summary-value{font-size:.875rem}}
@media print{.transaction-card{box-shadow:none;page-break-inside:avoid}.btn-modern,.wizard-header{display:none}.table-modern{box-shadow:none}}
.dark-theme .metismenu>li>a:hover{background:rgba(139,92,246,.15)}
.dark-theme .metismenu>li.mm-active>a,.dark-theme .metismenu>li>a.font-weight-bold{background:linear-gradient(135deg,rgba(139,92,246,.2) 0%,rgba(99,102,241,.2) 100%);color:#a78bfa!important;border-left-color:#a78bfa}
.dark-theme .metismenu ul{background:rgba(255,255,255,.02)}.dark-theme .metismenu ul li a:hover{background:rgba(139,92,246,.15)}.dark-theme .ps__thumb-y{background:rgba(139,92,246,.3)!important}
@keyframes skeletonLoading{0%{background-position:-200px 0}100%{background-position:calc(200px + 100%) 0}}
.menu-loading .metismenu>li>a{background:linear-gradient(90deg,rgba(0,0,0,.05) 0%,rgba(0,0,0,.08) 50%,rgba(0,0,0,.05) 100%);background-size:200px 100%;animation:skeletonLoading 1.5s ease-in-out infinite}
.metismenu a:focus{outline:2px solid #6366f1;outline-offset:2px;box-shadow:0 0 0 4px rgba(99,102,241,.1)}
.Ul_li--hover{cursor:pointer}.Ul_li--hover:hover{background:rgba(99,102,241,.03);border-radius:.5rem;margin:0 .5rem}
*{-webkit-tap-highlight-color:transparent}
[data-tooltip]{position:relative}[data-tooltip]:hover::after{content:attr(data-tooltip);position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);background:#1e293b;color:#fff;padding:.5rem .75rem;border-radius:.375rem;font-size:.875rem;white-space:nowrap;z-index:1000;box-shadow:0 4px 12px rgba(0,0,0,.15);animation:tooltipFadeIn .2s ease}
@keyframes tooltipFadeIn{from{opacity:0;transform:translateY(-50%) translateX(-8px)}to{opacity:1;transform:translateY(-50%) translateX(0)}}
.sidebar-panel,.metismenu,.metismenu>li,.metismenu a{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.metismenu>li>a,.metismenu ul li a{transform:translateZ(0);backface-visibility:hidden;perspective:1000px}
.main-header .header-part-right{display:flex;align-items:center;gap:.5rem;padding-right:.5rem}
.main-header .header-part-right .header-icon{font-size:14px!important;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);background:rgba(102,51,153,.08);color:#663399}
.main-header .header-part-right .fa-expand{background:rgba(102,51,153,.08);color:#663399}
.main-header .header-part-right .fa-expand:hover{background:rgba(102,51,153,.15);color:#663399;transform:scale(1.1)}
.main-header .header-part-right .fa-circle-info{background:rgba(59,130,246,.08);color:#3b82f6}
.main-header .header-part-right .fa-circle-info:hover{background:rgba(59,130,246,.15);color:#3b82f6;transform:scale(1.1)}
.main-header .header-part-right .user{margin:0!important;display:flex;align-items:center}
.main-header .header-part-right .user img{width:36px!important;height:36px!important;border-radius:50%;cursor:pointer;transition:all .25s;border:2px solid rgba(102,51,153,.1)}
.main-header .header-part-right .user img:hover{border-color:rgba(102,51,153,.3);transform:scale(1.05);box-shadow:0 2px 8px rgba(102,51,153,.2)}
.main-header .header-part-right .dropdown{margin-right:0}
.main-header .header-part-right .header-icon{margin-right:.25rem;font-size:14px;cursor:pointer;transition:all .2s;color:#666}
.main-header .header-part-right .header-icon:hover{color:#663399;transform:scale(1.1)}
.main-header .header-part-right .user{margin:0!important;margin-left:.25rem}
.main-header .header-part-right .user img{width:35px!important;height:35px!important}
.main-header .header-part-right .dropdown{margin-right:0}

/* ===================================
   RESPONSIVE DASHBOARD UTILITIES
   Consolidated from _responsive-dashboard.scss
   =================================== */
.chart-container{position:relative;min-height:300px;width:100%}
@media(max-width:576px){.chart-container{min-height:250px}}
.responsive-chart{width:100%;min-height:300px}
@media(max-width:576px){.responsive-chart{min-height:250px}}
.responsive-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}
.responsive-breadcrumb h1,.responsive-breadcrumb h5{font-size:1.125rem}
@media(min-width:768px){.responsive-breadcrumb h1,.responsive-breadcrumb h5{font-size:1.25rem}}
.responsive-breadcrumb ul{list-style:none;display:flex;margin:0;padding:0}
.card{border:none;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,.1);transition:all .3s cubic-bezier(.4,0,.2,1)}
.card:hover{box-shadow:0 4px 16px rgba(0,0,0,.15);transform:translateY(-2px)}
.card .card-body{padding:1.5rem}
@media(max-width:576px){.card .card-body{padding:1rem}}
.table-responsive{border-radius:8px;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-responsive table{min-width:600px}
#clock_hou .jcgmt-container{color:#495057}
#clock_hou .jcgmt-container .jcgmt-lbl{color:#6c757d}
#clock_hou .jcgmt-container .jcgmt-digital{color:#343a40!important;font-weight:600}
#clock_hou .jcgmt-container .jcgmt-date{color:#6c757d}
.dark-theme .table{color:#e0e0e0;background-color:transparent!important}
.dark-theme .table thead th{background-color:rgba(255,255,255,.08)!important;color:#fff;font-weight:600;border-bottom:2px solid rgba(255,255,255,.15);padding:12px 8px}
.dark-theme .table tbody tr{background-color:rgba(255,255,255,.02)!important;border-bottom:1px solid rgba(255,255,255,.08);transition:background-color .2s ease}
.dark-theme .table tbody tr:hover{background-color:rgba(255,255,255,.06)!important}
.dark-theme .table tbody tr td{color:#d0d0d0;padding:10px 8px;border-color:rgba(255,255,255,.08);background-color:transparent!important}
.dark-theme .table.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,.04)!important}
.dark-theme .table.table-striped tbody tr:nth-of-type(even){background-color:rgba(255,255,255,.02)!important}
.dark-theme .table.table-bordered{border:1px solid rgba(255,255,255,.15)}
.dark-theme .table.table-bordered th,.dark-theme .table.table-bordered td{border:1px solid rgba(255,255,255,.1)}
.dark-theme .table.table-hover tbody tr:hover{background-color:rgba(255,255,255,.08)!important;color:#fff}
.dark-theme .table-responsive{background-color:transparent!important}
.dark-theme table,.dark-theme table thead,.dark-theme table tbody,.dark-theme table tfoot{background-color:transparent!important}
.dark-theme .dataTables_wrapper{color:#e0e0e0;background-color:transparent!important}
.dark-theme .dataTables_wrapper .dataTables_length,.dark-theme .dataTables_wrapper .dataTables_filter,.dark-theme .dataTables_wrapper .dataTables_info,.dark-theme .dataTables_wrapper .dataTables_paginate{color:#d0d0d0}
.dark-theme .dataTables_wrapper .dataTables_length select,.dark-theme .dataTables_wrapper .dataTables_filter input{background-color:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1);color:#e0e0e0;padding:6px 12px;border-radius:4px}
.dark-theme .dataTables_wrapper .dataTables_length select:focus,.dark-theme .dataTables_wrapper .dataTables_filter input:focus{background-color:rgba(255,255,255,.08)!important;border-color:rgba(220,20,60,.5);outline:none}
.dark-theme .dataTables_wrapper .paginate_button{color:#d0d0d0!important;background-color:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1)}
.dark-theme .dataTables_wrapper .paginate_button:hover{background-color:rgba(255,255,255,.1)!important;color:#fff!important;border-color:rgba(255,255,255,.2)}
.dark-theme .dataTables_wrapper .paginate_button.current{background-color:rgba(220,20,60,.3)!important;color:#fff!important;border-color:rgba(220,20,60,.5)}
.dark-theme .dataTables_wrapper .paginate_button.disabled{opacity:.3;cursor:not-allowed}
.dataTables_wrapper .dataTables_scroll{overflow-x:auto!important}.dataTables_scrollHead{overflow:hidden!important}.dataTables_scrollBody{overflow-x:auto!important;overflow-y:auto!important}.modal-body .dataTables_wrapper{overflow-x:auto}.modal-body .dataTables_scrollHeadInner{width:100%!important}.modal-body .dataTables_scrollHeadInner table{width:100%!important}.modal-body table.dataTable{width:100%!important;margin:0!important;table-layout:auto!important}.modal-body table.dataTable thead th,.modal-body table.dataTable tbody td{white-space:nowrap!important}.modal-body table.dataTable tfoot th{text-align:center!important}.modal-body table.dataTable tfoot th.text-end,.modal-body table.dataTable tfoot th.text-right{text-align:right!important}

/* Fix modal table alignment - disable DataTables internal scroll, let modal-body handle it */
.modal-body .dataTables_wrapper {
    overflow: visible !important;
}

.modal-body .dataTables_wrapper .dataTables_scroll {
    overflow: visible !important;
}

.modal-body .dataTables_wrapper .dataTables_scrollHead,
.modal-body .dataTables_wrapper .dataTables_scrollBody {
    overflow: visible !important;
}

/* Remove DataTables scroll containers in modal - use single table */
.modal-body .dataTables_scrollHeadInner,
.modal-body .dataTables_scrollBodyInner {
    width: 100% !important;
}

/* Ensure table takes full width without internal scrolling */
.modal-body table.dataTable {
    width: 100% !important;
    table-layout: auto !important;
    margin: 0 !important;
}

/* Let .table-responsive (modal-body wrapper) handle the scroll */
.modal-body .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

.dark-theme .dataTables_wrapper .dataTables_scroll,.dark-theme .dataTables_wrapper .dataTables_scrollHead,.dark-theme .dataTables_wrapper .dataTables_scrollBody,.dark-theme .dataTables_wrapper .dataTables_scrollFoot{background-color:transparent!important}
.dark-theme .dataTables_wrapper .dataTables_scrollHead table,.dark-theme .dataTables_wrapper .dataTables_scrollBody table{background-color:transparent!important}
.dark-theme .card{background-color:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.08)}
.dark-theme .card .card-header{background-color:rgba(255,255,255,.05)!important;border-bottom:1px solid rgba(255,255,255,.1);color:#fff}
.dark-theme .card .card-body{background-color:transparent!important}
.dark-theme .card .card-title{color:#fff}
.dark-theme .card .table-responsive,.dark-theme .card-body .table-responsive{background-color:transparent!important}
.dark-theme .table tbody tr td:not(:first-child):not(:last-child){font-family:Consolas,Monaco,'Courier New',monospace;font-size:.95em}
.dark-theme .dataTables_wrapper .dataTables_scrollHead{background-color:rgba(255,255,255,.05)!important}
.dark-theme .dataTables_wrapper .dataTables_scrollHead table{background-color:transparent!important}
.dark-theme .dataTables_wrapper .dataTables_scrollHead thead tr,.dark-theme .dataTables_wrapper .dataTables_scrollHead thead th{background-color:rgba(255,255,255,.08)!important}
.dark-theme div.dataTables_wrapper div.dataTables_processing{background-color:rgba(20,20,30,.95)!important;color:#fff!important;border:1px solid rgba(255,255,255,.1)!important}
.dark-theme table.dataTable tbody tr{background-color:rgba(255,255,255,.02)!important}
.dark-theme table.dataTable tbody tr.odd{background-color:rgba(255,255,255,.04)!important}
.dark-theme table.dataTable tbody tr.odd:hover{background-color:rgba(255,255,255,.08)!important}
.dark-theme table.dataTable tbody tr.even{background-color:rgba(255,255,255,.02)!important}
.dark-theme table.dataTable tbody tr.even:hover{background-color:rgba(255,255,255,.08)!important}
.dark-theme table.dataTable tbody tr.selected{background-color:rgba(220,20,60,.2)!important}
.dark-theme table.dataTable tbody td{background-color:transparent!important}
.dark-theme table.dataTable tfoot{background-color:rgba(255,255,255,.05)!important}
.dark-theme table.dataTable tfoot tr{background-color:rgba(255,255,255,.05)!important;border-top:2px solid rgba(255,255,255,.15)}
.dark-theme table.dataTable tfoot tr th,.dark-theme table.dataTable tfoot tr td{background-color:rgba(255,255,255,.08)!important;color:#fff!important;font-weight:600;border-color:rgba(255,255,255,.1)}
.dark-theme table.dataTable tfoot .tableFooterSum{background-color:rgba(255,255,255,.08)!important;color:#fff!important;font-weight:700}
.dark-theme table.dataTable tfoot .DTAutoNumRp{color:#fff!important}
.dark-theme .dataTables_scrollFoot{background-color:transparent!important}
.dark-theme .dataTables_scrollFoot table{background-color:transparent!important}
.dark-theme .dataTables_scrollFoot tfoot{background-color:rgba(255,255,255,.05)!important}
.dark-theme .dataTables_scrollFoot tfoot tr,.dark-theme .dataTables_scrollFoot tfoot th,.dark-theme .dataTables_scrollFoot tfoot td{background-color:rgba(255,255,255,.08)!important;color:#fff!important}
.dark-theme table.dataTable thead .sorting,.dark-theme table.dataTable thead .sorting_asc,.dark-theme table.dataTable thead .sorting_desc{background-color:rgba(255,255,255,.08)!important;color:#fff!important}
.dark-theme table.dataTable thead .sorting:hover,.dark-theme table.dataTable thead .sorting_asc:hover,.dark-theme table.dataTable thead .sorting_desc:hover{background-color:rgba(255,255,255,.12)!important}
.dark-theme .sidebar-left,.dark-theme .sidebar-left-secondary{background-color:rgba(20,20,30,.95);border-right:1px solid rgba(255,255,255,.08)}
.dark-theme .sidebar-left .navigation-left,.dark-theme .sidebar-left .childNav,.dark-theme .sidebar-left-secondary .navigation-left,.dark-theme .sidebar-left-secondary .childNav{background-color:transparent}
.dark-theme .sidebar-left .navigation-left li.nav-item,.dark-theme .sidebar-left .childNav li.nav-item,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item,.dark-theme .sidebar-left-secondary .childNav li.nav-item{border-bottom:1px solid rgba(255,255,255,.05)}
.dark-theme .sidebar-left .navigation-left li.nav-item:hover,.dark-theme .sidebar-left .childNav li.nav-item:hover,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item:hover,.dark-theme .sidebar-left-secondary .childNav li.nav-item:hover{background-color:rgba(255,255,255,.05)}
.dark-theme .sidebar-left .navigation-left li.nav-item.active,.dark-theme .sidebar-left .childNav li.nav-item.active,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item.active,.dark-theme .sidebar-left-secondary .childNav li.nav-item.active{background-color:rgba(220,20,60,.15);border-left:3px solid rgba(220,20,60,.8)}
.dark-theme .sidebar-left .navigation-left li.nav-item.active .nav-item-hold,.dark-theme .sidebar-left .childNav li.nav-item.active .nav-item-hold,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item.active .nav-item-hold,.dark-theme .sidebar-left-secondary .childNav li.nav-item.active .nav-item-hold{color:#fff}
.dark-theme .sidebar-left .navigation-left li.nav-item.active .nav-icon,.dark-theme .sidebar-left .childNav li.nav-item.active .nav-icon,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item.active .nav-icon,.dark-theme .sidebar-left-secondary .childNav li.nav-item.active .nav-icon{color:rgba(220,20,60,.9)}
.dark-theme .sidebar-left .navigation-left li.nav-item a.nav-item-hold,.dark-theme .sidebar-left .childNav li.nav-item a.nav-item-hold,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item a.nav-item-hold,.dark-theme .sidebar-left-secondary .childNav li.nav-item a.nav-item-hold{color:rgba(255,255,255,.75);transition:all .3s ease}
.dark-theme .sidebar-left .navigation-left li.nav-item a.nav-item-hold:hover,.dark-theme .sidebar-left .childNav li.nav-item a.nav-item-hold:hover,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item a.nav-item-hold:hover,.dark-theme .sidebar-left-secondary .childNav li.nav-item a.nav-item-hold:hover{color:#fff;background-color:rgba(255,255,255,.05)}
.dark-theme .sidebar-left .navigation-left li.nav-item a.nav-item-hold .nav-icon,.dark-theme .sidebar-left .childNav li.nav-item a.nav-item-hold .nav-icon,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item a.nav-item-hold .nav-icon,.dark-theme .sidebar-left-secondary .childNav li.nav-item a.nav-item-hold .nav-icon{color:rgba(255,255,255,.6);transition:color .3s ease}
.dark-theme .sidebar-left .navigation-left li.nav-item a.nav-item-hold .nav-text,.dark-theme .sidebar-left .childNav li.nav-item a.nav-item-hold .nav-text,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item a.nav-item-hold .nav-text,.dark-theme .sidebar-left-secondary .childNav li.nav-item a.nav-item-hold .nav-text{color:rgba(255,255,255,.75)}
.dark-theme .sidebar-left .navigation-left li.nav-item a.nav-item-hold:hover .nav-icon,.dark-theme .sidebar-left .childNav li.nav-item a.nav-item-hold:hover .nav-icon,.dark-theme .sidebar-left-secondary .navigation-left li.nav-item a.nav-item-hold:hover .nav-icon,.dark-theme .sidebar-left-secondary .childNav li.nav-item a.nav-item-hold:hover .nav-icon{color:rgba(220,20,60,.8)}
.dark-theme .sidebar-left-secondary{background-color:rgba(15,15,25,.98)}
.dark-theme .sidebar-left-secondary header{background-color:rgba(255,255,255,.05);border-bottom:1px solid rgba(255,255,255,.1)}
.dark-theme .sidebar-left-secondary header .logo{color:#fff}
.dark-theme .sidebar-left-secondary .childNav li a{color:rgba(255,255,255,.7);border-left:2px solid transparent;transition:all .3s ease}
.dark-theme .sidebar-left-secondary .childNav li a:hover{color:#fff;background-color:rgba(255,255,255,.05);border-left-color:rgba(220,20,60,.5)}
.dark-theme .sidebar-left-secondary .childNav li a.open,.dark-theme .sidebar-left-secondary .childNav li a.active{color:#fff;background-color:rgba(220,20,60,.1);border-left-color:rgba(220,20,60,.9);font-weight:600}
.dark-theme .main-header{background-color:rgba(20,20,30,.95);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 2px 8px rgba(0,0,0,.3)}
.dark-theme .main-header .menu-toggle{color:rgba(255,255,255,.8)}
.dark-theme .main-header .menu-toggle:hover{color:#fff}
.dark-theme .main-header .search-bar input{background-color:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#fff}
.dark-theme .main-header .search-bar input::placeholder{color:rgba(255,255,255,.4)}
.dark-theme .main-header .search-bar input:focus{background-color:rgba(255,255,255,.08);border-color:rgba(220,20,60,.5)}
.dark-theme .main-header .header-icon,.dark-theme .main-header .header-part-right .user a{color:rgba(255,255,255,.8)}
.dark-theme .main-header .header-icon:hover,.dark-theme .main-header .header-part-right .user a:hover{color:#fff;background-color:rgba(255,255,255,.05)}
.dark-theme .main-header .badge-top-container .badge{background-color:rgba(220,20,60,.9);color:#fff}
.dark-theme .main-header .dropdown-menu{background-color:rgba(30,30,40,.98);border:1px solid rgba(255,255,255,.1)}
.dark-theme .main-header .dropdown-menu .dropdown-item{color:rgba(255,255,255,.8)}
.dark-theme .main-header .dropdown-menu .dropdown-item:hover{background-color:rgba(255,255,255,.05);color:#fff}
.dark-theme .main-header .dropdown-menu .dropdown-divider{border-color:rgba(255,255,255,.1)}
.dark-theme .main-header #clock_hou .jcgmt-container{color:#adb5bd}
.dark-theme .main-header #clock_hou .jcgmt-container .jcgmt-lbl{color:#9ca3af}
.dark-theme .main-header #clock_hou .jcgmt-container .jcgmt-digital{color:#cbd5e1!important;font-weight:600}
.dark-theme .main-header #clock_hou .jcgmt-container .jcgmt-date{color:#9ca3af}
.dark-theme .main-header .fa-clock,.dark-theme .main-header svg.fa-clock{color:rgba(255,255,255,.8)!important}
.dark-theme .main-header .row.mr-5 .col{color:rgba(255,255,255,.8)}
.dark-theme .main-header .row.mr-5 .col svg,.dark-theme .main-header .row.mr-5 .col i{color:rgba(255,255,255,.8)}
.dark-theme .main-content-wrap{background-color:rgba(15,15,25,.5)}
.dark-theme .ps__rail-y,.dark-theme .ps__rail-x{background-color:rgba(255,255,255,.05)!important}
.dark-theme .ps__rail-y .ps__thumb-y,.dark-theme .ps__rail-y .ps__thumb-x,.dark-theme .ps__rail-x .ps__thumb-y,.dark-theme .ps__rail-x .ps__thumb-x{background-color:rgba(255,255,255,.2)!important}
.dark-theme .ps__rail-y .ps__thumb-y:hover,.dark-theme .ps__rail-y .ps__thumb-x:hover,.dark-theme .ps__rail-x .ps__thumb-y:hover,.dark-theme .ps__rail-x .ps__thumb-x:hover{background-color:rgba(255,255,255,.3)!important}
.dark-theme .customizer{background-color:rgba(20,20,30,.98)!important;border-left:1px solid rgba(255,255,255,.1)}
.dark-theme .customizer .customizer-close{color:rgba(255,255,255,.8)}
.dark-theme .customizer .customizer-close:hover{color:#fff}
.dark-theme .customizer .customizer-body{background-color:transparent!important}
.dark-theme .customizer .customizer-body .accordion .card{background-color:rgba(255,255,255,.03)!important;border:1px solid rgba(255,255,255,.08);margin-bottom:1rem}
.dark-theme .customizer .customizer-body .accordion .card .card-header{background-color:rgba(255,255,255,.05)!important;border-bottom:1px solid rgba(255,255,255,.1)}
.dark-theme .customizer .customizer-body .accordion .card .card-header p{color:#fff;font-weight:600}
.dark-theme .customizer .customizer-body .accordion .card .card-body{background-color:transparent!important;color:#e0e0e0}
.dark-theme .customizer .customizer-body .accordion .card .card-body .layouts .layout-box{border:2px solid rgba(255,255,255,.1);background-color:rgba(255,255,255,.05)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .layouts .layout-box:hover{border-color:rgba(220,20,60,.5)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .layouts .layout-box.active{border-color:rgba(220,20,60,.8);box-shadow:0 0 10px rgba(220,20,60,.3)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .layouts .layout-box img{opacity:.8}
.dark-theme .customizer .customizer-body .accordion .card .card-body .colors{display:flex;flex-wrap:wrap;gap:.5rem}
.dark-theme .customizer .customizer-body .accordion .card .card-body .colors .color{border:2px solid rgba(255,255,255,.1)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .colors .color:hover{border-color:rgba(255,255,255,.3)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .colors .color.active{border-color:rgba(220,20,60,.8)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .checkbox label,.dark-theme .customizer .customizer-body .accordion .card .card-body .checkbox span{color:#e0e0e0}
.dark-theme .customizer .customizer-body .accordion .card .card-body .checkbox .checkmark{border-color:rgba(255,255,255,.2);background-color:rgba(255,255,255,.05)}
.dark-theme .customizer .customizer-body .accordion .card .card-body .checkbox input:checked~.checkmark{background-color:rgba(220,20,60,.8);border-color:rgba(220,20,60,.8)}
.dark-theme .customizer .customizer-body .accordion .card .collapse{background-color:transparent!important}
.dark-theme .customizer .customizer-body .text-center{color:rgba(255,255,255,.6)}
.dark-theme .modal-content{background-color:rgba(20,20,30,.98)!important;border:1px solid rgba(255,255,255,.1)}
.dark-theme .modal-content .modal-header{background-color:rgba(255,255,255,.05)!important;border-bottom:1px solid rgba(255,255,255,.1);color:#fff}
.dark-theme .modal-content .modal-header .modal-title{color:#fff}
.dark-theme .modal-content .modal-header .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
.dark-theme .modal-content .modal-body{background-color:transparent!important;color:#e0e0e0}
.dark-theme .modal-content .modal-footer{background-color:rgba(255,255,255,.03)!important;border-top:1px solid rgba(255,255,255,.1)}
.dark-theme .form-control,.dark-theme .form-select,.dark-theme input[type=text],.dark-theme input[type=email],.dark-theme input[type=password],.dark-theme input[type=number],.dark-theme textarea,.dark-theme select{background-color:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1);color:#e0e0e0}
.dark-theme .form-control:focus,.dark-theme .form-select:focus,.dark-theme input[type=text]:focus,.dark-theme input[type=email]:focus,.dark-theme input[type=password]:focus,.dark-theme input[type=number]:focus,.dark-theme textarea:focus,.dark-theme select:focus{background-color:rgba(255,255,255,.08)!important;border-color:rgba(220,20,60,.5);color:#fff}
.dark-theme .form-control::placeholder,.dark-theme .form-select::placeholder,.dark-theme input[type=text]::placeholder,.dark-theme input[type=email]::placeholder,.dark-theme input[type=password]::placeholder,.dark-theme input[type=number]::placeholder,.dark-theme textarea::placeholder,.dark-theme select::placeholder{color:rgba(255,255,255,.4)}
.dark-theme .form-check-input{background-color:rgba(255,255,255,.05);border-color:rgba(255,255,255,.2)}
.dark-theme .form-check-input:checked{background-color:rgba(220,20,60,.8);border-color:rgba(220,20,60,.8)}
.dark-theme .form-check-label{color:#e0e0e0}
.breadcrumb{background:transparent;padding:.75rem 0;margin-bottom:1rem;flex-wrap:wrap}
.breadcrumb .smallSizeTitle{font-size:clamp(1rem,4vw,1.5rem);font-weight:600;margin:0;line-height:1.4}
.breadcrumb .smallSizeTitle img{height:24px;width:auto;margin-right:8px;vertical-align:middle}
@media(max-width:768px){.breadcrumb ul.smallSizeHide{display:none!important}}
.breadcrumb ul{list-style:none;padding:0;margin:0;display:flex}
.breadcrumb ul li{margin:0 .5rem}
.breadcrumb ul li:first-child{margin-left:0}
@media(min-width:992px){.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}}
@media(max-width:991px){.scroll-x{overflow-x:visible}}
.row.mb-4{margin-bottom:1.5rem!important}
@media(max-width:576px){.row.mb-4{margin-bottom:1rem!important}}
.skeleton-loader{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite;border-radius:4px}
.skeleton-loader.skeleton-title{height:24px;width:60%;margin-bottom:16px}
.skeleton-loader.skeleton-text{height:16px;width:100%;margin-bottom:12px}
.skeleton-loader.skeleton-text:last-child{width:80%}
.skeleton-loader.skeleton-chart{height:300px;width:100%}
@keyframes loading{0%{background-position:200% 0}100%{background-position:-200% 0}}
.animate-fade-in{animation:fadeIn .5s ease-in}
@keyframes fadeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.btn{transition:all .3s ease}
.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.btn:active{transform:translateY(0)}
.modal.fade .modal-dialog{transition:transform .3s ease-out}
.modal .modal-content{border:none;border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.15)}
.modal .modal-header{border-bottom:1px solid #e9ecef;padding:1.5rem}
.modal .modal-body{padding:1.5rem}
.form-control,.form-select{border-radius:6px;border:1px solid #dee2e6;transition:all .3s ease}
.form-control:focus,.form-select:focus{border-color:#dc143c;box-shadow:0 0 0 .2rem rgba(220,20,60,.15)}
@media(max-width:576px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{width:100%;margin-bottom:1rem}.dataTables_wrapper .dataTables_length label,.dataTables_wrapper .dataTables_filter label{width:100%}.dataTables_wrapper .dataTables_length input,.dataTables_wrapper .dataTables_length select,.dataTables_wrapper .dataTables_filter input,.dataTables_wrapper .dataTables_filter select{width:100%}.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{width:100%;text-align:center;margin-top:1rem}}
.text-truncate-2{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.text-truncate-3{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.loading-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.95);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;backdrop-filter:blur(4px)}
.loading-overlay .spinner-border{width:3rem;height:3rem}
.loading-overlay p{margin-top:1rem;font-size:1.1rem;color:#666;font-weight:500}
.chart-loading{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;z-index:10}
.chart-loading .spinner-border{color:#dc143c}
h1,h2,h3,h4,h5,h6{line-height:1.4}
@media(max-width:576px){h1{font-size:1.75rem}h2{font-size:1.5rem}h3{font-size:1.25rem}}
@media print{.breadcrumb,.btn,.dataTables_length,.dataTables_filter,.dataTables_paginate,.loading-overlay{display:none!important}.card{box-shadow:none;border:1px solid #dee2e6;page-break-inside:avoid}.chart-container{page-break-inside:avoid}}
.btn:focus,.form-control:focus,.form-select:focus{outline:2px solid #dc143c;outline-offset:2px}
html{scroll-behavior:smooth}
.sidebar-panel{background:rgba(255,255,255,.95)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);box-shadow:2px 0 20px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.1)!important;border-right:1px solid rgba(0,0,0,.06);transition:all .3s cubic-bezier(.4,0,.2,1)}
.sidebar-panel .brand{padding:1.5rem 1rem;border-bottom:1px solid rgba(0,0,0,.06);background:linear-gradient(135deg,rgba(220,20,60,.05) 0%,transparent 100%);transition:all .3s ease}
.sidebar-panel .brand:hover{background:linear-gradient(135deg,rgba(220,20,60,.08) 0%,transparent 100%)}
.sidebar-panel .brand img{filter:drop-shadow(0 2px 4px rgba(0,0,0,.1));transition:transform .3s ease}
.sidebar-panel .brand:hover img{transform:scale(1.05)}
.sidebar-panel .side-nav{padding:.5rem 0}
.sidebar-panel .side-nav .nav-item{margin:.25rem .75rem;border-radius:8px;transition:all .2s ease;overflow:hidden}
.sidebar-panel .side-nav .nav-item a{padding:.75rem 1rem;border-radius:8px;display:flex;align-items:center;color:#495057;font-weight:500;transition:all .2s ease;position:relative}
.sidebar-panel .side-nav .nav-item a::before{content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);width:3px;height:0;background:linear-gradient(180deg,#dc143c 0%,#ff1744 100%);border-radius:0 3px 3px 0;transition:height .3s ease}
.sidebar-panel .side-nav .nav-item a i{margin-right:.75rem;font-size:1.1rem;width:24px;text-align:center;transition:all .2s ease}
.sidebar-panel .side-nav .nav-item a:hover{background:linear-gradient(135deg,rgba(220,20,60,.08) 0%,rgba(220,20,60,.04) 100%);color:#dc143c;transform:translateX(4px)}
.sidebar-panel .side-nav .nav-item a:hover::before{height:60%}
.sidebar-panel .side-nav .nav-item a:hover i{transform:scale(1.1)}
.sidebar-panel .side-nav .nav-item a.active{background:linear-gradient(135deg,rgba(220,20,60,.12) 0%,rgba(220,20,60,.06) 100%);color:#dc143c;font-weight:600}
.sidebar-panel .side-nav .nav-item a.active::before{height:80%}
.sidebar-panel .side-nav .nav-item a.active i{color:#dc143c}
.sidebar-panel .side-nav .icon-menu-title,.sidebar-panel .side-nav .main-menu-title{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#6c757d;padding:1rem 1.25rem .5rem;margin-top:.5rem}
.sidebar-panel .app-user{padding:1.5rem 1rem;border-top:1px solid rgba(0,0,0,.06);background:linear-gradient(180deg,transparent 0%,rgba(220,20,60,.02) 100%)}
.sidebar-panel .app-user .app-user-photo img{border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.1);transition:all .3s ease}
.sidebar-panel .app-user .app-user-photo img:hover{transform:scale(1.05);box-shadow:0 6px 16px rgba(220,20,60,.2)}
.sidebar-panel .app-user .app-user-name{font-weight:600;color:#343a40;margin-top:.75rem}
.sidebar-panel .app-user .app-user-control a{color:#6c757d;padding:.5rem;border-radius:6px;transition:all .2s ease}
.sidebar-panel .app-user .app-user-control a:hover{color:#dc143c;background:rgba(220,20,60,.08)}
.sidebar-panel .scroll-nav::-webkit-scrollbar{width:6px}
.sidebar-panel .scroll-nav::-webkit-scrollbar-track{background:transparent}
.sidebar-panel .scroll-nav::-webkit-scrollbar-thumb{background:rgba(0,0,0,.1);border-radius:3px;transition:background .2s ease}
.sidebar-panel .scroll-nav::-webkit-scrollbar-thumb:hover{background:rgba(220,20,60,.3)}
.dark-theme .sidebar-panel{background:rgba(20,20,30,.98)!important;border-right:1px solid rgba(255,255,255,.08);box-shadow:2px 0 20px rgba(0,0,0,.5),0 0 1px rgba(255,255,255,.1)!important}
.dark-theme .sidebar-panel .brand{border-bottom:1px solid rgba(255,255,255,.08);background:linear-gradient(135deg,rgba(220,20,60,.1) 0%,transparent 100%)}
.dark-theme .sidebar-panel .brand:hover{background:linear-gradient(135deg,rgba(220,20,60,.15) 0%,transparent 100%)}
.dark-theme .sidebar-panel .brand img{filter:brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,.3))}
.dark-theme .sidebar-panel .side-nav .nav-item a{color:#cbd5e1}
.dark-theme .sidebar-panel .side-nav .nav-item a::before{background:linear-gradient(180deg,#ff1744 0%,#dc143c 100%)}
.dark-theme .sidebar-panel .side-nav .nav-item a:hover{background:linear-gradient(135deg,rgba(220,20,60,.15) 0%,rgba(220,20,60,.08) 100%);color:#ff6b6b}
.dark-theme .sidebar-panel .side-nav .nav-item a.active{background:linear-gradient(135deg,rgba(220,20,60,.2) 0%,rgba(220,20,60,.1) 100%);color:#ff6b6b}
.dark-theme .sidebar-panel .side-nav .nav-item a.active i{color:#ff6b6b}
.dark-theme .sidebar-panel .side-nav .icon-menu-title,.dark-theme .sidebar-panel .side-nav .main-menu-title{color:#9ca3af}
.dark-theme .sidebar-panel .app-user{border-top:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,transparent 0%,rgba(220,20,60,.05) 100%)}
.dark-theme .sidebar-panel .app-user .app-user-photo img{border:3px solid rgba(255,255,255,.1);box-shadow:0 4px 12px rgba(0,0,0,.3)}
.dark-theme .sidebar-panel .app-user .app-user-photo img:hover{box-shadow:0 6px 16px rgba(220,20,60,.4)}
.dark-theme .sidebar-panel .app-user .app-user-name{color:#cbd5e1}
.dark-theme .sidebar-panel .app-user .app-user-control a{color:#9ca3af}
.dark-theme .sidebar-panel .app-user .app-user-control a:hover{color:#ff6b6b;background:rgba(220,20,60,.15)}
.dark-theme .sidebar-panel .scroll-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.1)}
.dark-theme .sidebar-panel .scroll-nav::-webkit-scrollbar-thumb:hover{background:rgba(220,20,60,.4)}
@media(max-width:768px){.sidebar-panel{box-shadow:4px 0 24px rgba(0,0,0,.15),0 0 1px rgba(0,0,0,.1)!important}.dark-theme .sidebar-panel{box-shadow:4px 0 24px rgba(0,0,0,.7),0 0 1px rgba(255,255,255,.1)!important}}
.user{cursor:pointer;position:relative}
.user img{width:40px;height:40px;border-radius:50%;border:2px solid rgba(220,20,60,.2);transition:all .3s ease;cursor:pointer;object-fit:cover}
.user img:hover{border-color:#dc143c;box-shadow:0 4px 12px rgba(220,20,60,.3);transform:scale(1.05)}
.dropdown-menu{border:none;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:.5rem 0;margin-top:.5rem;min-width:220px;animation:dropdownFadeIn .2s ease}
.dropdown-menu .dropdown-header{padding:1rem 1.25rem;background:linear-gradient(135deg,rgba(220,20,60,.08) 0%,rgba(220,20,60,.04) 100%);border-bottom:1px solid rgba(0,0,0,.06);font-weight:600;color:#343a40;font-size:.9rem;border-radius:12px 12px 0 0}
.dropdown-menu .dropdown-header i,.dropdown-menu .dropdown-header svg{margin-right:.5rem;color:#dc143c;width:16px;height:16px}
.dropdown-menu .dropdown-item{padding:.75rem 1.25rem;color:#495057;font-weight:500;transition:all .2s ease;display:flex;align-items:center;border-left:3px solid transparent}
.dropdown-menu .dropdown-item i,.dropdown-menu .dropdown-item svg{margin-right:.75rem;color:#6c757d;transition:all .2s ease;width:16px;height:16px}
.dropdown-menu .dropdown-item:hover{background:linear-gradient(90deg,rgba(220,20,60,.08) 0%,rgba(220,20,60,.02) 100%);color:#dc143c;border-left-color:#dc143c;padding-left:1.5rem}
.dropdown-menu .dropdown-item:hover i,.dropdown-menu .dropdown-item:hover svg{color:#dc143c;transform:scale(1.1)}
.dropdown-menu .dropdown-item:active{background:linear-gradient(90deg,rgba(220,20,60,.12) 0%,rgba(220,20,60,.04) 100%)}
.dropdown-menu .dropdown-item:last-child{border-radius:0 0 12px 12px}
.dropdown-menu .dropdown-divider{margin:.5rem 0;border-color:rgba(0,0,0,.06)}
.dark-theme .user img{border-color:rgba(220,20,60,.3)}
.dark-theme .user img:hover{border-color:#ff6b6b;box-shadow:0 4px 12px rgba(220,20,60,.5)}
.dark-theme .dropdown-menu{background:rgba(30,30,40,.98);backdrop-filter:blur(10px);box-shadow:0 8px 24px rgba(0,0,0,.5);border:1px solid rgba(255,255,255,.08)}
.dark-theme .dropdown-menu .dropdown-header{background:linear-gradient(135deg,rgba(220,20,60,.15) 0%,rgba(220,20,60,.08) 100%);border-bottom:1px solid rgba(255,255,255,.08);color:#cbd5e1}
.dark-theme .dropdown-menu .dropdown-header i,.dark-theme .dropdown-menu .dropdown-header svg{color:#ff6b6b}
.dark-theme .dropdown-menu .dropdown-item{color:#cbd5e1}
.dark-theme .dropdown-menu .dropdown-item i,.dark-theme .dropdown-menu .dropdown-item svg{color:#9ca3af}
.dark-theme .dropdown-menu .dropdown-item:hover{background:linear-gradient(90deg,rgba(220,20,60,.15) 0%,rgba(220,20,60,.05) 100%);color:#ff6b6b;border-left-color:#ff6b6b}
.dark-theme .dropdown-menu .dropdown-item:hover i,.dark-theme .dropdown-menu .dropdown-item:hover svg{color:#ff6b6b}
.dark-theme .dropdown-menu .dropdown-item:active{background:linear-gradient(90deg,rgba(220,20,60,.2) 0%,rgba(220,20,60,.08) 100%)}
.dark-theme .dropdown-menu .dropdown-divider{border-color:rgba(255,255,255,.08)}
@keyframes dropdownFadeIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}
.dropdown-menu-right{right:0;left:auto}
.dropdown.show .dropdown-menu{display:block;animation:dropdownFadeIn .2s ease}
@media(max-width:576px){.dropdown-menu{min-width:200px;font-size:.9rem}.dropdown-menu .dropdown-header{padding:.875rem 1rem;font-size:.85rem}.dropdown-menu .dropdown-item{padding:.625rem 1rem;font-size:.85rem}.dropdown-menu .dropdown-item i,.dropdown-menu .dropdown-item svg{width:14px;height:14px}}
.profile-picture{transition:all .3s ease;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.profile-picture:hover{transform:scale(1.05);box-shadow:0 6px 20px rgba(220,20,60,.3)}
.info-item{padding:.5rem 0}
.info-item label{display:block;font-size:.85rem;font-weight:600;margin-bottom:.25rem}
.info-item label i{width:16px;text-align:center;margin-right:.25rem}
.info-item p{font-size:.95rem;margin-bottom:0}
.nav-pills .nav-link{color:#6c757d;font-weight:500;padding:.75rem 1.5rem;border:1px solid transparent;transition:all .3s ease}
.nav-pills .nav-link i{margin-right:.5rem;transition:transform .3s ease}
.nav-pills .nav-link:hover{color:#dc143c;background:rgba(220,20,60,.08);border-color:rgba(220,20,60,.2);transform:translateY(-2px)}
.nav-pills .nav-link:hover i{transform:scale(1.1)}
.nav-pills .nav-link.active{color:#fff;background:linear-gradient(135deg,#dc143c 0%,#ff1744 100%);border-color:#dc143c;box-shadow:0 4px 12px rgba(220,20,60,.3)}
.nav-pills .nav-link.active i{transform:scale(1.1)}
.dark-theme .nav-pills .nav-link{color:#9ca3af}
.dark-theme .nav-pills .nav-link:hover{color:#ff6b6b;background:rgba(220,20,60,.15);border-color:rgba(220,20,60,.3)}
.dark-theme .nav-pills .nav-link.active{background:linear-gradient(135deg,#ff1744 0%,#dc143c 100%);border-color:#ff6b6b}
.dark-theme .info-item{border-color:rgba(255,255,255,.1)!important}
.dark-theme .info-item label{color:#9ca3af}
.dark-theme .info-item p{color:#cbd5e1}
.dark-theme .alert{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1);color:#cbd5e1}
.dark-theme .form-control:disabled,.dark-theme .form-control[readonly]{background-color:rgba(255,255,255,.05);color:#9ca3af}
.form-control{border-radius:8px;border:1px solid #dee2e6;padding:.625rem 1rem;transition:all .3s ease}
.form-control:focus{border-color:#dc143c;box-shadow:0 0 0 .2rem rgba(220,20,60,.15)}
.form-control.is-invalid{border-color:#dc3545;background-image:none}
.form-control.is-invalid:focus{box-shadow:0 0 0 .2rem rgba(220,53,69,.15)}
.form-control-lg{padding:.875rem 1.25rem;font-size:1.1rem;border-radius:10px}
.alert{border-radius:10px;border:none;padding:1rem 1.25rem;margin-bottom:1.5rem}
.alert i{margin-right:.5rem}
.input-group-lg .form-control{font-size:.95rem;padding:.75rem 1rem}
.input-group-lg .btn{padding:.75rem 1.5rem;font-weight:600}
.font-monospace{font-family:'Courier New',Courier,monospace;letter-spacing:.5px;background:#f8f9fa}
.dark-theme .font-monospace{background:rgba(255,255,255,.05)}
@media(max-width:768px){.nav-pills .nav-link{padding:.5rem .75rem;font-size:.875rem}.nav-pills .nav-link span{font-size:.75rem}.info-item{padding:.375rem 0}.info-item label{font-size:.75rem}.info-item p{font-size:.875rem}.profile-picture{width:100px!important;height:100px!important}}

/* ========================================
   ACTIVE SUBMENU STYLING
   Styling untuk submenu yang sedang aktif di sidebar
   ======================================== */

/* Compact Sidebar - childNav Active Submenu */
.sidebar-left-secondary .childNav li.nav-item a.open,
.sidebar-left-secondary .childNav li.nav-item a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
    color: #6366f1 !important;
    font-weight: 700 !important;
    border-left: 3px solid #6366f1;
    padding-left: calc(1.25rem - 3px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    position: relative;
}

/* Icon untuk submenu aktif */
.sidebar-left-secondary .childNav li.nav-item a.open .nav-icon,
.sidebar-left-secondary .childNav li.nav-item a.active .nav-icon {
    color: #6366f1 !important;
    transform: scale(1.1);
}

/* Item name untuk submenu aktif */
.sidebar-left-secondary .childNav li.nav-item a.open .item-name,
.sidebar-left-secondary .childNav li.nav-item a.active .item-name {
    color: #6366f1 !important;
    letter-spacing: 0.3px;
}

/* Hover effect untuk submenu non-aktif */
.sidebar-left-secondary .childNav li.nav-item a:not(.open):not(.active):hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
    transition: all 0.3s ease;
}

/* Dropdown sidemenu active state */
.childNav .dropdown-sidemenu a.open,
.childNav .dropdown-sidemenu a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: #6366f1 !important;
    font-weight: 700 !important;
}

/* Submenu (nested) active state */
.childNav .submenu li a.open,
.childNav .submenu li a.active {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #6366f1 !important;
    font-weight: 700 !important;
    border-left: 3px solid #6366f1;
    padding-left: calc(1rem - 3px);
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.15);
}

/* Dark Mode - Active Submenu Styling */
.dark-theme .sidebar-left-secondary .childNav li.nav-item a.open,
.dark-theme .sidebar-left-secondary .childNav li.nav-item a.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #a78bfa !important;
    border-left-color: #a78bfa;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.dark-theme .sidebar-left-secondary .childNav li.nav-item a.open .nav-icon,
.dark-theme .sidebar-left-secondary .childNav li.nav-item a.active .nav-icon {
    color: #a78bfa !important;
}

.dark-theme .sidebar-left-secondary .childNav li.nav-item a.open .item-name,
.dark-theme .sidebar-left-secondary .childNav li.nav-item a.active .item-name {
    color: #a78bfa !important;
}

.dark-theme .sidebar-left-secondary .childNav li.nav-item a:not(.open):not(.active):hover {
    background: rgba(139, 92, 246, 0.15);
}

.dark-theme .childNav .submenu li a.open,
.dark-theme .childNav .submenu li a.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.2) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #a78bfa !important;
    border-left-color: #a78bfa;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

/* Animation untuk perubahan state */
.sidebar-left-secondary .childNav li.nav-item a,
.childNav .submenu li a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pulsing effect untuk item aktif */
@keyframes activePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    }
}

.sidebar-left-secondary .childNav li.nav-item a.open,
.sidebar-left-secondary .childNav li.nav-item a.active {
    animation: activePulse 2s ease-in-out infinite;
}

.dark-theme .sidebar-left-secondary .childNav li.nav-item a.open,
.dark-theme .sidebar-left-secondary .childNav li.nav-item a.active {
    animation: activePulseDark 2s ease-in-out infinite;
}

@keyframes activePulseDark {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.45);
    }
}

/* ========================================
   Content Area Min Height
   ======================================== */
/* Memberikan min-height pada area konten utama untuk memastikan
   loading modal dan elemen floating lainnya memiliki ruang cukup */
#colData {
    min-height: 500px;
}

#colData .card {
    min-height: 450px;
}

/* ========================================
   Loading Modal Fix
   ======================================== */
/* Memastikan loading modal selalu tampil di tengah viewport
   dan tidak terpotong oleh parent container */
#loadingModal {
    z-index: 9999 !important;
}

#loadingModal .modal-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: 300px !important;
}

#loadingModal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#loadingModal .modal-content {
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

/* ========================================
   SELECT2 BOOTSTRAP 5 SMALL SIZE
   Styling untuk Select2 agar sejajar dengan form-control
   ======================================== */
.select2-container--bootstrap-5 .select2-selection--single{min-height:28px!important;height:28px!important;padding:0!important;border:1px solid #ced4da!important;box-sizing:border-box!important}.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered{line-height:26px!important;padding:0 .5rem!important;font-size:11px!important;display:block!important}.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow{height:26px!important;top:1px!important;right:1px!important;width:20px!important}.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow b{margin-top:0!important;border-width:4px 4px 0 4px!important}.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder{color:#6c757d!important;font-size:11px!important}.select2-dropdown.select2-sm{font-size:11px!important;border:1px solid #ced4da!important}.select2-dropdown.select2-sm .select2-results__option{padding:.25rem .5rem!important;font-size:11px!important}.select2-dropdown .select2-search__field{font-size:11px!important;padding:.25rem .5rem!important;height:28px!important}.select2-container--bootstrap-5.select2-container--focus .select2-selection,.select2-container--bootstrap-5.select2-container--open .select2-selection{border-color:#86b7fe!important;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)!important}

/* ========================================
   INPUT GROUP & SELECT2 MODERN STYLING
   Modern input group dengan Select2 integration
   ======================================== */
.input-group-text.bg-primary{border-color:#0d6efd}.input-group .select2-container--default .select2-selection--single{border-left:0;border-top-left-radius:0;border-bottom-left-radius:0;height:calc(1.5em + .5rem + 2px)}.input-group .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:calc(1.5em + .5rem);padding-left:.5rem}.input-group .select2-container--default .select2-selection--single .select2-selection__arrow{height:calc(1.5em + .5rem + 2px)}#step-0 h3 i{font-size:1.2rem}.form-label.fw-bold i{font-size:.9rem}

/* ========================================
   SMARTWIZARD - Dots Theme Styling
   Based on library default with proper colors
   ======================================== */

/* SmartWizard Dots Theme */

.sw-theme-dots .sw-container {
  min-height: 300px;
}

.sw-theme-dots .step-content {
  padding: 10px 0;
  border: none;
  background-color: #fff;
  text-align: left;
}

.sw-theme-dots .sw-toolbar {
  background: #fff;
  border-radius: 0 !important;
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 0 !important;
}

.sw-theme-dots .sw-toolbar-top {
  border-bottom-color: #ddd !important;
}

.sw-theme-dots .sw-toolbar-bottom {
  border-top-color: #ddd !important;
  border-bottom-color: #ddd !important;
}

.sw-theme-dots > ul.step-anchor {
  position: relative;
  background: #fff;
  border: 0px solid #ccc !important;
  list-style: none;
}

.sw-theme-dots > ul.step-anchor:before {
  content: ' ';
  position: absolute;
  top: 70px;
  bottom: 0;
  width: 100%;
  height: 5px;
  background-color: #f5f5f5;
  border-radius: 3px;
  z-index: 95;
}

.sw-theme-dots > ul.step-anchor > li {
  border: none;
}

/* Anchors styles */
.sw-theme-dots > ul.step-anchor > li > a {
  position: relative;
  text-align: center;
  font-weight: bold;
  background: transparent;
  border: none;
  color: #ccc;
  text-decoration: none;
  outline-style: none;
  z-index: 96;
  display: block;
}

.sw-theme-dots > ul.step-anchor > li > a:before {
  content: ' ' !important;
  position: absolute !important;
  bottom: -12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: block !important;
  border-radius: 50% !important;
  color: #428bca !important;
  background: #f5f5f5 !important;
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  text-decoration: none !important;
  z-index: 98 !important;
  margin-top: 0 !important;
}

.sw-theme-dots > ul.step-anchor > li > a:after {
  content: ' ' !important;
  position: absolute !important;
  bottom: -3px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  background: #f5f5f5 !important;
  border-radius: 50% !important;
  z-index: 99 !important;
  margin-top: 0 !important;
}

.sw-theme-dots > ul.step-anchor > li > a:hover {
  color: #999;
  background: transparent;
}

.sw-theme-dots > ul.step-anchor > li > a:focus {
  color: #ccc;
  border: none;
}

.sw-theme-dots > ul.step-anchor > li.clickable > a:hover {
  color: #999;
}

/* Active anchors */
.sw-theme-dots > ul.step-anchor > li.active > a {
  color: #5bc0de !important;
}

.sw-theme-dots > ul.step-anchor > li.active > a:hover {
  border: none;
  color: #5bc0de !important;
}

.sw-theme-dots > ul.step-anchor > li.active > a:after {
  background: #5bc0de !important;
}

/* Done anchors */
.sw-theme-dots > ul.step-anchor > li.done > a {
  color: #5cb85c !important;
}

.sw-theme-dots > ul.step-anchor > li.done > a:after {
  background: #5cb85c !important;
}

/* Danger anchors */
.sw-theme-dots > ul.step-anchor > li.danger > a {
  color: #d9534f;
}

.sw-theme-dots > ul.step-anchor > li.danger > a:after {
  background: #d9534f;
}

.sw-theme-dots > ul.step-anchor > li.disabled > a,
.sw-theme-dots > ul.step-anchor > li.disabled > a:hover {
  color: #eee !important;
}

.sw-theme-dots > ul.step-anchor > li.disabled > a:after {
  background: #eee;
}

/* Responsive CSS */
@media screen and (max-width: 768px) {
  .sw-theme-dots > ul.step-anchor:before {
    top: 0;
    bottom: 0;
    left: 10px;
    width: 5px;
    height: 100%;
    background-color: #f5f5f5;
    display: block;
    margin-right: 10px;
  }

  .sw-theme-dots > ul.step-anchor > li {
    margin-left: 20px;
    display: block;
    clear: both;
  }

  .sw-theme-dots > ul.step-anchor > li > a {
    text-align: left;
    margin-left: 0;
    display: block;
  }

  .sw-theme-dots > ul.step-anchor > li > a:before {
    top: 5px;
    left: -23px;
    margin-right: 10px;
    display: block;
  }

  .sw-theme-dots > ul.step-anchor > li > a:after {
    top: -38px;
    left: -31px;
    margin-right: 10px;
    display: block;
  }
}

/* ========================================
   Table Header Styling
   ======================================== */
#smartwizard .table thead tr:first-child th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border: none !important;
}

#smartwizard .table thead .thead-dark th {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  border: none !important;
}

/* ========================================
   Modal Modern - Enhanced Components
   ======================================== */

/* Modal Header with Gradient */
.modal-header-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem 0.5rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-modern.gradient-primary {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.modal-header-modern.gradient-success {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.modal-header-modern.gradient-danger {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.modal-header-modern .modal-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.125rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-close-modern {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.btn-close-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Modal Body Modern */
.modal-body-modern {
  padding: 1.5rem;
  background: #ffffff;
}

.modal-footer-modern {
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 0.5rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Info Grid for Read-only Data */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: #212529;
  padding: 0.5rem;
  background: #ffffff;
  border-radius: 0.375rem;
  border: 1px solid #dee2e6;
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* Form Control Modern */
.form-control-modern {
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #ffffff;
}

.form-control-modern:focus {
  border-color: #4facfe;
  box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.15);
  outline: none;
}

.form-control-modern::placeholder {
  color: #adb5bd;
  font-style: italic;
}

/* Modern Buttons */
.btn-primary-modern {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
  color: #ffffff;
}

.btn-secondary-modern {
  background: #6c757d;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-modern:hover {
  background: #5a6268;
  transform: translateY(-1px);
  color: #ffffff;
}

/* Alert Info Modern Enhancement */
.alert-info-modern {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
  border-left: 4px solid #4facfe;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .modal-header-modern {
    padding: 0.875rem 1rem;
  }

  .modal-body-modern {
    padding: 1rem;
  }

  .modal-footer-modern {
    padding: 0.875rem 1rem;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Modern Auth Pages (Login, Register, Forgot Password, Reset Password)
   Colors aligned with Platinum Gadget Brand (#660215)
   ========================================================================== */
.auth-layout-wrap {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 15%, #85071f 0%, #660215 50%, #3a010c 100%) !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  overflow-x: hidden;
}

.auth-layout-wrap::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.22) 0%, rgba(102, 2, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
  background: #ffffff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-cover-right,
#coverRight {
  background: linear-gradient(135deg, #280a10 0%, #1e212b 55%, #12141a 100%) !important;
  position: relative;
  overflow: hidden;
}

.auth-cover-right::before,
#coverRight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 35% 25%, rgba(220, 20, 60, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* Primary Button Styling */
.auth-layout-wrap .btn-primary,
.btn-auth-primary {
  background: linear-gradient(135deg, #b81432 0%, #7a0319 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 0.7rem 1.4rem !important;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(122, 3, 25, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.auth-layout-wrap .btn-primary:hover,
.btn-auth-primary:hover {
  background: linear-gradient(135deg, #c71737 0%, #8f041e 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 3, 25, 0.45) !important;
  color: #ffffff !important;
}

.auth-layout-wrap .btn-primary:active,
.btn-auth-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(122, 3, 25, 0.3) !important;
}

/* Input Group & Focus Styling */
.auth-layout-wrap .input-group-modern .form-control {
  border-radius: 0 8px 8px 0;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.auth-layout-wrap .input-group-modern .input-group-text {
  border-radius: 8px 0 0 8px;
  border: 1px solid #ced4da;
  border-right: none;
  background-color: #f8f9fa;
  color: #6c757d;
}

.auth-layout-wrap .input-group-modern:focus-within .input-group-text {
  border-color: #b81432;
  color: #b81432;
  background-color: #fff5f6;
}

.auth-layout-wrap .input-group-modern:focus-within .form-control {
  border-color: #b81432;
  box-shadow: 0 0 0 0.2rem rgba(184, 20, 50, 0.18);
}

.auth-layout-wrap .form-control:focus {
  border-color: #b81432 !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 20, 50, 0.18) !important;
}

/* Links & Checkbox */
.auth-layout-wrap .auth-link {
  color: #b81432 !important;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.auth-layout-wrap .auth-link:hover {
  color: #7a0319 !important;
  text-decoration: underline !important;
  transform: translateY(-1px);
}

.auth-layout-wrap .form-check-input:checked {
  background-color: #b81432 !important;
  border-color: #b81432 !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 20, 50, 0.2) !important;
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 575.98px) {
  .auth-layout-wrap {
    padding: 0.75rem 0.5rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    align-items: flex-start !important;
    padding-top: 1.25rem !important;
  }

  .auth-card {
    border-radius: 14px !important;
  }

  .auth-card .p-4,
  .auth-card .p-lg-5,
  .auth-card .p-md-5 {
    padding: 1.25rem 1rem !important;
  }

  .auth-layout-wrap h1.h4 {
    font-size: 1.25rem !important;
  }

  .auth-layout-wrap #code_area {
    max-width: 85px !important;
    font-size: 0.85rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .auth-layout-wrap .btn-google-modern {
    padding: 10px 16px !important;
    font-size: 14px !important;
  }

  .auth-layout-wrap img.img-fluid {
    max-height: 46px !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .auth-layout-wrap {
    padding: 1.25rem 1rem;
  }

  .auth-card .p-4,
  .auth-card .p-lg-5,
  .auth-card .p-md-5 {
    padding: 1.75rem 1.5rem !important;
  }
}

