@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
   
}
.move_theadsR
{
background-color: yellowgreen;
}
.move_theadsL {
    background-color: yellowgreen;
}
.highlight {
    background-color: skyblue !important;
    
}
.approbation_image_container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100%; /* Ensure container takes up full height of parent */
}

.approbation_image {
    width: auto; /* Auto width to maintain aspect ratio */
    height: auto; /* Auto height to maintain aspect ratio */
    margin-left: 40%;
    max-width: 50rem; /* Limit maximum width */
    max-height: 20rem; /* Limit maximum height */
    transition: transform 0.3s ease; /* Add transition effect */
}

    /* Add hover effect */
.approbation_image:hover 
    {
        transform: scale(1.1); /* Scale the image on hover */
    }
.button5 {
    width: 180px;
    height: 40px;
    border: none;
    outline: none;
    box-shadow: -4px 4px 5px 0 #8feaff;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px rgba(0,0,0,0.4);
    background-color: #2edbfe;
    border-radius: 3px;
    font-weight: 700
}container

    .button5:hover {
        background-color: #8feaff;
        cursor: pointer
    }

    .button5:active {
        margin-left: -4px;
        margin-bottom: -4px;
        padding-top: 2px;
        box-shadow: none
    }



/* Flex Container for Horizontal Layout */
.flex-container {
    display: flex; /* Enable flexbox layout for direct children */
    justify-content: space-between; /* Distribute space between and around items */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    width: 100%; /* Container takes full width of its parent */
}

/* Flexible Box within Flex Container */
.flex-item {
    flex: 1; /* Allow the item to grow and fill the available space */
    border: 10px solid #fff; /* White border around each flex item */
    margin: 0 10px; /* Horizontal margin between flex items */
    text-align: center; /* Center-align text within each flex item */
    background-color: #fff; /* White background for each flex item */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Smooth transitions for hover effects */
}

    /* Hover Effect for Flex Items */
    .flex-item:hover {
        transform: translateY(-5px); /* Slightly raise the item on hover */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Increase shadow for lifted effect */
    }

/* First Flex Item Styling */
.flex-container .flex-item:first-child {
    margin-left: 0; /* Remove left margin for the first item */
}

/* Last Flex Item Styling */
.flex-container .flex-item:last-child {
    margin-right: 0; /* Remove right margin for the last item */
}


/*.....*/
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    line-height: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: width 0.4s ease-in-out;
}

.progress-text {
    color: white;
    font-weight: bold;
}

.progress-label {
    text-align: right;
    font-size: 0.8em;
    color: #666;
}

/*.....*/
.Divmainvillagerep{

}
.vilageprimarypic{

}
/*start*?*/
.divpic {
    width: 100%;
    height: 100vh;
    border-radius:8px;
}

.divpic1 {
    width: 80%;
    height: 80%;
    margin: 0 auto;
    border-radius: 10px;
}

.divpic2, .divpic3, .divpic4, .divpic5 {
    width: 24%;
    border-radius: 10px;
}
.carousel-caption {
    position: static;
    padding-top: 10px;
    color: #000; /* Adjust the color as needed */
    text-align: center;
    background: rgba(255, 255, 255, 0.8); /* Optional: add background for better readability */
    margin-top: 10px; /* Adjust the margin to create space below the image */
}

.divpic2 {
    background-color: transparent;
}

.divpic3 {
    background-color: transparent;
}

.divpic4 {
    background-color: transparent;
}

.divpic5 {
    background-color: transparent;
}
.btntt {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: whitesmoke;
    color: grey;
    border: solid;
    border-radius: 9px;
    border-color: lightgray;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}
.btnt {
    background: whitesmoke;
    color: grey;
    border: solid;
    border-radius: 3px;
    border-color: lightgray;
    cursor: pointer;
    z-index: 10;

    position: center;
}
.village-data {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #fff;
}

    .village-data table {
        width: 100%;
        margin-bottom: 20px;
    }

    .village-data .title {
        font-size: 1.2em;
        font-weight: bold;
        color: #333;
        padding: 10px 0;
    }
input[type="button"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    input[type="button"]:hover {
        background-color: #0056b3;
    }
/*.btnt {
    
    background: whitesmoke;
    color: grey;
    border: solid;
    border-radius: 9px;
    border-color: lightgray;
    cursor: pointer;
    z-index: 10;
    margin-right: 31%;
    position:center;
}*/

.left-arrow {
    left: 10px;
}
.imgscroll{
    width: 10px;
    height: 10px;
}
.right-arrow {
    right: 10px;
}
.btntt i {
    font-size: 24px;
}
.btnt i {
    font-size: 24px;
}
.divpic-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/*End*?*/
.button5 {
    width: 180px;
    height: 40px;
    border: none;
    outline: none;
    box-shadow: -4px 4px 5px 0 #8feaff;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px rgba(0,0,0,0.4);
    background-color: #2edbfe;
    border-radius: 3px;
    font-weight: 700
}
.divheadR {
    background-color: lightgreen;
    border-radius: 10px;
    
}
.divheadL {
    background-color: deepskyblue;
    border-radius: 10px;
}
.Div_button_warn {
    width: 84%;
    height: 100px;
    position: fixed;
    bottom: 8%;
    color: red;
    font-weight: bold;
    font-size: large;
    background-color: transparent;
    border-radius: 10px;
    box-shadow: 5px 10px 8px #888888;
}
.button_de {
    font-weight: bold;
    background-color: orange;
    height: 4rem;
    width: 15rem;
    margin-top: 1%;
    border-color: orange;
    float: right;
    margin-right: 5%;
    border-radius: 10px;
    box-shadow: 5px 10px 8px #888888;
}
.divLeft {
    width: 49%;
    float: left;
    height: 600px;
    /*overflow: scroll;
    
    overflow-y: scroll;
    scrollbar-color: #00bfff #f9f9f9;
    scrollbar-width: thin;*/
    border-radius: 10px;
    box-shadow: 5px 10px 8px #888888;
}


.divRight {
    width: 49%;
    float: right;
    height: 600px;
 
   /* overflow: scroll;
    overflow-y: scroll;
    scrollbar-color: #00bfff #f9f9f9;
    scrollbar-width: thin;
    scrollbar-3dlight-color: darkorange;*/
    border-radius: 10px;
   box-shadow: 5px 10px 8px #888888;
}

.button5:hover {
    background-color: #8feaff;
    cursor: pointer
}
.selected-row {
    background-color: #a6ecff !important; /* Light blue, for example */
}
.divavancementgraphreg{
    width: 80%;
    height:40%;
}
    .button5:active {
        margin-left: -4px;
        margin-bottom: -4px;
        padding-top: 2px;
        box-shadow: none
    }
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Gray background with 50% opacity */
    display: none; /* Initially hidden */
    z-index: 999; /* Ensure it appears above other elements */
}
.button6 {
    width: 180px;
    height: 40px;
    border: none;
    outline: none;
    box-shadow: -5px 5px 5px 0 #54f063;
    margin-top: 20px;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px rgba(0,0,0,0.4);
    background-color: #39cc48;
    border-radius: 3px;
    font-weight: 700
}

    .button6:hover {
        background-color: #54f063;
        cursor: pointer
    }

    .button6:active {
        margin-left: -5px;
        margin-bottom: -5px;
        padding-top: 2px;
        box-shadow: none
    }

