/* Self-hosted Inter — eliminates FOUT from async Google Fonts loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/inter-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('../fonts/inter-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('../fonts/inter-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('../fonts/manrope-500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url('../fonts/manrope-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('../fonts/manrope-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600;
    font-display: block;
    src: url('../fonts/manrope-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/manrope-700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url('../fonts/manrope-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --chrono-blue: #344255;
    --chrono-blue-hover: #2a3646;

    --chrono-accent: #3B5C85;
    --chrono-accent-hover: #324e72;

    --chrono-green: #4f6b5a;
    --chrono-green-hover: #445b4d;

    --chrono-red: #7a4a4a;
    --chrono-red-hover: #693f3f;

    /* Neutral/secondary buttons (Close, clear-field, log out) -- AVIO-105 */
    --chrono-neutral: #5b6472;
    --chrono-neutral-hover: #454c57;

    --chrono-text-heading: #2d3746;
}

.htmx-indicator {
  display: none !important;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block !important;
}

.modal-header {
    padding: 1.4rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modal-body {
    padding: 1.4rem 1.5rem;
}

/* Bootstrap forces full viewport height on modal-dialog-scrollable and modal-fullscreen-sm-down,
   causing empty space below short forms and unnecessary scroll containers. Override both cases
   to size-to-content while still capping at viewport height so the body scrolls only when
   content actually overflows. */
@media (min-width: 576px) {
    .modal-dialog-scrollable {
        height: auto;
    }

    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem);
        max-height: calc(100dvh - 3.5rem);
    }
}

@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down .modal-content {
        height: auto;
        max-height: 100%;
    }
}

.modal-title,
h2.modal-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    color: #3B5C85 !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.page-title,
h2.page-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    color: #3B5C85 !important;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
}

.form-check-input:checked {
    background-color: var(--chrono-accent);
    border-color: var(--chrono-accent);
}

.form-check-input:focus {
    border-color: rgba(59, 92, 133, 0.4);
    box-shadow: 0 0 0 0.18rem rgba(59, 92, 133, 0.16);
}

/* Every real button in the app renders through Bootstrap's base .btn class
   (confirmed by audit, AVIO-105), so this alone gets Inter + the ticket's
   hover convention onto every one of them, including plain Bootstrap
   defaults (.btn-primary, .btn-secondary, .btn-outline-*) that nothing below
   explicitly restyles.

   Space Grotesk was tried here first and reverted: on short, solid-color
   button labels ("Danas", "Prijava") its variable-weight rendering showed
   extra spur-like artifacts on some letterforms (e.g. "D") that didn't
   appear on longer labels -- confirmed with document.fonts still loaded
   correctly, so it was the glyph rendering itself, not a loading issue.
   Letter-spacing raised from 0.04em (Space Grotesk's own value, barely
   perceptible sub-pixel on Inter at these sizes) to 0.06em -- 0.08em read
   fine on the login button alone but too wide on shorter/smaller labels
   elsewhere (e.g. "Danas"). */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.btn-app-primary,
.btn-chrono-primary {
    background-color: var(--chrono-blue);
    border-color: var(--chrono-blue);
    color: #fff;
}

/* Bigger label, ordinary .btn padding/radius -- .btn-lg scales those up too,
   which read as too heavy here (AVIO-105 follow-up). Height/flex-centering
   instead of padding math: 48px matches .form-control-lg's own height
   (8px padding + 30px line-height + 1px border each side) exactly, so the
   button lines up with the username/password fields above it. */
#loginSubmitBtn {
    font-size: 18px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-app-primary:hover,
.btn-app-primary:focus,
.btn-chrono-primary:hover,
.btn-chrono-primary:focus {
    background-color: var(--chrono-blue-hover);
    border-color: var(--chrono-blue-hover);
    color: #fff;
}

.btn-app-outline,
.btn-chrono-outline {
    color: var(--chrono-blue);
    border-color: rgba(47, 58, 74, 0.45);
    background-color: transparent;

    font-weight: 500;
}

.btn-app-outline:hover,
.btn-app-outline:focus,
.btn-chrono-outline:hover,
.btn-chrono-outline:focus {
    /* Darken in place, don't invert to a solid fill (AVIO-105): a white/
       outline button stays white and just tints slightly, the same way a
       solid button goes to its own -hover shade instead of turning white. */
    color: var(--chrono-blue-hover);
    background-color: rgba(52, 66, 85, 0.06);
    border-color: var(--chrono-blue-hover);
}

