﻿.mud-theme-primary-lighten {
    background-color: var(--mud-palette-primary-lighten) !important;
}

.dialog-actions {
    border-top: solid 1px;
    border-color: rgba(var(--mud-palette-divider-light-rgb, 0,0,0), 0.25);
    background-color: var(--mud-palette-gray-light);
}

.main-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px; /* Adjust the width as needed */
    background-color: #f8f9fa; /* Optional: Add a background color */
}

.content {
    flex: 1;
    padding: 20px; /* Optional: Add padding for better spacing */
}

.background-color-yellow {
    background-color: rgb(230,176,18);
}

.header-footer-color {
    background-color: #00748F;
}

.chfa-data {
    margin-bottom: 1.5rem;
}

.chfa-field {
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #ddd;
    padding: 0.75rem 0 0.4rem;
    transition: 0.25s ease;
    width: 100%;
    border-radius: 0.25rem;
    height: 50px;
}

    .chfa-field:focus-within {
        color: #495057;
        background-color: #fff;
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    }

    .chfa-field:has(.invalid) {
        border-color: red;
    }

    .chfa-field:focus-within:has(.invalid) {
        box-shadow: 0 0 0.3rem 0 red;
    }

    .chfa-field.disabled {
        pointer-events: none;
        opacity: 0.6;
    }

.chfa-input-label {
    font-size: 0.875rem;
    font-weight: bold;
    color: #585858;
    padding: 0 0.5rem 0.125rem;
    background: #fff;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 1rem;
    transform: translateY(-50%);
}

.chfa-input {
    border: none;
    background: none;
    padding: 0 0.75rem;
    flex: 1 1 0;
    outline: none;
}

    .chfa-input[type=number]::-webkit-inner-spin-button,
    .chfa-input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .chfa-input:focus {
        outline: none !important;
    }

.chfa-validation {
    font-size: small;
    margin-top: 1px;
}

.chfa-select {
    border: none;
    margin: 0;
    padding: 1px 5px 3px 6px;
    margin-right: 8px;
    margin-left: 8px;
}

.chfa-checkbox {
    height: 20px;
    width: 20px;
    cursor: pointer;
    position: relative;
}

    .chfa-checkbox:after {
        background: none;
        content: "";
        height: 26px;
        width: 26px;
        position: absolute;
        margin-left: -3px;
        margin-top: -3px;
        z-index: -1;
        opacity: 70%;
    }

    .chfa-checkbox:hover:after {
        background: lightblue;
    }

.chfa-checkbox-label {
    padding: 5px;
    vertical-align: top;
    cursor: pointer;
}

/* Modal styles */
.chfa-modal {
    display: block !important;
    position: fixed;
    z-index: 3000 !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: auto !important;
}

    .chfa-modal .modal-dialog {
        margin-top: 10%;
    }

    .chfa-modal * {
        pointer-events: auto !important;
    }

    /* Modal headers and footers by type */
    .chfa-modal .modal-header.modal-header-warning {
        background-color: #f0ad4e !important;
        color: #fff !important;
    }

    .chfa-modal .modal-footer.modal-footer-warning {
        background-color: #f0ad4e !important;
    }

.modal-header.modal-header-warning {
    border-top-left-radius: 0.3rem;
    border-top-right-radius: 0.3rem;
}

.modal-footer.modal-footer-warning {
    border-bottom-left-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
}

.modal-header.modal-header-danger {
    background-color: #d9534f;
    color: #fff;
}

.modal-footer.modal-footer-danger {
    background-color: #d9534f;
}

.modal-header.modal-header-success {
    background-color: rgb(97,191,26);
    color: #fff;
}

/* Progress bar smooth transition */
.progress-bar {
    transition: width 0.5s ease;
}

.chfa-progress-tall {
    height: 20px;
}

.session-progress-bar {
    height: 2.25rem; /* Adjust as needed to match your text size */
    min-height: 2.25rem;
    display: flex;
    align-items: center;
}

.session-progress-text {
    width: 100%;
    text-align: center;
    font-size: 1.25rem; /* Match this to your MudText Typo if needed */
    line-height: 2.25rem; /* Match the bar height for vertical centering */
    color: #212121; /* Or use a MudBlazor color class */
    font-weight: 500;
}

.requiredIcon {
    color: red;
    font-size: 15px;
}

/* Radio buttons */
.chfa-radio-group {
    display: flex;
    flex-wrap: wrap;
}

.chfa-radio-group-label {
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.chfa-radio-row {
    display: flex;
    cursor: pointer;
}

.chfa-radio-label {
    margin-left: 5px;
    margin-right: 10px;
    white-space: nowrap;
}

.chfa-radio {
    height: 20px;
    width: 20px;
    cursor: pointer;
    position:
}

/*common grid*/
.table-wrapper {
    width: 100%;
    padding: 0 10px;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* or fixed, based on desired behavior */
    border: 1px solid #ddd;
}

    .styled-table th,
    .styled-table td {
        padding: 8px 12px;
        word-wrap: break-word;
        border: 1px solid #ddd; /* thin border around each cell */
    }

    .styled-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .styled-table tr:nth-child(odd) {
        background-color: #E7EEF4;
    }


    /* Table Headers */
    .styled-table thead th {
        background: #fafbfc;
        color: black;
        padding: 10px;
        text-align: left;
        font-size: 0.85rem;
    }

    /* Table Rows */
    .styled-table tbody td {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .styled-table tbody tr {
        border-bottom: 1px solid #ddd; /* horizontal row borders */
    }

.child-link {
    font-size: x-small;
    margin-top: 5px;
    cursor: pointer;
    color: #00748F; /* chfa dark blue*/
    width: 80px;
}

    .child-link:hover {
        text-decoration: underline;
    }

.no-child-link {
    font-size: x-small;
    margin-top: 5px;
    width: 80px;
}

/* Expand Button */
.expand-btn {
    background: none;
    border: transparent;
    font-size: 10px;
    cursor: pointer;
    color: #87ABCC;
}

.action-container {
    display: flex;
    gap: 3px;
}

.action-button {
    border: none !important;
    background: transparent !important;
    padding: 2px;
    color: #005f8f;
    font-size: 0.9rem;
    outline: none !important;
    box-shadow: none !important;
}

    .action-button:hover {
        cursor: pointer;
        color: black;
        border: none !important;
        outline: none !important;
    }

    .action-button:focus,
    .action-button:active {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .action-button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
        border: none !important;
    }

.default-child-table {
    width: 90%;
    margin-left: 40px;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

    .default-child-table thead th {
        background-color: #dadde3; /* Light grayish header */
        color: black;
        font-size: small;
        padding: 6px;
    }

    .default-child-table tbody td {
        font-size: xx-small;
        padding: 4px 6px;
        border: 1px solid #ddd;
    }

.default-child-row td {
    padding: 4px 6px;
    border: 1px solid #ddd;
}

.expand-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #00748F;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.60rem;
}

    .expand-link:hover {
        color: black;
    }

.text-muted-small {
    color: #6c757d; /* Bootstrap muted color or custom muted color */
    font-size: 0.60rem; /* Smaller font size */
}

.sort-button,
.action-icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: 5px;
    color: #00748F;
    font-size: 0.60rem;
}

/*.default-child-table-header {
    font-weight: bold;
    color: dimgray;
    font-size: small;
}
.default-child-row {
    font-size: small;
}*/
/*Dynamic dlg*/
.dynamic-dialog .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.dynamic-dialog .modal-body {
    flex-grow: 1;
    overflow-y: auto;
}
