.menu li{
    cursor: pointer;
}

.is-dropdown-submenu {
    z-index: 999;
}

table {
    font-size: 12px;
    /* table-layout: fixed; */
}

.grid-container {
    max-width: 90%;
}

div#selector_dropdown {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 0 5px #929292;
    border-radius: 5px;
    padding: 1rem;
    z-index: 999;
}

ul#column_selector {
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

#column_selector li {
    list-style: none;
}

.dataTable{
    position: relative;
}

.dataTable thead th {
    position: sticky;
    top: 0;
}

.dataTable textarea {
    border: 1px solid transparent;
    background: none;
    font-size: inherit;
    box-shadow: none;
    outline: none;
    min-width: 120px;
    padding: 5px;
    margin: 0;
    resize: none;
}

.editResponse{
    color: rgb(56, 172, 239);
    cursor: pointer;
}

.dataTable tr.editable td textarea, .dataTable tr.editable td input[type="text"] {
    border: 1px solid #9f9f9f;
    border-radius: 5px;

}

.ui-sortable-handle {
    cursor: move;
}

.sortable-placeholder {
    background: #f0f0f0;
    border: 1px dashed #999;
    width: auto;
    height: 100%;
}

.response_row.has_override:nth-child(odd) td{
    background-color: rgba(254, 253, 193, 1);
}

.response_row.has_override:nth-child(even) td{
    background-color: rgba(246, 245, 185, 1);
}

.response_row.is_reconciled:nth-child(odd) td{
    background-color: rgba(191, 247, 206, 1) !important;
}

.response_row.is_reconciled:nth-child(even) td{
    background-color: rgba(200, 255, 214, 1) !important;
}

.toggle-flex {
    display: flex;
    align-items: center;
}

.js_sort_toggle span.material-symbols-outlined {
    cursor: pointer;
}

.float-form {
    float: right;
    margin: -24px 0 0;
}

.table-container {
    overflow-x: auto;
    width: 100%;
    position: relative;
}
thead th, tbody td{
    box-sizing: border-box;
}


td[class*="sticky-"] {
    position: sticky;
    z-index: 3;
    box-sizing: border-box;
}

th[class*="sticky-"] {
    position: sticky;
    z-index: 4;
    box-sizing:border-box;
}

/* optional: keep sticky headers above other rows */
thead th[class*="sticky-"] {
    z-index: 5;
}

/* your existing zebra stripe styles can remain */
tbody tr:nth-child(even) td, thead tr th {
    border-bottom: 0;
    background-color: rgb(241.3, 241.3, 241.3);
}

tbody tr:nth-child(odd) td {
    border-bottom: 0;
    background-color: #ffffff;
}

/* Keith */
/* .row-diff {
    background-color: #FF9E99 !important;
}

.has_differences > * {
    background-color: #FF9E99!important;
}

.has_differences:nth-child(odd) > * {
    background-color: #FFB9B5 !important;
} */

/* Tom */
.row-diff {
    background-color: rgb(250 136 136) !important;
}

.has_differences > * {
    background-color: rgb(250 136 136) !important;
}

.has_differences:nth-child(odd) > * {
    background-color: rgb(255 112 112) !important;
}

.filter-row .grid-x {
    align-items: anchor-center;
}

/*
Login CSS
*/


/* 
CSV Uploader
*/
.csv-page {
    max-width: 1320px;
    padding: 1.6rem 1.9rem;
}

.csv-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
    padding: 1.7rem 1.8rem 2.2rem;
    min-height: 540px;
    margin: 1.55rem 1.9rem;
}

.csv-card h1 {
    margin: 0 0 0.65rem;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #1f1f1f;
}

.csv-description {
    max-width: 760px;
    margin: 0 0 1.7rem;
    font-size: 12px;
    line-height: 1.5;
    color: #6d6d6d;
}

.csv-form {
    margin-top: 0;
}

.csv-fields {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    max-width: 760px;
}

.csv-field {
    min-width: 260px;
}

.csv-field-type {
    flex: 0 0 260px;
}

.csv-field-file {
    flex: 0 0 220px;
}

.csv-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 11px;
    font-weight: 500;
    color: #5d5d5d;
}

.csv-input-wrap,
.csv-file-wrap {
    height: 38px;
    border: 1px solid #dfdfdf;
    border-radius: 6px;
    background: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.csv-input-wrap .material-symbols-outlined,
.csv-file-wrap .material-symbols-outlined {
    font-size: 16px;
    color: #1b7f46;
    margin-left: 11px;
    margin-right: 8px;
    flex: 0 0 auto;
}

.csv-input-wrap select {
    border: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    padding: 0 34px 0 0;
    font-size: 12px;
    color: #444;
    box-shadow: none;
    margin: 0;
}

.csv-input-wrap select:focus {
    outline: none;
    box-shadow: none;
}

.csv-file-wrap {
    position: relative;
    padding-right: 8px;
}

.csv-file-wrap input[type="file"] {
    width: 100%;
    font-size: 11px;
    color: #666;
    border: 0;
    background: transparent;
    padding: 6px 0;
    margin: 0;
    box-shadow: none;
}

.csv-file-wrap input[type="file"]::-webkit-file-upload-button {
    border: 0;
    background: #1b7f46;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.csv-file-wrap input[type="file"]::file-selector-button {
    border: 0;
    background: #1b7f46;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
}

.csv-import-btn {
    margin-top: 14px;
    min-width: 74px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: #1b7f46;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.csv-import-btn:hover {
    background: #16673a;
}

@media (max-width: 900px) {
    .csv-page {
        padding: 1rem;
    }

    .csv-card {
        min-height: 0;
        padding: 1.2rem;
    }

    .csv-fields {
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }

    .csv-field-type,
    .csv-field-file {
        flex: 1 1 auto;
    }
}

/* 
User Management and User Form
*/
.users-page {
    max-width: 1320px;
    padding: 1.55rem 1.9rem;
}

.users-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.025);
    padding: 0.95rem 1rem 1.3rem;
    min-height: 540px;
}

