/* FMS Admin — app styles */
.navbar-brand i { vertical-align: -2px; }

/* ---- Topbar + left sidebar shell ---- */
.app-topbar { z-index: 1030; }
body.has-sidebar { padding-top: 56px; }

.sidebar { --bs-offcanvas-width: 250px; }
@media (min-width: 992px) {
    .sidebar {
        position: sticky;
        top: 56px;
        align-self: flex-start;
        width: 250px;
        flex: 0 0 250px;
        height: calc(100vh - 56px);
        overflow-y: auto;
        border-right: 1px solid var(--bs-border-color);
    }
}

.app-main { min-width: 0; min-height: calc(100vh - 56px); }

/* ---- Sidebar navigation ---- */
.sidebar-nav { padding-top: .25rem; }
.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    color: var(--bs-body-color);
    padding: .55rem .85rem;
    margin-bottom: 2px;
    border-radius: .5rem;
    font-size: .95rem;
    line-height: 1.2;
}
.sidebar-nav .nav-link:hover { background: var(--bs-tertiary-bg); }
.sidebar-nav .nav-link.active { background: var(--bs-primary); color: #fff; }
.sidebar-nav .nav-link i {
    flex: 0 0 auto;
    width: 1.25rem;
    margin-right: .75rem;
    font-size: 1.05rem;
    text-align: center;
}
.sidebar-heading {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--bs-secondary-color);
    font-weight: 600;
    margin-top: .75rem;
    padding: .25rem .85rem;
}
.sidebar-heading:first-child { margin-top: 0; }

/* ---- Tables ---- */
table.dataTable thead th { white-space: nowrap; }
.table-actions { white-space: nowrap; }

/* ---- Cards / forms ---- */
.card { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.form-required::after { content: " *"; color: var(--bs-danger); }
.select2-container .select2-selection--single { height: calc(2.375rem + 2px); }
.select2-container { z-index: 1056; }
.select2-dropdown { z-index: 1057; }

/* ---- jQuery UI autocomplete dropdown (origin/dest/airline lookups) ----
   Lift above the fixed topbar/cards and give it a Bootstrap-like look so it
   no longer renders behind the next form field. */
.ui-autocomplete.ui-front,
.ui-autocomplete { z-index: 1058 !important; }
.ui-autocomplete {
    max-height: 16rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .25rem 0;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .375rem;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    font-size: .95rem;
}
.ui-autocomplete .ui-menu-item-wrapper { padding: .4rem .75rem; border: 0; }
.ui-autocomplete .ui-menu-item-wrapper.ui-state-active {
    background: var(--bs-primary);
    color: #fff;
    border: 0;
    margin: 0;
}

/* Keep very wide DataTables from spilling out of their card */
.dataTables_wrapper { overflow-x: auto; }

/* ---- Login (no sidebar) ---- */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; }
