/* ========================================
   Gest�oBLZ - Sal�rios e Comiss�es
   Estilos para a tela de sal�rios
   ======================================== */

/* ========================================
   VARI�VEIS DE CORES
   ======================================== */
:root {
    --salary-primary: var(--primary-color);
    --salary-secondary: var(--primary-light);
    --salary-success: #10b981;
    --salary-warning: #f59e0b;
    --salary-danger: #ef4444;
    --salary-info: #3b82f6;

    /* Cards e backgrounds */
    --salary-card-bg: #ffffff;
    --salary-border: #e5e7eb;
    --salary-text-primary: #111827;
    --salary-text-secondary: #6b7280;
    --salary-bg-light: #f9fafb;
}

/* ========================================
   SE��O DE RESUMO FINANCEIRO
   ======================================== */
.salary-summary-section {
    margin-bottom: 2rem;
}

.salary-summary-card {
    background: linear-gradient(135deg, var(--salary-card-bg) 0%, #fafafa 100%);
    border: 1px solid var(--salary-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.salary-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--salary-primary), var(--salary-secondary));
    border-radius: 12px 12px 0 0;
}

.salary-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.salary-summary-card .summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.salary-summary-card.total-payout .summary-icon {
    background: linear-gradient(135deg, var(--salary-primary), var(--salary-secondary));
    color: white;
}

