/* ==========================================================================
   Admin · Access management · Manage Employee (2026-12-01).
   List, filters and form reuse employee-list.css (.ev-*) and manage-access.css (.ma-*);
   this file adds the frequent flyer rows, booking access and the page's filter row.
   ========================================================================== */

.me-form__sub { margin-top: 2px; font-size: var(--tb-fs-meta); color: var(--tb-text-muted); }
html body .me .me-locked { background: var(--tb-surface-muted); color: var(--tb-text-neutral); cursor: default; }
html body .me .me-code { flex-basis: 96px; width: 96px; }
.me-hint { margin-top: 6px; font-size: 12.5px; color: var(--tb-text-muted); }

/* ---- Frequent flyer: airline + number rows, removable, + adds one ---- */
.me-ff { display: grid; gap: 10px; }
.me-ff__head, .me-ff__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.me-ff__head span { font-size: 13px; font-weight: 600; color: var(--tb-text-neutral); }
.me-ff__row .tb-field { margin: 0; }
html body .me .me-ff__remove { width: 40px; height: 40px; border-color: transparent; color: var(--tb-text-muted); }
html body .me .me-ff__remove:hover { border-color: var(--tb-border-strong); color: var(--tb-danger-ink); }
.me-ff__err { grid-column: 1 / -1; margin: -4px 0 0; }
.me-ff__row.is-invalid .tb-select, .me-ff__row.is-invalid .tb-input { border-color: var(--tb-danger); }
.me-ff__add { justify-self: start; }

/* ---- Booking access (edit only) ---- */
.me-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.me-group > .tb-label { display: block; float: none; width: auto; padding: 0; }
.me-opt { max-width: 360px; align-items: center; }
html body .me .me-seg { display: inline-flex; width: fit-content; max-width: 100%; }
.me-opt b { font-size: 14px; }

/* ---- Filters: three fields and the buttons ---- */
.ma-filters__grid.me-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }

/* ---- Table ---- */
.me-pp { display: block; font-weight: 600; color: var(--tb-text-strong); }
html body .me .ev-table tr.is-inactive td:not(.ev-actions) { color: var(--tb-text-muted); }

@media (max-width: 1100px) {
    .ma-filters__grid.me-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ma-filters__grid.me-filters .ma-filters__actions { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .ma-filters__grid.me-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ma-filters__grid.me-filters { grid-template-columns: 1fr; }
    .me-ff__head { display: none; }
    .me-ff__row { grid-template-columns: minmax(0, 1fr) 40px; padding: 12px; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-control); }
    .me-ff__row .tb-field:nth-child(2) { grid-column: 1; grid-row: 2; }
    .me-ff__remove { grid-column: 2; grid-row: 1; }
    .me-opt { max-width: none; }
}

/* ==========================================================================
   Manage Employee · professional pass (2026-12-02): page title + "Create · View details"
   tabs with the employee count, optional sections that open on demand, a Create bar
   that stays in view on the long form, and a condensed list (all information kept).
   ========================================================================== */

/* Optional sections: a quiet "add" tile until opened */
.tb-form-sec__title .tb-label__opt { margin-left: 6px; font-size: 12px; font-weight: 500; }
.me-add { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 1px dashed var(--tb-border-strong); border-radius: var(--tb-radius-control); background: var(--tb-surface); text-align: left; cursor: pointer; }
.me-add:hover { border-color: var(--tb-primary); background: var(--tb-ice); }
.me-add:focus-visible { outline: 2px solid var(--tb-royal); outline-offset: 2px; }
.me-add__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--tb-ice); color: var(--tb-primary); }
.me-add b { display: block; font-size: 14px; font-weight: 600; color: var(--tb-text-strong); }
.me-add small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--tb-text-muted); }
.me-more { display: grid; gap: 16px; }

/* List: person cell with initials, passport expiry warning, quieter second lines */
.me-exp { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.me-exp--bad { background: var(--tb-danger-soft); color: var(--tb-danger-ink); }
.me-exp--soon { background: var(--tb-warning-soft); color: var(--tb-warn-ink); }
.me-upd { margin-top: 4px; }
