:root {
    /* SummitInternal Brand Colors */
    --primary-blue: #71DAF5;
    --primary-dark: #2F4858;
    --primary-light: #A8E6F7;
    --secondary-green: #B5EAAB;
    --secondary-navy: #2F4858;
    --secondary-gray: #2B2D42;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --success: #B5EAAB;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #71DAF5;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: var(--primary-blue);
}

.btn-primary {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-dark);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--secondary-green);
    border-color: #9FD68F;
}

.btn-secondary:hover {
    background-color: #9FD68F;
    border-color: #8BC77F;
}



.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 var(--primary-light);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #B5EAAB;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#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."
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

div.page.nav-scrollable {
    background: linear-gradient(20deg, #2F4858, #71DAF5);
}

/* Optional secondary gradient using green accent */
.page-secondary-gradient {
    background: linear-gradient(135deg, #71DAF5, #B5EAAB);
}

input {
    margin: 5px 0;
}

select {
    margin: 5px 0;
}

/*input:focus, textarea:focus {
        box-shadow: 0 0 4px #0a32a1;
        border: 1px solid #0a32a1;
    }*/
.label {
    font-size: calc(0.7rem + 0.2vw);
    display: inline-block
}
.h1, h1 {
    font-size: calc(2.25rem + .3vw);
    color: var(--secondary-navy);
}

.h2, h2 {
    font-size: calc(2rem + .3vw);
    color: var(--secondary-navy);
}

.h3, h3 {
    font-size: calc(1.75rem + .3vw);
    color: var(--secondary-navy);
}

.h4, h4 {
    font-size: calc(1.5rem + .3vw);
    color: var(--secondary-navy);
}

.h5, h5 {
    font-size: calc(1.25rem + .3vw);
    color: var(--secondary-navy);
}

.h6, h6 {
    font-size: calc(1rem + .3vw);
    color: var(--secondary-navy);
}
.small-text {
    font-size: calc(0.7rem + 0.2vw);
}
.home-headers {
    font-size: calc(1rem + 0.2vw);
}
.application-headers {
    font-size: calc(1rem + 0.2vw);
}

.custom-table-header {
    background-color: var(--primary-blue);
    color: var(--white);
}

.table-striped tbody tr td input {
    background-color: transparent; /* Make input background transparent */
    border: none; /* Remove the border */
    outline: none; /* Remove the focus outline */
    box-shadow: none; /* Remove any shadow */
    font-size: 0.85rem;
}


.search-box {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

/* Position the container of the input field relative */
.search-box-container {
    position: relative;
    width: 100%; /* Adjust the width as needed */
}

/* Style for the dropdown list */
.dropdown-list {
    position: absolute; /* Position it absolutely within the search box container */
    width: 100%; /* Match the width of the input field */
    background: white; /* Background color for the dropdown */
    border: 1px solid #ccc; /* Border similar to input fields */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Optional: adds shadow for better visibility */
    z-index: 1000; /* Ensure it's on top of other content */
    max-height: 300px; /* Limit the height and make it scrollable */
    overflow-y: auto; /* Add scroll to the dropdown if it exceeds the max height */
    top: 100%; /* Position right below the input box */
    left: 0; /* Align with the left edge of the container */
}

    .dropdown-list li {
        padding: 8px;
        cursor: pointer;
    }

        .dropdown-list li:hover {
            background-color: #f8f8f8; /* Light grey background on hover for better user experience */
        }
/* Style for invalid input */
.is-invalid {
    border: 2px solid red !important;
}

/* Style for valid input */
.is-valid {
    border: 2px solid #B5EAAB !important;
}

.input-group .form-control, .input-group .btn, btn-outline-secondary {
    padding: 8px;
    height: auto;
    display: flex;
    align-items: center;
    margin: auto;
}

.input-group .form-control, .select {
    margin: 5px;
}

.col-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
    display: flex;
    align-items: center;
}

.col-6 {
    display: flex;
    align-items: center; /* Vertically centers the content */
    flex: 0 0 auto;
    width: 50%;
}
.col-md-2 {
    align-items: center;
    display: flex;
}
/* Root container */
.logincontent-page {
    background-color: white;
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
}

/* Grid layout */
.loginGrid {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main stack layout */
.main-stack {
    width: 100%;
    max-width: 400px;
}

/* Logo styling */
.logo {
    max-width: 340px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Login page logo styling */
.logincontent-page img {
    max-width: 340px;
    height: auto;
    object-fit: contain;
}

/* Welcome stack */
.welcome-stack {
    margin-top: 60px;
    text-align: center;
}

/* Input stack */
.logininput-stack {
    margin-top: 20px;
}

/* Input container */
.logininput-container {
    margin: 5px 0;
}

/* Input fields */
.logininput-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    color: black;
}

/* Login button */
.login-button {
    width: 100% !important;
    padding: 10px !important;
    margin: 5px 0 !important;
    background-color: #71DAF5 !important; /* SummitInternal Brand Blue */
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: 500 !important;
    transition: background-color 0.3s ease !important;
}

    .login-button:hover {
        background-color: #2F4858 !important; /* SummitInternal Dark Blue */
    }

    .login-button:disabled {
        background-color: #6C757D !important; /* Gray */
        cursor: not-allowed !important;
        opacity: 0.7 !important;
    }

/* Login spinner */
.logincontent-page .spinner-border {
    color: var(--primary-blue);
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.3em;
}

/* Error message styling */
.logincontent-page .text-danger {
    color: var(--danger) !important;
    font-size: 14px;
    margin-top: 8px;
    text-align: center;
}

/* Footer stack */
.footer-stack {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

/* Clickable text */
.forgot-password,
.sign-up {
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

    .forgot-password:hover,
    .sign-up:hover {
        color: var(--primary-dark);
        text-decoration: underline;
    }

.center-column-values {    
    vertical-align: middle;
}

.bi-bar-chart-fill {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-bar-chart-fill' viewBox='0 0 16 16'%3E%3Cpath d='M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}
.bi-info-square {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-info-square' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0'/%3E%3C/svg%3E");
}

/* Do Better Things Better! specific icons */
.bi-briefcase-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-briefcase-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 1A1.5 1.5 0 0 0 5 2.5V3H1.5A1.5 1.5 0 0 0 0 4.5v1.384l7.614 2.03a1.5 1.5 0 0 0 .772 0L16 5.884V4.5A1.5 1.5 0 0 0 14.5 3H11v-.5A1.5 1.5 0 0 0 9.5 1zm0 1h3a.5.5 0 0 1 .5.5V3H6v-.5a.5.5 0 0 1 .5-.5'/%3E%3Cpath d='M0 12.5A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5V6.85L8.129 8.947a.5.5 0 0 1-.258 0L0 6.85z'/%3E%3C/svg%3E");
}

.bi-person-lines-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-lines-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m-5 6s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1zM11 3.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 0 1h-4a.5.5 0 0 1-.5-.5m.5 2.5a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1zm2 3a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1zm0 3a.5.5 0 0 0 0 1h2a.5.5 0 0 0 0-1z'/%3E%3C/svg%3E");
}

.bi-calendar-check-fill-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-calendar-check-fill' viewBox='0 0 16 16'%3E%3Cpath d='M4 .5a.5.5 0 0 0-1 0V1H2a2 2 0 0 0-2 2v1h16V3a2 2 0 0 0-2-2h-1V.5a.5.5 0 0 0-1 0V1H4zM16 14V5H0v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2m-5.146-5.146-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 0 1 .708-.708L7.5 10.793l2.646-2.647a.5.5 0 0 1 .708.708'/%3E%3C/svg%3E");
}
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}
.bi-file-earmark-bar-graph {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-file-earmark-bar-graph' viewBox='0 0 16 16'%3E%3Cpath d='M10 13.5a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-6a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5zm-2.5.5a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5zm-3 0a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5z'/%3E%3Cpath d='M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.bi-info-square-fill {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-info-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm8.93 4.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM8 5.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.bi-pencil-square {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-pencil-square' viewBox='0 0 16 16'%3E%3Cpath d='M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z'/%3E%3Cpath fill-rule='evenodd' d='M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.bi-printer-fill {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-printer-fill' viewBox='0 0 16 16'%3E%3Cpath d='M5 1a2 2 0 0 0-2 2v1h10V3a2 2 0 0 0-2-2zm6 8H5a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1'/%3E%3Cpath d='M0 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-1v-2a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2H2a2 2 0 0 1-2-2zm2.5 1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.bi-file-arrow-down-fill {
    width: 16px;
    height: 16px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-file-arrow-down-fill' viewBox='0 0 16 16'%3E%3Cpath d='M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2M8 5a.5.5 0 0 1 .5.5v3.793l1.146-1.147a.5.5 0 0 1 .708.708l-2 2a.5.5 0 0 1-.708 0l-2-2a.5.5 0 1 1 .708-.708L7.5 9.293V5.5A.5.5 0 0 1 8 5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Optional: Style the dropdown */
.dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    min-width: 200px;
}
.no-wrap {
    white-space: nowrap;
}
.project-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.project-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 200px;
    height: 200px;
    padding: 15px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}
.project-observations-tiles {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 200px;
    height: 150px;
    padding: 15px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.project-data {
    font-size: 14px;
    color: #555;
    margin-bottom: auto;
}

.project-view-button {
    margin-top: 10px;
    position: absolute;
    bottom: 15px; /* Fix button to the bottom of the tile */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 30px); /* Ensure the button aligns with padding */
    padding: 8px 10px;
    background-color: #336699;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .project-view-button:hover {
        background-color: #637b2f;
    }

.priority-column {
    font-weight: normal;
    color: inherit; /* Default color */
}

    .priority-column.high-priority {
        font-weight: bold;
        color: red; /* Make the text red for high priority */
    }
.thumbnail-container {
    position: relative;
    display: inline-block;
}

    .thumbnail-container img {
        max-width: 100%;
        border-radius: 8px;
    }

.home-container {
    display: flex;
    gap: 20px;
    padding: 20px;
    text-align: center;
    flex-wrap: wrap;
}

.tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    color: #b0be89;
    padding: 35px;
    border-radius: 10px;
    transition: transform 0.2s, background-color 0.2s;
    width: 150px;
    height: 150px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}
.home-top {
    background-color: #6c8235;
}

.home-bottom {
    background-color: #acbe6b;
}

.tile:hover {
    transform: scale(1.05);
}
.bi-kanban-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-kanban' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm-11-1a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'%3E%3C/path%3E%3Cpath d='M6.5 3a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1zm-4 0a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1zm8 0a1 1 0 0 1 1-1h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1z'%3E%3C/path%3E%3C/svg%3E");
    display: inline-block;
    width: 16px;
    height: 16px; 
    background-size: contain;
    background-repeat: no-repeat;
    color: #637b2f; /* Icon color */
    vertical-align: middle; /* Ensure icon aligns with text */
}
.bi-kanban-icon {
    width: 40px; /* Set your desired icon size */
    height: 40px; /* Set your desired icon size */
    vertical-align: middle; /* Align with the text */
    color: #fff; /* Color */
}

.bi-bar-chart-icon {
    width: 40px; /* Set desired icon size */
    height: 40px; /* Set desired icon size */
    vertical-align: middle; /* Align icon with the text */
    color: #fff; /* Set the color of the icon */
}
.bi-gear-icon {
    width: 40px; /* Set desired icon size */
    height: 40px; /* Set desired icon size */
    vertical-align: middle; /* Align icon with the text */
    color: #fff; /* Set the color of the icon */
}
.bi-map-icon {
    width: 40px; /* Set desired icon size */
    height: 40px; /* Set desired icon size */
    vertical-align: middle; /* Align icon with the text */
    color: #fff; /* Set the color of the icon */
}

.bi-camera-fill {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-camera-fill' viewBox='0 0 16 16'%3E%3Cpath d='M10.5 8.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0'/%3E%3Cpath d='M2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4zm.5 2a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1m9 2.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0'/%3E%3C/svg%3E");
    display: inline-block;
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    color: #637b2f;
    vertical-align: middle;
    cursor: pointer;
}

.camera-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
}
.thumbnail-container {
    position: relative;
    display: inline-block;
}

    .thumbnail-container img {
        max-width: 20%;
        border-radius: 8px;
    }

.img-thumbnail {
    padding: .25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    max-width: 15%;
    height: auto;
}

.header, .sub-header, .footer {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    font-weight: bold;
    border-bottom: 2px solid white;
}

.sub-header {
    text-align: center;
    border-bottom: none;
}

.details-box {
    
}

.dos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .dos-table th, .dos-table td {
        border: 1px solid white;
        padding: 5px;
        text-align: left;
    }

    .dos-table input {
        background: #6666ff;
        color: white;
        border: none;
        text-align: center;
        font-family: 'Courier New', monospace;
        width: 100%;
    }

.totals {
    margin-top: 10px;
    border-top: 2px solid white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
}

.footer {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.right {
    float: right;
}
.custom-modal {
    background-color: floralwhite; /* Semi-transparent black background */
}
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

/* Blazor-managed modals: avoid Bootstrap .modal / .modal-dialog pointer-events:none blocking clicks */
.dip-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.dip-modal-panel {
    width: 100%;
    max-width: 600px;
    margin-top: 0;
    pointer-events: auto;
}

.dip-modal-panel-xl {
    max-width: 1200px;
}

.dip-modal-panel .modal-content {
    pointer-events: auto;
}

.dip-modal-panel .modal-header,
.dip-modal-panel .modal-body,
.dip-modal-panel .modal-footer {
    pointer-events: auto;
}

.dip-modal-panel .modal-footer button {
    pointer-events: auto;
}

/* Page tabs: reduce label size by 1pt */
.nav-tabs .nav-link {
    font-size: calc(1rem - 1pt);
}

/* Tab panel content: reduce data size by 1pt */
.tab-content {
    font-size: calc(1rem - 1pt);
}

.tab-content .table {
    font-size: 1em;
}

.tab-content .btn-sm {
    font-size: calc(0.875rem - 1pt);
}

.tab-content .btn:not(.btn-sm) {
    font-size: calc(1rem - 1pt);
}

.tab-content h5,
.tab-content .h5 {
    font-size: calc(1.25rem - 1pt);
}

.tab-content .badge {
    font-size: calc(0.75em - 1pt);
}

.tab-content .form-control-sm,
.tab-content .form-select-sm {
    font-size: calc(0.875rem - 1pt);
}

/* DIP Admin (client list) page: match client detail tab typography */
.dip-admin-page {
    font-size: calc(1rem - 1pt);
}

.dip-admin-page .dip-admin-title {
    font-size: calc(1.25rem - 1pt);
    line-height: 1.2;
}

.dip-admin-page .table {
    font-size: 1em;
}

.dip-admin-page .table th,
.dip-admin-page .table td {
    font-size: 1em;
}

.dip-admin-page .btn-sm {
    font-size: calc(0.875rem - 1pt);
}

.dip-admin-page .btn:not(.btn-sm) {
    font-size: calc(1rem - 1pt);
}

.dip-admin-page .form-control {
    font-size: calc(0.875rem - 1pt);
}

.dip-admin-page .card-header .btn {
    font-size: calc(0.75rem - 1pt);
}

.dip-admin-page h4 {
    font-size: calc(1.25rem - 1pt);
}

.dip-admin-page small,
.dip-admin-page .text-muted {
    font-size: calc(0.875em - 1pt);
}

/* DIP Client Detail — compact header and data validate table */
.dip-client-page .dip-client-header .card-body {
    padding: 0.35rem 0.75rem;
}

.dip-client-page .dip-client-header h5 {
    font-size: calc(1rem - 1pt);
    line-height: 1.2;
}

.dip-client-page .dip-client-desc {
    font-size: calc(0.8125rem - 1pt);
    max-width: 280px;
}

.dip-client-page .dip-tab-explanation {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.dip-client-page .dip-client-header small {
    font-size: calc(0.75rem - 1pt);
}

.dip-client-page .dip-dv-table {
    table-layout: fixed;
    width: 100%;
}

.dip-client-page .dip-dv-table .dip-dv-col-actions {
    width: 160px;
    white-space: nowrap;
}

.dip-client-page .dip-dv-table .dip-dv-col-name {
    width: 28%;
}

.dip-client-page .dip-dv-table .dip-dv-col-text {
    width: 12%;
}

.dip-client-page .dip-dv-table .dip-dv-col-check {
    width: 85px;
}

.dip-client-page .dip-dv-table .dip-dv-col-check-wide {
    width: 120px;
}

.dip-client-page .dip-dv-table .dip-dv-col-active {
    width: 105px;
}

.dip-client-page .dip-dv-table th,
.dip-client-page .dip-dv-table td {
    overflow: hidden;
    vertical-align: middle;
}

.dip-client-page .dip-dv-table td:has(.btn-group),
.dip-client-page .dip-sites-table td:has(.btn-group),
.dip-client-page .dip-sources-table td:has(.btn-group) {
    overflow: visible;
}

.dip-client-page .dip-dv-table .btn-group .btn-sm,
.dip-client-page .dip-sites-table .btn-group .btn-sm,
.dip-client-page .dip-sources-table .btn-group .btn-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.dip-client-page .dip-dv-id-text {
    font-size: calc(0.75rem - 1pt);
}

.dip-client-page .dip-dv-base-table,
.dip-client-page .dip-db-name-cell {
    display: inline-grid;
    grid-template-columns: minmax(0, max-content) auto;
    max-width: 100%;
    column-gap: 0.15rem;
    align-items: center;
    vertical-align: middle;
}

.dip-client-page .dip-dv-base-table-name,
.dip-client-page .dip-db-name-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.dip-client-page .dip-db-warning-icon {
    color: #ffc107;
    font-size: calc(0.85rem - 1pt);
    line-height: 1;
}

.dip-client-page .dip-copy-id-btn {
    font-size: calc(0.85rem - 1pt);
    line-height: 1;
    vertical-align: baseline;
    text-decoration: none;
}

.dip-client-page .dip-create-table-btn {
    font-size: 1.05rem;
    line-height: 1;
    vertical-align: baseline;
    text-decoration: none;
    color: #c2410c !important;
    font-weight: 600;
}

.dip-client-page .dip-create-table-btn:hover:not(:disabled),
.dip-client-page .dip-copy-id-btn:hover {
    text-decoration: none;
}

.dip-client-page .dip-create-table-btn:hover:not(:disabled) {
    color: #9a3412 !important;
    opacity: 1;
}

.dip-client-page .dip-copy-id-btn:hover {
    opacity: 0.75;
}

.dip-client-page .dip-create-table-btn:disabled {
    opacity: 0.5;
}

/* Sites tab */
.dip-client-page .dip-sites-table {
    table-layout: fixed;
    width: 100%;
}

.dip-client-page .dip-sites-table .dip-col-actions,
.dip-client-page .dip-sources-table .dip-col-actions {
    width: 92px;
    white-space: nowrap;
}

.dip-client-page .dip-sites-table .dip-sites-col-name {
    width: 24%;
}

.dip-client-page .dip-sites-table .dip-sites-col-desc {
    width: 34%;
}

.dip-client-page .dip-sites-table .dip-sites-col-id {
    width: 280px;
}

.dip-client-page .dip-sites-table th,
.dip-client-page .dip-sites-table td {
    overflow: hidden;
    vertical-align: middle;
}

/* Sources tab — slightly tighter columns */
.dip-client-page .dip-sources-table {
    table-layout: fixed;
    width: 100%;
}

.dip-client-page .dip-sources-table .dip-sources-col-name {
    width: 22%;
}

.dip-client-page .dip-sources-table .dip-sources-col-text {
    width: 11%;
}

.dip-client-page .dip-sources-table .dip-sources-col-short {
    width: 9.5%;
}

.dip-client-page .dip-sources-table .dip-sources-col-id {
    width: 260px;
}

.dip-client-page .dip-sources-table th,
.dip-client-page .dip-sources-table td {
    overflow: hidden;
    vertical-align: middle;
}

.dip-client-page .dip-id-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: calc(0.75rem - 1pt);
}

.custom-edit-btn {
    color: var(--white);
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}
.custom-save-btn {
    color: var(--white);
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
}
    .custom-save-btn:hover {
        background-color: #9FD68F;
        border-color: #9FD68F;
    }
.custom-disable-btn {
    background-color: var(--warning);
    color: var(--white);
    border: none;
}
/*.row-in-warehouse {
    background-color: #d4edda;*/ /*  green */
/*}*/

.row-on-water {
    background-color: rgba(113, 218, 245, 0.1); /* Light SummitInternal blue */
}

.row-on-order {
    background-color: #feffb2; /*  yellow */
}

/* Global Loading Overlay */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

/* Enhanced Loading States */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 200px;
}

.loading-state.inline {
    min-height: auto;
    padding: 1rem;
}

.loading-state.full-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
}

