/**
 * Dealer System CSS
 *
 * @package ANCS_Suite
 */

/* Dashboard Wrap */
.ancs-dashboard-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.ancs-card {
    flex: 1 1 calc(25% - 20px);
    background: #ffffff;
    padding: 22px;
    border-left: 5px solid #007bc4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    min-width: 200px;
}

.ancs-card.orange { border-color: #f59e0b; }
.ancs-card.green  { border-color: #10b981; }
.ancs-card.red    { border-color: #ef4444; }

.ancs-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #4b5563;
}

.ancs-card p {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.ancs-buttons a {
    margin-right: 10px;
}

@media(max-width: 768px) {
    .ancs-card { flex: 1 1 100%; }
}

/* Dealer Management Table */
.dealer-table th, .dealer-table td {
    padding: 8px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.dealer-table .status-active   { color: #16a34a; font-weight: 700; }
.dealer-table .status-pending  { color: #d97706; font-weight: 700; }
.dealer-table .status-rejected { color: #dc2626; font-weight: 700; }

.dealer-table .action-links .action-btn {
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-right: 6px;
    display: inline-block;
}

.action-btn.confirm-approve { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.action-btn.confirm-reject  { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.action-btn.confirm-restore { background: #fef9c3; color: #a16207; border: 1px solid #fef08a; }

.dealer-row-active   { background-color: #f0fdf4 !important; }
.dealer-row-pending  { background-color: #fefce8 !important; }
.dealer-row-rejected { background-color: #fef2f2 !important; }

/* Registration form radio tabs */
.account-switch-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.account-switch-tabs label {
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.account-switch-tabs input[type="radio"]:checked + label {
    border-color: #007bc4;
    background: #e0f2fe;
    font-weight: 700;
    color: #0284c7;
}
