/* External Brand Hub — styling overrides & additions */

/* Reuse most styles from brands.css; override where needed */

.brand-overview,
.products-list,
.leads-section,
.inventory-section,
.national-accounts-section {
    padding: 0;
}

/* Lead form styling */
#lead-form input,
#lead-form select,
#lead-form textarea {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#lead-form input:focus,
#lead-form select:focus,
#lead-form textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Distributor placement cards */
.distributor-card {
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: white;
}

.distributor-card:hover {
    background: #fafafa;
    border-color: #ccc;
}

/* Empty state */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
    color: #666;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
    font-size: 20px;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Loading state */
.loading {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* State badges */
.state-badge {
    display: inline-block;
    background: #e8f0fe;
    color: #1a73e8;
    padding: 0.5rem 0.75rem;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Status badge */
.status-pending {
    background: #fff3e0;
    color: #ff9800;
}

.status-accepted {
    background: #e8f5e9;
    color: #4caf50;
}

.status-rejected {
    background: #f5f5f5;
    color: #666;
}

/* Tab content container */
#tab-content {
    padding: 2rem 0;
    min-height: 400px;
}

/* KPI cards (reuse from brands.css) */
.kpi-box {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.kpi-box-period {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-metrics {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.kpi-metric {
    text-align: center;
}

.kpi-val {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
}

.kpi-lbl {
    font-size: 12px;
    color: #666;
    margin-top: 0.25rem;
}

/* Product cards */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #ccc;
}

.product-card-content {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.product-meta {
    font-size: 13px;
    color: #666;
}

.product-rating {
    margin-top: 0.75rem;
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    #tab-content {
        padding: 1rem 0;
    }

    .kpi-metrics {
        gap: 1rem;
        flex-direction: column;
    }

    #lead-form {
        grid-template-columns: 1fr !important;
    }

    #lead-form > div:nth-child(n+1):nth-last-child(n+1) {
        grid-column: span 1 !important;
    }
}