.button7 {
    width: 120px;
    height: 35px;
    border: none;
    float: right;
    outline: none;
    box-shadow: -4px 4px 5px 0 #1fcf04;
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px rgba(0,0,0,0.4);
    background-color: #1cbd04;
    border-radius: 3px;
    font-weight: 700
}

    .button7:hover {
        background-color: #0da521;
        cursor: pointer
    }

    .button7:active {
        margin-left: -4px;
        margin-bottom: -4px;
        padding-top: 2px;
        box-shadow: none
    }
.button8 {
    background-color: #E53E3E; /* A strong red, often associated with PDFs */
    color: white;
    padding: 6px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, box-shadow 0.2s;
    outline: none; /* Removes the outline on focus for a clean look */
}

    .button8:hover {
        background-color: #C53030; /* A darker red for the hover state */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .button8:active {
        background-color: #9B2C2C; /* An even darker red for the active state */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) inset;
    }

.export {
    display: flex; /* This will help to position the button if needed */
    justify-content: flex-end; /* Positions the button to the right; change as needed */
    padding: 10px; /* Add padding as necessary */
}



.button9 {
    width: 70px;
    height: 30px;
    border: none;
    margin-left: 8%;
    align-self: center;
    float: right;
    outline: none; /*
    box-shadow: -4px 4px 5px 0 #1fcf04;*/
    color: #fff;
    font-size: 14px;
    text-shadow: 0 1px rgba(0,0,0,0.4);
    background-color: #03B4F7;
    border-radius: 4px;
    font-weight: 700
}

    .button9:hover {
        background-color: #08921B;
        cursor: pointer
    }

    .button9:active {
        margin-left: -4px;
        margin-bottom: -4px;
        padding-top: 2px;
        box-shadow: none
    }
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."
    }



.toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 1;
    position: absolute;
    width: 35rem;
    top: 2rem;
    border-radius: 1rem;
    left: 50%;
}

.toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
}

    .toast-body p {
        margin-bottom: 0;
    }

.toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein 1.5s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.map_div{
   background-color: transparent;
   height: 75vh;
   width: 99%;
}
/*.cs-toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 999;
    position: absolute;
    width: 30rem;
    top: 2rem;
    border-radius: 1rem;
    right: 2rem;
}*/

.cs-toast {
    display: none;
    padding: 1.5rem;
    color: #fff;
    z-index: 999;
    position: absolute;
    width: 30rem;
    bottom: 3rem; /* Position from the bottom */
    border-radius: 1rem;
    right: 2rem;
}


.cs-toast-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 2.5rem;
}

.cs-toast-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 1rem;
}

    .cs-toast-body p {
        margin-bottom: 0;
    }

.cs-toast-visible {
    display: flex;
    flex-direction: row;
    animation: fadein 1.5s;
  
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.modal-open {
    overflow: hidden
}

    .modal-open .modal {
        overflow-x: hidden;
        overflow-y: auto
    }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: .5rem;
    pointer-events: none
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0,-50px)
}

@media (prefers-reduced-motion:reduce) {
    .modal.fade .modal-dialog {
        transition: none
    }
}

.modal.show .modal-dialog {
    transform: none
}

.modal.modal-static .modal-dialog {
    transform: scale(1.02)
}

.modal-dialog-scrollable {
    display: flex;
    max-height: calc(100% - 1rem)
}

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 1rem);
        overflow: hidden
    }

    .modal-dialog-scrollable .modal-footer, .modal-dialog-scrollable .modal-header {
        flex-shrink: 0
    }

    .modal-dialog-scrollable .modal-body {
        overflow-y: auto
    }

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem)
}

    .modal-dialog-centered::before {
        display: block;
        height: calc(100vh - 1rem);
        height: -webkit-min-content;
        height: -moz-min-content;
        height: min-content;
        content: ""
    }

    .modal-dialog-centered.modal-dialog-scrollable {
        flex-direction: column;
        justify-content: center;
        height: 100%
    }

        .modal-dialog-centered.modal-dialog-scrollable .modal-content {
            max-height: none
        }

        .modal-dialog-centered.modal-dialog-scrollable::before {
            content: none
        }

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: .3rem;
    outline: 0
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

    .modal-backdrop.fade {
        opacity: 0
    }

    .modal-backdrop.show {
        opacity: .5
    }

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #e3e6f0;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
    background-color: whitesmoke;
}

    .modal-header .close {
        padding: 1rem 1rem;
        margin: -1rem -1rem -1rem auto
    }

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    color: #065e13;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: .75rem;
    border-top: 1px solid #e3e6f0;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px)
}

    .modal-footer > * {
        margin: .25rem
    }

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}

