html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


/* Salvage board*/

/* Monday.com-inspired styling for Salvage Board */

/* Base styles and resets */
.salvage-board {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #323338;
    background-color: #f6f7fb;
    padding: 20px;
    border-radius: 8px;
}

    /* Header styling */
    .salvage-board h3 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 20px;
        color: #323338;
    }

    /* Button styling */
    .salvage-board .btn {
        border-radius: 4px;
        font-weight: 500;
        transition: all 0.2s ease;
        box-shadow: none;
        padding: 8px 16px;
    }

    .salvage-board .btn-primary {
        background-color: #0073ea;
        border-color: #0073ea;
    }

        .salvage-board .btn-primary:hover {
            background-color: #0060c0;
            border-color: #0060c0;
        }

    .salvage-board .btn-secondary {
        background-color: #ebedf5;
        border-color: #dce0ea;
        color: #323338;
    }

        .salvage-board .btn-secondary:hover {
            background-color: #dce0ea;
        }

    /* Table styling */
    .salvage-board .table {
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 8px;/* removing this: overflow: hidden; */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
        background: white;
    }

        .salvage-board .table th {
            background-color: #f5f6fa;
            font-weight: 600;
            color: #676879;
            padding: 12px 16px;
            border: none;
            text-transform: capitalize;
            font-size: 14px;
            position: relative;
        }

        .salvage-board .table td {
            padding: 12px 16px;
            border-top: 1px solid #ebedf5;
            border-right: none;
            border-left: none;
            vertical-align: middle;
        }

        /* Row change color on hover*/
         .data-row:hover td {
             background-color: #e8e9f67c;
             transition: background .25s;
         }

    /* Column type label */
    .salvage-board .column-type-label {
        font-size: 11px;
        color: #888;
        font-weight: normal;
        margin-left: 4px;
    }

    /* Row styling */
    .salvage-board .data-row {
        transition: background-color 0.2s;
    }

        .salvage-board .data-row:hover {
            background-color: #f9f9fb
        }

    /* Menu buttons */
    .salvage-board .menu-btn {
        background: none;
        border: none;
        color: #676879;
        font-size: 16px;
        cursor: pointer;
        padding: 4px 8px;
        border-radius: 4px;
    }

        .salvage-board .menu-btn:hover {
            background-color: #ebedf5;
        }

    /* Column menu */
    .salvage-board .column-menu {
        position: absolute;
        top: 100%;
        background: white;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10050;
        min-width: 150px;
        padding: 8px 0;
    }

        .salvage-board .column-menu .dropdown-item {
            padding: 8px 16px;
            cursor: pointer;
            transition: background-color 0.2s;
            display: block;
            width: 100%;
            text-align: left;
            border: none;
            background: none;
            font-size: 14px;
        }

            .salvage-board .column-menu .dropdown-item:hover {
                background-color: #f5f6fa;
            }

    /* NEW COLUMN MENU PORTAL OLD ONE DIDNT WORK AFTER ADDING STICKY COLUMN*/
.column-menu-portal {
    min-width: 160px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.16);
    padding: 8px 0;
    position: fixed;
    z-index: 99999;
}

    /* Row menu styling and action column*/
    .salvage-board .row-menu-cell {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        padding: 8px;
        text-align: center;
    }

    .salvage-board .row-menu-dropdown {
        position: absolute;
        background: white;
        border-radius: 4px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10050;
        min-width: 150px;
        padding: 8px 0;
    }

    .salvage-board .row-menu-dropdown .dropdown-item {
        padding: 8px 16px;
        cursor: pointer;
        transition: background-color 0.2s;
        display: block;
        width: 100%;
        text-align: left;
        border: none;
        background: none;
        font-size: 14px;
    }

        .salvage-board .row-menu-dropdown .dropdown-item:hover {
            background-color: #f5f6fa;
        }

    /* File upload styling */
    .salvage-board .file-cell {
        /*    position: relative;           */
    }

    /* trying to fix cell tooltip scroll issue here*/
    .salvage-board .file-cell, .salvage-board .table td {
        /*    position: relative;           */
        overflow: visible !important;
    }
    /*****/

    .salvage-board .file-cell-images {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .salvage-board .tiny-thumb {
        width: 32px;
        height: 32px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        transition: transform 0.2s;
    }

        .salvage-board .tiny-thumb:hover {
            transform: scale(1.1);
        }

    .salvage-board .thumb-container {
        position: relative;
    }

    .salvage-board .more-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 115, 234, 0.1);
        color: #0073ea;
        border-radius: 4px;
        padding: 4px 8px;
        font-size: 12px;
        cursor: pointer;
    }

    .salvage-board .upload-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background-color: #ebedf5;
        color: #676879;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 18px;
    }

        .salvage-board .upload-btn:hover {
            background-color: #dce0ea;
        }