.btn-app-edit,
.btn-chrono-edit {
    background-color: transparent;
    border-color: rgba(52, 66, 85, 0.45);
    color: var(--chrono-accent);
}

.btn-app-edit:hover,
.btn-app-edit:focus,
.btn-chrono-edit:hover {
    /* Darken in place, not invert -- see .btn-chrono-outline above (AVIO-105). */
    color: var(--chrono-accent-hover);
    background-color: rgba(59, 92, 133, 0.06);
    border-color: var(--chrono-accent-hover);
}

.btn-chrono-process {
    background-color: var(--chrono-green);
    border-color: var(--chrono-green);
    color: #fff;

    font-weight: 500;
}

.btn-chrono-process:hover,
.btn-chrono-process:focus {
    background-color: var(--chrono-green-hover);
    border-color: var(--chrono-green-hover);
    color: #fff;
}

.btn-chrono-delete {
    background-color: var(--chrono-red);
    border-color: var(--chrono-red);
    color: #fff;

    font-weight: 500;
}

.btn-chrono-delete:hover,
.btn-chrono-delete:focus {
    background-color: var(--chrono-red-hover);
    border-color: var(--chrono-red-hover);
    color: #fff;
}

.btn-chrono-accent {
    background-color: var(--chrono-accent);
    border-color: var(--chrono-accent);
    color: #fff;

    font-weight: 500;
}

.btn-chrono-accent:hover,
.btn-chrono-accent:focus {
    background-color: var(--chrono-accent-hover);
    border-color: var(--chrono-accent-hover);
    color: #fff;
}

td .btn-chrono-edit,
td .btn-chrono-delete,
td .btn-chrono-process {
    padding: 0.22rem 0.42rem;
    border-width: 1px;
    line-height: 1;
    border-radius: 8px;
}

td .btn-chrono-edit .material-icons,
td .btn-chrono-delete .material-icons,
td .btn-chrono-process .material-icons {
    font-size: 1.05rem;
}

.btn-chrono-reset {
    color: var(--chrono-red);
    background-color: #fff !important;
    border-color: var(--chrono-red);
    font-weight: 600;
}

.btn-chrono-reset:hover,
.btn-chrono-reset:focus {
    /* Darken in place, not invert -- see .btn-chrono-outline above (AVIO-105). */
    color: var(--chrono-red-hover);
    background-color: rgba(122, 74, 74, 0.06) !important;
    border-color: var(--chrono-red-hover);
}

.btn-chrono-filter-toggle {
    background-color: #fff !important;
    color: var(--chrono-blue) !important;
    border: 1px solid rgba(47, 58, 74, 0.45);
    font-weight: 500;
}

.btn-chrono-filter-toggle:hover,
.btn-chrono-filter-toggle:focus,
.btn-chrono-filter-toggle:active,
.btn-chrono-filter-toggle.is-open {
    /* Previously identical to the resting state -- no hover feedback at all.
       Give it the same slight-darken treatment as every other button
       (AVIO-105) instead of leaving it the one that doesn't react. */
    background-color: rgba(52, 66, 85, 0.06) !important;
    color: var(--chrono-blue-hover) !important;
    border-color: var(--chrono-blue-hover);
    box-shadow: none !important;
}

.btn-app-secondary,
.btn-chrono-secondary {
    /* Neutral outline button -- Close/Cancel/clear-field actions that aren't
       the blue accent of .btn-chrono-outline (AVIO-105). */
    color: var(--chrono-neutral);
    border-color: rgba(47, 58, 74, 0.45);
    background-color: transparent;
    font-weight: 500;
}

.btn-app-secondary:hover,
.btn-app-secondary:focus,
.btn-chrono-secondary:hover,
.btn-chrono-secondary:focus {
    color: var(--chrono-neutral-hover);
    background-color: rgba(91, 100, 114, 0.06);
    border-color: var(--chrono-neutral-hover);
}

.btn-chrono-filter-toggle .material-icons {
    font-size: 1rem;
    line-height: 1;
}

