h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ========================================================= CUSTOMIZED CSS ========================================================= */
@media (max-width: 600px) {
    .mud-drawer:not(.nav-drawer) {
        width: 100% !important;
    }

    .mud-grid-item-xs-12 {
        text-align: left !important;
    }

    .employee-details-tab {
        text-indent: -9999px;
        white-space: nowrap;
    }

        .employee-details-tab .mud-icon-root {
            text-indent: 0;
        }
}

.read-only {
    pointer-events: none;
}
/* ------------------- TABLES CSS ------------------- */
.mud-table-toolbar {
    --mud-internal-toolbar-height: unset;
}

.maintenance-table {
    margin-top: 20px;
}

    .maintenance-table .mud-table-cell:not(th) {
        border-bottom: none;
    }

    .maintenance-table .mud-table-head .mud-table-cell {
        background-color: #fdd6d6;
    }

    .maintenance-table .mud-table-root {
        margin-top: 20px;
    }

    .maintenance-table .mud-table-head > .mud-table-row > th {
        font-weight: bold;
        color: var(--mud-palette-primary) !important;
    }

    .maintenance-table .mud-table-body > .mud-table-row > tr {
        line-height: 20px;
    }

    .maintenance-table .mud-table-body {
        box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2), /* Darker shadow for the bottom/right edge (simulates depth) */
        inset -2px -2px 5px rgba(255, 255, 255, 0.8);
    }

    .maintenance-table .mud-table-head .mud-table-cell {
        z-index: 2;
    }

.mud-layout.mud-drawer-close-responsive-md-left .menu-drawer-toggle {
    display: inline-block !important;
}


.table-title {
    padding-bottom: 5px;
    color: var(--mud-templatte-text);
}

.mud-table-toolbar {
    height: auto !important;
}

.mud-button-label .mud-button-icon-start {
    margin-right: 3px !important;
}

.mud-table-cell-custom-group {
    font-weight: bold !important;
    font-size: 18px !important;
}

.nav-drawer {
    background: url('../img/bg.jpg');
    background-attachment: fixed;
    background-position: right;
    background-size: cover;
}

    .nav-drawer:before {
        content: "" !important;
        background-color: var(--mud-palette-drawer-background) !important;
        opacity: 0.8 !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1; /* Ensures it stays behind text */
    }

.mud-nav-link {
    margin: 0px 5px;
    border-radius: 5px;
    transition: none !important;
    color: var(--mud-palette-text-primary) !important;
    margin-bottom: 1px;

    .mud-icon-root.mud-svg-icon {
        color: var(--mud-palette-text-primary) !important;
    }
}

.mud-nav-group {
    padding: 3px;
}

    .mud-nav-group > .mud-nav-link {
        border-radius: 0;
        margin: 0;
    }

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: rgba(0,0,0,0.4) !important;
    color: white !important;
    border-inline-end: none !important;

    .mud-icon-root.mud-svg-icon {
        color: white !important;
    }
}

.mud-nav-link:hover:not(.mud-nav-link-disabled) {
    background-color: rgba(0,0,0,0.2) !important;
}

.mud-nav-link.mud-expanded {
    background-color: rgba(0,0,0,0.1) !important;
}

    .mud-nav-link.mud-expanded + .mud-collapse-container.mud-collapse-entered.mud-navgroup-collapse {
        background-color: rgba(0,0,0,0.1) !important;
        padding-bottom: 5px;
    }

.mud-icon-button.mud-primary-text.with-bg:before {
    content: "" !important;
    background-color: var(--mud-palette-primary-lighten) !important;
    opacity: 0.2 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mud-icon-button.mud-info-text.with-bg:before {
    content: "" !important;
    background-color: var(--mud-palette-info-lighten) !important;
    opacity: 0.2 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mud-icon-button.mud-error-text.with-bg:before {
    content: "" !important;
    background-color: var(--mud-palette-error-lighten) !important;
    opacity: 0.2 !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background-div {
    position: relative;
}

    .background-div::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/img/bg.jpg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        opacity: 0.3;
        z-index: -1;
    }

.mud-appbar.appbar-light-custom {
    background: linear-gradient(45deg, #800000, #3d3a3a);
}

.mt-center {
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    height: 90vH;
}

.employee-details-tab {
    justify-content: left;
}

.employee-details-tabbar {
    border: none;
    border-right: 1px solid var(--mud-palette-lines-default)
}
/*.child-table-tr{
    pointer-events: none;
}*/
.child-table-tr td {
    padding: 10px;
}

.child-table-card {
    background-color: transparent;
    position: relative;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
}

    .child-table-card .mud-card-header {
        padding: 10px;
        font-size: 20px;
        font-weight: bold;
    }

    .child-table-card:before {
        content: "" !important;
        background-color: var(--mud-palette-primary) !important;
        opacity: 0.1 !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

.child-table .mud-table-root {
    margin-top: 0px !important;
}

.child-table-card .mud-table-cell {
    word-wrap: break-word;
    word-break: break-all;
    background-color: #fff !important;
}

.child-table .mud-table-head .mud-table-cell {
    z-index: 1 !important;
}

.child-table .mud-table-body .mud-table-cell {
    background-color: white !important;
    position: relative;
    z-index: 1 !important;
}

.filterCollapse .mud-collapse-wrapper {
    overflow-y: hidden !important;
}

.etched-border {
    box-shadow: inset 1px 1px 4px rgba(0, 0, 0, 0.6), inset 0 -2px 3px rgba(255, 255, 255, 0.2);
    background-color: #e1e1e1 !important;
}

.tree-children {
    position: relative;
    margin-left: 20px;
    padding-left: 16px;
}

    .tree-children::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 12px; /* stops short so it doesn't overshoot the last child */
        width: 1.5px;
        background: #ccc; /* or your MudBlazor border color */
        margin-right: 10px;
    }

/* Horizontal branch per child node */
.tree-child {
    position: relative;
    margin-top: 6px;
    border: 1px solid #c4c4c4;
    border-radius: 15px;
    padding: 10px;
}

    .tree-child::before {
        content: '';
        position: absolute;
        left: -16px;
        top: 50%;
        width: 16px;
        height: 1.5px;
        background: #ccc;
    }