@media (min-width:576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto
    }

    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem)
    }

        .modal-dialog-scrollable .modal-content {
            max-height: calc(100vh - 3.5rem)
        }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem)
    }

        .modal-dialog-centered::before {
            height: calc(100vh - 3.5rem);
            height: -webkit-min-content;
            height: -moz-min-content;
            height: min-content
        }

    .modal-sm {
        max-width: 300px
    }
}

@media (min-width:992px) {
    .modal-lg, .modal-xl {
        max-width: 800px
    }
}

@media (min-width:1200px) {
    .modal-xl {
        max-width: 1140px
    }
}

.imageview {
    width: 30px;
    height: 30px;
    float: right;
    margin-right: .5%;
}


.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 24px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #1cbd04;
}

input:focus + .slider {
    box-shadow: 0 0 1px #1cbd04;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
.divgrid {
    width: 99%;
    float: left;
    /*margin-top: 10px;*/
    height: 450px;
    overflow: scroll;
    overflow-y: scroll;
    scrollbar-color: #00bfff #f9f9f9;
    scrollbar-width: thin;
    border-radius: 5px;
    box-shadow: 5px 10px 8px #888888;
}
/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }
.divupdate {
    border-radius: 5px;
    width: 100%;
    overflow: scroll;
    overflow-y: scroll;
    scrollbar-color: #00bfff #f9f9f9;
    scrollbar-width: thin;
    scrollbar-3dlight-color: darkorange;
    border-radius: 5px;
    box-shadow: 5px 10px 8px #888888;
}
.mddfull {
    border-block-width: 1px;
    margin-top: 40px;
    width: 100%;
    height: auto;
    
    scrollbar-color: #00bfff #f9f9f9;
    scrollbar-width: thin;
    scrollbar-3dlight-color: darkorange;
    border-radius: 5px;
    box-shadow: 5px 10px 8px #888888;
    border-radius: 5px;
    box-shadow: 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2)
}

/* Modern dashboard and graph surfaces */
:root {
    --ms-bg: #f4f7f6;
    --ms-surface: #ffffff;
    --ms-surface-soft: #f8faf9;
    --ms-line: #dbe5df;
    --ms-text: #10221a;
    --ms-muted: #64736b;
    --ms-primary: #0b7a34;
    --ms-primary-dark: #075a27;
    --ms-accent: #0d8b8f;
    --ms-shadow: 0 16px 36px rgba(15, 43, 30, 0.11);
}

html,
body {
    background: var(--ms-bg);
    color: var(--ms-text);
}

.page main {
    background:
        linear-gradient(180deg, rgba(11, 122, 52, 0.07) 0, rgba(11, 122, 52, 0) 260px),
        var(--ms-bg);
}

.page main article.content {
    padding-bottom: 64px;
}

.page main article.content > h3 {
    color: var(--ms-text);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 14px 0 18px;
}

.page main article.content > div[style*="width: 100%"] {
    background: var(--ms-surface);
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    box-shadow: var(--ms-shadow);
    padding: 18px;
}

.page main article.content .nav-tabs {
    align-items: center;
    background: var(--ms-surface-soft);
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    gap: 6px;
    margin-bottom: 18px;
    padding: 6px;
}

.page main article.content .nav-tabs .nav-item {
    padding: 0;
}

.page main article.content .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 6px;
    color: var(--ms-muted);
    font-weight: 650;
    line-height: 1.15;
    padding: 10px 14px;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.page main article.content .nav-tabs .nav-link:hover,
.page main article.content .nav-tabs .nav-link:focus {
    background: rgba(13, 139, 143, 0.1);
    color: var(--ms-accent);
}

.page main article.content .nav-tabs .nav-link.active {
    background: var(--ms-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(11, 122, 52, 0.22);
}

.page main article.content .tab-content > .tab-pane > table:first-child {
    width: auto;
    margin: 0 0 16px;
    background: var(--ms-surface-soft);
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    display: block;
    padding: 12px;
}

.page main article.content .tab-content > .tab-pane > table:first-child td {
    border: 0;
    color: var(--ms-muted);
    font-size: .86rem;
    font-weight: 700;
    padding: 0;
}

.page main article.content .form-select,
.page main article.content select.form-select,
.page main article.content select.form-control {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ms-primary) 50%),
        linear-gradient(135deg, var(--ms-primary) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    border: 1px solid var(--ms-line);
    border-radius: 6px;
    color: var(--ms-text);
    min-width: 260px;
    padding: 10px 38px 10px 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.page main article.content .form-select:focus,
.page main article.content select.form-select:focus,
.page main article.content select.form-control:focus {
    border-color: rgba(11, 122, 52, 0.65);
    box-shadow: 0 0 0 3px rgba(11, 122, 52, 0.14);
    outline: 0;
}

.page main article.content .divgrid,
.page main article.content .divupdate,
.page main article.content .mddfull {
    background: var(--ms-surface) !important;
    border: 1px solid var(--ms-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 28px rgba(15, 43, 30, 0.09) !important;
    float: none !important;
    margin-top: 16px !important;
    overflow: auto !important;
    scrollbar-color: var(--ms-primary) #e8efeb !important;
}

.page main article.content .divgrid table,
.page main article.content .divupdate table,
.page main article.content .mddfull table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
    width: 100%;
}

.page main article.content .divgrid thead th,
.page main article.content .divupdate thead th,
.page main article.content .mddfull thead th {
    background: #eef6f1;
    border-bottom: 1px solid var(--ms-line);
    color: var(--ms-primary-dark);
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: 0;
    padding: 12px 14px;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.page main article.content .divgrid tbody td,
.page main article.content .divupdate tbody td,
.page main article.content .mddfull tbody td {
    border-bottom: 1px solid #edf2ef;
    color: #1f3328;
    padding: 11px 14px;
    vertical-align: middle;
}

.page main article.content .divgrid tbody tr,
.page main article.content .divupdate tbody tr,
.page main article.content .mddfull tbody tr {
    transition: background-color .15s ease;
}

.page main article.content .divgrid tbody tr:nth-child(even),
.page main article.content .divupdate tbody tr:nth-child(even),
.page main article.content .mddfull tbody tr:nth-child(even) {
    background: #fbfdfc;
}

.page main article.content .divgrid tbody tr:hover,
.page main article.content .divupdate tbody tr:hover,
.page main article.content .mddfull tbody tr:hover {
    background: rgba(13, 139, 143, 0.08);
}

.chart-surface {
    height: 430px;
    min-height: 320px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 43, 30, 0.1);
    padding: 14px;
}

.chart-surface canvas {
    height: 100% !important;
    width: 100% !important;
}

.modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(2, 20, 12, 0.28);
    overflow: hidden;
}

