html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background: #f5f6fe;
}

a, .btn-link {
    color: #0071c1;
    text-decoration: none;
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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;
}


.avatar-circle {
    width: 36px;
    height: 36px;
    background-color: #00b3e3;
    text-align: center;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
}

.initials {
    position: relative;
    top: 6px; /* 25% of parent */
    // font-size: 50px; /* 50% of parent */
    line-height: 18px; /* 50% of parent */
    color: #fff;
    font-family: "Inter", sans-serif;
    // font-weight: bold;
}


.form-label {
    margin-bottom: 0.0rem;
}

/*   add some margin under each form control  like text boxes on entry forms*/
.form-control {
    margin-bottom: .30rem !important;
    padding: .25rem .75rem;
}

.form-select {
    margin-bottom: .30rem !important;
    padding: .25rem .75rem;
}

/*--------------------------------------------------------------
# Override some default MudBlazor stylings
--------------------------------------------------------------*/
.mud-table-head {
    background-color: #d6d1d1;
}

    .mud-table-head .mud-table-cell {
        color: black !important;
    }

.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell {
    background-color: #d6d1d1;
}

.mud-table-cell {
    font-size: 12px;
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 5px 0px 5px 0px;
    padding-inline-start: 1px;
    padding-inline-end: 1px
}

.mud-input-control > .mud-input-control-input-container > div.mud-input.mud-input-text {
    margin-top: 0px;
    margin-bottom: 5px;
}

/*.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 10px 10px;
}
*/
.mud-input > input.mud-input-root-outlined, div.mud-input-slot.mud-input-root-outlined {
    padding: 7px 7px;
    padding-inline-start: 5px;
    font-family: Open Sans, Helvetica Neue, sans-serif;
    font-size: 14px;
    background-color: #ffffff;
}

.mud-input-control {
    margin-top: 0px;

}

.mud-table-pagination {
    display: flex;
    justify-content: center !important;
}

/* Page selector + "Rows Per Page" dropdown on one centered row */
.grid-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.rows-per-page {
    display: flex;
    align-items: center;
    gap: .5rem;
}

    .rows-per-page .form-label,
    .rows-per-page .form-select {
        margin-bottom: 0 !important;
    }

    .rows-per-page .form-select {
        width: auto;
        padding-right: 2.25rem; /* leave room for the dropdown arrow */
    }

.mud-dialog-custom {
    display: flex;
    align-content: center;
    justify-content: space-between;
    justify-items: end;
    padding-top: 50px;
    height: unset !important;
}

.mud-button {
    text-transform: unset !important;
}

.bootstrap-select {
    width: 100%;
}

    .bootstrap-select .mud-input-control {
        margin-top: 0;
    }

    .bootstrap-select .mud-input-slot {
        padding: 7px 7px;
        padding-inline-start: 5px;
        font-family: Open Sans, Helvetica Neue, sans-serif;
        font-size: 14px;
        background-color: #ffffff;
    }

        .bootstrap-select .mud-input-slot:hover {
            border-color: #86b7fe;
        }

    .bootstrap-select.mud-input-focused .mud-input-slot {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
    }

    .bootstrap-select input {
        font-size: 1rem;
        font-weight: 400;
    }
    .bootstrap-select .mud-input-adornment-end {
        background: #fff !important;
    }

    /* Remove icon button background */
    .bootstrap-select .mud-icon-button {
        background: #fff !important;
        box-shadow: none !important;
    }

        /* Remove hover background */
        .bootstrap-select .mud-icon-button:hover {
            background: #fff !important;
        }

    /* Remove ripple effect */
    .bootstrap-select .mud-ripple {
        display: none !important;
    }

    /* Optional: adjust arrow color and size */
    .bootstrap-select .mud-select-icon {
        color: #fff;
        font-size: 16px;
    }

.selected-row {
    background-color: #D0EBFF !important;
}

/*   center dialog   
.mud-dialog-container {
    left: 0;
}
     */
/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
.container-fluid {
    padding-right: 0px;
    padding-left: 0px;
}
/* Add fancyBox -->*/
.photo {
    display: table;
    position: relative;
    width: 25%;
    font-size: 0;
    margin-bottom: 1%;
    cursor: pointer;
}

.photoNonFancyBox {
    display: table;
    position: relative;
    width: 25%;
    font-size: 0;
    margin-bottom: 1%;
    cursor: pointer;
}

.document {
    display: table;
    position: relative;
    width: 10%;
    font-size: 0;
    margin-bottom: 1%;
    cursor: pointer;
}

.document_larger {
    display: table;
    position: relative;
    width: 25%;
    font-size: 0;
    margin-bottom: 1%;
    cursor: pointer;
}

/*.item.photo {
	    width: 500px;
        }*/

.item img {
    width: 100%;
}

.photo .overlay {
    display: none;
    position: absolute;
    top: 1%;
    right: 1%;
    bottom: 1%;
    left: 1%;
    background-color: rgba(0,0,0,0.5);
    background-image: url(../img/search.png);
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    text-align: left;
    font-weight: bold;
    font-size: large;
    word-wrap: break-word;
}

