/* Prevent scrollbar overlap with buttons in the unfinished tests list */
.scan-tests-card .overflow-auto {
    padding-right: 12px;
}
.btn-primary {
    background-color: #ff5e00;
    border-color: #ff5e00;
}

.btn-primary:hover {
    background-color: #e54d00;
    border-color: #e54d00;
}

.btn-outline-primary {
    color: #ff5e00;
    border-color: #ff5e00;
}

.btn-outline-primary:hover {
    background-color: #ff5e00;
    border-color: #ff5e00;
    color: white;
}

.text-primary {
    color: #ff5e00 !important;
}


.actions-column {
  width: 150px;
}

#status-title {
    padding: 30px;
}

.page-update-status ul.steps {
    margin-left: 0 !important;
    padding-left: 0 !important;
    border-left: none !important;
}

/* Stepper status line: active connector is 50% when in progress, 100% when completed */
.page-update-status .status-stepper-wrapper.status-stepper-in-progress .step-item.active:after {
    background: linear-gradient(to right, var(--tblr-steps-color) 50%, var(--tblr-steps-inactive-color) 50%) !important;
}

.page-update-status .status-stepper-wrapper.status-stepper-completed .step-item.active:after {
    background: var(--tblr-steps-color) !important;
}

/* Stepper step name: responsive wrap and prevent overflow */
.status-stepper-wrapper .fs-2.fw-bold {
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    display: inline-block;
}

.home-scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-scan-icon {
    width: 84px;
    height: 84px;
    color: #ff5e00;
    margin-bottom: 1rem;
}

.home-scan h1 {
    max-width: 760px;
    font-size: 2rem;
}

#user-header-title {
    position: absolute;
    left: 50%;
    top: 24px; 
    transform: translateX(-50%);
    margin: 0 !important;
    z-index: 1;
    padding: 10px;
    font-size: xx-large;
}

@media (min-width: 992px) {
    .scan-columns-separator {
        position: relative;
    }

    .scan-columns-separator::after {
        content: "";
        position: absolute;
        top: 1.3rem;
        bottom: 0rem;
        left: 50%;
        width: 3px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: #ff7a00;
        pointer-events: none;
    }
}

/* Keep the same 5.5rem spacing between the columns and the page edges. */
.scan-columns-separator,
.scan-columns-container {
    --tblr-gutter-x: 5.5rem;
}

.scan-tests-card {
    height: clamp(28rem, calc(100vh - 190px), 56rem);
}

@media (max-width: 991.98px) {
    .scan-tests-card {
        height: auto;
        max-height: none;
    }
}

@media (min-width: 992px) {
    :root {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Match Select2 multi-select style with native form controls. */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    min-height: calc(1.5em + 0.75rem + 2px);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Coloris picker overrides for modal usage. */
.clr-picker {
    z-index: 20000 !important;
}

.clr-picker,
.clr-picker * {
    pointer-events: auto;
}

.clr-field button {
    width: 1.5rem;
    height: 1.5rem;
}

input.form-control[data-coloris][readonly] {
    cursor: pointer;
    caret-color: transparent;
    user-select: none;
    background-color: var(--tblr-bg-surface);
}

.btn-gray {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #000000;
    border-color: #000000;
}


#mechanical-tests-table tbody td.dt-empty {
    text-align: center !important;
}

