@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --mud-typography-h6-lineheight: 1.2 !important;
}

html, body {
    height: 100%;
    font-family: "Roboto", sans-serif;
}

.content-bg {
    background-color: #F6F2EB;
}

.min-w-150px {
    min-width: 150px;
}
.preview-content {
    white-space: pre-wrap;
}
.ql-indent-1 {
    padding-left: 3em;
}

.ql-indent-2 {
    padding-left: 6em;
}

.ql-indent-3 {
    padding-left: 9em;
}

.ql-indent-4 {
    padding-left: 12em;
}

.ql-indent-5 {
    padding-left: 15em;
}

.ql-indent-6 {
    padding-left: 18em;
}

.ql-indent-7 {
    padding-left: 21em;
}

.ql-indent-8 {
    padding-left: 24em;
}

/* Task #140973 — Quill alignment classes used by MudExRichTextEdit (staff-portal description editor).
   Quill's own snow.css scopes these to .ql-editor, so when the saved HTML is rendered outside an
   editor (e.g. read-only descriptions in the applicant portal) the configured alignment is lost.
   Surface the rules unscoped so descriptions render "as configured in staff portal". */
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-justify {
    text-align: justify;
}

/* Task #140973 — Rich-text descriptions (License Category / License / Application Name) emit one
   <p> per line from Quill. Default browser <p> margins make consecutive lines look double-spaced,
   which doesn't match the tight line spacing the staff user sees inside the MudExRichTextEdit
   editor. Mirror Quill's own ".ql-editor p" margin reset, scoped to this wrapper only. */
.rich-text-display p {
    margin: 0;
    padding: 0;
}

/* Task #140973 — Restore bullet / numbered-list markers for read-only rich-text descriptions.
   The site-wide ".mud-typography-body2 ul/ol" rules further down in this file force
   list-style-position: inside + padding-left: 1em with !important. Same single-class
   specificity (0,1,1) as a bare ".rich-text-display ul/ol", so the LATER rules in the file
   win the cascade and clip the markers. Chain ".mud-typography-body2.rich-text-display" so
   these selectors are (0,2,1) and always beat the broader MudBlazor list overrides,
   independent of source order. Quill's snow.css then sets ".ql-editor ol > li,
   .ql-editor ul > li { list-style-type: none }" and renders bullets via ::before pseudo-
   elements positioned with margin-left: -1.5em — which falls inside the overridden 1em
   padding and gets clipped. Re-enable browser-standard outside markers, scoped to the
   description wrapper, so applicant-portal bullets/numbers match the staff-portal editor. */
.ql-editor a {
    color: var(--mud-palette-primary);
    text-decoration: underline;
}
.mud-typography-body2.rich-text-display ul,
.mud-typography-body2.rich-text-display ol,
.rich-text-display ul,
.rich-text-display ol {
    list-style-position: outside !important;
    padding-left: 1.5em !important;
    margin: 0 !important;
}

.mud-typography-body2.rich-text-display ul li,
.mud-typography-body2.rich-text-display ol li,
.rich-text-display ul li,
.rich-text-display ol li {
    display: list-item !important;
}

.mud-typography-body2.rich-text-display ul li,
.rich-text-display ul li {
    list-style-type: disc !important;
}

.mud-typography-body2.rich-text-display ol li,
.rich-text-display ol li {
    list-style-type: decimal !important;
}

/* Task #140973 — Suppress Quill's `::before` pseudo-element bullets/numbers so they don't
   double up with the browser-native list markers re-enabled above. The parent MudItem still
   carries `ql-editor` to keep other Quill-scoped styles (block alignment, paragraph spacing
   helpers) working. Quill's own ".ql-editor li::before" is (0,1,2), so chain both classes
   here to reliably outrank it via specificity rather than depending on source order. */
.mud-typography-body2.rich-text-display li::before,
.rich-text-display li::before {
    content: none !important;
    margin: 0 !important;
}

:focus-visible {
    outline: none !important;
}

/*.mud-button.mud-button-filled, .mud-button.mud-button-outlined {
    min-width: 160px;
    min-height: 48px;
}*/

/* .mud-button.mud-button-filled.mud-button-filled-size-small, .mud-button.mud-button-outlined.mud-button-filled-size-small {
        min-height: 30px;
    }*/

.mud-button.mud-button-filled.mud-icon-button, .mud-button.mud-button-outlined.mud-icon-button {
    min-width: inherit;
    min-height: inherit;
}

