/* _content/TeyaBillingApp/Components/Layout/MainLayout.razor.rz.scp.css */
/* _content/TeyaBillingApp/Components/Layout/NavMenu.razor.rz.scp.css */
/* _content/TeyaBillingApp/Components/Layout/ProfileDialog.razor.rz.scp.css */
/* _content/TeyaBillingApp/Components/Pages/BillingPages/InstitutionalClaim.razor.rz.scp.css */

    /* Header styles */
    .form-header[b-vvzy98psma] {
        margin-bottom: 2rem;
        position: relative;
    }

    .form-title[b-vvzy98psma] {
        color: var(--primary-color);
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        letter-spacing: -0.5px;
    }

    .header-accent[b-vvzy98psma] {
        height: 4px;
        width: 80px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: 2px;
    }

.institutional-claims-container[b-vvzy98psma] {
    max-width: 1200px;
    margin: 0 auto;
}

.step-navigation[b-vvzy98psma] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-item[b-vvzy98psma] {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-circle[b-vvzy98psma] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin: 0 auto 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    transition: background-color 0.3s;
}

.step-item.active .step-circle[b-vvzy98psma] {
    background-color: #007bff;
}

.step-item.completed .step-circle[b-vvzy98psma] {
    background-color: #28a745;
}

.step-title[b-vvzy98psma] {
    font-weight: 500;
    margin-bottom: 4px;
}

.step-description[b-vvzy98psma] {
    font-size: 14px;
    color: #666;
}

.step-connector[b-vvzy98psma] {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    position: relative;
    top: 18px;
}

    .step-connector.completed[b-vvzy98psma] {
        background-color: #28a745;
    }