.modal-header {
    background: #f6fbf8;
    border-bottom: 1px solid var(--ms-line);
}

.modal-title {
    color: var(--ms-primary-dark);
    font-weight: 750;
}

.modal-footer {
    background: #f8faf9;
    border-top: 1px solid var(--ms-line);
}

.btn,
.page main article.content input[type="button"],
.page main article.content inputbutton {
    border-radius: 6px;
    font-weight: 650;
}

.btn-success,
.btn-primary {
    background-color: var(--ms-primary) !important;
    border-color: var(--ms-primary) !important;
}

.btn-success:hover,
.btn-primary:hover {
    background-color: var(--ms-primary-dark) !important;
    border-color: var(--ms-primary-dark) !important;
}

@media (max-width: 768px) {
    .page main article.content > div[style*="width: 100%"] {
        padding: 12px;
    }

    .page main article.content .nav-tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .page main article.content .nav-tabs .nav-link {
        width: 100%;
    }

    .page main article.content .form-select,
    .page main article.content select.form-select,
    .page main article.content select.form-control {
        min-width: 100%;
        width: 100%;
    }

    .chart-surface {
        height: 340px;
    }
}

/* Modern button system */
button,
.btn,
input[type="button"],
input[type="submit"],
inputbutton,
.button5,
.button6,
.button7,
.button8,
.button9,
.button_de {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 6px !important;
    box-shadow: 0 8px 18px rgba(15, 43, 30, 0.1);
    cursor: pointer;
    display: inline-flex;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: .9rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    line-height: 1.2;
    min-height: 38px;
    padding: 9px 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
inputbutton:hover,
.button5:hover,
.button6:hover,
.button7:hover,
.button8:hover,
.button9:hover,
.button_de:hover {
    box-shadow: 0 12px 24px rgba(15, 43, 30, 0.16);
    text-decoration: none;
    transform: translateY(-1px);
}

button:active,
.btn:active,
input[type="button"]:active,
input[type="submit"]:active,
inputbutton:active,
.button5:active,
.button6:active,
.button7:active,
.button8:active,
.button9:active,
.button_de:active {
    box-shadow: 0 4px 10px rgba(15, 43, 30, 0.12);
    transform: translateY(0);
}

button:focus-visible,
.btn:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
inputbutton:focus {
    box-shadow: 0 0 0 3px rgba(13, 139, 143, 0.22), 0 8px 18px rgba(15, 43, 30, 0.1);
    outline: 0;
}

button:disabled,
.btn:disabled,
.btn.disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
inputbutton[disabled] {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .58;
    transform: none;
}

.btn-primary,
.btn-success,
input[type="button"],
input[type="submit"],
inputbutton.btn-success,
.button6,
.button7,
.button9 {
    background: var(--ms-primary) !important;
    border-color: var(--ms-primary) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-success:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
inputbutton.btn-success:hover,
.button6:hover,
.button7:hover,
.button9:hover {
    background: var(--ms-primary-dark) !important;
    border-color: var(--ms-primary-dark) !important;
    color: #ffffff !important;
}

.btn-secondary,
inputbutton.btn-secondary,
.button5 {
    background: #eef6f1 !important;
    border-color: #dbe5df !important;
    color: #334155 !important;
}

.btn-secondary:hover,
inputbutton.btn-secondary:hover,
.button5:hover {
    background: #dcece4 !important;
    border-color: #c8dbd0 !important;
    color: #10221a !important;
}

.btn-info,
.btn-outline-info {
    background: var(--ms-accent) !important;
    border-color: var(--ms-accent) !important;
    color: #ffffff !important;
}

.btn-info:hover,
.btn-outline-info:hover {
    background: #0a7478 !important;
    border-color: #0a7478 !important;
}

.btn-warning,
inputbutton.btn-warning,
.button_de {
    background: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
}

.btn-warning:hover,
inputbutton.btn-warning:hover,
.button_de:hover {
    background: #b45309 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

.btn-danger,
inputbutton.btn-danger,
.button8 {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.btn-danger:hover,
inputbutton.btn-danger:hover,
.button8:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
}

.btn-light,
.btn-outline-secondary,
.btn-outline-primary,
.btn-outline-success,
.btn-outline-danger {
    background: #ffffff !important;
    border-color: #dbe5df !important;
    color: #334155 !important;
}

.btn-outline-primary:hover,
.btn-outline-success:hover {
    background: #eef6f1 !important;
    border-color: var(--ms-primary) !important;
    color: var(--ms-primary-dark) !important;
}

.btn-outline-danger:hover {
    background: #fef2f2 !important;
    border-color: #dc2626 !important;
    color: #b91c1c !important;
}

.btn-sm,
.btn-group-sm > .btn {
    min-height: 32px;
    padding: 6px 12px;
}

.btn-lg,
.btn-group-lg > .btn {
    min-height: 44px;
    padding: 11px 20px;
}

.btnt,
.btntt {
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #dbe5df !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 24px rgba(15, 43, 30, 0.16);
    color: #075a27 !important;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    width: 38px;
}

.btnt:hover,
.btntt:hover {
    background: #eef6f1 !important;
    border-color: var(--ms-primary) !important;
}

.btnt img,
.btntt img,
.imgscroll {
    height: 14px !important;
    object-fit: contain;
    width: 14px !important;
}

.imageview {
    background: #ffffff;
    border: 1px solid #dbe5df;
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(15, 43, 30, 0.1);
    height: 34px;
    margin-right: .5%;
    object-fit: contain;
    padding: 6px;
    transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 34px;
}

.imageview:hover {
    background: #eef6f1;
    box-shadow: 0 12px 24px rgba(15, 43, 30, 0.16);
    transform: translateY(-1px);
}

.export {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 10px 0;
}

.Div_button_warn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #f4c27a;
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(120, 53, 15, 0.16);
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 18px;
}

@media (max-width: 768px) {
    button,
    .btn,
    input[type="button"],
    input[type="submit"],
    inputbutton,
    .button5,
    .button6,
    .button7,
    .button8,
    .button9,
    .button_de {
        max-width: 100%;
        white-space: normal;
    }

    .export {
        justify-content: stretch;
    }

    .export .btn,
    .export button,
    .export input[type="button"] {
        flex: 1 1 auto;
    }
}

/* Modern dropdowns, popups, modals, and toasts */
select,
.form-select,
.select,
.form-control,
.dropdown-toggle {
    border: 1px solid var(--ms-line);
    border-radius: 6px;
    color: var(--ms-text);
    font-family: "Segoe UI", Arial, sans-serif;
    min-height: 38px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

select,
.form-select,
.select {
    appearance: none;
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ms-primary) 50%),
        linear-gradient(135deg, var(--ms-primary) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding: 9px 38px 9px 12px;
}

select:hover,
.form-select:hover,
.select:hover,
.form-control:hover {
    border-color: rgba(11, 122, 52, .4);
}

select:focus,
.form-select:focus,
.select:focus,
.form-control:focus {
    background-color: #ffffff;
    border-color: rgba(11, 122, 52, .68);
    box-shadow: 0 0 0 3px rgba(11, 122, 52, .14);
    outline: 0;
}

select:disabled,
.form-select:disabled,
.select:disabled,
.form-control:disabled,
.form-control[readonly] {
    background-color: #eef4f0;
    border-color: #dbe5df;
    color: #7a8a81;
    cursor: not-allowed;
}

.dropdown-menu,
.dropdown-content,
.menu {
    background: #ffffff;
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 43, 30, .18);
    color: var(--ms-text);
    min-width: 220px;
    padding: 8px;
    z-index: 1080;
}

.dropdown-item,
.dropdown-content a,
.menu li a {
    align-items: center;
    border-radius: 6px;
    color: #334155;
    display: flex;
    font-size: .9rem;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-content a:hover,
.menu li a:hover {
    background: #eef6f1;
    color: var(--ms-primary-dark);
    text-decoration: none;
}

.dropbtn,
.dropdown-toggle {
    background: #ffffff;
    border-color: var(--ms-line);
    color: var(--ms-text);
}

.dropbtn:hover,
.dropdown-toggle:hover {
    background: #eef6f1;
    border-color: rgba(11, 122, 52, .4);
}

.modal {
    background: rgba(7, 24, 16, .22);
    padding: 18px;
}

.modal-dialog {
    max-width: min(920px, calc(100vw - 32px));
}

.modal-dialog[style],
.modal-content[style] {
    max-width: min(920px, calc(100vw - 32px)) !important;
    width: min(920px, calc(100vw - 32px)) !important;
}

.modal-content {
    background: #ffffff;
    border: 1px solid rgba(219, 229, 223, .95);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(2, 20, 12, .32);
}

.modal-header {
    align-items: center;
    background: #f6fbf8;
    border-bottom: 1px solid var(--ms-line);
    min-height: 58px;
    padding: 14px 18px;
}

.modal-title {
    color: var(--ms-primary-dark);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.modal-body {
    color: var(--ms-text);
    max-height: min(68vh, 680px);
    overflow: auto;
    padding: 18px;
    scrollbar-color: var(--ms-primary) #e8efeb;
    scrollbar-width: thin;
}

.modal-footer {
    background: #f8faf9;
    border-top: 1px solid var(--ms-line);
    gap: 8px;
    padding: 12px 18px;
}

.modal-header .close,
.close {
    align-items: center;
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-radius: 50% !important;
    box-shadow: none;
    color: #334155 !important;
    display: inline-flex;
    font-size: 1.35rem;
    height: 36px;
    justify-content: center;
    line-height: 1;
    margin: 0 0 0 auto !important;
    min-height: 36px;
    opacity: 1;
    padding: 0 !important;
    text-shadow: none;
    width: 36px;
}

.modal-header .close:hover,
.close:hover {
    background: #eef6f1 !important;
    color: var(--ms-primary-dark) !important;
    transform: none;
}

.modal-backdrop.show,
.modal-overlay,
.popup-backdrop,
.confirmation-popup-backdrop {
    background: rgba(2, 20, 12, .58);
    opacity: 1;
}

.popup-backdrop,
.confirmation-popup-backdrop {
    align-items: center;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    padding: 18px;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1060;
}

.popup,
.confirmation-popup {
    background: #ffffff;
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(2, 20, 12, .32);
    color: var(--ms-text);
    max-width: 460px;
    padding: 22px;
    width: min(460px, calc(100vw - 36px));
}

.popup p,
.confirmation-popup p {
    color: var(--ms-text);
    font-size: .98rem;
    line-height: 1.5;
    margin: 0 0 18px;
}

.popup button,
.confirmation-popup button {
    margin-right: 8px;
}

.toast,
.cs-toast {
    align-items: stretch;
    background: #ffffff;
    border: 1px solid var(--ms-line);
    border-left: 5px solid var(--ms-accent);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 43, 30, .18);
    color: var(--ms-text);
    display: flex;
    gap: 12px;
    min-width: min(360px, calc(100vw - 28px));
    padding: 12px 14px;
}

.cs-toast {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 18px;
    top: 18px;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1100 !important;
}

.toast-visible,
.cs-toast-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.toast-icon,
.cs-toast-icon {
    align-items: center;
    background: #eef6f1;
    border-radius: 50%;
    color: var(--ms-primary-dark);
    display: inline-flex;
    flex: 0 0 38px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.toast-body,
.cs-toast-body {
    color: var(--ms-text);
    min-width: 0;
}

.toast-body h5,
.cs-toast-body h5 {
    color: var(--ms-text);
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 4px;
}

.toast-body p,
.cs-toast-body p {
    color: var(--ms-muted);
    font-size: .88rem;
    line-height: 1.4;
    margin: 0;
}

.bg-success,
.toast-success {
    border-left-color: var(--ms-primary) !important;
}

.bg-danger,
.toast-error {
    border-left-color: #dc2626 !important;
}

.bg-warning,
.toast-warning {
    border-left-color: #d97706 !important;
}

.bg-info,
.toast-info {
    border-left-color: var(--ms-accent) !important;
}

@media (max-width: 768px) {
    .modal {
        padding: 8px;
    }

    .modal-dialog,
    .modal-dialog[style],
    .modal-content[style] {
        margin: 8px auto;
        max-width: calc(100vw - 16px) !important;
        width: calc(100vw - 16px) !important;
    }

    .modal-body {
        max-height: 72vh;
        padding: 14px;
    }

    .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .modal-footer .btn,
    .modal-footer button,
    .modal-footer input[type="button"],
    .modal-footer inputbutton {
        width: 100%;
    }

    .cs-toast {
        left: 14px;
        right: 14px;
        top: 14px;
    }
}

/* Modern table system */
.page main article.content table,
.modal-body table,
.mddfull table,
.divgrid table,
.divupdate table,
.table,
#variable {
    background: #ffffff;
    border-collapse: separate !important;
    border-spacing: 0;
    color: var(--ms-text);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: .9rem;
    line-height: 1.35;
    min-width: 100%;
    width: 100%;
}

.page main article.content table:not(.nav-tabs table),
.modal-body table,
.table,
#variable {
    border: 1px solid var(--ms-line);
    border-radius: 8px;
    overflow: hidden;
}

.page main article.content table thead th,
.modal-body table thead th,
.mddfull table thead th,
.divgrid table thead th,
.divupdate table thead th,
.table thead th,
#variable thead th {
    background: linear-gradient(180deg, #f3faf6 0%, #eaf4ee 100%) !important;
    border-bottom: 1px solid var(--ms-line) !important;
    border-left: 0 !important;
    border-right: 0 !important;
    color: var(--ms-primary-dark) !important;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 12px 14px !important;
    position: sticky;
    text-align: left;
    text-transform: uppercase;
    top: 0;
    vertical-align: middle;
    white-space: nowrap;
    z-index: 3;
}

.page main article.content table tbody td,
.modal-body table tbody td,
.mddfull table tbody td,
.divgrid table tbody td,
.divupdate table tbody td,
.table tbody td,
#variable tbody td {
    background: transparent;
    border-bottom: 1px solid #edf2ef !important;
    border-left: 0 !important;
    border-right: 0 !important;
    color: #1f3328;
    padding: 11px 14px !important;
    vertical-align: middle;
}

