/* FlightDateTime - date + 24h time input with LT/UTC readout (see public/js/flight-datetime.js) */

.fdt {
    max-width: 36rem;
}

.fdt-col {
    margin-bottom: 0.25rem;
}

.fdt-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

/* 1rem avoids iOS zooming into the field on focus */
.fdt .form-control {
    font-size: 1rem;
}

/* Keep an empty iOS date input from collapsing and left-align its value */
.fdt-date {
    min-height: calc(2.25rem + 2px);
    -webkit-appearance: none;
    appearance: none;
}

.fdt-date::-webkit-date-and-time-value {
    text-align: left;
}

.fdt-time {
    min-width: 4.5rem;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

/* Prefixed with .fdt where Bootstrap would win: this file loads before AdminLTE (adminlte_css_pre). */
.fdt .fdt-step {
    min-width: 2.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Phones: no room for -/+ next to the time; typing on the numeric keypad is faster anyway */
@media (max-width: 575.98px) {
    .fdt .fdt-step-wrap {
        display: none;
    }

    .fdt .input-group.fdt-time-group > .form-control.fdt-time {
        border-radius: 0.25rem;
    }
}

/* Bootstrap's validation icon would collide with the date picker indicator / centred time */
.fdt .form-control.is-invalid {
    background-image: none;
    padding-right: 0.75rem;
}

.fdt-shortcuts {
    margin-top: 0.25rem;
}

.fdt-shortcuts .btn {
    margin: 0 0.25rem 0.25rem 0;
    min-height: 2rem;
}

.fdt .fdt-ambiguous,
.fdt .fdt-warning {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.fdt-ambiguous-choices .btn {
    margin: 0.5rem 0.5rem 0 0;
    font-variant-numeric: tabular-nums;
}

.fdt-readout {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f4f6f9;
    border-left: 3px solid #007bff;
    border-radius: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.fdt-is-invalid .fdt-readout {
    border-left-color: #dc3545;
}

.fdt-line {
    line-height: 1.7;
}

.fdt-line-primary {
    font-weight: 600;
}

.fdt-line-empty {
    color: #6c757d;
    font-style: italic;
}

.fdt .fdt-tag {
    display: inline-block;
    min-width: 2.6rem;
    margin-right: 0.25rem;
    font-size: 0.75rem;
    vertical-align: 0.1em;
}

.fdt-zone {
    margin-left: 0.25rem;
    font-weight: 400;
    color: #6c757d;
}

.fdt .fdt-dayshift {
    margin-left: 0.25rem;
    font-weight: 600;
}

.fdt-hint {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #6c757d;
}
