::selection {
    color: var(--tblr-primary-fg, #ffffff);
    background: var(--tblr-primary);
}
/* Tom Select Dropdown Styles */
.ts-wrapper.form-select {
    height: 40px;
}
.ts-wrapper {
    width: 100%;
}
.ts-wrapper.disabled {
    background-color: var(--tblr-bg-surface-secondary);
    opacity: 1;
}
/* keep search input beside selected item; only wrap when item text is long */
.ts-wrapper.single.has-items .ts-control > input {
    min-width: 2rem;
    flex-grow: 0;
}

/* DataTable Loading State */
.table-loading {
    opacity: 0.5;
    pointer-events: none;
}
.ts-dropdown {
    background: #ffffff;
}
.ts-dropdown [data-selectable] .highlight {
    background: var(--tblr-primary);
    color: #fefefe;
    border-radius: 1px;
}

/* Custom Styles */
.doc-label {
    height: 75px;
}

.body-gradient {
    min-height: 100vh;
    background: linear-gradient(160deg, #eef3f9 0%, #e4ecf5 50%, #eef4fa 100%) fixed;
}

.form-control:read-only,
.form-select:disabled {
    background-color: var(--tblr-gray-50);
    opacity: 1;
}

.hr,
hr {
    margin: 1rem 0;
}

.table-nowrap th,
.table-nowrap td {
    white-space: nowrap;
}

.table-nowrap-last th:last-child,
.table-nowrap-last td:last-child {
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 767.98px) {
    .navbar .container-xl {
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .navbar-brand {
        margin-right: auto;
    }
}

/* Task tracking — flat steps without left border/padding */
.steps.steps-flat {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-bottom: 0;
}

.steps-vertical .step-item:not(:first-child) {
    margin-top: 5px;
}

/* Sidebar collapsible cards */
#sidebar-accordion .card-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#sidebar-accordion .card-header .card-title {
    margin-bottom: 0;
    flex: 1;
}
#sidebar-accordion .chevron-icon {
    transition: transform 0.2s;
    flex-shrink: 0;
}
#sidebar-accordion .card-header.expanded .chevron-icon {
    transform: rotate(180deg);
}

#table-document-upload td:first-child {
    width: 45px;
}

#table-document-upload td:last-child {
    width: 75px;
}