/* Style the button and place it in the middle of the container/image */
.photoDeleteButton {
    position: absolute;
    top: 10%;
    left: 85%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background-color: red;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

    .photoDeleteButton:hover {
        background-color: black;
    }

@media only screen and (max-width: 900px) {
    .photo {
        display: table;
        position: relative;
        width: 50%;
        font-size: 0;
        margin-bottom: 1%;
        cursor: pointer;
    }

    .photoNonFancyBox {
        display: table;
        position: relative;
        width: 50%;
        font-size: 0;
        margin-bottom: 1%;
        cursor: pointer;
    }

    .document_larger {
        display: table;
        position: relative;
        width: 50%;
        font-size: 0;
        margin-bottom: 1%;
        cursor: pointer;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    #printSection, #printSection * {
        visibility: visible;
    }

    #printSection {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 95%;
        font-size: 10pt !important;
    }

    @page {
        size: landscape;
        margin: 0cm;
    }
}
/*@media print {*/
   /* html, body {
        width: 1024px;
    }*/
    /*body * {
        visibility: hidden;
        margin: 0 auto;
        font-size: 10pt !important;
        background: white;
        color: black;
    }*/
    /* Reset layout alignment */
    /*body, html {
        margin: 0;
        padding: 0;
        font-size: 10pt !important;
        text-align: left !important;
    }
    #main-content, .content-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    @page {
        size: landscape;
        margin: 0cm;
    }*/
    /* Keep Bootstrap grid working horizontally */
    /*.row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    [class*="col-"] {
        flex: 1 0 auto;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        max-width: 100%;
    }*/

    /* Remove only centering-related classes */
    /*.justify-content-center,
    .align-items-center,
    .text-center {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
    }*/

    /* Remove margins/padding that push content */
    /*.container, .container-fluid {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }*/
    /* Override MudBlazor centering if any */
   /* .mud-grid, .mud-container, .mud-item,
    .mud-paper, .mud-main-content, .mud-content {
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        display: block !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: 100% !important;
    }*/
    /* Make text in the MudDataGrid smaller */
    /*.mud-data-grid,
    .mud-table,
    .mud-table-cell,
    .mud-table-row,
    .mud-table-header {
        font-size: 9pt !important;
    }
    .mud-data-grid {
        overflow: visible !important;
        height: auto !important;
        font-size: 9pt !important;
        display: table !important;
        width: 100% !important;
    }*/
    /* If MudBlazor's inner divs affect layout */
    /*.mud-table-container,
    .mud-table,
    .mud-table-root {
        width: 100% !important;
        display: table !important;
        table-layout: fixed !important;
    }*/
    /* Ensure the table uses fixed layout */
    /*table {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }

    th, td {
        border: 1px solid black !important;
        padding: 4px !important;
        text-align: left !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        background-color: lightgray;
        outline: 1px dashed red;
    }*/

    /* Optional: equal width columns */
    /*th, td {
        width: auto !important;
    }*/
    /* If MudBlazor's inner divs affect layout */
    /*.mud-table-container,
    .mud-table,
    .mud-table-root {
        width: 100% !important;
        display: table !important;
        table-layout: fixed !important;
    }
    #printSection, #printSection * {
        visibility: visible;
        width: auto;
    }*/

  /*  #printarea, #printarea * {
        visibility: visible;
    }*/

   /* .rz-tabview-nav li:not(.rz-tabview-selected) {
        display: none;
    }*/

  /*  #printSection {
        position: fixed;
        left: 0;
        top: 170px;
    }

    #printarea {
        position: fixed;
        left: 15px;
        top: 0;
    }

    button[type=button], input[type=text] {
        display: none;
    }

    .rz-data-grid {
        height: unset !important;
    }*/
/*}*/

/* ── Login frosted-glass overlay ── */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-overlay__card {
    min-width: 260px;
    padding: 2rem 2.5rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 1.25rem;
    text-align: center;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transform: translateY(10px) scale(0.96);
    transition: transform 0.25s ease;
}

.login-overlay.active .login-overlay__card {
    transform: translateY(0) scale(1);
}

.login-overlay__spinner {
    position: relative;
    width: 52px;
    height: 52px;
    margin: 0 auto;
}

.login-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #2563eb;
    animation: loginSpin 0.9s linear infinite;
}

.login-spinner-ring--delay {
    inset: 7px;
    border-top-color: #60a5fa;
    animation-duration: 1.3s;
    animation-direction: reverse;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

.login-overlay__text {
    margin: 1.1rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.02em;
}

.login-dots {
    display: inline-block;
    width: 18px;
    overflow: hidden;
    vertical-align: bottom;
    animation: loginDots 1.5s steps(4, end) infinite;
}

@keyframes loginDots {
    0%   { width: 0;    }
    33%  { width: 6px;  }
    66%  { width: 12px; }
    100% { width: 18px; }
}

/*--------------------------------------------------------------
# Login page layout
--------------------------------------------------------------*/
.login-hero {
    position: fixed;
    inset: 0;
    min-height: 100vh;
    background-color: #0d306f;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-y: auto;
}

.login-card {
    border-radius: 1rem;
}

.btn-login {
    width: 100%;
}
