/* ===== ACCOUNTANT DASHBOARD STYLES ===== */

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

.date-range-selector {
    display: flex;
    gap: 0.5rem;
}

/* ===== ACCOUNTING STATS ===== */
.accounting-stats .stat-card.revenue { border-left-color: #10b981; }
.accounting-stats .stat-card.revenue .stat-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.accounting-stats .stat-card.profit { border-left-color: #8b5cf6; }
.accounting-stats .stat-card.profit .stat-icon { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.accounting-stats .stat-card.paid { border-left-color: #06b6d4; }
.accounting-stats .stat-card.paid .stat-icon { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

.accounting-stats .stat-card.pending { border-left-color: #f59e0b; }
.accounting-stats .stat-card.pending .stat-icon { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }

.accounting-stats .stat-card[onclick] {
    transition: all 0.2s;
}

.accounting-stats .stat-card[onclick]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.stat-change {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.neutral {
    color: var(--text-muted);
}

/* ===== SECONDARY STATS ===== */
.stats-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mini-stat {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.mini-stat:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.mini-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    opacity: 0.7;
}

.mini-stat > div {
    display: flex;
    flex-direction: column;
}

.mini-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.mini-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== CHARTS ROW ===== */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header i {
    color: var(--primary);
}

.view-all {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

.mini-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    background: var(--bg-white);
    cursor: pointer;
}

.card-body {
    padding: 1.5rem;
}

/* ===== TABLES ROW ===== */
.tables-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.table-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ===== TRANSACTION LIST ===== */
.transaction-list,
.side-labs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.transaction-item:hover {
    background: var(--border-light);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.transaction-icon.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.transaction-icon.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.transaction-icon.partial {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.transaction-details {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.transaction-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.transaction-amount {
    text-align: right;
}

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

.amount-status {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    display: inline-block;
    margin-top: 0.25rem;
}

.amount-status.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.amount-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.amount-status.partial {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

/* ===== SIDE LABS ===== */
.side-lab-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    transition: var(--transition);
}

.side-lab-item:hover {
    background: var(--border-light);
}
.side-lab-item.active {
    background: rgba(139, 92, 246, 0.12);
    box-shadow: inset 3px 0 0 #8b5cf6;
}

.side-lab-info {
    flex: 1;
}

.side-lab-name {
    font-weight: 500;
    color: var(--text-primary);
}

.side-lab-stats {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.side-lab-amount {
    text-align: right;
}

.side-lab-total {
    font-weight: 600;
    color: var(--text-primary);
}

.side-lab-visits {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===== PENDING SECTION ===== */
.pending-section {
    margin-bottom: 1.5rem;
}

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

.section-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header i {
    color: var(--warning);
}

.pending-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pending-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warning);
}

.pending-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== PAYMENT STATUS BADGES ===== */
.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.payment-badge.paid {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.payment-badge.partial {
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
}

.payment-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.payment-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ===== ACTION BUTTONS ===== */
.btn-action {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-action:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

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

.btn-action.primary:hover {
    background: var(--primary-dark);
}

/* ===== USER AVATAR ===== */
.user-avatar.accountant {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .tables-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-secondary {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pending-summary {
        width: 100%;
        justify-content: space-between;
    }

    .transaction-item,
    .side-lab-item {
        flex-wrap: wrap;
    }
}