.mud-list-item-icon-w-35px .mud-list-item-icon {
    min-width: 35px;
}

.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Bug 133644 - On mobile only, ensure date pickers / selects (inputs with end adornments)
   are tall enough to contain a 2-line wrapped label. Scoped to max-width:959px so desktop
   layouts are unaffected. Scoped to mud-input-adorned-end so plain text fields are
   unaffected. */
@media (max-width: 959px) {
    .mud-input.mud-input-outlined.mud-input-adorned-end {
        min-height: 60px;
    }

    .mud-input-label-outlined {
        max-width: calc(100% - 48px);
    }
}

/* Bug 133580/133644 - Ensure label baseline position is consistent (MudBlazor default). */
.mud-input-label-outlined {
    transform: translate(14px, 14px) scale(1);
}

/* Bug 133580 - Prevent MudSelect value text from overflowing and obscuring the dropdown arrow */
div.mud-select-input {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* MudAutocomplete puts its adornment icon inside mud-select-input; overflow:hidden clips it.
   Override for autocomplete contexts only so the search/clear icons remain visible. */
.mud-autocomplete div.mud-select-input {
    overflow: visible;
}

.mud-expand-panel.mud-disabled .mud-expand-panel-header .mud-typography-body1 {
    color: #8C8C8C;
}

.mud-expand-panel.mud-disabled .mud-icon-root.mud-svg-icon {
    fill: #9197B3;
}

.mud-panel-expanded.mud-expand-panel .mud-expand-panel-header .mud-icon-root.mud-svg-icon.mr-3 {
    /*  fill: #F44336;*/
}

.mud-drawer-mini {
    scrollbar-color: transparent transparent;
    transition: all 0.5s ease;
}

    .mud-drawer-mini:hover {
        scrollbar-color: #f6f6f6 transparent;
    }

.mud-expand-panel .mud-expand-panel-content {
    padding-bottom: 24px;
}

.mud-table-root .mud-table-head .mud-table-cell {
    background-color: #eee !important;
    line-height: 1rem;
}

/* US #141966 — reduce body-row padding from MudBlazor default (~16px) to 8px
   so applicant tables show more rows without extra scrolling. Header padding,
   horizontal padding, and dense-mode tables are unaffected. */
.mud-table-root .mud-table-body .mud-table-cell {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

/* 150865: Something Went Wrong banner. Replaces the default lightyellow strip
   with a navy-accented toast that matches NotFoundPage / Error.cshtml palette.
   Anchor classes (.reload / .dismiss) are preserved so Blazor's framework
   handlers still bind correctly. */
#blazor-error-ui {
    background: #ffffff;
    border-left: 4px solid #c0392b;
    border-radius: 10px;
    bottom: 24px;
    box-shadow: 0 14px 30px rgba(58, 74, 109, 0.18);
    color: #1d3c6e;
    display: none;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 420px;
    padding: 14px 44px 14px 18px;
    position: fixed;
    right: 24px;
    z-index: 1000;
}

    #blazor-error-ui::before {
        content: "\26A0";
        color: #c0392b;
        font-size: 1.15rem;
        margin-right: 8px;
        vertical-align: middle;
    }

    #blazor-error-ui .reload {
        color: #1d3c6e;
        font-weight: 600;
        margin-left: 6px;
        text-decoration: underline;
    }

    #blazor-error-ui .reload:hover { color: #1a335f; }

    #blazor-error-ui .dismiss {
        color: #8a96a8;
        cursor: pointer;
        font-size: 1rem;
        position: absolute;
        right: 12px;
        top: 8px;
    }

    #blazor-error-ui .dismiss:hover { color: #4a5b78; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4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    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.radio-top-bottom-p-0 .mud-icon-button, .top-bottom-p-0 .mud-icon-button {
    padding-top: 0;
    padding-bottom: 0;
}

.radio-left-p-0 .mud-icon-button {
    padding-left: 0;
}

.align-items-start .mud-checkbox {
    align-items: flex-start;
}

.fs-14 .mud-checkbox .mud-typography-body1 {
    font-size: .875rem !important;
}

.min-wh-auto {
    min-width: auto !important;
    min-height: auto !important;
}

.login-icon {
    min-width: 64px !important;
}

    .login-icon svg {
        height: 68px;
        width: 64px;
    }

        .login-icon svg path {
            background-color: var(--mud-palette-primary);
        }