/* Button Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0.6;
}

.btn-loading .spinner-border-sm {
    margin-right: 0.5rem;
}

/* Form Loading States */
.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Table Loading States */
.table-loading {
    position: relative;
}

.table-loading tbody {
    opacity: 0.5;
    pointer-events: none;
}

/* Card Loading States */
.card-loading {
    position: relative;
    overflow: hidden;
}

.card-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Progress Indicators */
.progress-container {
    margin: 1rem 0;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Indicators */
.focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .loading-state {
        background-color: white;
        border: 2px solid black;
    }
    
    .global-loading-overlay {
        background-color: rgba(255, 255, 255, 0.95);
        border: 3px solid black;
    }
}

/* Monitor pages (Dataset Status, Breach Connections, Upload Log) */
.dip-monitor-page {
    padding: 1.25rem 2rem 2rem;
}

.dip-monitor-page .dip-monitor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dip-monitor-page .dip-monitor-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.dip-monitor-page .dip-monitor-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.dip-monitor-page .dip-monitor-subtitle {
    font-size: 0.8125rem;
    color: #6c757d;
}

.dip-monitor-page .dip-monitor-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dip-monitor-page .dip-summary-card {
    border-radius: 0.4rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid transparent;
    min-width: 6.5rem;
    max-width: 12rem;
}