#filtersSection .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.app-mobile-date,
.chrono-mobile-date {
    font-family: 'Manrope', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--chrono-text-heading);
    letter-spacing: 0.01em;
}

.chrono-flight-card {
    font-family: Inter, sans-serif;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.8rem 0.85rem 0.75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.chrono-status-watermark {
    position: absolute;
    top: 0.65rem;
    left: 0.55rem;
    z-index: 1;
    transform: rotate(-10deg);
    transform-origin: center;
    background: rgba(255, 193, 7, 0.55);
    color: rgba(0, 0, 0, 0.68);
    border-radius: 8px;
    padding: 0.16rem 0.48rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}

.chrono-crew-row {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.35rem;
    min-height: 1.55rem;
}

.chrono-crew {
    width: 100%;
    text-align: center;
    color: #111;
    line-height: 1.2;
    padding-left: 3.4rem;
    padding-right: 0.35rem;
}

.chrono-crew-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    max-width: 100%;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 400;
    color: #2f343b;
    letter-spacing: 0.01em;
}

.chrono-crew-single .chrono-crew-line {
    transform: translateX(-1.6rem);
}

.chrono-person {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.chrono-person-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
    opacity: 0.72;
}

.chrono-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0.9rem;
    font-weight: 300;
    color: #7b8088;
}

.chrono-charged-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.76rem;
    font-weight: 400;
    color: #8a8f98;
    white-space: nowrap;
}

.chrono-charged-inline .material-icons,
.chrono-charged-row .material-icons {
    font-size: 0.82rem;
    line-height: 1;
    vertical-align: -2px;
}

.chrono-charged-row {
    margin-top: 0.08rem;
    font-size: 0.74rem;
    font-weight: 400;
    color: #8a8f98;
    white-space: nowrap;
}

.chrono-main-row {
    display: grid;
    grid-template-columns: 78px 1px minmax(120px, 1fr) 1px 78px;
    align-items: center;
    gap: 0.65rem;
}

.chrono-side {
    min-height: 4.85rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(-0.36rem);
}

.chrono-aircraft {
    text-align: center;
}

.chrono-aircraft-icon {
    width: 58px;
    max-height: 25px;
    object-fit: contain;
    display: block;
    margin: 0 auto 0.32rem;
}

.chrono-registration {
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #111;
}

.chrono-divider {
    width: 1px;
    height: 58px;
    background: rgba(0, 0, 0, 0.10);
}

.chrono-time-block {
    text-align: center;
    min-width: 0;
}

.chrono-duration {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    justify-content: center;
    column-gap: 0.18rem;
    font-size: 2.7rem;
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: #050505;
}

.chrono-duration > span:first-child {
    text-align: right;
}

.chrono-duration > span:last-child {
    text-align: left;
}

.chrono-duration-separator {
    text-align: center;
    font-weight: 300;
}

.chrono-times {
    margin-top: 0.2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0.7rem;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 400;
    color: #333;
}

.chrono-times span:first-child {
    text-align: right;
}

.chrono-times span:last-child {
    text-align: left;
}

.chrono-time-dash {
    text-align: center;
    color: #666;
}

.chrono-route {
    gap: 0.32rem;
}

.chrono-airfield {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.chrono-flag {
    width: 16px;
    height: 11px;
    object-fit: cover;
    flex: 0 0 auto;

    clip-path: polygon(
        0% 8%,
        12% 0%,
        26% 6%,
        40% 2%,
        55% 8%,
        70% 3%,
        85% 7%,
        100% 0%,

        100% 92%,
        88% 100%,
        74% 94%,
        60% 98%,
        45% 92%,
        30% 97%,
        15% 93%,
        0% 100%
    );

    box-shadow: 0 1px 2px rgba(0,0,0,0.10);
}

.chrono-status-pending {
    background: rgba(255, 193, 7, 0.16);
    color: #8a6700;
    border: 1px solid rgba(255, 193, 7, 0.28);
}

/* List-table badge: sized against the table text (13.5px body / ~11.7px muted
   lines), not the cell's inherited size. Scoped to the pending variant because
   the flight plan list reuses .chrono-status-badge. */
.chrono-status-badge.chrono-status-pending {
    display: inline-block;
    padding: 0.12rem 0.55rem;
    border-radius: 5px;
    font-size: 0.85em;
    line-height: 1.3;
}

.chrono-status-processed {
    background: rgba(79, 107, 90, 0.12);
    color: #445b4d;
    border: 1px solid rgba(79, 107, 90, 0.22);
}

#chronometerModalForm .flatpickr-calendar,
#reservationForm .flatpickr-calendar {
    z-index: 2000;
}