.mi-custom-icon {
}
@media only screen and (min-width: 1280px) {
    .teeth-bg-login {
        background-image: url(../Images/teeth-image.png);
        background-repeat: no-repeat;
        background-position: right 25px;
    }
}

.teeth-bg-login {
    background-image: url(../Images/teeth-image.png);
    background-repeat: no-repeat;
    background-position: right 25px;
}

/* End Header */

/* Sidebar */
.logo-icon {
    display: none;
}

.mud-drawer--closed .logo-icon {
    display: inline-block;
    vertical-align: top;
}

.full-logo {
    display: none;
}

.mud-drawer--open .full-logo {
    display: inline-block;
    vertical-align: top;
}

.mud-navmenu.mud-navmenu-margin-dense .mud-nav-link {
    text-decoration: none;
    padding-top: 11px;
    padding-bottom: 11px;
    font-weight: 500;
}

/*.mud-button-outlined.mud-button-outlined-primary {
    color: #925900;
}*/

@media only screen and (min-width: 960px) {

    .mud-drawer--open.mud-navmenu.mud-navmenu-rounded .mud-nav-link {
        border-radius: 10px;
    }

    .mud-navmenu.mud-navmenu-margin-dense .mud-nav-link {
        margin: 5px 0;
    }

    .mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
        margin: 0;
    }
}

@media only screen and (min-width: 1280px) {
    .mud-drawer--open .full-logo {
        margin: 19px 0 18px;
    }

    .mud-drawer--closed .logo-icon {
        margin: 20px 0;
    }

    .mud-navmenu.mud-navmenu-margin-dense .mud-nav-link {
        margin: 5px 0;
    }
}

.mud-drawer-header {
    min-height: 90px;
}

/* Loader */

.loader {
    z-index: 9999;
}

.generated-form {
}

.app-summary .frm-btn-section {
    display: none;
}

.mud-grid-item .frm-btn-section {
    justify-content: flex-end !important;
}

    .mud-grid-item .frm-btn-section .frm-btn-next {
        margin-left: 4px;
    }

.loader:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, .8);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.HideValidator {
}

    .HideValidator .mud-error-text {
        color: var(--mud-palette-text-primary) !important;
    }

    .HideValidator .mud-input-control-helper-container {
        display: none !important;
    }

.HideValidatorKeepSummary {
}

    .HideValidatorKeepSummary .mud-error-text {
        color: var(--mud-palette-text-primary) !important;
    }

.app-summary .mud-checkbox.mud-disabled *, .app-summary .mud-checkbox .mud-disabled:hover *, .app-summary .mud-checkbox .mud-disabled:focus-visible * {
    color: #424242 !important;
}

.app-summary .mud-radio.mud-disabled *, .app-summary .mud-radio .mud-disabled:hover *, .app-summary .mud-radio .mud-disabled:focus-visible * {
    color: #424242 !important;
}

.custom-tableUI .mud-table.mud-elevation-1, .custom-tableUI .mud-table.mud-elevation-4 {
    box-shadow: none;
}

.custom-tableUI .mud-toolbar-gutters {
    padding-left: 0;
    padding-right: 0;
    border: none;
}
.mi-icon-fill-green {
    fill: #23a367 !important;
}
/*.custom-tableUI .mud-table-toolbar .mud-typography-h6, .custom-tableUI .mud-table-toolbar .flex-grow-1 {
    display: none;
}*/

.custom-tableUI .mud-table-container {
    border-radius: 5px 5px 0 0;
    border: 1px solid var(--bs-border-color);
    border-bottom: 0;
}

.custom-tableUI .mud-table-pagination {
    display: block;
    border-radius: 0px 0px 5px 5px;
    border: 1px solid var(--bs-border-color);
}

    .custom-tableUI .mud-table-pagination .mud-toolbar-gutters {
        height: inherit;
    }


.mud-dialog .app-summary {
    display: none;
}

.hide-on-small {
    display: block; /* Default state: div is visible */
}

/* Large Devices (Large Desktops, 992px and up) */
@media (min-width: 992px) {
    .hide-on-small {
        display: block; /* Show the div for large devices */
    }

    .version-number {
        font-size: 0.875rem; /* Default font size for large devices */
    }
}

/* Medium Devices (Desktops, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hide-on-small {
        display: block; /* Show the div for medium devices */
    }

    .version-number {
        font-size: 0.75rem; /* Font size for medium devices */
    }

    .mud-typography-h5 {
        font-size: 1.5rem;
    }
}