.page main article.content table tbody tr,
.modal-body table tbody tr,
.mddfull table tbody tr,
.divgrid table tbody tr,
.divupdate table tbody tr,
.table tbody tr,
#variable tbody tr {
    background: #ffffff;
    transition: background-color .16s ease, box-shadow .16s ease;
}

.page main article.content table tbody tr:nth-child(even),
.modal-body table tbody tr:nth-child(even),
.mddfull table tbody tr:nth-child(even),
.divgrid table tbody tr:nth-child(even),
.divupdate table tbody tr:nth-child(even),
.table tbody tr:nth-child(even),
#variable tbody tr:nth-child(even) {
    background: #fbfdfc;
}

.page main article.content table tbody tr:hover,
.modal-body table tbody tr:hover,
.mddfull table tbody tr:hover,
.divgrid table tbody tr:hover,
.divupdate table tbody tr:hover,
.table tbody tr:hover,
#variable tbody tr:hover {
    background: rgba(13, 139, 143, .08) !important;
}

.page main article.content table tbody tr:last-child td,
.modal-body table tbody tr:last-child td,
.mddfull table tbody tr:last-child td,
.divgrid table tbody tr:last-child td,
.divupdate table tbody tr:last-child td,
.table tbody tr:last-child td,
#variable tbody tr:last-child td {
    border-bottom: 0 !important;
}