/* Row inside table darken on Hover*/


    /* Document links */
    .salvage-board .doc-link {
        display: block;
        margin-bottom: 4px;
    }

        .salvage-board .doc-link a {
            display: inline-flex;
            align-items: center;
            color: #0073ea;
            text-decoration: none;
            font-size: 14px;
            gap: 8px;
            padding: 4px 0;
        }

        .salvage-board .doc-link i {
            font-size: 16px;
        }

    /* Modal styling */
    .salvage-board .modal-content {
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        border: none;
    }

    .salvage-board .modal-header {
        border-bottom: 1px solid #ebedf5;
        padding: 16px 24px;
    }

    .salvage-board .modal-body {
        padding: 24px;
    }

    .salvage-board .modal-footer {
        border-top: 1px solid #ebedf5;
        padding: 16px 24px;
    }

    .salvage-board .form-control,
    .salvage-board .form-select {
        border-radius: 4px;
        border: 1px solid #dce0ea;
        padding: 8px 12px;
        transition: border-color 0.2s;
    }

        .salvage-board .form-control:focus,
        .salvage-board .form-select:focus {
            border-color: #0073ea;
            box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.2);
        }

    /* Gallery modal */
    .salvage-board .gallery-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        display: flex;
        z-index: 1050;
        padding: 40px;
    }

    .salvage-board .main-image {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .salvage-board .main-image img {
            max-width: 80%;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 4px;
        }

    .salvage-board .sidebar-thumbs {
        width: 200px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-left: 20px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .salvage-board .gallery-thumb-container {
        position: relative;
    }

    .salvage-board .thumb {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 4px;
        cursor: pointer;
        transition: transform 0.2s;
    }

        .salvage-board .thumb:hover {
            transform: scale(1.05);
        }

    .salvage-board .delete-gallery-thumb {
        position: absolute;
        top: 4px;
        right: 4px;
        background: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0.7;
        transition: opacity 0.2s;
    }

        .salvage-board .delete-gallery-thumb:hover {
            opacity: 1;
        }

    .salvage-board .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: white;
        font-size: 32px;
        cursor: pointer;
    }

/* Additional Fixes */

/* Table container with horizontal scroll */
.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Prevent table from squeezing */
.salvage-board .table {
    width: 100%;
    min-width: 800px; /* Ensures table doesn't get too small */
    box-shadow: none; /* Remove shadow as container now has it */
    margin-bottom: 0;
}

    /* Fixed minimum width for all columns */
    .salvage-board .table th,
    .salvage-board .table td {
        min-width: 180px; /* min-width: 150px;  Minimum column width */
        max-width: 150px; /* Optional: maximum width */
    }

/* Text overflow handling for cells */
.salvage-board .table td:not(.file-cell) {
    white-space: pre-line;/* removing this: overflow: hidden; */
    text-overflow: ellipsis;
}

/* Ensure both header and cell have the same styling */
.salvage-board .table th.row-menu-cell,
.salvage-board .table td.row-menu-cell {
    width: 40px ;
    min-width: 40px;
    max-width: 40px;
    padding: 8px;
}

/* CELL TOOL TIP FOR SHOWING THE TEXT INSIDE THE CELL */
.input-tooltip-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-tooltip {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 120%; /* was bottom: 120%; */
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    max-width: 320px;
    width: 320px !important;
    max-height: 180px;
    overflow-y: auto !important;
    white-space: pre-line;
    background: #23272e;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 8px 16px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.17);
    font-size: 1rem;
    transition-delay: 0.5s;
}

    

    .tooltip-content {
        max-height: 150px !important;
        width: 280px !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        white-space: pre-line;
    }

.input-tooltip.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    overflow-y: auto !important;
}


tbody, thead, tr {
    overflow: visible !important;
}
.table-container {
    overflow: visible !important;
}

.salvage-board .table td {
    white-space: normal !important;
}


