/* NHS Workload Overrides for MudBlazor */

/* Set text-transform to none and set color disabled */
.nhs-tab {
    text-transform: none !important;
    min-width: auto !important;
    color: var(--mud-palette-text-disabled);
}

/* Set padding for header only*/
.mud-tabs .nhs-tab {
    padding: 8px !important;
}

/* Set padding for panel only*/
.mud-tabs-panels .nhs-tab {
    padding: 0 !important;
}

/* Remove shadow from MudSimpleTable */
.nhs-table {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-table-lines) !important;
    border-radius: 8px !important; /* Adjust the pixels for more/less rounding */
    overflow: hidden; /* This ensures the inner content doesn't "leak" over the rounded corners */
}

.nhs-table table {
    table-layout: fixed;
    width: 100%;
}

/* Remove ALL borders from table cells */
.nhs-table th,
.nhs-table td {
    border: none !important;
    padding: 10px 15px !important;
}

/* Add border ONLY to header bottom */
.nhs-table thead th {
    border-bottom: 1px solid var(--mud-palette-table-lines) !important;
    font-weight: 600 !important;
}

/* Badge/Chip styling - colors set via MudBlazor theme */
.nhs-chip {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem !important;
    border-radius: 0.25rem !important;
    text-align: center;
    font-weight: 500;
}

/* Text styling - colors from theme */
.nhs-text-secondary {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

.nhs-text-muted {
    font-size: 0.75rem;
    color: var(--mud-palette-text-disabled);
}

.nhs-text-muted-spaced {
    font-size: 0.75rem;
    color: var(--mud-palette-text-disabled);
    margin-top: 0.25rem;
}

.nhs-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--mud-palette-text-primary);
}

.nhs-subheading {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--mud-palette-text-primary);
}

.nhs-subheading-inline {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    color: var(--mud-palette-text-primary);
}

/* Empty state styling */
.nhs-empty-state {
    text-align: center !important;
}

/* Button styling - colors from theme */
.nhs-btn {
    border: solid 1px var(--mud-palette-gray-default);
}
.nhs-btn:disabled {
    border: solid 1px var(--mud-palette-gray-lighter);
}

.nhs-link {
    font-weight: 500 !important;
}


.nhs-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.nhs-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
}

.nhs-step.active .nhs-step-circle {
    background-color: var(--mud-palette-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(0, 94, 184, 0.2);
}

.nhs-step.completed .nhs-step-circle {
    background-color: var(--mud-palette-primary);
    color: white;
}

.nhs-step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    font-weight: 500;
    max-width: 120px;
}

.nhs-step.active .nhs-step-label {
    color: var(--mud-palette-primary);
    font-weight: 600;
}

.nhs-step.completed .nhs-step-label {
    color: #333;
}

.nhs-step.completed:not(:last-child)::after {
    background-color: #005eb8;
}


.nhs-wizard-actions {
    padding: 8px 24px;
    border-top: 1px solid #ddd;
    background-color: #fafafa;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.nhs-wizard-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.nhs-wizard-sticky-header {
    flex-shrink: 0;
}

.nhs-wizard-dialog {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 90vh;
}
.nhs-wizard-dialog .mud-dialog-content {
    flex: 1;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.nhs-stepper {
    padding: 16px 64px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
}
.nhs-wizard-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 8px;
}

.nhs-wizard-dialog-action {
    padding: 0!important;
}