.selected-row,
tr.selected-row,
.page main article.content table tbody tr.selected-row,
.modal-body table tbody tr.selected-row {
    background: #dff5e8 !important;
    box-shadow: inset 4px 0 0 var(--ms-primary);
}

.selected-row td,
tr.selected-row td {
    color: #10221a !important;
    font-weight: 700;
}

.page main article.content table th:first-child,
.page main article.content table td:first-child,
.modal-body table th:first-child,
.modal-body table td:first-child,
#variable th:first-child,
#variable td:first-child {
    padding-left: 16px !important;
}

.page main article.content table th:last-child,
.page main article.content table td:last-child,
.modal-body table th:last-child,
.modal-body table td:last-child,
#variable th:last-child,
#variable td:last-child {
    padding-right: 16px !important;
}

.page main article.content table td:has(.btn),
.page main article.content table td:has(button),
.page main article.content table td:has(inputbutton),
.modal-body table td:has(.btn),
.modal-body table td:has(button),
.modal-body table td:has(inputbutton) {
    white-space: nowrap;
}

.page main article.content table td img,
.modal-body table td img,
#variable td img {
    max-height: 34px;
    object-fit: contain;
}

.page main article.content table input,
.page main article.content table select,
.page main article.content table textarea,
.modal-body table input,
.modal-body table select,
.modal-body table textarea {
    max-width: 100%;
}