.salary-summary-card.commissions .summary-icon {
    background: linear-gradient(135deg, var(--salary-success), #34d399);
    color: white;
}

.salary-summary-card.advances .summary-icon {
    background: linear-gradient(135deg, var(--salary-warning), #fbbf24);
    color: white;
}

.salary-summary-card.withdrawals .summary-icon {
    background: linear-gradient(135deg, var(--salary-info), #60a5fa);
    color: white;
}

.salary-summary-card .summary-content {
    flex: 1;
}

.salary-summary-card .summary-title {
    font-size: 0.875rem;
    color: var(--salary-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.salary-summary-card .summary-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--salary-text-primary);
    margin-bottom: 0.25rem;
}

.salary-summary-card .summary-period {
    font-size: 0.75rem;
    color: var(--salary-text-secondary);
}

/* ========================================
   SE��ES PRINCIPAIS
   ======================================== */
.top-bar-section .top-bar-card {
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.top-bar-section .top-bar-card .card-body {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.period-filter-group {
    background: #f5f7fb;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    padding: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.period-filter-group .form-label {
    letter-spacing: 0.05em;
}

.top-bar-input {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0.65rem 0.9rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-bar-input:focus {
    border-color: var(--salary-primary);
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.25);
    outline: none;
}

.top-bar-btn {
    border-radius: 10px;
    padding: 0.6rem 1.6rem;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.formato-opcoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formato-item {
    width: 100%;
}

.formato-item .btn-outline-secondary {
    border: 2px solid rgba(15, 23, 42, 0.1);
    transition: all 0.3s ease;
    padding: 15px;
    background: var(--salary-card-bg);
    color: var(--salary-text-primary);
}

.formato-item .btn-check:checked + .btn-outline-secondary {
    background-color: var(--salary-primary);
    border-color: var(--salary-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.formato-item .btn-check:checked + .btn-outline-secondary i {
    color: white !important;
}

.formato-item .btn-outline-secondary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--salary-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
}

.theme-dark .formato-item .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    background: var(--salary-card-bg);
    color: var(--salary-text-primary);
}

.theme-dark .formato-item .btn-check:checked + .btn-outline-secondary {
    background-color: var(--salary-primary);
    border-color: var(--salary-primary);
    color: white;
}

.top-bar-actions .btn-outline-success {
    border-radius: 10px;
    border-width: 1.5px;
    padding: 0.55rem 1.25rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.top-bar-actions .btn-outline-success:hover {
    transform: translateY(-1px);
}

.letter-spacing {
    letter-spacing: 0.15em;
}

@media (max-width: 768px) {
    .period-filter-group {
        padding: 1rem;
    }

    .top-bar-actions {
        justify-content: flex-start !important;
    }

    .top-bar-btn {
        width: 100%;
        text-align: center;
    }
}

.professional-filter {
    min-width: 240px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 0.75rem 0.9rem;
}

.professional-filter .form-label {
    display: block;
    font-weight: 600;
    color: var(--salary-text-secondary);
    letter-spacing: 0.05em;
}

.professional-filter .input-icon-group {
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 12px;
    background: #f5f7fb;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.professional-filter .input-icon-group i {
    font-size: 1rem;
    color: var(--salary-primary);
}

.professional-select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-weight: 500;
    color: var(--salary-text-primary);
}

.professional-select:focus {
    outline: none;
}

.professional-filter:focus-within {
    border-color: var(--salary-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

@media (max-width: 992px) {
    .professional-filter {
        width: 100%;
        max-width: none;
    }
}
.salary-section {
    background: var(--salary-card-bg);
    border: 1px solid var(--salary-border);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.salary-section .section-header {
    background: linear-gradient(135deg, var(--salary-bg-light) 0%, #ffffff 100%);
    border-bottom: 1px solid var(--salary-border);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.salary-section .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--salary-text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.salary-section .section-title i {
    color: var(--salary-primary);
    font-size: 1.125rem;
}

.salary-section .section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ========================================
   TABELA DE SAL�RIOS
   ======================================== */
/* Containers unificados para todas as tabelas */
.salary-table-container,
.wallet-table-container,
.withdrawal-table-container,
.advances-table-container {
    padding: 0rem;
    overflow-x: auto;
}

/* Estilos base unificados para todas as tabelas */
.salary-table,
.wallet-table,
.withdrawal-table,
.advances-table {
    margin: 0;
    border: none;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cabeçalhos unificados para todas as tabelas */
.salary-table th,
.wallet-table th,
.withdrawal-table th,
.advances-table th {
    background: linear-gradient(135deg, var(--salary-bg-light) 0%, #f8fafc 100%);
    color: var(--salary-text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 2px solid var(--salary-border);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    white-space: nowrap;
    position: relative;
}

/* Linha sutil no cabeçalho */
.salary-table th:not(:last-child),
.wallet-table th:not(:last-child),
.withdrawal-table th:not(:last-child),
.advances-table th:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

/* Células unificadas para todas as tabelas */
.salary-table td,
.wallet-table td,
.withdrawal-table td,
.advances-table td {
    padding: 1rem 0.75rem;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

/* Linhas sutis nas células */
.salary-table td:not(:last-child),
.wallet-table td:not(:last-child),
.withdrawal-table td:not(:last-child),
.advances-table td:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.02);
}

/* Hover effect unificado e melhorado */
.salary-table tr:hover,
.wallet-table tr:hover,
.withdrawal-table tr:hover,
.advances-table tr:hover {
    background: linear-gradient(135deg, var(--salary-bg-light) 0%, #fefefe 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Última linha sem border */
.salary-table tbody tr:last-child td,
.wallet-table tbody tr:last-child td,
.withdrawal-table tbody tr:last-child td,
.advances-table tbody tr:last-child td {
    border-bottom: none;
}

.professional-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
}

.professional-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.professional-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.professional-details {
    display: flex;
    flex-direction: column;
}

.professional-name {
    font-weight: 600;
    color: var(--salary-text-primary);
    font-size: 0.875rem;
}

.professional-role {
    font-size: 0.75rem;
    color: var(--salary-text-secondary);
}

.salary-amount {
    font-weight: 600;
    color: var(--salary-text-primary);
}

.commission-amount {
    font-weight: 600;
    color: var(--salary-success);
}

.commission-details {
    display: block;
    font-size: 0.75rem;
    color: var(--salary-text-secondary);
    margin-top: 0.25rem;
}

.advance-amount {
    font-weight: 600;
    color: var(--salary-danger);
}

.advance-details {
    display: block;
    font-size: 0.75rem;
    color: var(--salary-text-secondary);
    margin-top: 0.25rem;
}

.total-amount {
    font-weight: 700;
    color: var(--salary-text-primary);
    font-size: 1.125rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border: none;
    white-space: nowrap;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.paid {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.deducted {
    background: #e0e7ff;
    color: #3730a3;
}

.salary-actions {
    display: flex;
    gap: 0.5rem;
}

.salary-actions .btn {
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

.salary-pay-btn {
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
    text-transform: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.salary-pay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.payment-confirmation {
    font-size: 0.9rem;
    color: var(--salary-text-primary);
}

.payment-confirmation-text {
    margin-bottom: 0;
}

.payment-confirmation .form-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--salary-text-secondary);
}

.payment-confirmation .form-control-sm,
.payment-confirmation .form-select-sm {
    border-radius: 10px;
    border-color: #d1d5db;
    background: #fff;
}

.wallet-lock-btn {
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.wallet-lock-btn:hover {
    transform: translateY(-1px);
}

/* ========================================
   CARTEIRAS DIGITAIS
   ======================================== */
.wallet-card {
    background: linear-gradient(135deg, var(--salary-card-bg) 0%, #fafafa 100%);
    border: 1px solid var(--salary-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--salary-primary), var(--salary-secondary));
    border-radius: 12px 12px 0 0;
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.withdrawal-receipt-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 18px;
    padding: 1.5rem 1rem;
    border: 1px dashed rgba(15, 23, 42, 0.1);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.withdrawal-receipt-detail {
    background: #f8f9fb;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.receipt-status {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
}

.vale-preview {
    border: 1px dashed rgba(15, 23, 42, 0.15);
    border-radius: 14px;
    padding: 1rem;
    background: #f9fafb;
}

.vale-detail-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

.salary-config-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
    padding: 1.5rem;
    background: #ffffff;
    overflow: hidden;
}

.salary-config-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.salary-config-card .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.salary-config-card .form-check-input {
    width: 2.2rem;
    height: 1.2rem;
    margin-left: 0;
}

.salary-config-card .form-check-label {
    font-size: 0.85rem;
    color: var(--salary-text-secondary);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.wallet-status.available {
    background: #d1fae5;
    color: #065f46;
}

.wallet-status.unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.wallet-status i {
    font-size: 0.5rem;
}

.wallet-balance {
    text-align: center;
    margin-bottom: 1.5rem;
}

.balance-label {
    font-size: 0.875rem;
    color: var(--salary-text-secondary);
    margin-bottom: 0.5rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--salary-text-primary);
}

.wallet-actions {
    display: flex;
    gap: 0.75rem;
}

.wallet-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* ========================================
   SOLICITA��ES DE SAQUE
   ======================================== */
.withdrawal-requests {
    padding: 1.5rem;
}

.withdrawal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--salary-bg-light);
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.withdrawal-item:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.withdrawal-item:last-child {
    margin-bottom: 0;
}

.withdrawal-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.withdrawal-time {
    font-size: 0.75rem;
    color: var(--salary-text-secondary);
}

.withdrawal-amount {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 0 1rem;
}

.withdrawal-amount .amount {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--salary-text-primary);
}

.withdrawal-amount .payment-method {
    font-size: 0.75rem;
    color: var(--salary-text-secondary);
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.withdrawal-actions {
    display: flex;
    gap: 0.5rem;
}

.withdrawal-actions .btn {
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
}

.withdrawal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.withdrawal-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.withdrawal-status.pending {
    background: #fef3c7;
    color: #92400e;
}

/* ========================================
   MELHORIAS VISUAIS ADICIONAIS PARA TABELAS
   ======================================== */

/* Efeito de zebra sutil para melhor legibilidade */
.salary-table tbody tr:nth-child(even),
.wallet-table tbody tr:nth-child(even),
.withdrawal-table tbody tr:nth-child(even),
.advances-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.3);
}

/* Animação suave ao fazer hover */
.salary-table tbody tr,
.wallet-table tbody tr,
.withdrawal-table tbody tr,
.advances-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Destaque para primeira coluna (profissionais) */
.salary-table td:first-child,
.wallet-table td:first-child,
.withdrawal-table td:first-child,
.advances-table td:first-child {
    font-weight: 500;
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.02);
}

/* Estilo melhorado para containers das tabelas */
.salary-table-container,
.wallet-table-container,
.withdrawal-table-container,
.advances-table-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Estilos específicos para badges e valores nas tabelas */
.wallet-table .badge,
.withdrawal-table .badge,
.advances-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Valores destacados em tabelas */
.wallet-table .fw-bold,
.withdrawal-table .fw-bold,
.advances-table .fw-bold {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Melhorias para avatares em todas as tabelas */
.professional-avatar {
    border: 2px solid rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.professional-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ========================================
   BARRA SUPERIOR (IGUAL AO CAIXA)
   ======================================== */
.top-bar-section {
    margin-bottom: 1.5rem;
}

.top-bar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ===== DATE FILTER COMPACT ===== */
.date-filter-compact {
    flex: 0 0 auto;
}

.date-compact-wrapper {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    max-width: 340px;
    width: fit-content;
}

.date-compact-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.2);
}

.date-info-compact {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.date-icon-compact {
    font-size: 1.125rem;
    color: var(--primary-color);
}

.date-text-compact {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--theme-text-primary);
}

.date-actions-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-input-compact {
    background: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border-color);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--theme-text-primary);
    min-width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input-compact:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
}

.date-input-compact::-webkit-calendar-picker-indicator {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23F67537' d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3e%3c/svg%3e");
    cursor: pointer;
    width: 16px;
    height: 16px;
}

/* ===== QUICK ACTIONS COMPACT ===== */
.quick-actions-compact {
    flex: 0 0 auto;
}

.actions-compact-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn-compact {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
}

.action-btn-compact:hover {
    background: var(--theme-bg-secondary);
    border-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
    color: var(--theme-text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-btn-compact.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.action-btn-compact.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.action-btn-compact i {
    font-size: 1rem;
}

/* ========================================
   BOTÃO PROCESSAR PAGAMENTOS MELHORADO
   ======================================== */
.btn-enhanced {
    position: relative;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.4);
}

.btn-gradient-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.6);
}

.btn-enhanced i {
    font-size: 1.125rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.btn-enhanced span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Efeito de brilho no botão */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-enhanced:hover .btn-shine {
    left: 100%;
}

/* Animação de pulso sutil */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.4);
    }
}

.btn-gradient-primary {
    animation: subtle-pulse 3s ease-in-out infinite;
}

.btn-enhanced:hover {
    animation: none;
}

/* ========================================
   ESTILOS ESPECÍFICOS PARA ELEMENTOS DAS TABELAS
   ======================================== */

.professional-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.professional-avatar.mini {
    width: 32px;
    height: 32px;
}

.professional-mini .professional-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--salary-text-primary);
}

/* ========================================
   MODAL DO HISTÓRICO DA CARTEIRA
   ======================================== */
.wallet-balance-info {
    background: linear-gradient(135deg, var(--salary-bg-light) 0%, #ffffff 100%);
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.current-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.balance-label {
    font-size: 0.875rem;
    color: var(--salary-text-secondary);
    font-weight: 500;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--salary-primary);
}

.history-filters {
    background: var(--salary-bg-light);
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.history-filters .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--salary-text-primary);
    margin-bottom: 0.5rem;
}

.wallet-history-table {
    margin-bottom: 1.5rem;
}

.wallet-history-table .table {
    margin: 0;
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    overflow: hidden;
}

.wallet-history-table .table th {
    background: var(--salary-bg-light);
    color: var(--salary-text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border: none;
    border-bottom: 2px solid var(--salary-border);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.wallet-history-table .table td {
    padding: 0.75rem;
    border: none;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.wallet-history-table .table tr:hover {
    background: var(--salary-bg-light);
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.service-badge.corte {
    background: #dbeafe;
    color: #1e40af;
}

.service-badge.barba {
    background: #f3e8ff;
    color: #7c3aed;
}

.service-badge.sobrancelha {
    background: #fef3c7;
    color: #92400e;
}

.service-badge.escova {
    background: #ecfdf5;
    color: #059669;
}

.service-badge.pintura {
    background: #fce7f3;
    color: #be185d;
}

.service-badge.saque {
    background: #fee2e2;
    color: #991b1b;
}

.service-badge i {
    font-size: 0.7rem;
}

.transaction-type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.transaction-type.credit {
    background: #d1fae5;
    color: #065f46;
}

.transaction-type.debit {
    background: #fee2e2;
    color: #991b1b;
}

.transaction-type i {
    font-size: 0.6rem;
}

.history-summary {
    background: linear-gradient(135deg, var(--salary-bg-light) 0%, #ffffff 100%);
    border: 1px solid var(--salary-border);
    border-radius: 8px;
    padding: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid var(--salary-border);
    border-radius: 6px;
}

.summary-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--salary-text-secondary);
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
}

/* ========================================
   MELHORIAS DE LAYOUT PARA DESKTOP
   ======================================== */

/* Centralização melhorada para PC (telas grandes) */
@media (min-width: 1200px) {
    .wallet-header .professional-info {
        flex: 1;
        justify-content: center;
        text-align: center;
    }

    .wallet-header .professional-details {
        align-items: center;
    }

    .wallet-header {
        justify-content: center;
        position: relative;
    }

    .wallet-header .wallet-status {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Tablets e dispositivos m�dios */
@media (max-width: 992px) {
    .top-bar-section {
        margin-bottom: 1rem;
    }

    .top-bar-wrapper {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .date-filter-compact,
    .quick-actions-compact {
        width: 100%;
    }

    .date-compact-wrapper {
        max-width: 100%;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        justify-content: center;
    }

    .date-input-compact {
        min-width: 100px;
        font-size: 0.75rem;
    }

    .actions-compact-wrapper {
        justify-content: center;
    }

    .salary-section .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .salary-section .section-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .btn-enhanced {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 45px;
    }

    .withdrawal-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .withdrawal-info {
        flex-direction: column;
        gap: 0.75rem;
    }

    .withdrawal-amount {
        margin: 0;
    }
}

/* Smartphones */
@media (max-width: 768px) {
    .top-bar-section {
        margin-bottom: 0.75rem;
    }

    .date-compact-wrapper {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.875rem;
        text-align: center;
    }

    .date-info-compact {
        justify-content: center;
    }

    .date-actions-compact {
        justify-content: center;
    }

    .date-input-compact {
        min-width: 120px;
    }

    .action-btn-compact {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        min-height: 40px;
    }

    .actions-compact-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }

    .content-area .container-fluid {
        padding: 1rem;
    }

    .salary-summary-section .row {
        --bs-gutter-x: 0.75rem;
    }

    .salary-summary-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .salary-summary-card .summary-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .salary-summary-card .summary-value {
        font-size: 1.5rem;
    }

    .salary-section {
        margin-bottom: 1.5rem;
    }

    .salary-section .section-header {
        padding: 1rem;
    }

    .salary-section .section-title {
        font-size: 1.125rem;
    }

    .salary-table-container,
    .advances-table-container {
        padding: 1rem;
    }

    .salary-table th,
    .salary-table td,
    .wallet-table th,
    .wallet-table td,
    .withdrawal-table th,
    .withdrawal-table td,
    .advances-table th,
    .advances-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }

    .professional-info {
        min-width: 140px;
        gap: 0.375rem;
    }

    .professional-avatar {
        width: 32px;
        height: 32px;
    }

    .professional-name {
        font-size: 0.8125rem;
    }

    .professional-role {
        font-size: 0.6875rem;
    }

    .wallet-card {
        padding: 1rem;
    }

    .wallet-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wallet-status {
        align-self: flex-start;
    }

    .balance-amount {
        font-size: 1.75rem;
    }

    .wallet-actions {
        flex-direction: column;
    }

    .withdrawal-requests {
        padding: 1rem;
    }

    .withdrawal-item {
        padding: 0.75rem;
    }

    .withdrawal-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Smartphones pequenos */
@media (max-width: 576px) {
    .content-area .container-fluid {
        padding: 0.75rem;
    }

    .salary-summary-section .col-xl-3 {
        margin-bottom: 0.75rem;
    }

    .salary-summary-card .summary-value {
        font-size: 1.375rem;
    }

    .salary-section .section-header {
        padding: 0.75rem;
    }

    .salary-section .section-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .salary-section .section-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .btn-enhanced {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        min-height: 42px;
        letter-spacing: 0.3px;
    }

    .period-selector {
        max-width: none;
        width: 100%;
    }

    .salary-table th,
    .salary-table td,
    .wallet-table th,
    .wallet-table td,
    .withdrawal-table th,
    .withdrawal-table td,
    .advances-table th,
    .advances-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8125rem;
    }

    .professional-info {
        min-width: 120px;
        gap: 0.25rem;
    }

    .professional-avatar {
        width: 28px;
        height: 28px;
    }

    .status-badge {
        padding: 0.125rem 0.5rem;
        font-size: 0.6875rem;
    }

    .salary-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .salary-actions .btn {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }

    .balance-amount {
        font-size: 1.5rem;
    }
}

/* ========================================
   TEMA ESCURO
   ======================================== */
.theme-dark .salary-summary-card,
.theme-dark .salary-section,
.theme-dark .wallet-card {
    background: linear-gradient(135deg, var(--theme-card-bg) 0%, #2d2d2d 100%);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .salary-section .section-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, var(--theme-card-bg) 100%);
    border-color: var(--theme-border-color);
}

/* Tema escuro para todas as tabelas */
.theme-dark .salary-table,
.theme-dark .wallet-table,
.theme-dark .withdrawal-table,
.theme-dark .advances-table {
    background: var(--theme-card-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.theme-dark .salary-table th,
.theme-dark .wallet-table th,
.theme-dark .withdrawal-table th,
.theme-dark .advances-table th {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--theme-text-primary);
    border-color: var(--theme-border-color);
}

.theme-dark .salary-table th:not(:last-child),
.theme-dark .wallet-table th:not(:last-child),
.theme-dark .withdrawal-table th:not(:last-child),
.theme-dark .advances-table th:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-dark .salary-table td,
.theme-dark .wallet-table td,
.theme-dark .withdrawal-table td,
.theme-dark .advances-table td {
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .salary-table td:not(:last-child),
.theme-dark .wallet-table td:not(:last-child),
.theme-dark .withdrawal-table td:not(:last-child),
.theme-dark .advances-table td:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.02);
}

.theme-dark .salary-table tr:hover,
.theme-dark .wallet-table tr:hover,
.theme-dark .withdrawal-table tr:hover,
.theme-dark .advances-table tr:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.theme-dark .salary-table tbody tr:nth-child(even),
.theme-dark .wallet-table tbody tr:nth-child(even),
.theme-dark .withdrawal-table tbody tr:nth-child(even),
.theme-dark .advances-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.theme-dark .salary-table td:first-child,
.theme-dark .wallet-table td:first-child,
.theme-dark .withdrawal-table td:first-child,
.theme-dark .advances-table td:first-child {
    background: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.1);
}

.theme-dark .salary-table-container,
.theme-dark .wallet-table-container,
.theme-dark .withdrawal-table-container,
.theme-dark .advances-table-container {
    background: linear-gradient(135deg, var(--theme-card-bg) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--theme-border-color);
}

/* Tema escuro para barra superior */
.theme-dark .date-compact-wrapper {
    background: var(--theme-card-bg);
    border-color: var(--theme-border-color);
}

.theme-dark .date-compact-wrapper:hover {
    border-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
}

.theme-dark .date-input-compact {
    background: var(--theme-bg-secondary);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .date-input-compact:focus {
    border-color: var(--primary-color);
}

.theme-dark .action-btn-compact {
    background: var(--theme-card-bg);
    border-color: var(--theme-border-color);
    color: var(--theme-text-primary);
}

.theme-dark .action-btn-compact:hover {
    background: var(--theme-bg-secondary);
    border-color: rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
    color: var(--theme-text-primary);
}

.theme-dark .action-btn-compact.primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.theme-dark .action-btn-compact.primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

/* Tema escuro para botão melhorado */
.theme-dark .btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 15px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.3);
}

.theme-dark .btn-gradient-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    box-shadow: 0 8px 25px rgba(var(--primary-r), var(--primary-g), var(--primary-b), 0.4);
}

.theme-dark .withdrawal-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--theme-border-color);
}

.theme-dark .withdrawal-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-dark .withdrawal-amount .payment-method {
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-text-secondary);
}

.theme-dark .withdrawal-status.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.theme-dark .withdrawal-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.theme-dark .professional-name,
.theme-dark .salary-amount,
.theme-dark .total-amount {
    color: var(--theme-text-primary);
}

.theme-dark .professional-role,
.theme-dark .commission-details,
.theme-dark .advance-details,
.theme-dark .withdrawal-time,
.theme-dark .balance-label {
    color: var(--theme-text-secondary);
}

.theme-dark .section-title {
    color: var(--theme-text-primary);
}

.theme-dark .summary-title {
    color: var(--theme-text-secondary);
}

.theme-dark .summary-value,
.theme-dark .balance-amount {
    color: var(--theme-text-primary);
}

.theme-dark .summary-period {
    color: var(--theme-text-secondary);
}

/* Modal do histórico - Tema escuro */
.theme-dark .wallet-balance-info,
.theme-dark .history-filters,
.theme-dark .history-summary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, var(--theme-card-bg) 100%);
    border-color: var(--theme-border-color);
}

.theme-dark .wallet-history-table .table {
    border-color: var(--theme-border-color);
}

.theme-dark .wallet-history-table .table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--theme-text-primary);
    border-color: var(--theme-border-color);
}

.theme-dark .wallet-history-table .table td {
    border-color: rgba(255, 255, 255, 0.1);
}

.theme-dark .wallet-history-table .table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-dark .summary-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--theme-border-color);
}

.theme-dark .service-badge.corte {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.theme-dark .service-badge.barba {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
}

.theme-dark .service-badge.sobrancelha {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.theme-dark .service-badge.escova {
    background: rgba(5, 150, 105, 0.2);
    color: #34d399;
}

.theme-dark .service-badge.pintura {
    background: rgba(190, 24, 93, 0.2);
    color: #f472b6;
}

.theme-dark .service-badge.saque {
    background: rgba(153, 27, 27, 0.2);
    color: #fca5a5;
}

.theme-dark .transaction-type.credit {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.theme-dark .transaction-type.debit {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
