p.text-header {
    font-weight: bold;
    font-size: 160%;
    padding-left: 30px;
    padding-right: 30px;
}

p.sub-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: 10px !important;
    margin-right: 10px !important;
    text-align: center;
}

.container-fluid .row {
    min-height: 7.2rem;
}

/* Step 4 Transposed Table Styles */
#step4 .table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

#step4 .table {
    min-width: 600px; /* Ensure minimum width for readability */
    white-space: nowrap;
}

#step4 .table th:first-child,
#step4 .table td:first-child {
    position: sticky;
    left: 0;
    background-color: #f8f9fa;
    border-right: 2px solid #dee2e6;
    font-weight: bold;
    z-index: 10;
    min-width: 200px;
}

#step4 .table th {
    background-color: #e9ecef;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 11;
}

#step4 .table td input[type="text"] {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 8px;
    width: 90px;
    text-align: center;
    background-color: white;
}

#step4 .table td input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

/* Validation styles for Step 4 percentage inputs */
.validation-error {
    border: 2px solid #dc3545 !important;
    background-color: #f8d7da !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3) !important;
}

.validation-warning {
    border: 2px solid #ffc107 !important;
    background-color: #fff3cd !important;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.3) !important;
}

.validation-error:focus,
.validation-warning:focus {
    outline: none !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5) !important;
}

.validation-warning:focus {
    box-shadow: 0 0 8px rgba(255, 193, 7, 0.5) !important;
}

.d-flex.justify-content-end {
    justify-content: flex-end;
}