.divgrid,
.divupdate,
.mddfull,
.table-responsive {
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(15, 43, 30, .1) !important;
    overflow: auto !important;
    scrollbar-color: var(--ms-primary) #e8efeb !important;
    scrollbar-width: thin;
}

.divgrid::-webkit-scrollbar,
.divupdate::-webkit-scrollbar,
.mddfull::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.divgrid::-webkit-scrollbar-thumb,
.divupdate::-webkit-scrollbar-thumb,
.mddfull::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(11, 122, 52, .55);
    border-radius: 999px;
}

.divgrid::-webkit-scrollbar-track,
.divupdate::-webkit-scrollbar-track,
.mddfull::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: #e8efeb;
}

.table caption,
#variable caption {
    color: var(--ms-muted);
    caption-side: top;
    font-size: .85rem;
    font-weight: 700;
    padding: 0 0 10px;
}

.table .no-print,
#variable .no-print,
th.no-print,
td.no-print {
    background: #f8faf9;
}

td:empty::after {
    color: #94a39a;
    content: "-";
}

.page main article.content table tbody td:nth-child(1):not(:only-child),
#variable tbody td:nth-child(1):not(:only-child) {
    color: var(--ms-muted);
    font-weight: 750;
}

.page main article.content table tbody td:nth-last-child(1):has(.btn),
.page main article.content table tbody td:nth-last-child(1):has(button),
#variable tbody td:nth-last-child(1):has(.btn),
#variable tbody td:nth-last-child(1):has(button) {
    text-align: right;
}

@supports not selector(:has(*)) {
    .page main article.content table tbody td:last-child,
    #variable tbody td:last-child {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .page main article.content table,
    .modal-body table,
    .table,
    #variable {
        font-size: .84rem;
    }

    .page main article.content table thead th,
    .modal-body table thead th,
    .table thead th,
    #variable thead th {
        padding: 10px 12px !important;
    }

    .page main article.content table tbody td,
    .modal-body table tbody td,
    .table tbody td,
    #variable tbody td {
        padding: 10px 12px !important;
    }
}