@media (max-width: 575px) {
    .hide-on-small {
        display: none; /* Hide the div for extra small devices */
    }

    .version-number {
        font-size: 0.625rem; /* Smaller font size for extra small devices */
        visibility: hidden;
    }

    .mud-typography-h5 {
        font-size: 0.9rem;
    }
}

/* Small Devices (Tablets, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hide-on-small {
        display: block; /* Show the div for small devices */
    }

    .version-number {
        font-size: 0.625rem; /* Font size for small devices */
    }

    .mud-typography-h5 {
        font-size: 0.9rem !important;
    }
}

.version-number {
    font-size: 0.875rem; /* Default font size */
}

/* US #61879 - Responsive navigation */
@media (max-width: 959px) {
    .hide-on-small {
        display: none;
    }

    .mi-custom-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .mud-breadcrumbs {
        flex-wrap: wrap !important;
    }

    .mud-breadcrumb-item {
        white-space: normal !important;
    }

    .fixed-breadcrumbs {
        overflow: hidden;
    }
}

.mud-breadcrumbs {
    font-size: 0.875rem !important;
    font-weight: 100 !important;
}

.mud-breadcrumb-separator {
    padding: 0 4px !important;
}

.mud-drawer {
    background-color: var(--mud-palette-surface) !important;
}

/* RTE Content - Preserving list styling for rich text editor content */
.mud-typography ul,
.mud-typography ol,
.mud-typography-body2 ul,
.mud-typography-body2 ol,
.mud-expand-panel-content ul,
.mud-expand-panel-content ol {
    list-style-position: inside !important;
    padding-left: 1em !important;
    margin: 0 !important;
}

.mud-typography ul,
.mud-typography-body2 ul,
.mud-expand-panel-content ul {
    list-style-type: disc !important;
}

.mud-typography ol,
.mud-typography-body2 ol,
.mud-expand-panel-content ol {
    list-style-type: decimal !important;
}

/* US #93813 - Responsive Forms */

/* AC1 & AC6: Collapse multi-column form layouts to a single column, no horizontal overflow */
@media (max-width: 959px) {
    /* MudGrid has negative margins that cause overflow in dialogs.
       Hide the overflow on mud-dialog-content — the grid's empty margin zone is clipped
       but field content (which fills the dialog width exactly) remains fully visible. */
    .mud-dialog-content {
        overflow-x: hidden !important;
    }

    .mi-form-responsive .mud-grid-item {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* AC2: touch target ≥44px — satisfied by the existing site.css rule that adds
       padding-top: 15px + padding-bottom: 15px to all outlined inputs, making them ~46px.
       An explicit min-height rule is NOT added here because <input> elements use
       box-sizing: content-box, so min-height stacks on top of padding (44 + 30 = 74px). */

    /* AC3: Keep all popovers (dropdowns, date pickers) on-screen on mobile. */
    .mud-popover {
        left: 8px !important;
        max-width: calc(100vw - 16px) !important;
        overflow-x: hidden !important;
    }

    /* AC3: Restore visual boundary for the date picker calendar. */
    .mud-picker-popover-paper {
        border: 1px solid rgba(0, 0, 0, 0.15) !important;
    }

    /* AC5: Reserve space for inline validation message so errors don't push other fields */
    .mi-form-responsive .mud-input-control-helper-container {
        min-height: 1.1em;
    }
}

/* AC4: Form action buttons span full width on screens ≤ 600px.
   .mi-form-actions works standalone — no parent .mi-form-responsive required. */
@media (max-width: 600px) {
    .mi-form-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* MudTooltip renders as inline-flex by default so it won't stretch inside the flex column.
       Force every direct child (tooltip wrapper or bare button) to full width first. */
    .mi-form-actions > * {
        width: 100% !important;
        display: block !important;
    }

    .mi-form-actions .mud-button-root {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 8px !important;
        justify-content: center !important;
    }

    /* AC4: Dialog action buttons (mud-tooltip-root spans are flex items — width:100% works on them) */
    .mud-dialog-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .mud-dialog-actions > * {
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    .mud-dialog-actions .mud-button-root {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
    }
}

/* Story #129925 — persistent row highlight on return from detail view */
tbody tr.el-row-last-viewed td {
    background-color: rgba(25, 118, 210, 0.08);
    transition: background-color 0.3s ease-in-out;
}

tbody tr.el-row-last-viewed {
    border-left: 3px solid #1976d2;
}

tbody tr.el-row-last-viewed:hover td {
    background-color: rgba(25, 118, 210, 0.12);
}
