/* Distribución Module Styles */

.dist-detail-container {
    padding: 24px;
    color: var(--text-main);
}

.dist-card-header {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--distribucion-blue);
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 24px;
}

.dist-card-title {
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.dist-card-subtitle {
    margin: 4px 0 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dist-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dist-stat-card {
    background: #1e293b;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.dist-stat-card:hover {
    transform: translateY(-2px);
    background: #253348;
}

.dist-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.dist-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
}

.dist-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.dist-section-title {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.dist-info-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dist-info-row {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dist-info-row:last-child {
    border-bottom: none;
}

.dist-info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dist-info-data {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.dist-table-header {
    margin-top: 24px;
    margin-bottom: 12px;
    border-bottom: 1px solid #4a5568;
    padding-bottom: 8px;
    color: white;
    font-size: 1.1rem;
}

.dist-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ensure table text is visible in drawer */
.dist-table-container table {
    width: 100%;
    border-collapse: separate;
}

.dist-table-container th {
    background: #2d3748;
    color: var(--text-muted);
    text-align: left;
    padding: 12px;
    font-size: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dist-table-container td {
    background: var(--card-bg); /* Dark background */
    color: var(--text-main);    /* Light text */
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.dist-table-container tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}