/* Modern cards and summary tiles */
.page main article.content .row > [class*="col"] > .card,
.page main article.content .card,
.modal-body .card,
.card {
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(15, 43, 30, .1) !important;
    color: var(--ms-text) !important;
    overflow: hidden;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.page main article.content .card:hover,
.modal-body .card:hover,
.box-part:hover,
.flex-item:hover {
    border-color: rgba(13, 139, 143, .38) !important;
    box-shadow: 0 18px 42px rgba(15, 43, 30, .14) !important;
    transform: translateY(-2px);
}

.page main article.content .card.shadow,
.modal-body .card.shadow,
.card.shadow {
    box-shadow: 0 14px 32px rgba(15, 43, 30, .1) !important;
}

.page main article.content .card.h-100,
.modal-body .card.h-100,
.card.h-100 {
    min-height: 100%;
}

.page main article.content .card.py-2,
.modal-body .card.py-2,
.card.py-2 {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
}

.page main article.content .card-body,
.modal-body .card-body,
.card-body {
    padding: 18px !important;
}

.page main article.content .card .row,
.modal-body .card .row,
.card .row {
    align-items: center;
}

.page main article.content .card .text-xs,
.modal-body .card .text-xs,
.card .text-xs {
    color: var(--ms-muted) !important;
    font-size: .72rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.35;
    text-transform: uppercase;
}

.page main article.content .card .h5,
.page main article.content .card h5,
.page main article.content .card .mb-0,
.modal-body .card .h5,
.modal-body .card h5,
.modal-body .card .mb-0,
.card .h5,
.card h5,
.card .mb-0 {
    color: var(--ms-text) !important;
    font-size: 1.45rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.15;
}

.page main article.content .card .text-gray-800,
.modal-body .card .text-gray-800,
.card .text-gray-800 {
    color: var(--ms-text) !important;
}

.page main article.content .card .text-primary,
.modal-body .card .text-primary,
.card .text-primary {
    color: var(--ms-primary) !important;
}

.page main article.content .card .text-success,
.modal-body .card .text-success,
.card .text-success {
    color: #17834b !important;
}

.page main article.content .card .text-warning,
.modal-body .card .text-warning,
.card .text-warning {
    color: #a46205 !important;
}

.page main article.content .card .text-danger,
.modal-body .card .text-danger,
.card .text-danger {
    color: #b42838 !important;
}

.page main article.content .card .text-info,
.modal-body .card .text-info,
.card .text-info {
    color: var(--ms-accent) !important;
}

.page main article.content .card i,
.modal-body .card i,
.card i {
    color: rgba(15, 43, 30, .18) !important;
    font-size: 2rem;
}

.border-left-primary,
.border-left-success,
.border-left-warning,
.border-left-danger,
.border-left-info,
.border-left-secondary {
    border-left-width: 5px !important;
    border-left-style: solid !important;
}

.border-left-primary {
    border-left-color: var(--ms-primary) !important;
}

.border-left-success {
    border-left-color: #17834b !important;
}

.border-left-warning {
    border-left-color: var(--ms-warning) !important;
}

.border-left-danger {
    border-left-color: var(--ms-danger) !important;
}

.border-left-info {
    border-left-color: var(--ms-accent) !important;
}

.border-left-secondary {
    border-left-color: #77837c !important;
}

.diveanalysis,
.page main article.content .diveanalysis {
    align-items: stretch !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    margin: 18px 0 !important;
    width: 100% !important;
}

.divmonit1,
.divmonit2,
.divmonit3,
.divmonit4,
.divmonit5,
.page main article.content .divmonit1,
.page main article.content .divmonit2,
.page main article.content .divmonit3,
.page main article.content .divmonit4,
.page main article.content .divmonit5 {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-left: 5px solid var(--ms-primary) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(15, 43, 30, .1) !important;
    color: var(--ms-text) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    height: auto !important;
    justify-content: center !important;
    margin: 0 !important;
    min-height: 92px !important;
    padding: 16px !important;
    position: static !important;
    text-align: center !important;
    width: auto !important;
}

.divmonit1 {
    border-left-color: var(--ms-primary) !important;
}

.divmonit2 {
    border-left-color: var(--ms-accent) !important;
}

.divmonit3 {
    border-left-color: #17834b !important;
}

.divmonit4 {
    border-left-color: var(--ms-warning) !important;
}

.divmonit5 {
    border-left-color: var(--ms-danger) !important;
}

.tdstyle,
.page main article.content .tdstyle {
    color: var(--ms-primary-dark) !important;
    font-size: 1.55rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
}

.box-part,
.page main article.content .box-part {
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(15, 43, 30, .1) !important;
    color: var(--ms-text) !important;
    margin: 12px 0 !important;
    min-height: 170px;
    padding: 24px !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.box-part .title h4,
.page main article.content .box-part .title h4 {
    color: var(--ms-primary-dark) !important;
    font-size: 1rem !important;
    font-weight: 850 !important;
    letter-spacing: 0 !important;
    margin: 10px 0 8px !important;
}

.box-part .text,
.page main article.content .box-part .text {
    color: var(--ms-muted) !important;
    font-size: .9rem;
    line-height: 1.55;
}

.box-part a,
.page main article.content .box-part a {
    color: var(--ms-primary) !important;
    font-weight: 800;
    text-decoration: none;
}

.box-part img,
.page main article.content .box-part img {
    filter: drop-shadow(0 10px 16px rgba(15, 43, 30, .12));
    max-height: 54px;
    object-fit: contain;
}

.flex-container,
.page main article.content .flex-container {
    align-items: stretch !important;
    display: grid !important;
    gap: 14px !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
}

.flex-item,
.page main article.content .flex-item {
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-radius: 8px !important;
    box-shadow: 0 14px 32px rgba(15, 43, 30, .1) !important;
    color: var(--ms-text) !important;
    margin: 0 !important;
    min-width: 0 !important;
    padding: 18px !important;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.progress-container,
.page main article.content .progress-container {
    background: #e8efeb !important;
    border: 1px solid #dce7e1 !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 2px rgba(15, 43, 30, .08) !important;
    height: 14px !important;
    overflow: hidden !important;
    position: relative;
    width: 100%;
}

.progress-bar,
.page main article.content .progress-bar {
    align-items: center;
    background: linear-gradient(90deg, var(--ms-primary), var(--ms-accent)) !important;
    border-radius: inherit !important;
    color: #ffffff !important;
    display: flex;
    font-size: .68rem;
    font-weight: 850;
    height: 100% !important;
    justify-content: center;
    min-width: 18px;
    transition: width .25s ease;
}

.progress-text {
    line-height: 1;
}

.progress-label {
    color: var(--ms-muted) !important;
    display: flex;
    font-size: .78rem !important;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0 !important;
    margin-top: 8px;
}

.progress-circle {
    background: #e8efeb !important;
    border-radius: 50%;
    box-shadow: 0 14px 28px rgba(15, 43, 30, .12);
}

.progress-inset {
    align-items: center;
    background: #ffffff !important;
    border: 1px solid var(--ms-line);
    border-radius: 50%;
    color: var(--ms-primary-dark) !important;
    display: flex;
    font-weight: 850;
    justify-content: center;
}

@media (max-width: 900px) {
    .diveanalysis,
    .page main article.content .diveanalysis {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }

    .page main article.content .card .h5,
    .page main article.content .card h5,
    .page main article.content .card .mb-0,
    .card .h5,
    .card h5,
    .card .mb-0 {
        font-size: 1.25rem !important;
    }
}

/* Blazor server reconnect toast */
#components-reconnect-modal {
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid var(--ms-line) !important;
    border-left: 5px solid var(--ms-accent) !important;
    border-radius: 8px !important;
    bottom: 24px !important;
    box-shadow: 0 18px 42px rgba(15, 43, 30, .18) !important;
    color: var(--ms-text) !important;
    display: none !important;
    font-family: inherit !important;
    left: auto !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    max-width: min(420px, calc(100vw - 32px)) !important;
    min-height: 64px !important;
    opacity: 1 !important;
    padding: 16px 18px 16px 52px !important;
    position: fixed !important;
    right: 24px !important;
    text-align: left !important;
    top: auto !important;
    transform: none !important;
    width: auto !important;
    z-index: 10000 !important;
}

#components-reconnect-modal::before {
    animation: reconnectSpin .9s linear infinite;
    border: 3px solid #dce7e1;
    border-radius: 50%;
    border-top-color: var(--ms-accent);
    content: "";
    height: 22px;
    left: 18px;
    position: absolute;
    top: 20px;
    width: 22px;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: block !important;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none !important;
}

#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    border-left-color: var(--ms-danger) !important;
}

#components-reconnect-modal.components-reconnect-failed::before,
#components-reconnect-modal.components-reconnect-rejected::before {
    animation: none;
    border-color: rgba(199, 47, 61, .18);
    border-top-color: var(--ms-danger);
}

#components-reconnect-modal a,
#components-reconnect-modal button {
    background: var(--ms-primary) !important;
    border: 1px solid var(--ms-primary) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    display: inline-flex !important;
    font-size: .82rem !important;
    font-weight: 850 !important;
    margin-top: 8px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    text-decoration: none !important;
}

@keyframes reconnectSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    #components-reconnect-modal {
        bottom: 14px !important;
        left: 14px !important;
        max-width: none !important;
        right: 14px !important;
        width: auto !important;
    }
}