#chronometerModalForm .flatpickr-wrapper,
#reservationForm .flatpickr-wrapper {
    width: 100%;
}

#chronometerModalForm .flatpickr-input,
#reservationForm .flatpickr-input {
    width: 100%;
}

#chronometerModalForm input[data-timepicker="1"]::placeholder {
    color: #ced4da;
    opacity: 1;
}

/* Hour/minute selects sit in an input-group next to the date picker so the
   three controls read as one field; keep them narrow (just wide enough for
   "23"/"59") so the date gets the rest of the space. Also matches the
   desktop combobox's <input class="form-select"> replacement (see
   pickers.js initHourMinuteCombos) -- same width constraint applies once
   the <select> is swapped for a typeable input. Scoped by the group class
   (not a form ID) so any form using this date+hour+minute pattern — not
   just reservations — gets the same sizing. */
.reservation-datetime-group select.form-select,
.reservation-datetime-group input.form-select {
    flex: 0 0 3.6rem;
    background-image: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-align: center;
    text-align-last: center;
    -webkit-tap-highlight-color: transparent;
}

/* Make the date + hour + minute trio read as a single field: one outer
   border/radius, no borders between the segments. flatpickr's altInput
   (the visible date box) isn't actually the group's first DOM child --
   its hidden original input is -- so Bootstrap's :first-child rounding
   never reaches it; overflow:hidden + no per-child borders sidesteps that
   instead of fighting it. */
.reservation-datetime-group {
    border: 1px solid rgba(52, 66, 85, 0.18);
    border-radius: 10px;
    background-color: rgb(251, 252, 253);
    overflow: hidden;
}

.reservation-datetime-group > .form-control,
.reservation-datetime-group > .form-select,
.reservation-datetime-group > .input-group-text {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    font-size: 1rem;
    color: rgb(31, 41, 51);
}

.reservation-datetime-group > .form-control:focus,
.reservation-datetime-group > .form-select:focus {
    box-shadow: none;
    outline: none;
    background-color: #eef2f6;
}

/* The group suppresses individual borders (see above), so Bootstrap's default
   .is-invalid red border wouldn't be visible — use an inset outline instead,
   which doesn't affect layout. Applied by the desktop hour/minute combobox
   (pickers.js initHourMinuteCombos) when typed text doesn't match a known
   option label. */
.reservation-datetime-group > .form-control.is-invalid,
.reservation-datetime-group > .form-select.is-invalid {
    outline: 2px solid #dc3545;
    outline-offset: -2px;
}

/* Inline warning text for the desktop hour/minute combobox (pickers.js
   initHourMinuteCombos) -- shown/hidden dynamically, not tied to Django's
   own .invalid-feedback (that only appears after a real form submission). */
.combo-invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.combo-invalid-feedback.show {
    display: block;
}

#div_id_departure .invalid-feedback,
#div_id_arrival .invalid-feedback,
#div_id_flight_date .invalid-feedback {
    display: block;
    margin-top: 0.25rem;
}

@media (max-width: 380px) {
    .chrono-flight-card {
        padding: 0.75rem 0.7rem 0.65rem;
    }

    .chrono-status-watermark {
        top: 0.58rem;
        left: 0.45rem;
        font-size: 0.66rem;
    }

    .chrono-crew {
        padding-left: 3.05rem;
        padding-right: 0.2rem;
    }

    .chrono-crew-line {
        font-size: 0.78rem;
        gap: 0.32rem;
    }

    .chrono-crew-single .chrono-crew-line {
        transform: translateX(-1.4rem);
    }

    .chrono-person-icon {
        width: 14px;
        height: 14px;
    }

    .chrono-charged-inline {
        font-size: 0.68rem;
    }

    .chrono-charged-row {
        font-size: 0.68rem;
    }

    .chrono-main-row {
        grid-template-columns: 66px 1px minmax(105px, 1fr) 1px 66px;
        gap: 0.5rem;
    }

    .chrono-side {
        min-height: 4.45rem;
        transform: translateY(-0.32rem);
    }

    .chrono-duration {
        font-size: 2.35rem;
    }

    .chrono-registration {
        font-size: 0.78rem;
    }

    .chrono-airfield {
        font-size: 0.8rem;
        gap: 0.25rem;
    }

    .chrono-flag {
        width: 14px;
        height: 10px;
    }
}

