﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, Roboto;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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."
    }

/*@media only screen and (max-width: 400px) {
    .hide-mobile {
        display: none;
    }
}*/

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.responsive-table caption {
    caption-side: top;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px 0;
}

.responsive-table th, .responsive-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

/* === Card layout styles === */
.caption-mobile {
    display: none;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.rows {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.row-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.row-left {
    max-width: 55%;
}

.row-right {
    text-align: right;
    font-size: 0.95rem;
}

.muted {
    color: #666;
    font-size: 0.9rem;
    margin-top: 3px;
}

/* === Responsive switch === */
@media (max-width: 768px) {
    .responsive-table table {
        display: none;
    }

    .caption-mobile {
        display: block;
    }

    .rows {
        display: flex;
    }
}

.did-floating-label-content {
    position: relative;
}

.did-floating-label {
    color: #66665d !important;
    font-size: 12px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 8px;
    padding: 0 5px;
    background: #fff;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.did-floating-input,
.did-floating-select {
    font-size: 16px;
    display: block;
    width: 100%;
    height: 32px;
    padding: 3px 5px 1px 5px;
    background: #fff;
    color: #323840 !important;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Tahoma, Helvetica,Open Sans;
}

.did-floating-inputError,
.did-floating-selectError {
    font-size: 16px;
    display: block;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    background-color: yellow !important;
    color: #323840 !important;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Tahoma, Helvetica,Open Sans;
}

.did-floating-input:focus,
.did-floating-select:focus {
    outline: none;
}

    .did-floating-input:focus ~ .did-floating-label,
    .did-floating-select:focus ~ .did-floating-label {
        top: -10px;
        font-size: 11px;
        color: #115e32 !important;
    }

select.did-floating-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    select.did-floating-select::-ms-expand {
        display: none;
    }

.did-floating-input:not(:placeholder-shown) ~ .did-floating-label {
    top: -10px;
    font-size: 11px;
}

.did-floating-select:not([value=""]):valid ~ .did-floating-label {
    top: -10px;
    font-size: 11px;
}

.did-floating-select[value=""]:focus ~ .did-floating-label {
    top: 11px;
    font-size: 16px;
}

.did-floating-label:hover {
    color: #115e32 !important;
}

.did-floating-label:focus-within {
    color: #115e32 !important;
}

.did-floating-label-content:focus {
    border: 2px solid #115e32;
}

did-floating-label-content:focus {
    border: 2px solid #115e32;
}

.did-floating-input:hover {
    border: 2px solid #115e32;
}

.did-floating-input:focus-within {
    border: 2px solid #115e32;
}

.did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%23003d71'/%3E%3C/svg%3E%0A");
    background-position: right 16px top 50%;
    background-repeat: no-repeat;
}

.did-error-input .did-floating-input,
.did-error-input .did-floating-select {
    border: 1px solid #9d3b3b;
    color: #9d3b3b;
}

.did-error-input .did-floating-label {
    font-weight: 600;
    color: #66665d;
}

.did-error-input .did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%239d3b3b'/%3E%3C/svg%3E%0A");
}

.input-group {
    display: flex;
}

    .input-group .did-floating-input {
        border-radius: 0 4px 4px 0;
        border-left: 0;
        padding-left: 0;
    }

.input-group-append {
    display: flex;
    align-items: center;
    /*   margin-left:-1px; */
}

.input-group-text {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 32px;
    color: #323840 !important;
    padding: 0 5px 0 10px;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #115e32;
    border-radius: 4px 0 0 4px;
    border-right: none;
    font-family: Tahoma, Helvetica,Open Sans;
}

.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    font-size: 16px !important;
    height: 28px !important;
    padding-bottom: 0px !important;
    padding-top: 3px !important;
    padding-left: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
    color: #323840 !important;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    font-size: 16px !important;
    color: #323840 !important;
    font-family: Tahoma, Helvetica,Open Sans;
    padding-top: 1px !important;
    padding-bottom: 3px !important;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    font-size: 13px !important;
    /* color: #000000 !important;*/
    line-height: 12px !important;
    /*  margin-bottom: -1px !important;*/
    /*margin-top: -1px !important;*/
    color: #66665d !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #c1902a;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 500px;
    left: 50%;
    position: absolute;
}

.spinner-login {
    border: 16px solid silver;
    border-top: 16px solid #115e32;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 150px;
    left: 48%;
    position: absolute;
}

.form-select-pagesize {
    border-color: #677788 !important;
    color: #677788 !important;
    padding-top: 5px !important;
    padding-left: 30px !important;
    height: 30px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    width: 100px !important;
    float: right !important;
    font-family: Tahoma, Helvetica,Open Sans;
    font-size: 16px !important
}