.dip-monitor-page .dip-summary-label {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dip-monitor-page .dip-summary-value {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.1;
}

.dip-monitor-page .dip-summary-breach {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.dip-monitor-page .dip-summary-late {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.dip-monitor-page .dip-summary-total {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #334155;
}

.dip-monitor-page .dip-monitor-search-row {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.dip-monitor-page .dip-monitor-search {
    position: relative;
    width: 320px;
}

.dip-monitor-page .dip-monitor-search .bi-search {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.8125rem;
    pointer-events: none;
}

.dip-monitor-page .dip-monitor-search .form-control {
    padding-left: 2.1rem;
    border-radius: 0.375rem;
    border-color: #dee2e6;
    font-size: 0.8125rem;
    height: 2.1rem;
}

.dip-monitor-page .dip-monitor-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1rem;
}

.dip-monitor-page .dip-monitor-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #495057;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.dip-monitor-page .dip-monitor-filter:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.dip-monitor-page .dip-monitor-filter.active {
    border-color: #495057;
    background: #495057;
    color: #fff;
}

.dip-monitor-page .dip-monitor-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
}

.dip-monitor-page .dip-monitor-filter.active .dip-monitor-filter-count {
    background: rgba(255, 255, 255, 0.2);
}

.dip-monitor-page .dip-monitor-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}

