html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.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;
}

.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;
}

/* Store Selection Dropdown - Remove Padding */
.e-dropdownlist.form-select,
.e-dropdownlist.form-select .e-input-group,
.e-dropdownlist.form-select .e-input-group .e-input {
    padding: 0 !important;
}

.e-dropdownlist.form-select .e-input-group .e-input {
    padding-left: 0.375rem !important;
    padding-right: 0rem !important;
}

.e-dropdownlist.form-select .e-input-group .e-ddl-icon {
    padding: 0 !important;
    right: 0.375rem !important;
}

/* Sidebar width if your layout uses a fixed sidebar column */
.sidebar {
    width: 260px;
}

/* Bootstrap v5 Sidebars example styles (btn-toggle + nested nav) */
.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .85);
    background-color: transparent;
    border: 0;
}

    .btn-toggle:hover, .btn-toggle:focus {
        color: rgba(0, 0, 0, .85);
        background-color: #e9ecef;
    }

    .btn-toggle::before {
        width: 1.25em;
        line-height: 0;
        content: "";
        margin-right: .25rem;
        transition: transform .2s ease-in-out;
        display: inline-block;
        transform-origin: .5em 50%;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' class='bi bi-chevron-right' viewBox='0 0 16 16'%3e%3cpath d='M6 3l4 5-4 5'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-size: 1rem;
        height: 1rem;
    }

    .btn-toggle[aria-expanded="true"]::before {
        transform: rotate(90deg);
    }

.btn-toggle-nav a {
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
}

    .btn-toggle-nav a:hover, .btn-toggle-nav a:focus {
        background-color: #e9ecef;
    }

/* PDF Download Button Styling */
.btn-outline-danger.pdf-download-btn {
    color: #dc3545;
    border-color: #dc3545;
    transition: all 0.2s ease-in-out;
}

.btn-outline-danger.pdf-download-btn:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-outline-danger.pdf-download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* PDF Icon Animation */
.btn-outline-danger.pdf-download-btn i.fa-file-pdf {
    transition: transform 0.2s ease-in-out;
}

.btn-outline-danger.pdf-download-btn:hover i.fa-file-pdf {
    transform: scale(1.1);
}

/* Action button group spacing */
.btn-group .btn + .btn,
.btn-group-sm .btn + .btn {
    margin-left: 2px;
}

/* Improve button spacing in action columns */
.d-flex.gap-1 .btn {
    margin-right: 0.25rem;
}

.d-flex.gap-1 .btn:last-child {
    margin-right: 0;
}

/* Modal text enhancement styles */
.modal-large-text .e-dlg-content,
.modal-large-text .e-dlg-header-content,
.modal-large-text .e-footer-content {
    font-size: 1.05rem;
    line-height: 1.5;
}

.modal-large-text .e-dlg-header-content {
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-large-text p,
.modal-large-text div,
.modal-large-text span,
.modal-large-text td,
.modal-large-text th,
.modal-large-text label {
    font-size: 1.05rem;
}

.modal-large-text strong {
    font-size: 1.1rem;
}

.modal-large-text .small,
.modal-large-text small {
    font-size: 0.95rem !important;
}

/* Ensure buttons in modals are also properly sized */
.modal-large-text .btn,
.modal-large-text .e-btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

/* Improve form element text size in modals */
.modal-large-text .form-control,
.modal-large-text .form-select,
.modal-large-text .e-input-group input,
.modal-large-text .e-dropdownlist .e-input-value {
    font-size: 1rem;
}

/* Table text in modals */
.modal-large-text table {
    font-size: 1rem;
}

.modal-large-text .table th {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Badge text in modals */
.modal-large-text .badge {
    font-size: 0.9rem;
}

/* Syncfusion Dialog Buttons: force solid (non-flat) success buttons in dialog footers */
.e-dialog .e-footer-content .e-btn.e-flat.e-success,
.modal-large-text .e-footer-content .e-btn.e-flat.e-success {
    background-color: #198754 !important; /* Bootstrap success */
    border-color: #198754 !important;
    color: #fff !important;
}

.e-dialog .e-footer-content .e-btn.e-flat.e-success:hover,
.modal-large-text .e-footer-content .e-btn.e-flat.e-success:hover,
.e-dialog .e-footer-content .e-btn.e-flat.e-success:focus,
.modal-large-text .e-footer-content .e-btn.e-flat.e-success:focus {
    background-color: #157347 !important;
    border-color: #146c43 !important;
    color: #fff !important;
}