.blur {
    backdrop-filter: blur(10px);
}

.mud-nav-link {
    text-decoration: none !important;
}

.dialog-background {
    background-color: transparent;
}

.dialog-background-title {
    background: rgb(from var(--mud-palette-info-lighten) r g b / 50%);
    color: var(--mud-palette-white);
}

.dialog-background-surface {
    background: rgb(from var(--mud-palette-surface) r g b / 75%);
}

.dialogContent {
    display: block;
    font-size: 16px;
    word-wrap: break-word;
    text-align: center;
    font-style: italic;
    position: relative;
    top: 16px;
}

.dialogText {
    background-color: #D3D3D3;
    padding-right: 4px;
    color: blue;
    font-family: sans-serif !important;
    font-style: italic;
}

.mud-icon-button {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.form-control {
    font-size: 16px !important;
    /* font-weight: 500 !important; */
    color: #323840 !important;
    padding-top: 8px !important;
    padding-left: 5px !important;
    height: 32px !important;
    padding-bottom: 3px !important;
    border-radius: 5px !important;
    border-color: #c9c9c9 !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.form-control-area {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #323840 !important;
    padding-top: 12px !important;
    padding-left: 12px !important;
    height: 120px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.form-control-error {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #323840 !important;
    background-color: yellow !important;
    padding-top: 12px !important;
    padding-left: 12px !important;
    height: 42px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.select2-selection {
    font-size: 1rem !important;
    font-weight: 450 !important;
    color: #323840 !important;
    padding-top: 12px !important;
    padding-left: 20px !important;
    height: 42px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.modal {
    padding-top: 35px !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5); /* Màu nền mờ */
    backdrop-filter: blur(3px); /* Làm mờ giao diện sau */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Chặn sự kiện bên dưới */
}

/*@media only screen and (max-width: 400px) {
    .hide-mobile {
        display: none;
    }
}*/

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.responsive-table caption {
    caption-side: top;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 8px 0;
}

.responsive-table th, .responsive-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

/* === Card layout styles === */
.caption-mobile {
    display: none;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.rows {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.row-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 16px 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.row-left {
    max-width: 55%;
}

.row-right {
    text-align: right;
    font-size: 0.95rem;
}

.muted {
    color: #666;
    font-size: 0.9rem;
    margin-top: 3px;
}

/* === Responsive switch === */
@media (max-width: 768px) {
    .responsive-table table {
        display: none;
    }

    .caption-mobile {
        display: block;
    }

    .rows {
        display: flex;
    }
}

.did-floating-label-content {
    position: relative;
}

.did-floating-label {
    color: #66665d !important;
    font-size: 12px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 8px;
    padding: 0 5px;
    background: #fff;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.did-floating-input,
.did-floating-select {
    font-size: 16px;
    display: block;
    width: 100%;
    height: 32px;
    padding: 3px 5px 1px 5px;
    background: #fff;
    color: #323840 !important;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Tahoma, Helvetica,Open Sans;
}

.did-floating-inputError,
.did-floating-selectError {
    font-size: 16px;
    display: block;
    width: 100%;
    height: 32px;
    padding: 0 10px;
    background-color: yellow !important;
    color: #323840 !important;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Tahoma, Helvetica,Open Sans;
}

.did-floating-input:focus,
.did-floating-select:focus {
    outline: none;
}

    .did-floating-input:focus ~ .did-floating-label,
    .did-floating-select:focus ~ .did-floating-label {
        top: -10px;
        font-size: 11px;
        color: #115e32 !important;
    }

select.did-floating-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

    select.did-floating-select::-ms-expand {
        display: none;
    }

.did-floating-input:not(:placeholder-shown) ~ .did-floating-label {
    top: -10px;
    font-size: 11px;
}

.did-floating-select:not([value=""]):valid ~ .did-floating-label {
    top: -10px;
    font-size: 11px;
}

.did-floating-select[value=""]:focus ~ .did-floating-label {
    top: 11px;
    font-size: 16px;
}

.did-floating-label:hover {
    color: #115e32 !important;
}

.did-floating-label:focus-within {
    color: #115e32 !important;
}

.did-floating-label-content:focus {
    border: 2px solid #115e32;
}

did-floating-label-content:focus {
    border: 2px solid #115e32;
}

.did-floating-input:hover {
    border: 2px solid #115e32;
}

.did-floating-input:focus-within {
    border: 2px solid #115e32;
}

.did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%23003d71'/%3E%3C/svg%3E%0A");
    background-position: right 16px top 50%;
    background-repeat: no-repeat;
}

.did-error-input .did-floating-input,
.did-error-input .did-floating-select {
    border: 1px solid #9d3b3b;
    color: #9d3b3b;
}

.did-error-input .did-floating-label {
    font-weight: 600;
    color: #66665d;
}

.did-error-input .did-floating-select:not([multiple]):not([size]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6'%3E%3Cpath id='Path_1' data-name='Path 1' d='M371,294l4,6,4-6Z' transform='translate(-371 -294)' fill='%239d3b3b'/%3E%3C/svg%3E%0A");
}

.input-group {
    display: flex;
}

    .input-group .did-floating-input {
        border-radius: 0 4px 4px 0;
        border-left: 0;
        padding-left: 0;
    }

.input-group-append {
    display: flex;
    align-items: center;
    /*   margin-left:-1px; */
}

.input-group-text {
    display: flex;
    align-items: center;
    font-weight: 400;
    height: 32px;
    color: #323840 !important;
    padding: 0 5px 0 10px;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #115e32;
    border-radius: 4px 0 0 4px;
    border-right: none;
    font-family: Tahoma, Helvetica,Open Sans;
}

.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    font-size: 16px !important;
    height: 28px !important;
    padding-bottom: 0px !important;
    padding-top: 3px !important;
    padding-left: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
    color: #323840 !important;
}

.mud-input > input.mud-input-root-outlined.mud-input-root-margin-dense, div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    font-size: 16px !important;
    color: #323840 !important;
    font-family: Tahoma, Helvetica,Open Sans;
    padding-top: 1px !important;
    padding-bottom: 3px !important;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined.mud-input-label-inputcontrol {
    font-size: 13px !important;
    /* color: #000000 !important;*/
    line-height: 12px !important;
    /*  margin-bottom: -1px !important;*/
    /*margin-top: -1px !important;*/
    color: #66665d !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.spinner {
    border: 16px solid silver;
    border-top: 16px solid #c1902a;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 500px;
    left: 50%;
    position: absolute;
}

.spinner-login {
    border: 16px solid silver;
    border-top: 16px solid #115e32;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 700ms linear infinite;
    top: 150px;
    left: 48%;
    position: absolute;
}

.form-select-pagesize {
    border-color: #677788 !important;
    color: #677788 !important;
    padding-top: 5px !important;
    padding-left: 30px !important;
    height: 30px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    width: 100px !important;
    float: right !important;
    font-family: Tahoma, Helvetica,Open Sans;
    font-size: 16px !important
}

.blur {
    backdrop-filter: blur(10px);
}

.mud-nav-link {
    text-decoration: none !important;
}

.dialog-background {
    background-color: transparent;
}

.dialog-background-title {
    background: rgb(from var(--mud-palette-info-lighten) r g b / 50%);
    color: var(--mud-palette-white);
}

.dialog-background-surface {
    background: rgb(from var(--mud-palette-surface) r g b / 75%);
}

.dialogContent {
    display: block;
    font-size: 16px;
    word-wrap: break-word;
    text-align: center;
    font-style: italic;
    position: relative;
    top: 16px;
}

.dialogText {
    background-color: #D3D3D3;
    padding-right: 4px;
    color: blue;
    font-family: sans-serif !important;
    font-style: italic;
}

.mud-icon-button {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.form-control {
    font-size: 16px !important;
    /* font-weight: 500 !important; */
    color: #323840 !important;
    padding-top: 8px !important;
    padding-left: 5px !important;
    height: 32px !important;
    padding-bottom: 3px !important;
    border-radius: 5px !important;
    border-color: #c9c9c9 !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.form-control-area {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #323840 !important;
    padding-top: 12px !important;
    padding-left: 12px !important;
    height: 120px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.form-control-error {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #323840 !important;
    background-color: yellow !important;
    padding-top: 12px !important;
    padding-left: 12px !important;
    height: 42px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.select2-selection {
    font-size: 1rem !important;
    font-weight: 450 !important;
    color: #323840 !important;
    padding-top: 12px !important;
    padding-left: 20px !important;
    height: 42px !important;
    padding-bottom: 5px !important;
    border-radius: 5px !important;
    font-family: Tahoma, Helvetica,Open Sans;
}

.modal {
    padding-top: 35px !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.5); /* Màu nền mờ */
    backdrop-filter: blur(3px); /* Làm mờ giao diện sau */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto; /* Chặn sự kiện bên dưới */
}


    /* =========================================================
   Contract Report - Pro Action Stack + Expansion Panel
   Edit icon is on top, expansion icon is below.
   ========================================================= */
    .crm-contract-action-header {
        width: 74px !important;
        min-width: 74px !important;
        text-align: center !important;
    }

    .crm-contract-action-cell, .crm-expand-cell {
        width: 74px !important;
        min-width: 74px !important;
        padding: 3px 2px !important;
        text-align: center !important;
        vertical-align: top !important;
        background: #fff !important;
    }

    .crm-action-stack {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        width: 100%;
    }

    .crm-edit-tile, .crm-expand-tile {
        width: 50px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all .18s ease;
        outline: none;
    }

    .crm-edit-tile {
        height: 32px;
        flex-direction: column;
        gap: 3px;
        border: 1px solid #c9ded3;
        background: #ffffff;
        color: #086236;
        box-shadow: 0 4px 10px rgba(16, 24, 40, .04);
    }

    .crm-edit-tile i {
        font-size: 14px;
        line-height: 1;
    }

    .crm-edit-tile span {
        font-size: 11px;
        line-height: 1;
        font-weight: 700;
    }

    .crm-edit-tile:hover {
        background: #effaf4;
        border-color: #0b6b3a;
        color: #064e2b;
        transform: translateY(-1px);
        box-shadow: 0 8px 16px rgba(7, 95, 53, .12);
    }

    .crm-expand-tile {
        height: 30px;
        border: 2px solid #0b6b3a;
        background: #ffffff;
        color: #0b6b3a;
        box-shadow: 0 4px 10px rgba(16, 24, 40, .04);
    }

    .crm-expand-tile i {
        font-size: 20px;
        line-height: 1;
    }

    .crm-expand-tile:hover, .crm-expand-tile.is-open {
        background: #0b6b3a;
        color: #fff;
        border-color: #0b6b3a;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(7, 95, 53, .22);
    }

    .crm-contract-main-row-open > td {
        background: #fbfdfc !important;
        border-bottom-color: #dfece5 !important;
    }

    .crm-detail-row > td {
        background: #f8fbf9 !important;
        border-top: none !important;
        padding: 0 !important;
    }

    .crm-payment-expansion-panel, .crm-contract-detail-panel {
        margin: 0 12px 16px 74px;
        background: #ffffff;
        border: 1px solid #dfece5;
        border-radius: 14px;
        box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
        overflow: hidden;
    }

    .crm-payment-expansion-header, .crm-contract-detail-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
        border-bottom: 1px solid #e4eee8;
    }

    .crm-contract-detail-title {
        font-size: 15px;
        font-weight: 800;
        color: #075f35;
        display: flex;
        align-items: center;
        gap: 9px;
        line-height: 1.2;
    }

    .crm-contract-detail-title i {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #0b6b3a;
        color: #fff;
        font-size: 14px;
    }

    .crm-contract-detail-summary {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #667085;
        font-size: 12px;
        white-space: nowrap;
    }

    .crm-contract-detail-summary b {
        color: #075f35;
    }

    .crm-summary-divider {
        color: #c8d6ce;
    }

    .crm-detail-table {
        width: 100%;
        margin: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .crm-detail-table th {
        background: #f4f8f6 !important;
        color: #075f35 !important;
        font-size: 11px !important;
        font-weight: 800 !important;
        text-transform: uppercase;
        padding: 11px 12px !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 1px solid #e5eee9 !important;
        border-bottom: 1px solid #e5eee9 !important;
        white-space: nowrap;
    }

    .crm-detail-table th:last-child {
        border-right: 0 !important;
    }

    .crm-detail-table td {
        background: #fff !important;
        color: #263238 !important;
        font-size: 12px !important;
        padding: 10px 12px !important;
        border-top: 0 !important;
        border-left: 0 !important;
        border-right: 1px solid #eef3f0 !important;
        border-bottom: 1px solid #eef3f0 !important;
        vertical-align: top;
    }

    .crm-detail-table td:last-child {
        border-right: 0 !important;
    }

    .crm-detail-table tbody tr:last-child td {
        border-bottom: 0 !important;
    }

    .crm-detail-table tbody tr:hover td {
        background: #f8fcfa !important;
    }

    .crm-amount-strong {
        font-weight: 800;
        color: #075f35 !important;
        white-space: nowrap;
    }

    .crm-paid-amount {
        font-weight: 800;
        color: #344054 !important;
        white-space: nowrap;
    }

    .crm-muted-text {
        color: #667085 !important;
        font-size: 12px !important;
        font-weight: 500;
    }

    .crm-empty-detail {
        margin: 14px 16px 16px;
        padding: 14px 16px;
        color: #667085;
        background: #f9fbfa;
        border: 1px dashed #d7e5dd;
        border-radius: 10px;
        font-size: 13px;
    }

    @media (max-width: 992px) {
        .crm-payment-expansion-panel, .crm-contract-detail-panel

{
    margin-left: 10px;
    margin-right: 10px;
}

.crm-payment-expansion-header,
.crm-contract-detail-header {
    align-items: flex-start;
    flex-direction: column;
}

.crm-contract-detail-summary {
    flex-wrap: wrap;
    white-space: normal;
}