.dip-monitor-page .dip-monitor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    table-layout: fixed;
}

.dip-monitor-page .dip-monitor-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.dip-monitor-page .dip-monitor-table th {
    padding: 0.7rem 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.dip-monitor-page .dip-monitor-table th:hover {
    color: #1e293b;
}

.dip-monitor-page .dip-monitor-table th .bi {
    font-size: 0.625rem;
    margin-left: 0.3rem;
    opacity: 0.4;
}

.dip-monitor-page .dip-monitor-table th.dip-monitor-th-sorted {
    color: #1e293b;
}

.dip-monitor-page .dip-monitor-table th.dip-monitor-th-sorted .bi {
    opacity: 1;
}

.dip-monitor-page .dip-monitor-table th.dip-monitor-th-center {
    text-align: center;
}

.dip-monitor-page .dip-monitor-table th.dip-monitor-th-right {
    text-align: right;
}

.dip-monitor-page .dip-monitor-table td {
    padding: 0.6rem 1rem;
    border-top: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: middle;
}

.dip-monitor-page .dip-monitor-table tbody tr:nth-child(even) {
    background: #f4f5f7;
}

.dip-monitor-page .dip-monitor-table tbody tr:nth-child(odd) {
    background: #fff;
}

.dip-monitor-page .dip-monitor-table tbody tr:hover {
    background: #eef2ff;
}

.dip-monitor-page .dip-monitor-td-name {
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dip-monitor-page .dip-monitor-td-center {
    text-align: center;
}

.dip-monitor-page .dip-monitor-td-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.dip-monitor-page .dip-monitor-td-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dip-monitor-page .dip-monitor-td-date {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dip-monitor-page .dip-monitor-td-break {
    white-space: normal;
    word-break: break-word;
}

.dip-monitor-page .dip-monitor-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.dip-monitor-page .dip-monitor-badge-rejected,
.dip-monitor-page .dip-status-breach,
.dip-monitor-page .dip-text-breach {
    color: #dc2626;
}

.dip-monitor-page .dip-monitor-badge-rejected,
.dip-monitor-page .dip-status-breach {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.dip-monitor-page .dip-status-pill {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dip-monitor-page .dip-status-late,
.dip-monitor-page .dip-text-late {
    color: #d97706;
}

.dip-monitor-page .dip-status-late {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.dip-monitor-page .dip-monitor-badge-overdue {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.dip-monitor-page .dip-monitor-badge-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.dip-monitor-page .dip-monitor-badge-recovered {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.dip-monitor-page .dip-monitor-badge-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.dip-monitor-page .dip-monitor-badge-neutral {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.dip-monitor-page .dip-monitor-rejected-count {
    font-weight: 700;
    color: #dc2626;
    font-size: 0.875rem;
}

.dip-monitor-page .dip-priority-pill {
    display: inline-flex;
    min-width: 5.5rem;
    justify-content: center;
    padding: 0.25rem 0.6rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dip-monitor-page .dip-priority-critical {
    background: #fecaca;
    color: #991b1b;
}

.dip-monitor-page .dip-priority-high {
    background: #fde68a;
    color: #92400e;
}

.dip-monitor-page .dip-priority-standard {
    background: #bfdbfe;
    color: #1e40af;
}

.dip-monitor-page .dip-priority-low {
    background: #e5e7eb;
    color: #4b5563;
}

.dip-monitor-page .dip-monitor-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.dip-monitor-page .dip-monitor-empty .bi {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.dip-monitor-page .dip-monitor-empty-success {
    color: #198754;
}

.dip-monitor-page .dip-monitor-empty-success .bi {
    opacity: 1;
    color: #198754;
}

.dip-monitor-page .dip-monitor-footer {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: right;
}

.dip-home-page .dip-home-server-block + .dip-home-server-block {
    margin-top: 1.75rem;
}

.dip-home-page .dip-home-section-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
}

.dip-home-page .dip-home-legend {
    margin-top: 1.75rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: left;
}

.dip-home-page .dip-home-legend-item {
    display: flex;
    gap: 0.4rem;
    line-height: 1.35;
}

.dip-home-page .dip-home-legend-term {
    flex: 0 0 auto;
    font-weight: 600;
    color: #64748b;
}

.dip-home-page .dip-monitor-toolbar-left,
.dip-upload-page .dip-monitor-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dip-home-page .dip-monitor-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.dip-upload-page .dip-monitor-toolbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}


.dip-home-page .dip-home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    gap: 0.85rem;
}

.dip-home-page .dip-home-kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 6.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dip-home-page .dip-home-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.dip-home-page .dip-home-kpi-active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.dip-home-page .dip-home-kpi-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.dip-home-page .dip-home-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.dip-home-page .dip-home-kpi-hint {
    font-size: 0.75rem;
    color: #64748b;
}

.dip-home-page .dip-home-kpi-ok {
    border-color: #a7f3d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 55%);
}

.dip-home-page .dip-home-kpi-ok .dip-home-kpi-value {
    color: #047857;
}

.dip-home-page .dip-home-kpi-warning {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
}

.dip-home-page .dip-home-kpi-warning .dip-home-kpi-value {
    color: #b45309;
}

.dip-home-page .dip-home-kpi-critical {
    border-color: #fecaca;
    background: linear-gradient(180deg, #fef2f2 0%, #fff 55%);
}

.dip-home-page .dip-home-kpi-critical .dip-home-kpi-value {
    color: #b91c1c;
}

.dip-home-page .dip-home-kpi-error {
    border-color: #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}

.dip-home-page .dip-home-kpi-error .dip-home-kpi-value {
    color: #64748b;
}

.dip-home-page .dip-home-kpi-loading {
    border-color: #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
    cursor: wait;
    opacity: 0.85;
}

.dip-home-page .dip-home-kpi-loading .dip-home-kpi-value {
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 600;
}

.dip-home-page .dip-home-checking {
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
}

.dip-home-page .dip-home-detail {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1rem 1.1rem 1.1rem;
}

.dip-home-page .dip-home-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.dip-home-page .dip-home-detail-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1e293b;
}

.dip-home-page .dip-home-servers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.dip-home-page .dip-home-server-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
    padding: 1rem;
}

.dip-home-page .dip-home-server-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dip-home-page .dip-home-server-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.dip-home-page .dip-home-status {
    display: inline-flex;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dip-home-page .dip-home-status-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.dip-home-page .dip-home-status-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.dip-home-page .dip-home-status-critical {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.dip-home-page .dip-home-drive-pill {
    display: inline-flex;
    min-width: 4.5rem;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dip-home-page .dip-home-drive-ok {
    background: #d1fae5;
    color: #065f46;
}

.dip-home-page .dip-home-drive-warning {
    background: #fde68a;
    color: #92400e;
}

.dip-home-page .dip-home-drive-critical {
    background: #fecaca;
    color: #991b1b;
}

.dip-jobs-detail-page .dip-job-failure-cell {
    max-width: 28rem;
    vertical-align: top;
}

.dip-jobs-detail-page .dip-job-failure-preview {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.dip-jobs-detail-page .dip-job-failure-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dip-jobs-detail-page .dip-job-failure-expand {
    flex: 0 0 auto;
    padding: 0;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.dip-jobs-detail-page .dip-job-name-link {
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    text-align: left;
    white-space: normal;
}

.dip-jobs-detail-page .dip-job-name-link:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.dip-jobs-detail-page tr.dip-job-row-selected {
    background: #eef2ff !important;
}

.dip-job-failure-full {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    max-height: min(60vh, 28rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    background: #f8fafc;
    color: #1e293b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.8125rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    user-select: text;
    -webkit-user-select: text;
    cursor: text;
}

.dip-dataset-page .dip-monitor-table col.col-server { width: 8%; }
.dip-dataset-page .dip-monitor-table col.col-dataset { width: 16%; }
.dip-dataset-page .dip-monitor-table col.col-client { width: 11%; }
.dip-dataset-page .dip-monitor-table col.col-site { width: 9%; }
.dip-dataset-page .dip-monitor-table col.col-source { width: 9%; }
.dip-dataset-page .dip-monitor-table col.col-status { width: 16%; }
.dip-dataset-page .dip-monitor-table col.col-rejected { width: 7%; }
.dip-dataset-page .dip-monitor-table col.col-uplift { width: 11%; }
.dip-dataset-page .dip-monitor-table col.col-record { width: 11%; }
.dip-dataset-page .dip-monitor-table col.col-freq { width: 6%; }

.dip-files-overdue-page .dip-files-overdue-table {
    table-layout: fixed;
    width: max-content;
    max-width: none;
}

.dip-files-overdue-page .dip-files-overdue-table th {
    position: relative;
}

.dip-files-overdue-page .dip-files-overdue-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dip-files-overdue-page .dip-col-resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    user-select: none;
    touch-action: none;
    z-index: 2;
}

.dip-files-overdue-page .dip-col-resizer:hover,
.dip-files-overdue-page .dip-col-resizer:active {
    background: rgba(59, 130, 246, 0.35);
}

.dip-files-overdue-page .dip-monitor-td-right {
    text-align: right;
}

.dip-upload-page .dip-monitor-table col.col-server { width: 9%; }
.dip-upload-page .dip-monitor-table col.col-package { width: 15%; }
.dip-upload-page .dip-monitor-table col.col-step { width: 11%; }
.dip-upload-page .dip-monitor-table col.col-status { width: 7%; }
.dip-upload-page .dip-monitor-table col.col-error { width: 20%; }
.dip-upload-page .dip-monitor-table col.col-details { width: 27%; }
.dip-upload-page .dip-monitor-table col.col-created { width: 11%; }

/* Non-sortable header cells */
.dip-monitor-page .dip-monitor-table th.dip-monitor-th-static {
    cursor: default;
}

.dip-monitor-page .dip-monitor-table th.dip-monitor-th-static:hover {
    color: #64748b;
}

/* DIP Admin table (monitor style) */
.dip-admin-page.dip-monitor-page .dip-monitor-table col.col-actions { width: 110px; }
.dip-admin-page.dip-monitor-page .dip-monitor-table col.col-name { width: 20%; }
.dip-admin-page.dip-monitor-page .dip-monitor-table col.col-desc { width: auto; }
.dip-admin-page.dip-monitor-page .dip-monitor-table col.col-server { width: 14%; }
.dip-admin-page.dip-monitor-page .dip-monitor-table col.col-id { width: 18%; }

/* Rejected Records has dynamic columns and is not sortable */
.dip-rejected-page .dip-monitor-table {
    table-layout: auto;
}

.dip-rejected-page .dip-monitor-table th {
    cursor: default;
}

.dip-rejected-page .dip-monitor-table th:hover {
    color: #64748b;
}

/* DIP Client Detail tabs — reuse monitor table look without changing page padding */
.dip-client-page.dip-monitor-page {
    padding: 0;
}

.dip-client-page .dip-monitor-table th {
    cursor: default;
    white-space: normal;
}

.dip-client-page .dip-monitor-table th .bi {
    opacity: 0.6;
}

.dip-client-page .dip-monitor-table.dip-monitor-table-auto {
    table-layout: auto;
}

.dip-client-page .dip-monitor-table small {
    font-size: inherit;
}

.dip-client-page .dip-monitor-table .font-monospace {
    font-family: inherit;
}

.dip-client-page .dip-id-text,
.dip-client-page .dip-dv-id-text {
    font-size: inherit;
}

@media (max-width: 768px) {
    .dip-monitor-page {
        padding: 1rem;
    }

    .dip-monitor-page .dip-monitor-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dip-monitor-page .dip-monitor-search-row {
        justify-content: stretch;
    }

    .dip-monitor-page .dip-monitor-search {
        width: 100%;
    }

    .dip-monitor-page .dip-monitor-table {
        table-layout: auto;
    }
}

/* Hide DIP mutate actions for DIP View users */
.dip-readonly .dip-edit-only {
    display: none !important;
}

.dip-readonly table .form-check-input,
.dip-readonly table select,
.dip-readonly table .form-switch,
.dip-readonly table button.btn-outline-secondary,
.dip-readonly table button.btn-outline-success,
.dip-readonly table button.btn-outline-warning,
.dip-readonly table button.btn-success,
.dip-readonly table button.btn-secondary,
.dip-readonly table .dip-create-table-btn {
    pointer-events: none !important;
    opacity: 0.55;
}

/* Legacy aliases — remove once all pages migrated */
.dip-dataset-status-page { padding: 1.25rem 2rem 2rem; }

/* Rejected History */
.dip-rejected-history-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    margin: 0 0 1rem;
}

.dip-rejected-history-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.dip-rejected-history-last-checked {
    font-size: 0.8125rem;
    color: #64748b;
}

.dip-rejected-history-controls .dip-monitor-search {
    flex: 1 1 260px;
    max-width: 420px;
}

.dip-rejected-history-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.dip-rejected-history-table-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-width: 180px;
    max-width: 260px;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dbe2ea;
    border-radius: 0.4rem;
    background: #fff;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dip-rejected-history-table-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.dip-rejected-history-table-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb;
}

.dip-rejected-history-table-btn-meta {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
}

.dip-rejected-history-table-btn-name {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    word-break: break-word;
}

.dip-rejected-history-table-btn-count {
    margin-top: 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.dip-rejected-history-detail {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.dip-rejected-history-modal {
    width: min(1180px, 96vw);
    max-height: 90vh;
}

.dip-rejected-history-modal .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.dip-rejected-history-modal .modal-body {
    overflow: auto;
    flex: 1 1 auto;
}

.dip-rejected-history-modal-table {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}

.dip-rejected-history-grid {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.8125rem;
}

.dip-rejected-history-grid col.col-reason { width: 28%; }
.dip-rejected-history-grid col.col-records { width: 9%; }
.dip-rejected-history-grid col.col-days { width: 9%; }
.dip-rejected-history-grid col.col-min { width: 14%; }
.dip-rejected-history-grid col.col-max { width: 14%; }
.dip-rejected-history-grid col.col-freq { width: 26%; }

.dip-rejected-history-grid thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.dip-rejected-history-grid th {
    padding: 0.7rem 0.85rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    vertical-align: bottom;
}

.dip-rejected-history-grid th:hover {
    color: #1e293b;
}

.dip-rejected-history-grid th .bi {
    font-size: 0.625rem;
    margin-left: 0.3rem;
    opacity: 0.4;
}

.dip-rejected-history-grid th.dip-monitor-th-sorted {
    color: #1e293b;
}

.dip-rejected-history-grid th.dip-monitor-th-sorted .bi {
    opacity: 1;
}

.dip-rejected-history-grid th.dip-monitor-th-right,
.dip-rejected-history-grid td.dip-monitor-td-right {
    text-align: right;
}

.dip-rejected-history-grid td {
    padding: 0.65rem 0.85rem;
    border-top: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: top;
}

.dip-rejected-history-grid tbody tr:nth-child(even) {
    background: #f4f5f7;
}

.dip-rejected-history-grid tbody tr:hover {
    background: #eef2ff;
}

.dip-rejected-history-td-reason {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dip-rejected-history-grid .dip-monitor-td-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
}

.dip-rejected-history-grid .dip-monitor-td-number {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dip-rejected-history-td-freq {
    white-space: normal;
}

.dip-rejected-history-meta {
    font-size: 0.9rem;
}

.dip-freq-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid transparent;
}

.dip-freq-detail {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #64748b;
}

.dip-freq-daily,
.dip-freq-frequent {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.dip-freq-weekly,
.dip-freq-biweekly {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.dip-freq-monthly {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.dip-freq-rare,
.dip-freq-once {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.dip-freq-unknown {
    background: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}

.dip-rejected-history-note code {
    font-size: 0.8em;
}

@media (max-width: 768px) {
    .dip-rejected-history-table-btn {
        min-width: 100%;
        max-width: none;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .spinner-border,
    .card-loading::after,
    .toast {
        animation: none;
    }
    
    .toast {
        transition: none;
    }
}
