/* Site-wide styles layered on top of the Falcon theme. */

/* Keep per-column search controls usable inside DataTables headers. */
th .form-control,
th .form-select {
    min-height: 32px;
}

/* Hide the validation summary container while there are no errors. */
.validation-summary-valid {
    display: none;
}

/* Comments and work notes keep the line breaks their author typed. */
.task-note-body {
    white-space: pre-wrap;
}

/* My Work cards: let long titles wrap instead of pushing the card wider than a phone screen. */
.my-work-task-main {
    min-width: 0;
}

/* Status select and Notes button share one row on a phone without overflowing it. */
.my-work-status-select {
    min-width: 0;
    max-width: 14rem;
}

/* On a phone the status select gets a full row, so the whole status name stays readable, and the
   Log time and Notes buttons share the row below it. Matches Bootstrap's "sm" breakpoint. */
@media (max-width: 575.98px) {
    .my-work-task-actions .my-work-status-select {
        flex: 1 1 100%;
        max-width: none;
    }

    .my-work-task-actions .btn {
        flex: 1 1 0;
    }
}


.select2-selection__rendered {
    line-height: calc(1.5em + .65rem - 3px) !important;
}

.select2-container .select2-selection--single {
    height: calc(1.5em + .65rem + 2px) !important;
}

.select2-selection__arrow {
    height: calc(1.5em + .65rem + 1px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    float: left;
    padding-right: 0.3rem;
}

.select2-container {
    width: 100% !important;
}