.modern-content-container[b-vvzy98psma] {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.member-details-card[b-vvzy98psma] {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.card-header-content[b-vvzy98psma] {
    display: flex;
    align-items: center;
}

.header-icon[b-vvzy98psma] {
    font-size: 24px;
    margin-right: 8px;
    color: #007bff;
}

.header-title[b-vvzy98psma] {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.card-content-padding[b-vvzy98psma] {
    padding: 16px;
}

.modern-textfield[b-vvzy98psma] {
    border-radius: 4px;
}

.action-button[b-vvzy98psma] {
    border-radius: 4px;
    padding-left: 16px;
    padding-right: 16px;
}

.mud-datepicker-input[b-vvzy98psma] {
    border-radius: 4px;
}

.mud-data-grid[b-vvzy98psma] {
    border-radius: 4px;
    overflow: hidden;
}

.mud-data-grid-header[b-vvzy98psma] {
    background-color: #007bff;
    color: #fff;
    font-weight: 500;
}

.mud-data-grid-cell[b-vvzy98psma] {
    padding: 8px 12px;
    font-size: 14px;
}

.mud-button[b-vvzy98psma] {
    border-radius: 4px;
}

.step-navigation-container[b-vvzy98psma] {
    background-color: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header-actions[b-vvzy98psma] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .card-header-actions .mud-button[b-vvzy98psma] {
        margin-left: 8px;
    }

.page-heading[b-vvzy98psma] {
    margin-bottom: 12px;
}

.claim-nav[b-vvzy98psma] {
    flex-wrap: wrap;
}

.claim-nav .mud-button[b-vvzy98psma] {
    margin-top: 6px;
}

/* Layout improvements: keep previous button on left and action buttons grouped on right */
.claim-nav[b-vvzy98psma] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.claim-nav > div[b-vvzy98psma] {
    display: flex;
    align-items: center;
}
.claim-nav > div:first-child[b-vvzy98psma] {
    /* allow the left side (Previous) to stay at left and take available space */
    flex: 1 1 0;
}
.claim-nav > div:last-child[b-vvzy98psma] {
    gap: 8px;
    justify-content: flex-end;
}
.claim-nav .mud-button[b-vvzy98psma] {
    margin-top: 0; /* handled by container spacing now */
}

/* Ensure buttons are usable and stacked on narrow viewports */
@media (max-width: 768px) {
    .step-navigation[b-vvzy98psma] { flex-direction: column; gap: 8px; }
    .step-connector[b-vvzy98psma] { display: none; }
    .card-header-content[b-vvzy98psma] { flex-direction: column; align-items: flex-start; }

    .claim-nav[b-vvzy98psma] {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .claim-nav > div[b-vvzy98psma] {
        width: 100%;
        justify-content: space-between;
        align-items: stretch;
    }
    .claim-nav > div:first-child[b-vvzy98psma] {
        /* keep the Previous aligned to start */
        justify-content: flex-start;
    }
    .claim-nav > div:last-child[b-vvzy98psma] {
        justify-content: flex-start;
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
    }
    /* Ensure stacked buttons share the same width so edges align */
    .claim-nav .mud-button[b-vvzy98psma] {
        width: 100%;
        min-width: 0;
        flex: 1 1 0;
        justify-content: center;
    }
}

/* Small devices: stack buttons full width for easier tapping */
@media (max-width: 480px) {
    .claim-nav > div:last-child[b-vvzy98psma] {
        flex-direction: column-reverse; /* show primary actions first visually */
        align-items: stretch;
    }
    .claim-nav .mud-button[b-vvzy98psma] {
        width: 100%;
        min-width: 0;
    }
    .step-item[b-vvzy98psma] { width: 100%; text-align: left; }
    .step-circle[b-vvzy98psma] { margin-right: 8px; margin-bottom: 0; }
    .step-item .step-content[b-vvzy98psma] { display: flex; flex-direction: column; align-items: flex-start; }
}

/* Step navigation: allow items to shrink and wrap better */
.step-item[b-vvzy98psma] {
    flex: 1 1 140px;
    min-width: 110px;
    box-sizing: border-box;
    padding: 8px 6px;
}
.step-circle[b-vvzy98psma] {
    width: 36px;
    height: 36px;
}

.admission-grid .mud-input-control[b-vvzy98psma],
.admission-grid .mud-datepicker-input[b-vvzy98psma],
.admission-grid .mud-select[b-vvzy98psma] {
    width: 100%;
}

/* Admission information: align action buttons (AHR, Type, SRC, DHR, STAT) vertically
   with the surrounding form controls so they sit in the middle of the row. */
.admission-grid[b-vvzy98psma] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Ensure each grid row aligns items center when used as a horizontal group */
.admission-grid .mud-grid[b-vvzy98psma], .admission-grid .mud-item[b-vvzy98psma], .admission-grid .mud-grid-item[b-vvzy98psma] {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* If the small action buttons are wrapped in a container, target them and center */
.admission-grid .button-group[b-vvzy98psma],
.admission-grid .admission-actions[b-vvzy98psma],
.admission-grid .mud-button-group[b-vvzy98psma] {
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

/* Make sure individual buttons don't get pushed down by default margins */
.admission-grid .mud-button[b-vvzy98psma],
.admission-grid button[b-vvzy98psma],
.admission-grid .mud-icon-button[b-vvzy98psma] {
    margin-top: 0 !important;
    align-self: center !important;
}

/* Condition codes: keep the small fields aligned in a tidy grid */
.condition-codes-grid[b-vvzy98psma] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
.condition-codes-grid .mud-item[b-vvzy98psma],
.condition-codes-grid .mud-grid-item[b-vvzy98psma] {
    display: flex;
    align-items: stretch;
    flex: 0 1 120px;
}
.condition-codes-grid .mud-input-control[b-vvzy98psma],
.condition-codes-grid .mud-text-field[b-vvzy98psma],
.condition-codes-grid .mud-input-slot[b-vvzy98psma] {
    width: 100%;
}

/* Narrow view adjustments: allow buttons to wrap beneath labels cleanly */
@media (max-width: 600px) {
    .admission-grid .mud-grid[b-vvzy98psma], .admission-grid .mud-item[b-vvzy98psma] {
        flex-direction: column;
        align-items: stretch;
    }
    .admission-grid .button-group[b-vvzy98psma],
    .admission-grid .admission-actions[b-vvzy98psma],
    .admission-grid .mud-button-group[b-vvzy98psma] {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.payments-disabled .muted[b-vvzy98psma] {
    color: #666;
    margin-bottom: 8px;
}

/* Remarks layout: keep three remark fields aligned and responsive */
.remarks-grid[b-vvzy98psma] {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.remarks-grid .mud-item[b-vvzy98psma] {
    flex: 1 1 0;
    min-width: 0; /* allow children to shrink properly */
}
.remarks-grid .modern-textfield[b-vvzy98psma],
.remarks-grid .mud-text-field[b-vvzy98psma],
.remarks-grid .mud-input-control[b-vvzy98psma] {
    width: 100%;
}
@media (max-width: 600px) {
    .remarks-grid[b-vvzy98psma] {
        flex-direction: column;
    }
}

/* Ensure all remark fields share the same height and align consistently */
.remarks-grid .mud-item[b-vvzy98psma] {
    display: flex;
    align-items: stretch;
}
.remarks-grid .mud-item > *[b-vvzy98psma] {
    flex: 1 1 0;
}
.remarks-grid .mud-input-control[b-vvzy98psma] {
    /* make the input container fill the item height */
    display: flex;
    align-items: center;
    height: 64px; /* uniform height for remark boxes */
    box-sizing: border-box;
}
.remarks-grid .mud-input-slot[b-vvzy98psma] {
    width: 100%;
}
.remarks-grid input[type="text"][b-vvzy98psma],
.remarks-grid textarea[b-vvzy98psma] {
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .step-navigation[b-vvzy98psma] { flex-direction: column; gap: 8px; }
    .step-connector[b-vvzy98psma] { display:none; }
    .card-header-content[b-vvzy98psma] { flex-direction: column; align-items:flex-start; }
}