.chrono-detail {
    font-family: Inter, sans-serif;
    color: #111;
}


.chrono-detail-pending {
    position: absolute;
    top: 0.65rem;
    left: 0.55rem;
    transform: rotate(-10deg);
    background: rgba(255, 193, 7, 0.22);
    color: #8a6700;
    border-radius: 8px;
    padding: 0.16rem 0.48rem;
    font-size: 0.72rem;
    font-weight: 600;
    pointer-events: none;
    border: 1px solid rgba(255, 193, 7, 0.32);
    backdrop-filter: blur(1px);
}

.chrono-detail-route {
    position: relative;
    min-width: 0;
    padding: 0.4rem 0 1rem;
    margin-bottom: 0.2rem;
}

.chrono-detail-airfield {
    font-size: 1.02rem;
    font-weight: 500;
    color: #111;
    letter-spacing: 0.01em;
}

.chrono-detail-time {
    margin-top: 0.12rem;
    font-size: 0.76rem;
    font-weight: 400;
    color: #777;
}

.chrono-detail-arrow {
    width: 42px;
    height: 42px;

    margin: 0 0.25rem;

    color: rgba(0, 0, 0, 0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
}

.chrono-detail-center {
    min-width: 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    transform: translateY(-0.75rem);
}

.chrono-detail-section {
    padding: 0.9rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.chrono-detail-section-title {
    font-family: 'Manrope', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.65rem;
    letter-spacing: 0.01em;
    text-align: center;
}

.chrono-detail-kv {
    display: grid;
    grid-template-columns: 46% 54%;
    column-gap: 1.15rem;
    row-gap: 0.55rem;
    margin: 0;
    font-size: 0.9rem;
}

.chrono-detail-kv dt {
    color: #7b8088;
    font-weight: 400;
    margin-top: 0;
    text-align: right;
}

.chrono-detail-kv dt:first-child {
    margin-top: 0;
}

.chrono-detail-kv dd {
    margin: 0;
    color: #111;
    font-weight: 400;
    padding-bottom: 0;
    min-width: 0;
}

.chrono-detail-flight-icon {
    font-size: 1.45rem !important;
    transform: rotate(90deg);
    color: rgba(0, 0, 0, 0.72);
    line-height: 1;
    margin-bottom: 2.2rem;
}

.chrono-detail-duration {
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 400;
    color: #60656d;
    text-align: center;
}

.chrono-airfield-main {
    font-weight: 500;
    color: #1f2329;
}

.chrono-airfield-name {
    color: #7b8088;
    font-weight: 400;
    margin-left: 0.25rem;
}

.chrono-detail-flight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.chrono-detail-empty {
    visibility: hidden;
}

.chrono-process-form {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.chrono-process-form .form-check {
    margin-bottom: 0;
}

.chrono-process-form label {
    font-weight: 500;
    color: #2d3746;
}

.chrono-form {
    font-family: Inter, sans-serif;
}

.chrono-form .mb-3 {
    margin-bottom: 0.85rem !important;
}

.chrono-form label.form-label,
.chrono-form .form-check-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.chrono-form .form-control,
.chrono-form .form-select {
    min-height: 2.45rem;
    border-radius: 10px;
    border-color: rgba(52, 66, 85, 0.18);
    background-color: #fbfcfd;
    font-size: 0.92rem;
    color: #1f2933;
    box-shadow: none;
}

.chrono-form .form-control:focus,
.chrono-form .form-select:focus {
    border-color: rgba(59, 92, 133, 0.45);
    background-color: #fff;
    box-shadow: 0 0 0 0.18rem rgba(59, 92, 133, 0.12);
}

.chrono-form .form-control.bg-light {
    background-color: #f6f8fa !important;
    color: #334155;
    border-color: rgba(52, 66, 85, 0.12);
}

.chrono-form .form-select:disabled {
    background-image: none;
    background-color: #f6f8fa;
    color: #9aa5b1;
    opacity: 1;
    cursor: default;
}

.chrono-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.6rem;
}

.chrono-form .form-check-input {
    margin-top: 0;
}

.chrono-form .form-check .form-check-label {
    margin-bottom: 0;
}

/* .chrono-form .form-control sets a dark, high-contrast text color for
   actual typed content; without its own rule a placeholder inherits that
   same color (browsers only dim it slightly via opacity), reading as bold
   text rather than a hint. Matches the shade already used for the
   hour/minute combobox placeholders elsewhere in this file. */
.chrono-form .form-control::placeholder {
    color: #ced4da;
    opacity: 1;
}

/* Bootstrap's own .form-check keeps a 1.5em padding-left (for the case
   where the checkbox floats over the label via a negative margin) -- that
   reads as an unwanted indent once the row is its own flex line rather than
   wrapping label text, so flush it back to the field's left edge. */
.chrono-form .form-check.form-check-flush {
    padding-left: 0;
}

.chrono-form .form-check.form-check-flush .form-check-input {
    margin-left: 0;
}

/* Locked date field (new flight plan -- always "today", see
   FlightPlanForm.__init__ and pickers.js initDatePickers) -- kept visible
   as a visual anchor but not interactive, so it reads as such. */
.reservation-datetime-group .flatpickr-input.is-locked {
    cursor: default;
    color: rgba(31, 41, 51, 0.7);
}

.chrono-form .form-text,
.chrono-form .text-muted {
    color: #7b8088 !important;
}

.chrono-form .invalid-feedback {
    font-size: 0.78rem;
}

.chrono-subsection {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;

    padding: 0.75rem 0.85rem;

    background: rgba(59, 92, 133, 0.035);
    border-radius: 10px;

    position: static;
    overflow: visible;
}

.chrono-subsection .form-control,
.chrono-subsection .form-select,
.chrono-subsection textarea,
.chrono-subsection select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chrono-readonly-control {
    display: flex;
    align-items: center;
    background-color: #f6f8fa !important;
    color: #334155;
    border-color: rgba(52, 66, 85, 0.12);
}

.chrono-plus-icon {
    font-size: 1.15rem !important;
    opacity: 0.72;
}

.chrono-flightplan-card {
    font-family: Inter, sans-serif;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.chrono-flightplan-card + .chrono-flightplan-card {
    margin-top: 1rem;
}

.chrono-flightplan-card-body {
    padding: 0.9rem 1rem;
}

.chrono-flightplan-time {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--chrono-accent);
    letter-spacing: -0.01em;
}

.chrono-flightplan-card p {
    font-size: 0.9rem;
    color: #1f2933;
}

.chrono-flightplan-card strong {
    color: #475569;
    font-weight: 600;
}

.chrono-card-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
}

.chrono-card-actions .btn {
    flex: 1;
}

.chrono-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expanded .chrono-card-details {
    max-height: 500px;
    margin-top: 0.5rem;
}

.chrono-card-toggle {
    cursor: pointer;
}

.chrono-toggle-arrow {
    transition: transform 0.3s ease;
    color: #7b8088;
}

.chrono-card-toggle-header[aria-expanded="true"] .chrono-toggle-arrow {
    transform: rotate(180deg);
}

.chrono-table {
    font-family: Inter, sans-serif;
    border-color: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.chrono-table thead th {
    background: #f6f8fa;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    border-color: rgba(0, 0, 0, 0.08);
    vertical-align: middle;
}

.chrono-table tbody td {
    font-size: 0.9rem;
    color: #1f2933;
    border-color: rgba(0, 0, 0, 0.06);
    vertical-align: middle;
}

.chrono-table tbody tr,
.chrono-table tbody tr:nth-child(even),
.chrono-table tbody tr:nth-child(odd) {
    background: #fff;
}

.chrono-table tbody tr:hover {
    background: rgba(59, 92, 133, 0.035);
}

.chrono-table-row {
    transition: background-color 0.15s ease;
}

.app-table-main,
.chrono-table-main {
    font-weight: 500;
    color: #1f2933;
    line-height: 1.25;
}

.app-table-muted,
.chrono-table-muted {
    margin-top: 0.12rem;
    font-size: 0.78rem;
    color: #7b8088;
    line-height: 1.25;
}

.chrono-table-note {
    margin-top: 0.14rem;
    font-size: 0.78rem;
    color: var(--chrono-accent);
    line-height: 1.25;
}

.chrono-help {
    margin-left: 0.25rem;
    color: #9aa0a8;
    cursor: help;
}

.chrono-duration-main {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--chrono-accent);
    letter-spacing: -0.01em;
}

.chrono-duration-main .chrono-table-muted {
    font-size: 0.76rem;
    font-weight: 400;
    vertical-align: middle;
}

.chrono-duration-main,
.chrono-duration-main span {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

@media (max-width: 380px) {
    .chrono-detail-airfield {
        font-size: 0.92rem;
    }

    .chrono-detail-arrow {
        margin: 0 0.25rem;
    }

    .chrono-detail-arrow svg {
        width: 36px;
        height: 36px;
    }

    .chrono-detail-center {
        min-width: 68px;
        transform: translateY(-0.65rem);
    }

    .chrono-detail-duration {
        font-size: 1.08rem;
    }

    .chrono-detail-kv {
        grid-template-columns: 46% 54%;
        column-gap: 0.85rem;
        font-size: 0.86rem;
    }

    .chrono-airfield-name {
        display: block;
        margin-left: 0;
        margin-top: 0.08rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .chrono-detail-flight-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
        align-items: start;
    }

    .chrono-detail-section-title {
        text-align: left;
    }

    .chrono-detail-kv dt {
        text-align: left;
    }

    .page-title,
    .modal-title {
        font-size: 22px !important;
    }
}

@media (max-width: 767.98px) {
    #filtersSection .card {
        overflow: visible;
    }

    #filtersSection .card-body {
        overflow: visible;
        padding-bottom: 0;
    }

    #filtersSection.collapsing {
        transition: none !important;
        height: auto !important;
    }

    .mobile-filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;

        background: #fff;
        padding-top: 0.75rem;
        padding-bottom: 1rem;
        margin-top: 0.75rem;
        margin-bottom: -1rem;

        border-top: 1px solid rgba(52, 66, 85, 0.12);
    }

    .chrono-form .form-control,
    .chrono-form .form-select,
    .chrono-form textarea,
    .chrono-form input,
    .chrono-form select {
        font-size: 16px;
    }
}