/* Scrollbar FIxes*/
/* Custom scrollbar with faster fade-out */
.table-container,
.table-scroll-container,
.sticky-table-container,
.salvage-board .table {
    /* Basic scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    /* For Webkit browsers (Chrome, Safari, newer Edge) */
    &::-webkit-scrollbar

{
    width: 8px;
    height: 8px;
}

&::-webkit-scrollbar-track {
    background: transparent;
}

&::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    /* This controls fade-out speed - reduce this value to fade faster */
    transition: opacity 0.15s ease-out;
}

/* Hide scrollbar when not hovering (faster fade-out) */
&:not(:hover)::-webkit-scrollbar-thumb {
    opacity: 0;
}

}

/* For Firefox - scrollbar fade control */
@supports (scrollbar-width: thin) {
    .table-container:not(:hover),
    .table-scroll-container:not(:hover),
    .sticky-table-container:not(:hover),
    .salvage-board .table:not(:hover) {
        scrollbar-width: none;
    }
}


/********* MODAL FOR LONG TEXT ******************/
.longtext-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(40, 40, 60, 0.42);
    z-index: 1040;
    backdrop-filter: blur(3px);
}

.longtext-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.longtext-modal-dialog {
    width: 100%;
    max-width: 700px;
    min-width: 340px;
}

.longtext-modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(40, 40, 80, 0.15);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeaea;
    min-height: 250px;
}

.longtext-modal-header, .longtext-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 26px;
    background: #eaeaea;
    border-bottom: 1px solid #eaeaea;
    border-radius: 0;
}

.longtext-modal-header {
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #eaeaea;
}

.longtext-modal-body {
    padding: 26px 26px 18px 26px;
    background: #fff;
    flex: 1 1 auto;
}

.longtext-modal-footer {
    border-top: 1px solid #eaeaea;
    border-radius: 0 0 16px 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #e50000;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    transition: color 0.18s;
}

.close-btn:hover {
    color: #222;
}

.modal-title {
}

/* FOR STATS TOP OF PAGE **********/
.dashboard-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    padding: 32px 24px 24px 24px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-inline: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #23272e;
}

.dashboard-filters {
    display: flex;
    gap: 12px;
}

.dashboard-select {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #e0e3ea;
    background: #f7f8fa;
    font-size: 1rem;
    color: #23272e;
    outline: none;
    transition: border-color 0.2s;
}

.dashboard-select:focus {
    border-color: #0073ea;
}

.dashboard-stats {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
}

.dashboard-card {
    background: #f7f8fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 24px 32px;
    min-width:180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-card-title {
    font-size: 1rem;
    color: #888;
    margin-bottom: 8px;
}

.dashboard-card-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #23272e;
}

/* FOR SCROLLABLE FIXED COLUMN*/
.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    max-width: 1800px; /* max widgth otherwise the table is super wide*/
}

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 3; /* keeps the column above others while scrolling*/
    background: #fff; /* match table bg?  */
    box-shadow: 2px 0 5px -2px #ccc; /* sublt shadow to separate sticky column*/
}

.second-sticky-col {
    position: sticky;
    left: 100px; /*adjust to match .row-menu-cell width*/
    z-index: 3;
    background: #f6f9ff;
    box-shadow: 2px 0 6px -2px #ccc;
}

.stick-col-1 {
    position: sticky;
    left: 0;
    z-index: 2;
}

.stick-col-2 {
    position: sticky;
    left: 40px;
    z-index: 2;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f9f9f9;
}



/************** TEST *******************/
.sticky-table-container {
    max-width: 900px;
    margin: 30px 0;
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(110, 125, 180, 0.09);
    background: #fafbfe;
    padding: 8px;
}

.sticky-table {
    width: 1400px;
    min-width: 1000px;
    border-collapse: separate;
    background: #fff;
}

    .sticky-table th, .sticky-table td {
        padding: 10px 16px;
        border: 1px solid #e5e9f3;
        background: #fff;
        white-space: nowrap;
    }

.sticky-col {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f6f9ff;
    box-shadow: 2px 0 8px -4px #cfd8e7;
}

.first-col {
    left: 0;
    z-index: 3;
    background: #eaf2fc;

    min-width: 40px !important;
}
.second-col {
    left: 40px; /* Adjust based on your first col's width */
    z-index: 4;
    background: #f6f9ff;
    min-width: 250px !important;
}

/* Header styles for stickiness */
.sticky-table th.sticky-col {
    z-index: 5;
}

.sticky-table th.first-col {
    z-index: 6;
}

.sticky-table th.second-col {
    z-index: 5;
}

