.module-hero {
    background: var(--hero-bg);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-main);
    box-shadow: var(--premium-card-shadow);
}

.module-hero .module-hero-inner {
    position: relative;
    z-index: 1;
}

.module-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(var(--primary-rgb), 0.12);
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-brand);
    flex-shrink: 0;
}

.module-hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
}

.module-hero-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.35rem 0 0;
}

.module-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    box-shadow: var(--premium-card-shadow);
}

.module-filter-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--premium-card-shadow);
}

.module-input,
.module-select {
    background: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-main) !important;
    border-radius: 12px !important;
    padding: 0.65rem 1rem !important;
    transition: all 0.25s ease;
}

.module-input:focus,
.module-select:focus {
    border-color: var(--primary-brand) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
    outline: none !important;
}

.module-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.module-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    display: block;
}

.module-btn-primary {
    background: var(--primary-brand);
    color: var(--btn-text) !important;
    border: none;
    border-radius: var(--btn-radius);
    padding: 0.6rem 1.3rem;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    line-height: 1;
}

.module-btn-primary:hover {
    filter: brightness(1.1);
    color: var(--btn-text) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
}

.module-btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 0.6rem 1.3rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.module-btn-secondary:hover {
    border-color: var(--primary-brand);
    color: var(--text-main);
    transform: translateY(-1px);
}

.module-table-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
}

.module-table {
    border-collapse: separate;
    border-spacing: 0 6px;
    width: 100%;
    margin: 0;
    padding: 0 0.75rem;
}

.module-table thead th {
    background: transparent;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 1rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.module-table tbody tr {
    background: var(--bg-card);
    transition: all 0.2s ease;
}

.module-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateX(3px);
}

.module-table td {
    padding: 1rem;
    border: none;
    vertical-align: middle;
    color: var(--text-main);
}

.module-table td:first-child {
    border-radius: 14px 0 0 14px;
}

.module-table td:last-child {
    border-radius: 0 14px 14px 0;
}

.module-action-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-main);
    background: var(--bg-card);
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
}

.module-action-btn:hover {
    transform: scale(1.15);
}

.module-action-btn.view:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-brand);
    color: var(--primary-brand);
}

.module-action-btn.edit:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: var(--primary-brand);
}

.module-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.module-action-btn.download:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--accent-brand);
    color: var(--accent-brand);
}

.module-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-yellow);
    flex-shrink: 0;
    text-transform: uppercase;
}

.module-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.module-badge.active {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.module-badge.inactive {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.module-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.module-badge.draft {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.module-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.module-empty-state i {
    font-size: 3rem;
    color: var(--primary-yellow);
    opacity: 0.25;
    margin-bottom: 1rem;
    display: block;
}

.module-empty-state h5 {
    color: var(--text-main);
    font-weight: 700;
}

.module-pagination .page-link {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    color: var(--text-main);
    border-radius: 10px !important;
    margin: 0 2px;
    transition: all 0.2s;
}

.module-pagination .page-link:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: var(--primary-yellow);
    color: var(--primary-yellow);
}

.module-pagination .page-item.active .page-link {
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: #111;
    font-weight: 700;
}

.module-pagination .page-item.disabled .page-link {
    opacity: 0.35;
}

.module-mini-input {
    width: 75px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    padding: 2px 5px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.module-mini-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
    outline: none;
}

.module-total-bar-ledger {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-radius: 0 0 20px 20px;
    padding: 1.25rem 1.5rem;
}

[data-bs-theme="light"] .module-total-bar-ledger {
    background: #212529 !important;
}

.module-total-bar-ledger .total-label {
    opacity: 0.7;
    font-weight: 600;
    font-size: 0.9rem;
    color: #dee2e6;
}

.module-total-bar-ledger .total-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
}

.module-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-header);
}

.module-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.module-card-title i {
    color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .module-hero {
        padding: 1.75rem 1.5rem;
    }

    .module-table-wrapper {
        border-radius: 16px;
    }

    .module-hero-title {
        font-size: 1.4rem;
    }
}

.select2-container--bootstrap-5 .select2-selection {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 12px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--primary-yellow) !important;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15) !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--text-main) !important;
    padding-left: 1.25rem !important;
    font-weight: 500;
}

.select2-container--bootstrap-5 .select2-dropdown {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-main) !important;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: var(--premium-card-shadow);
    z-index: 9999;
    backdrop-filter: var(--glass-blur);
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.85rem 1.25rem !important;
    color: var(--text-main) !important;
    transition: background 0.2s;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-yellow) !important;
    color: #111 !important;
}

.select2-container--bootstrap-5 .select2-search__field {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-main) !important;
    border-radius: 10px !important;
    padding: 0.6rem 1rem !important;
}

.select2-container--bootstrap-5 .select2-selection__clear {
    color: var(--text-muted) !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background-color: rgba(255, 215, 0, 0.12) !important;
    border: 1px solid rgba(255, 215, 0, 0.25) !important;
    border-radius: 8px !important;
    color: var(--primary-yellow) !important;
    padding: 2px 10px !important;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: #ef4444 !important;
    margin-right: 5px !important;
    border: none !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    transition: transform 0.2s !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    transform: scale(1.2) !important;
    background-color: transparent !important;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered {
    padding: 0 0.75rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.select2-container--bootstrap-5 .select2-search.select2-search--inline {
    flex-grow: 1 !important;
}

.select2-container--bootstrap-5 .select2-search.select2-search--inline .select2-search__field {
    margin-top: 0 !important;
    height: 38px !important;
    background: transparent !important;
    border: none !important;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.25s ease;
}

.summary-card:hover {
    border-color: var(--primary-yellow);
    transform: translateX(5px);
    background: rgba(255, 215, 0, 0.05);
}

.text-ves {
    color: #0d6efd !important;
}

.text-usd {
    color: #198754 !important;
}

[data-bs-theme="dark"] .text-ves {
    color: #60a5fa !important;
}

[data-bs-theme="dark"] .text-usd {
    color: #34d399 !important;
}