.flex-container > * {
    /* Flex items default to min-width:auto, which lets wide content overflow through the entire flex chain. */
    min-width: 0;
}

/* Tighten the gap between the nav bar and each page's own heading
   (Reservation/Chronometer/Flight plan/...) -- now applies at every width
   (originally desktop-only, mobile asked for the same treatment shortly
   after). theme.css's .article rule applies the same 20px padding on
   every side; only the top needs trimming here, left/right/bottom stay
   as they are (AVIO-102). */
.article {
    padding-top: 10px;
}

#messages-container {
    margin-top: 0.5rem !important;
}

/* Reservation view-only modal (AVIO-102) -- deliberately unlabeled, just
   the values themselves, one per line. */
.reservation-view-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #1f2933;
}

/* Narrower than modal-lg (the edit form's width) -- this content is a
   handful of short lines, modal-lg left most of the dialog empty. Bootstrap's
   unmodified .modal-dialog already centers itself, so only max-width needs
   overriding; text inside stays left-aligned (see .reservation-view-list). */
@media (min-width: 576px) {
    .reservation-view-dialog {
        max-width: 400px;
    }
}

/* Shared page-header row -- desktop only, puts the heading, the page's
   primary action, and (where there is one) a secondary action on one
   line instead of stacked. Mobile gets no rule here at all, so it keeps
   whatever stacked/block layout the page already had. The center zone is
   exactly half the row's width and visually centered: left/right each
   take the remaining space equally (even when .avio-page-header-right is
   empty/absent), which is what keeps the center zone centered rather
   than just left-aligned in the remaining space. */
@media (min-width: 768px) {
    .avio-page-header-row {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .avio-page-header-left {
        flex: 1 1 0;
        min-width: 0;
    }

    .avio-page-header-center {
        flex: 0 0 50%;
        display: flex;
        justify-content: center;
    }

    .avio-page-header-right {
        flex: 1 1 0;
        display: flex;
        justify-content: flex-end;
    }
}