.users-card h3 {
    margin: 0 0 0.85rem;
    font-size: 16px;
    font-weight: 700;
    color: #202020;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}

.users-table thead th {
    text-align: left;
    padding: 11px 14px;
    background: #f6f6f6;
    color: #5e5e5e;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid #ececec;
}

.users-table tbody td {
    padding: 12px 14px;
    color: #4d4d4d;
    font-size: 12px;
    border-bottom: 1px solid #efefef;
    background: #ffffff !important;
}

.users-table tbody tr:hover td {
    background: #fbfbfb !important;
}

.actions-col {
    width: 220px;
    white-space: nowrap;
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    margin-right: 8px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.action-pill .material-symbols-outlined {
    font-size: 12px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.action-pill:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.edit-pill {
    background: #edf8ef;
    color: #79bf8f;
}

.delete-pill {
    background: #fdeef1;
    color: #e29aaa;
}

.add-user-btn {
    margin-top: 18px;
    border-radius: 4px;
    background: #1b7f46 !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 600;
    padding: 0.78rem 1rem;
    min-width: 108px;
    box-shadow: none;
    border: 0;
}

/* Modal */
.user-modal-form {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 0;
}

.user-modal-form h3 {
    margin: 0 0 26px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.2;
}

.user-modal-close {
    position: absolute;
    top: -18px;
    right: -12px;
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: #1b7f46;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-modal-close .material-symbols-outlined {
    font-size: 24px;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.user-form-field {
    margin-bottom: 14px;
}

.user-input-wrap {
    position: relative;
    height: 46px;
    border: 1px solid #e4e4e4;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.user-input-icon {
    font-size: 15px !important;
    color: #1b7f46;
    margin-left: 12px;
    margin-right: 10px;
    flex: 0 0 auto;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.user-input-wrap input,
.user-input-wrap select {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    padding: 0 12px 0 0;
    font-size: 12px;
    color: #666666;
    box-shadow: none;
    margin: 0;
}

.user-input-wrap input::placeholder {
    color: #9a9a9a;
}

.user-input-wrap input:focus,
.user-input-wrap select:focus {
    outline: none;
    box-shadow: none;
}

.user-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 34px;
    color: #666666;
}

.user-select-chevron {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px !important;
    color: #1b7f46;
    pointer-events: none;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.user-form-actions {
    text-align: center;
    margin-top: 22px;
}

.save-user-btn {
    min-width: 92px;
    height: 38px;
    border: 0;
    border-radius: 4px;
    background: #1b7f46;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.save-user-btn:hover {
    background: #176d3c;
}

/* Dashboard */
.dashboard-page {
    max-width: 1320px;
    padding: 1.55rem 1.9rem;
}

.dashboard-shell {
    background: transparent;
}

.simple-tabs {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1rem;
    padding-bottom: 0.35rem;
}

.simple-tabs .dashboard-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0 0 0.7rem;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #5d5d5d;
    cursor: pointer;
    position: relative;
}

.simple-tabs .dashboard-tab.active {
    color: #1b7f46;
    font-weight: 600;
}

.simple-tabs .dashboard-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #1b7f46;
    border-radius: 2px;
}

.reports-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.035);
    padding: 1rem 1rem 1.1rem;
    min-height: 540px;
}

.reports-card h3 {
    margin: 0 0 0.9rem;
    font-size: 16px;
    font-weight: 700;
    color: #202020;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}

.reports-table thead th {
    text-align: left;
    padding: 11px 14px;
    background: #f6f6f6;
    color: #5e5e5e;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid #ececec;
}

.reports-table thead th:last-child {
    width: 120px;
}

.reports-table tbody td {
    padding: 10px 14px;
    color: #4d4d4d;
    font-size: 12px;
    border-bottom: 1px solid #efefef;
    background: #ffffff !important;
}

.reports-table tbody tr:hover td {
    background: #fbfbfb !important;
}

.report-action {
    text-align: right;
    white-space: nowrap;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf8ef;
    color: #79bf8f;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.view-btn .material-symbols-outlined {
    font-size: 12px;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}

.view-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
    background: #edf8ef;
    color: #79bf8f;
}

.dashboard-page .reports-table thead th,
.dashboard-page .reports-table tbody tr:nth-child(even) td,
.dashboard-page .reports-table tbody tr:nth-child(odd) td {
    background-color: unset;
}

.dashboard-page .reports-table thead th {
    background: #f6f6f6;
}