/* Optional: highlight sticky col in row hover */
.sticky-table tr:hover td.sticky-col {
    background: #e2edff;
}


/* OVERRIDES FOR STICKY COL*/
.salvage-board .row-menu-cell,
.salvage-board .row-menu-cell.sticky-col,
.salvage-board .second-sticky-col {
    position: sticky !important;
}

    .salvage-board .row-menu-cell,
    .salvage-board .row-menu-cell.sticky-col {
        /*   left: 0 !important;   */
        z-index: 3 !important;
        background: #fff;
    }

.salvage-board .second-sticky-col {
    left: 40px !important; /* Must match your row-menu-cell width */
    z-index: 2 !important;
    background: #f6f9ff;
}

/* TABLE MENU - WHAT IS ABOVE THE TABLE*/
.table-menu {
    display: flex;
    gap: 20px;
}

.completed-table-controls {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/***********LOGIN *****************/
.login-bg {
    min-height: 80vh;
    background: radial-gradient(circle at 60% 40%, #4590d6 0%, #22436c 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.login-header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #fff;
    padding: 14px 0 14px 32px;
    min-height: 65px;
    margin-bottom: 30px;
}

.login-logo {
    height: 42px;
}

.login-card {
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 40px 0 rgba(80,100,150,0.10);
    border-bottom: 6px solid #de2226;
    max-width: 450px;
    width: 100%;
    padding: 34px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight:400;
    margin-bottom: 0;
    color: #283445;
}

.login-divider {
    width: 100%;
    margin: 18px 0 28px 0;
    border: none;
    border-top: 1px solid #ececec;
}

.input-group {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #337;
    font-size: 1.2rem;
    z-index: 2;
}

.input-group .form-control {
    width: 100%;
    padding: 10px 12px 10px 38px;
    font-size: 1.1em;
    border: none;
    border-bottom: 1.5px solid #bbb;
    background: transparent;
    color: #444;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.2s;
}

    .input-group .form-control:focus {
        border-color: #1760e3;
        outline: none;
        background: #f5faff;
    }

.login-forgot {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.05em;
}

    .login-forgot a {
        color: #175fbf;
        text-decoration: none;
    }

        .login-forgot a:hover {
            text-decoration: underline;
        }

.login-btn {
    width: 100%;
    background: #22436c;
    color: #fff;
    font-size: 1.18em;
    padding: 12px 0;
    border: none;
    border-radius: 7px;
    font-weight: 500;
    margin-top: 12px;
    box-shadow: 0 3px 12px rgba(35,60,110,0.06);
    transition: background 0.2s;
}

    .login-btn:hover {
        background: #175fbf;
    }

.login-error {
    color: #b21b1b;
    text-align: center;
    margin-top: 16px;
    font-size: 1.04em;
}


/* IMPROVEMENT TO DOCUMENT UPLOADS, NAMES WERE TOO LONG. SHORTENING THEM*/
.doc-filename {
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}



.more-docs-badge {
    display: inline-flex;
    align-items: center;
    background: #ebedf5;
    color: #1b6ec2;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.97em;
    cursor: pointer;
    font-weight: 500;
    border: 1px solid #dde3ee;
    margin-right: 30px;
    /*margin-left: 4px; */
}

.modal-backdrop.fade.show {
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
}

/*NAV BAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background-color: white;
    color: #000;
    border-bottom: 1px solid #e0e0e0;
    height: 60px
}

.logo {
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    padding: 10px;
    transition: transform 0.3s ease;
}

    .hamburger-icon span {
        width: 30px;
        height: 3px;
        background-color: #000000;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    /* animation for open state*/
    .hamburger-icon.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-icon.open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-icon.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .menu-links {
        display: none;
        list-style-type: none;
        padding: 0;
        margin: 0;
        flex-direction: column;
        gap: 15px;
        text-align: center;
        background-color: white;
        position: absolute;
        top: 100px;
        left: 0;
        right: 0;
        padding: 20px;
    }

    .menu-links li a {
        color: #000;
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.2s ease;
    }

        .menu-links li a:hover {
            color: rgb(85, 85, 85);
        }

    .menu-links.open {
        display: flex;
    }

/* Delete button from Document modal */
.delete-doc-btn {
    background: none;
    border: none;
    color: #c44;
    cursor: pointer;
    font-size: 1.15em;
    margin-left: 10px;
    transition: color 0.15s;
    border-radius: 20%;
    padding: 3px;
}
    .delete-doc-btn:hover {
        color: #fff;
        background: #d32f2f;
    }

.delete-doc-btn-inline {
    opacity: 0;
    margin-left: 3px;
    font-size: 1em;
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    transition: opacity 0.14s;
    padding: 0 2px;
    border-radius: 20%;
}

.doc-link:hover .delete-doc-btn-inline, delete-doc-btn-incline:focus {
    opacity: 1;
}


/* TOAST NOTIFICATION */
.toast-container {
    pointer-events: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;

}

.toast {
    pointer-events: auto;
    min-width: 210px;
    margin-bottom: 12px;
    padding: 12px 20px 12px 16px;
    border-radius: 7px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.13);
    font-weight: 500;
    color: #fff;
    background: #323949;
    position: relative;
    animation: toast-in 0.23s cubic-bezier(.23,1.03,.53,1.1);
    display: block !important;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.success {
    background: #209944;
}

.toast.error {
    background: #d32f2f;
}

.toast.warning {
    background: #ffaa1b;
    color: #231;
}

.toast.info {
    background: #1976d2;
}

.close-toast {
    pointer-events: auto;
    position: absolute;
    top: 7px;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 19px;
    cursor: pointer;
    opacity: 0.6;
}

    .close-toast:hover {
        opacity: 1;
    }


/* HOME PAGE ****************************/
.hero {
    display: flex;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    background-color: #f0f6ff;
    align-items: center;
    justify-content:space-between;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0a2540;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.btn {
    background-color: #0056d2;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    background-color: #1315df;
    color: white;
}

.hero-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    background-color: #323338;
    align-items: center;
    justify-content: center;
}

.footer-text {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
    text-align: center;
}

    .footer-text p {
        font-size: .8rem;
        color: #fff;
        text-align: center;
    }

.salvage-card-list {
    display: none !important;
}





/* responsive style */
@media (min-width: 768px) {
    .hamburger-icon {
        display: none;
    }

    .menu-links {
        display: flex;
        flex-direction: row;
        gap: 20px;
        position: static;
        padding: 0;
    }

        .menu-links li a {
            font-size: 1rem;
        }
}


/*FOR MOBILE USE***************/
@media (max-width: 900px) {
    .dashboard-section,
    .salvage-board {
        padding: 8px !important;
        margin-bottom: 18px !important;
        max-width: 100vw !important;
    }
        .salvage-board .table {
            min-width: 308px !important;
            font-size: 0.97em;
        }   

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .dashboard-filters {
        flex-direction: column;
        width: 100%;
    }

    .dashboard-stats {
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .dashboard-card {
        width: 100% !important;
        min-width: 0;
        padding: 18px 10px;
        align-items: flex-start;
        font-size: 1.05em;
    }
    /*

        .dashboard-section,
    .salvage-board {
        padding: 8px !important;
        margin-bottom: 18px !important;
        max-width: 100vw !important;
    }



        .table-scroll-container, .table-container {
        max-width: 100vw !important;
        padding: 0;
        box-shadow: none;
    }

        .salvage-board .table {
        min-width: 600px !important; /* allow horizontal scroll on mobile 
    font-size: 0.97em;
}   
        .salvage-board .table th, .salvage-board .table td {
            padding: 7px 6px !important;
            min-width: 100px !important;
            font-size: 0.98em !important;
            max-width: 180px !important;
        }

            .salvage-board .table th.row-menu-cell,
            .salvage-board .table td.row-menu-cell {
                min-width: 32px !important;
                max-width: 32px !important;
                padding: 4px !important;
            }

    */
            /* Stack modal dialogs for mobile */
            .modal-dialog, .longtext-modal-dialog {
        max-width: 98vw !important;
        min-width: 0 !important;
        width: 98vw !important;
    }

    .modal-content,
    .longtext-modal-content {
        padding: 0 !important;
        border-radius: 12px !important;
        min-height: 120px !important;
    }

    .longtext-modal-header,
    .longtext-modal-footer {
        padding: 10px 12px !important;
        font-size: 1em !important;
    }

    .longtext-modal-body {
        padding: 12px 8px 10px 8px !important;
        font-size: 0.98em !important;
    }

    /* File/Doc names, make ellipsis stricter */
    .doc-filename {
        max-width: 65px !important;
        font-size: 0.96em;
    }

    /* Gallery Modal tweaks */
    .gallery-modal {
        flex-direction: column;
        padding: 8px !important;
    }

    .main-image img {
        max-width: 97vw !important;
        max-height: 38vh !important;
    }

    .sidebar-thumbs {
        width: 98vw !important;
        padding: 8px !important;
        margin: 8px 0 0 0 !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px;
        background: none !important;
    }

    .thumb {
        height: 72px !important;
        min-width: 70px !important;
    }

    /* Hamburger/menu always visible at top */
    .navbar {
        padding: 2px 6px !important;
        min-height: 44px;
    }

    .login-logo {
        height: 32px !important;
    }

    .completed-table-controls {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /*Card shell*/
    .salvage-card {
        background: #fff;
        border: 1px solid #e7ebef;
        border-radius: 14px;
        box-shadow: 0 2px 6px rgba(0,0,0,.06); /* box-shadow: 0 2px 8px rgba(16,24,40,.06);*/
        margin: 0 8px 20px;
    }

    /*header*/



    .sc-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .sc-title {
        font-weight: 700;
        font-size: 18px;
        color: #0f172a;
        min-width: 0; /* allow flex shrink */
    }


    /*status pill*/
    .sc-badge {
        font-size: 12px;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 999px;
        line-height: 1;
        border: 1px solid transparent;
    }

    .sc-badge--new {
        background: #e8f1ff;
        color: #2b6cb0;
        border-color: #cfe2ff;
    }

    .sc-badge--progress {
        background: #fff6db;
        color: #9a6d00;
        border-color: #fde9a8;
    }

    .sc-badge--completed {
        background: #e7f7ec;
        color: #127c3f;
        border-color: #c8efda;
    }

    /* Body rows */
    .sc-body {
        margin-top: 2px;
    }

    .sc-line {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 6px 0;
        color: #0f172a;
    }

    .sc-subtle {
        color: #475569;
    }

    .sc-link {
        color: #2563eb;
        text-decoration: none;
    }

        .sc-link:active, .sc-link:hover {
            text-decoration: underline;
        }
    /* Icons */
    .sc-ico {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    /* Photos/Notes row */
    .sc-meta {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 10px 0;
        border-top: 1px solid #eef2f7;
        border-bottom: 1px solid #eef2f7;
        margin: 8px 0;
    }

    .sc-meta-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #334155;
        font-weight: 500;
    }

    .sc-meta-spacer {
        flex: 1 1 auto;
    }

    .sc-chevron {
        border: none;
        background: transparent;
        padding: 6px;
        border-radius: 8px;
    }

        .sc-chevron svg {
            width: 20px;
            height: 20px;
            fill: #64748b;
        }

    /* Completed banner */
    .sc-complete-banner {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #e7f7ec;
        color: #127c3f;
        border: 1px solid #c8efda;
        border-radius: 10px;
        padding: 10px 12px;
        font-weight: 600;
    }

    /* Action buttons */
    .sc-actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 8px;
    }

    .sc-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        border: none;
        border-radius: 10px;
        padding: 10px 14px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 1px 3px rgba(16,24,40,.08);
    }

        .sc-btn svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }

    .sc-btn--amber {
        background: #fff3c6;
        color: #8a6a00;
    }

        .sc-btn--amber:hover {
            filter: brightness(.98);
        }

    .sc-btn--green {
        background: #d7f5de;
        color: #0f7a3b;
    }

        .sc-btn--green:hover {
            filter: brightness(.98);
        }


    /* Tiny link buttons row */
    .sc-quick {
        margin-top: 6px;
        display: flex;
        gap: 14px;
    }

    .sc-linkbtn {
        background: none;
        border: none;
        padding: 0;
        color: #475569;
        text-decoration: underline;
        font-size: 13px;
    }




        .salvage-table {
            display: none !important;
        }

        .salvage-card-list {
            display: block !important;
            background-color: #f3f4f6;
            height: 60vh;
            
        }

        .hide-on-mobile {
            display: none !important;
        }

        .table-header-desktop {
            display: none !important;
        }








}

@media (max-width: 375px) {

    /*

        .salvage-board .table th, .salvage-board .table td {
        min-width: 80px !important;
        max-width: 100px !important;
        font-size: 0.91em !important;
        padding: 4px 3px !important;
    }



    */

    .dashboard-title {
        font-size: 1.13rem !important;
    }

    .dashboard-card-value {
        font-size: 1.38rem !important;
    }

    .login-card {
        padding: 16px 4px 16px 4px !important;
        font-size: 0.98em !important;
        min-width: 0 !important;
    }


}

