/* ==========================================================================
   Aika Design System — Table of Contents
   ==========================================================================
   1.  Variables & Design Tokens        ~line 1
   2.  Reset & Base Elements            ~line 95
   3.  App Shell (brand, session)       ~line 123
   4.  Navigation (sidebar, layout)     ~line 321
   5.  Dashboard (KPI, grid)            ~line 763
   6.  Cards                            ~line 870
   7.  Buttons                          ~line 2272
   8.  Forms (inputs, selects)          ~line 2403
   9.  Combobox & Multiselect            ~line 3078
   10. Alerts                           ~line 3323
   11. Tables                           ~line 3347
   12. Turnaround Components            ~line 3382
   13. Workspace                        ~line 4815
   14. Empty States                     ~line 6470
   15. Utilities & Print                ~line 6900
   16. Responsive (media queries)       ~line 7000
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables & Design Tokens
   -------------------------------------------------------------------------- */
:root {
  --fd-bg: #f7f8fa;
  --fd-surface-1: #ffffff;
  --fd-surface-2: #f3f4f6;
  --fd-surface-3: #e8ebef;
  --fd-surface-inset: #eef0f3;
  --fd-header: #161616;
  --fd-text: #161616;
  --fd-text-secondary: #525252;
  --fd-text-muted: #6f6f6f;
  --fd-border: #d8dde3;
  --fd-border-strong: #a8b0bb;
  --fd-link: #0f62fe;
  --fd-link-hover: #0043ce;
  --fd-link-active: #002d9c;
  --fd-success: #24a148;
  --fd-warning: #f1c21b;
  --fd-danger: #da1e28;
  --fd-info: #0f62fe;
  --fd-shadow-focus: 0 0 0 3px rgb(15 98 254 / 24%);
  --fd-shadow-card: 0 1px 2px rgb(22 22 22 / 5%), 0 8px 24px rgb(22 22 22 / 5%);
  --fd-shadow-overlay: 0 18px 56px rgb(22 22 22 / 24%);
  --fd-radius-xs: 4px;
  --fd-radius-sm: 6px;
  --fd-radius-md: 8px;
  --fd-sidebar-width: 14.5rem;
  --fd-sidebar-collapsed-width: 4.5rem;
  --fd-content-width: 96rem;
  --fd-dashboard-gap: 1rem;
  --fd-sidebar-bg: rgb(23 60 99);
  --fd-sidebar-bg-2: rgb(23 60 99);
  --fd-sidebar-border: rgb(255 255 255 / 12%);
  --fd-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  color-scheme: light;
}

body {
  background: var(--fd-bg);
  color: var(--fd-text);
  font-family: var(--fd-font-sans);
  font-size: 16px;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--fd-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--fd-link-hover);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--fd-shadow-focus);
}

/* --------------------------------------------------------------------------
   2. Reset & Base Elements
   -------------------------------------------------------------------------- */

.fd-skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--fd-bg);
  color: var(--fd-text);
  border: 1px solid var(--fd-link);
  transform: translateY(-140%);
}

.fd-skip-link:focus {
  transform: translateY(0);
}

.fd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. App Shell (brand, session menu)
   -------------------------------------------------------------------------- */

.fd-app {
  min-height: 100vh;
  background: var(--fd-bg);
  overflow-x: hidden;
}

.fd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.fd-brand-logo {
  height: 3rem;
  width: auto;
}

.fd-brand-text {
  display: grid;
  gap: 0.125rem;
}

.fd-brand-title {
  letter-spacing: 0.01em;
}

.fd-brand-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #f4f4f4;
}

.fd-brand-subtitle {
  color: #c6c6c6;
  font-size: 0.75rem;
}

.fd-sidebar-session {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.fd-sidebar-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--fd-radius-sm);
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
}

.fd-env-sidebar-icon {
  background: var(--fd-warning);
  color: #000;
  border-color: var(--fd-warning);
}

.fd-sidebar-icon .ti {
  font-size: 1.125rem;
}

.fd-sidebar-user-menu {
  position: relative;
  min-width: 0;
}

.fd-sidebar-user-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--fd-radius-sm);
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fd-sidebar-user-chip:hover,
.fd-sidebar-user-chip[aria-expanded="true"] {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 14%);
}

.fd-sidebar-user-text {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.fd-sidebar-user-line {
  display: grid;
  grid-template-columns: 1.125rem minmax(0, 1fr);
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.fd-sidebar-user-line .ti {
  color: rgb(255 255 255 / 74%);
  font-size: 1rem;
}

.fd-sidebar-user-line span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-sidebar-user-name {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
}

.fd-sidebar-user-airport,
.fd-session-menu-airport {
  color: rgb(255 255 255 / 64%);
  font-size: 0.75rem;
}

.fd-session-menu-airport {
  color: var(--fd-text-muted);
}

.fd-sidebar-user-caret {
  display: inline-grid;
  place-items: center;
  color: rgb(255 255 255 / 64%);
  font-size: 0.875rem;
  line-height: 1;
}

.fd-sidebar-session-menu {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 120;
  display: grid;
  gap: 0.375rem;
  min-width: 16rem;
  max-width: min(22rem, calc(100vw - 1.25rem));
  padding: 0.5rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: #ffffff;
  box-shadow: var(--fd-shadow-overlay);
}

.fd-session-menu-section {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem 0.375rem;
}

.fd-sidebar-session-menu .fd-nav-form {
  display: grid;
  gap: 0.125rem;
}

.fd-session-menu-user {
  display: grid;
  gap: 0.125rem;
  padding: 0.5rem 0.625rem 0.625rem;
  border-bottom: 1px solid var(--fd-border);
}

.fd-session-menu-label {
  color: var(--fd-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fd-session-menu-name {
  color: var(--fd-text);
  font-size: 0.875rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.fd-session-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-text);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.fd-session-menu-item:hover,
.fd-session-menu-item:focus-visible {
  background: #edf5ff;
  outline: none;
}

.fd-session-menu-item.is-active {
  background: #edf5ff;
  color: var(--fd-link-hover);
  font-weight: 600;
}

.fd-session-menu-item .ti {
  color: currentColor;
  font-size: 1rem;
}

.fd-session-menu-item-danger {
  color: var(--fd-danger);
}

.fd-session-menu-item-danger:hover,
.fd-session-menu-item-danger:focus-visible {
  background: #fff1f1;
}

.fd-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  cursor: pointer;
}

.fd-nav-toggle:hover {
  border-color: var(--fd-border-strong);
  background: var(--fd-surface-2);
}

.fd-nav-toggle-sidebar {
  flex: 0 0 auto;
  border-color: var(--fd-sidebar-border);
  background: rgb(255 255 255 / 8%);
  color: #ffffff;
}

.fd-nav-toggle-sidebar:hover {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 14%);
}

.fd-nav-toggle-mobile {
  display: none;
}

.fd-hamburger,
.fd-hamburger::before,
.fd-hamburger::after {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.fd-hamburger {
  position: relative;
}

.fd-hamburger::before,
.fd-hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.fd-hamburger::before {
  top: -0.375rem;
}

.fd-hamburger::after {
  top: 0.375rem;
}

.fd-layout {
  min-height: 100vh;
  background: var(--fd-bg);
}

.fd-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: var(--fd-sidebar-width);
  height: 100vh;
  min-height: 100vh;
  padding: 0.875rem 0.625rem;
  border-right: 1px solid rgb(255 255 255 / 10%);
  background:
    linear-gradient(180deg, var(--fd-sidebar-bg-2), var(--fd-sidebar-bg) 42%, rgb(23 60 99));
  color: #ffffff;
  box-shadow: 8px 0 24px rgb(3 27 53 / 12%);
  overflow: visible;
}

.fd-sidebar-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  height: calc(100vh - 1.75rem);
  min-height: calc(100vh - 1.75rem);
}

.fd-sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0 0.125rem 0.375rem;
}

.fd-sidebar-group {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-height: 0;
  overflow-y: auto;
}

.fd-sidebar-label {
  color: rgb(255 255 255 / 58%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-sidebar-nav {
  display: grid;
  align-content: start;
  gap: 0.125rem;
}

.fd-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-md);
  color: rgb(255 255 255 / 88%);
  text-decoration: none;
  background: transparent;
}

.fd-sidebar-link-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1.375rem;
  color: rgb(255 255 255 / 78%);
  font-size: 1rem;
  font-weight: 600;
}

.fd-sidebar-link-icon .ti {
  font-size: 1.125rem;
}

.fd-sidebar-link[aria-current="page"] .fd-sidebar-link-icon {
  color: #ffffff;
}

.fd-sidebar-link:hover {
  color: #ffffff;
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 10%);
}

.fd-sidebar-link[aria-current="page"] {
  background: linear-gradient(135deg, #0f62fe, #0043ce);
  border-color: rgb(255 255 255 / 16%);
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 10px 24px rgb(0 45 156 / 28%);
}

.fd-sidebar-branch {
  position: relative;
  display: grid;
  gap: 0.125rem;
}

.fd-sidebar-branch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.25rem;
  align-items: stretch;
  gap: 0.125rem;
}

.fd-sidebar-branch-link.is-active {
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.fd-sidebar-branch-link.is-active .fd-sidebar-link-icon {
  color: #ffffff;
}

.fd-sidebar-branch-toggle {
  display: inline-grid;
  place-items: center;
  min-height: 2.25rem;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-md);
  color: rgb(255 255 255 / 74%);
  background: transparent;
  cursor: pointer;
}

.fd-sidebar-branch-toggle:hover,
.fd-sidebar-branch-toggle:focus-visible {
  color: #ffffff;
  background: rgb(255 255 255 / 9%);
  border-color: rgb(255 255 255 / 10%);
}

.fd-sidebar-branch-toggle .ti {
  font-size: 1rem;
  transition: transform 140ms ease-out;
}

.fd-sidebar-branch-toggle .ti.is-rotated {
  transform: rotate(180deg);
}

.fd-sidebar-subnav {
  display: grid;
  gap: 0.125rem;
  margin-left: 1.25rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgb(255 255 255 / 18%);
}

.fd-sidebar-sublink {
  min-height: 2rem;
  padding-block: 0.25rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.9375rem;
}

.fd-sidebar-sublink .fd-sidebar-link-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.fd-sidebar-sublink .fd-sidebar-link-icon .ti {
  font-size: 1rem;
}

.fd-sidebar-sublink[aria-current="page"] {
  background: rgb(255 255 255 / 12%);
  border-color: rgb(255 255 255 / 14%);
  box-shadow: none;
}

.fd-sidebar-hint {
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
}

.fd-nav-scrim {
  display: none;
}

html.fd-no-transition .fd-content {
  transition: none;
}

/* Inline-script applied collapsed state for stable first paint before app_shell.js binds */
html.is-nav-collapsed .fd-sidebar {
  padding-inline: 0.5rem;
  width: var(--fd-sidebar-collapsed-width);
}

html.is-nav-collapsed .fd-content {
  margin-left: var(--fd-sidebar-collapsed-width);
}

html.is-nav-collapsed .fd-sidebar {
  overflow: visible;
}

html.is-nav-collapsed .fd-sidebar-panel,
html.is-nav-collapsed .fd-sidebar-group,
html.is-nav-collapsed .fd-sidebar-nav {
  overflow: visible;
}

.fd-app.is-nav-collapsed .fd-sidebar {
  padding-inline: 0.5rem;
  width: var(--fd-sidebar-collapsed-width);
}

.fd-app.is-nav-collapsed .fd-sidebar-panel,
.fd-app.is-nav-collapsed .fd-sidebar-group,
.fd-app.is-nav-collapsed .fd-sidebar-nav {
  overflow: visible;
}

html.is-nav-collapsed .fd-sidebar-brand-row,
.fd-app.is-nav-collapsed .fd-sidebar-brand-row {
  justify-content: center;
  padding-inline: 0;
}

html.is-nav-collapsed .fd-brand,
html.is-nav-collapsed .fd-sidebar-label,
html.is-nav-collapsed .fd-sidebar-link span:not(.fd-sidebar-link-icon),
html.is-nav-collapsed .fd-sidebar-user-caret,
.fd-app.is-nav-collapsed .fd-brand,
.fd-app.is-nav-collapsed .fd-sidebar-label,
.fd-app.is-nav-collapsed .fd-sidebar-link span:not(.fd-sidebar-link-icon),
.fd-app.is-nav-collapsed .fd-sidebar-user-caret {
  display: none;
}

html.is-nav-collapsed .fd-sidebar-user-name,
.fd-app.is-nav-collapsed .fd-sidebar-user-name {
  display: inline-grid;
  grid-template-columns: 1fr;
  place-items: center;
}

html.is-nav-collapsed .fd-sidebar-user-name span,
html.is-nav-collapsed .fd-sidebar-user-airport,
.fd-app.is-nav-collapsed .fd-sidebar-user-name span,
.fd-app.is-nav-collapsed .fd-sidebar-user-airport {
  display: none;
}

html.is-nav-collapsed .fd-sidebar-link,
.fd-app.is-nav-collapsed .fd-sidebar-link {
  justify-content: center;
  padding-inline: 0.375rem;
}

html.is-nav-collapsed .fd-sidebar-branch-head,
.fd-app.is-nav-collapsed .fd-sidebar-branch-head {
  grid-template-columns: 1fr;
}

html.is-nav-collapsed .fd-sidebar-branch-toggle,
.fd-app.is-nav-collapsed .fd-sidebar-branch-toggle {
  display: none;
}

html.is-nav-collapsed .fd-sidebar-session,
.fd-app.is-nav-collapsed .fd-sidebar-session {
  justify-items: center;
}

html.is-nav-collapsed .fd-sidebar-user-chip,
.fd-app.is-nav-collapsed .fd-sidebar-user-chip {
  display: inline-grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
}

html.is-nav-collapsed .fd-sidebar-session-menu,
.fd-app.is-nav-collapsed .fd-sidebar-session-menu {
  bottom: 0;
  left: calc(100% + 0.5rem);
}

html.is-nav-collapsed .fd-sidebar-subnav,
.fd-app.is-nav-collapsed .fd-sidebar-subnav {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% + 0.5rem);
  z-index: 80;
  min-width: 12rem;
  padding: 0.375rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--fd-radius-md);
  background: rgb(17 48 82 / 98%);
  box-shadow: 0 14px 34px rgb(3 27 53 / 30%);
  margin-left: 0;
}

html.is-nav-collapsed .fd-sidebar-branch.is-flyout-open > .fd-sidebar-subnav,
.fd-app.is-nav-collapsed .fd-sidebar-branch.is-flyout-open > .fd-sidebar-subnav {
  display: grid;
}

html.is-nav-collapsed .fd-sidebar-subnav .fd-sidebar-sublink,
.fd-app.is-nav-collapsed .fd-sidebar-subnav .fd-sidebar-sublink {
  justify-content: flex-start;
  padding-inline: 0.625rem;
  white-space: nowrap;
}

html.is-nav-collapsed .fd-sidebar-subnav .fd-sidebar-sublink span:not(.fd-sidebar-link-icon),
.fd-app.is-nav-collapsed .fd-sidebar-subnav .fd-sidebar-sublink span:not(.fd-sidebar-link-icon) {
  display: inline;
}

.fd-nav-form {
  margin: 0;
}

.fd-content {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--fd-sidebar-width);
  padding: 0;
  overflow-x: clip;
  transition: margin-left 180ms ease;
}

.fd-app.is-nav-collapsed .fd-content {
  margin-left: var(--fd-sidebar-collapsed-width);
}

.fd-app.is-anonymous .fd-content {
  margin-left: 0;
}

.fd-app.is-pwa-scanner .fd-content {
  margin-left: 0;
}

.fd-app.is-anonymous .fd-content {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 90%) 0%, rgb(247 250 253 / 88%) 45%, rgb(238 245 252 / 90%) 100%),
    radial-gradient(circle at 50% 18%, rgb(255 255 255 / 96%) 0 18rem, rgb(236 244 251 / 48%) 42rem, transparent 64rem),
    linear-gradient(180deg, #f8fbfd 0%, #edf5fb 100%);
  overflow-x: hidden;
}

.fd-app.is-anonymous .fd-content::before,
.fd-app.is-anonymous .fd-content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.fd-app.is-anonymous .fd-content::before {
  height: min(31vh, 19rem);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 28%), rgb(255 255 255 / 82%)),
    linear-gradient(168deg, transparent 0 9%, rgb(203 221 238 / 44%) 9.2% 13.8%, transparent 14% 100%),
    linear-gradient(154deg, transparent 0 26%, rgb(196 216 235 / 52%) 26.2% 33%, transparent 33.2% 100%),
    linear-gradient(16deg, transparent 0 56%, rgb(216 230 243 / 72%) 56.2% 63%, transparent 63.2% 100%),
    linear-gradient(9deg, rgb(223 235 246 / 82%) 0 33%, transparent 33.2%),
    linear-gradient(172deg, transparent 0 52%, rgb(216 230 243 / 78%) 52.2% 65%, transparent 65.2%),
    linear-gradient(4deg, rgb(232 241 249 / 95%) 0 46%, transparent 46.2%);
  clip-path: polygon(0 30%, 7% 26%, 16% 24%, 25% 32%, 36% 24%, 49% 62%, 58% 58%, 68% 42%, 76% 25%, 85% 33%, 92% 29%, 100% 37%, 100% 100%, 0 100%);
  opacity: 0.86;
}

.fd-app.is-anonymous .fd-content::after {
  height: min(17vh, 10rem);
  background:
    linear-gradient(177deg, rgb(222 235 247 / 72%) 0 22%, transparent 22.2%),
    linear-gradient(4deg, #f8fbfd 0 48%, rgb(226 238 248 / 82%) 48.2% 64%, transparent 64.2%),
    linear-gradient(180deg, transparent, #ffffff 82%);
  clip-path: polygon(0 45%, 10% 40%, 23% 45%, 36% 37%, 49% 45%, 62% 38%, 73% 44%, 86% 37%, 100% 42%, 100% 100%, 0 100%);
  opacity: 0.95;
}

.fd-shell {
  display: grid;
  gap: 1.5rem;
  max-width: var(--fd-content-width);
  margin: 0 auto;
  padding: 0.875rem 1.5rem 1.5rem;
}

.fd-env-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 0;
  background: var(--fd-warning);
  color: #000;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.fd-app.is-anonymous .fd-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: none;
  align-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);
}

.fd-messages {
  display: grid;
  gap: 0.75rem;
}

.fd-messages:empty {
  display: none;
}

.fd-async-errors {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: auto;
  z-index: 200;
  width: min(30rem, calc(100vw - 2rem));
  pointer-events: none;
}

.fd-async-errors .fd-alert {
  pointer-events: auto;
  box-shadow: var(--fd-shadow-overlay);
}

.fd-page {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.fd-page > *,
.fd-shell > * {
  min-width: 0;
}

.fd-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--fd-border);
}

.fd-dashboard-head {
  align-items: center;
  padding-top: 0;
}

.fd-page-head-main {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.fd-page-eyebrow {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-title {
  margin: 0;
  font-size: clamp(1.875rem, 3vw, 2.375rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.fd-title-meta {
  margin: 0;
  color: var(--fd-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.fd-subtitle {
  margin: 0;
  max-width: 60rem;
  color: var(--fd-text-secondary);
  font-size: 0.9375rem;
}

.fd-page-actions,
.fd-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fd-page-actions > form {
  display: inline-flex;
}

.fd-page-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 0 0;
  border-top: 1px solid var(--fd-border);
}

.fd-page-foot > form {
  display: inline-flex;
}

.fd-row-end {
  align-items: flex-end;
}

.fd-stack-xs > * + * {
  margin-top: 0.5rem;
}

.fd-stack-sm > * + * {
  margin-top: 0.75rem;
}

.fd-stack-md > * + * {
  margin-top: 1rem;
}

.fd-grid-tiles,
.fd-kpi-grid,
.fd-grid-2,
.fd-grid-3,
.fd-grid-4 {
  display: grid;
  gap: 1rem;
}

.fd-grid-tiles,
.fd-kpi-grid,
.fd-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fd-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.fd-page-grid-main,
.fd-page-grid-side {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.fd-card,
.fd-tile,
.fd-panel,
.fd-auth-card {
  background: var(--fd-surface-1);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  padding: 1rem;
  box-shadow: var(--fd-shadow-card);
}

.fd-tile {
  color: var(--fd-text);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.fd-tile:hover {
  color: var(--fd-text);
  border-color: var(--fd-link);
  box-shadow: 0 2px 4px rgb(22 22 22 / 6%), 0 12px 28px rgb(22 22 22 / 8%);
  transform: translateY(-1px);
}

.fd-panel-header,
.fd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fd-border);
  margin-bottom: 1rem;
}

/* Card collapse toggle */
.fd-card-collapse-toggle {
  flex-shrink: 0;
}

.fd-card-collapse-toggle .ti {
  transition: transform 0.2s ease;
}

.fd-card-collapse-body.is-collapsed {
  display: none;
}

.fd-panel-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fd-action-menu {
  position: relative;
  display: inline-grid;
}

.fd-action-menu-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 9rem;
  padding: 0.35rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  box-shadow: var(--fd-shadow-overlay);
}

.fd-action-menu-panel-right {
  right: 0;
  left: auto;
}

.fd-action-menu-item {
  display: flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--fd-radius-xs);
  color: var(--fd-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.fd-action-menu-item:hover {
  background: var(--fd-surface-2);
  color: var(--fd-link);
}

.fd-card-title,
.fd-section-title {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
}

.fd-label-heading,
.fd-section-title {
  font-size: 1.25rem;
}

.fd-panel-subtitle,
.fd-muted,
.fd-help {
  color: var(--fd-text-secondary);
}

.fd-text-success {
  color: var(--fd-success);
}

.fd-text-warning {
  color: var(--fd-warning);
}

.fd-text-danger {
  color: #b91c1c;
}

.fd-muted {
  margin: 0;
}

.fd-help {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
}

.fd-meta-row,
.fd-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.fd-meta-list {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

.fd-airport-label,
.fd-route {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.fd-route {
  flex-wrap: wrap;
}

.fd-route-inline {
  margin-left: 0.5rem;
}

.fd-route-arrow {
  color: var(--fd-text-muted);
}

.fd-kpi {
  display: grid;
  gap: 0.625rem;
  min-height: 8.75rem;
  align-content: start;
  border-top: 3px solid var(--fd-link);
}

.fd-dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--fd-dashboard-gap);
}

.fd-dashboard-kpi {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 7.5rem;
  border-top: 0;
}

.fd-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 600;
}

.fd-kpi-icon-info {
  background: #0f62fe;
}

.fd-kpi-icon-success {
  background: #1f9d7a;
}

.fd-kpi-icon-warning {
  background: #f1c21b;
  color: #161616;
}

.fd-kpi-icon-neutral {
  background: rgb(23 60 99);
}

.fd-kpi-label {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-kpi-value {
  font-size: clamp(1.875rem, 4vw, 2.625rem);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-kpi-footnote {
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
}

.fd-cmms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 76rem;
}

.fd-cmms-kpi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 10rem;
  padding: 1.5rem;
  color: var(--fd-text);
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.fd-cmms-kpi:hover,
.fd-cmms-kpi:focus-visible {
  border-color: var(--fd-link);
  box-shadow: 0 12px 30px rgb(22 22 22 / 10%);
  transform: translateY(-1px);
}

.fd-cmms-kpi:focus-visible {
  outline: 3px solid rgb(15 98 254 / 24%);
  outline-offset: 2px;
}

.fd-cmms-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  font-size: 2rem;
}

.fd-cmms-kpi-overdue .fd-cmms-kpi-icon {
  background: rgb(218 30 40 / 10%);
  color: var(--fd-danger);
}

.fd-cmms-kpi-open .fd-cmms-kpi-icon {
  background: rgb(15 98 254 / 10%);
  color: var(--fd-link);
}

.fd-cmms-kpi-main {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.fd-cmms-kpi-label {
  color: var(--fd-text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.fd-cmms-kpi-value {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-cmms-kpi-overdue .fd-cmms-kpi-value {
  color: var(--fd-danger);
}

.fd-cmms-kpi-open .fd-cmms-kpi-value {
  color: var(--fd-link);
}

.fd-stock-display {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.4;
}

.fd-stock-value {
  font-size: 2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fd-stock-unit {
  font-size: 1.125rem;
  font-weight: 500;
}

.fd-part-notes {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.75rem;
}

.fd-part-save {
  padding-top: 0.75rem;
  border-top: 1px solid var(--fd-border);
}

.fd-part-notes .fd-label {
  margin: 0;
}

.fd-part-notes-readonly {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.fd-part-notes-text {
  margin: 0;
  color: var(--fd-text);
  overflow-wrap: anywhere;
}

.fd-part-notes-field form {
  display: grid;
  gap: 0.75rem;
}

.fd-cmms-kpi-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--fd-link);
  font-weight: 600;
}

.fd-cmms-kpi-arrow {
  color: var(--fd-text-muted);
  font-size: 1.75rem;
}

.fd-cmms-modal-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 38rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
}

.fd-cmms-plan-modal-card {
  width: min(100%, 48rem);
}

.fd-cmms-action-row {
  display: grid;
  grid-template-columns: auto minmax(24rem, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.fd-cmms-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 238px);
  gap: 0.75rem;
}

.fd-cmms-action-grid .fd-action-tile {
  width: 238px;
  height: 160px;
  min-height: 160px;
}

.fd-cmms-action-grid .fd-action-tile-main {
  align-self: center;
  justify-self: center;
  padding: 0 0.875rem;
}

.fd-cmms-reading-notes textarea {
  min-height: 100px;
}

.fd-cmms-plan-action-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.fd-cmms-work-order {
  max-width: 76rem;
}

.fd-cmms-work-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-cmms-work-order-summary-card {
  display: grid;
  gap: 0.35rem;
  min-height: 5.25rem;
  padding: 1rem;
}

.fd-cmms-summary-label {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fd-cmms-summary-value {
  min-width: 0;
  color: var(--fd-text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.fd-cmms-work-order-detail-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.fd-detail-span-2 {
  grid-column: span 2;
}

.fd-cmms-due-form,
.fd-cmms-due-form .fd-field {
  width: 100%;
}

.fd-cmms-due-readonly {
  max-width: 14rem;
}

.fd-cmms-due-readonly span {
  font-size: 1rem;
  font-weight: 500;
}

.fd-cmms-due-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.fd-cmms-work-order-completion {
  display: grid;
  gap: 0.875rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fd-border);
}

.fd-cmms-work-order-completion h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
}

.fd-cmms-work-order-completion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
}

.fd-cmms-work-order-completion textarea {
  height: 6rem;
  min-height: 6rem;
}

.fd-cmms-work-order-parts {
  overflow: visible;
}

.fd-cmms-work-order-parts .fd-card-header {
  align-items: flex-start;
}

.fd-cmms-work-order-part-rows {
  display: grid;
  gap: 0.75rem;
}

.fd-cmms-work-order-part-row {
  display: grid;
  grid-template-columns: minmax(16rem, 1.5fr) minmax(7rem, 0.5fr) minmax(12rem, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  overflow: visible;
}

.fd-cmms-work-order-part-remove {
  align-self: end;
}

.fd-cmms-work-order-part-row .fd-combobox {
  z-index: 1;
}

.fd-cmms-work-order-part-row .fd-combobox:focus-within {
  z-index: 45;
}

.fd-cmms-danger-card {
  border-color: rgb(218 30 40 / 34%);
}

.fd-cmms-danger-card .fd-card-header {
  border-bottom-color: rgb(218 30 40 / 18%);
}

.fd-link-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fd-link);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.fd-link-button:hover,
.fd-link-button:focus-visible {
  color: var(--fd-link-hover);
  text-decoration: underline;
}

.fd-detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.fd-detail-list div {
  display: grid;
  gap: 0.2rem;
}

.fd-detail-list dt {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fd-detail-list dd {
  margin: 0;
}

.fd-cmms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem 1rem;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
}

.fd-cmms-modal-form {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.fd-cmms-modal-body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
  overscroll-behavior: contain;
}

.fd-cmms-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
}

.fd-cmms-interval-section {
  display: grid;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-cmms-interval-toggle {
  align-items: flex-start;
}

.fd-cmms-interval-toggle strong,
.fd-cmms-interval-toggle small {
  display: block;
}

.fd-cmms-interval-toggle strong {
  color: var(--fd-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.fd-cmms-interval-toggle small {
  margin-top: 0.125rem;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}

.fd-cmms-interval-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(10rem, 0.8fr);
  gap: 1rem;
  align-items: start;
}

.fd-segmented-control {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  min-height: 2.5rem;
  overflow: hidden;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: #ffffff;
}

.fd-segmented-option {
  display: inline-grid;
  min-width: 0;
}

.fd-segmented-option + .fd-segmented-option {
  border-left: 1px solid var(--fd-border);
}

.fd-segmented-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fd-segmented-option span {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.fd-segmented-option input:checked + span {
  background: var(--fd-link);
  color: #ffffff;
}

.fd-segmented-option input:focus-visible + span {
  box-shadow: inset 0 0 0 3px rgb(15 98 254 / 24%);
}

.fd-input-suffix-group {
  display: flex;
  align-items: stretch;
}

.fd-input-suffix-group input {
  border-radius: var(--fd-radius-sm) 0 0 var(--fd-radius-sm);
}

.fd-input-suffix {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--fd-border-strong);
  border-left: 0;
  border-radius: 0 var(--fd-radius-sm) var(--fd-radius-sm) 0;
  background: var(--fd-surface-2);
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
}

.fd-info-note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgb(15 98 254 / 28%);
  border-radius: var(--fd-radius-sm);
  background: rgb(15 98 254 / 6%);
  color: var(--fd-text);
  font-size: 0.875rem;
}

.fd-info-note .ti {
  flex: 0 0 auto;
  color: var(--fd-link);
  font-size: 1.1rem;
}

.fd-cmms-task-defs {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-cmms-task-defs-heading {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.fd-cmms-task-defs-rows {
  display: grid;
  gap: 0.625rem;
}

.fd-cmms-task-def-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.625rem;
  align-items: end;
}

.fd-cmms-task-def-fields {
  min-width: 0;
}

.fd-cmms-task-def-required {
  /* No extra padding needed — align-items: end on the row handles vertical alignment. */
}

.fd-cmms-task-signoff {
  display: grid;
  gap: 0.5rem;
}

.fd-cmms-task-signoff-item {
  align-items: flex-start;
}

.fd-cmms-task-signoff-item strong,
.fd-cmms-task-signoff-item small {
  display: block;
}

.fd-cmms-task-signoff-item strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.fd-cmms-task-signoff-item small {
  margin-top: 0.125rem;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

.fd-cmms-task-signoff-done strong {
  text-decoration: line-through;
  color: var(--fd-text-secondary);
}

.fd-command-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.fd-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.34fr);
  gap: var(--fd-dashboard-gap);
  align-items: start;
}

.fd-today-layout {
  display: grid;
  gap: var(--fd-dashboard-gap);
  min-width: 0;
}

.fd-today-highlights-strip {
  position: relative;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.fd-today-highlights-strip--scrollable::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  right: 0;
  bottom: 0.75rem;
  width: 3.5rem;
  border-radius: 0 var(--fd-radius-sm) var(--fd-radius-sm) 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0%), var(--fd-surface-1) 72%);
  pointer-events: none;
  z-index: 3;
}

.fd-today-highlights-more {
  position: absolute;
  top: 50%;
  right: 0.625rem;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--fd-border);
  border-radius: 999px;
  background: var(--fd-surface-1);
  color: var(--fd-text-secondary);
  box-shadow: var(--fd-shadow-card);
  pointer-events: none;
  transform: translateY(-50%);
}

.fd-today-highlights-more .ti {
  font-size: 1rem;
}

.fd-today-highlights-toolbar {
  display: flex;
  justify-content: flex-end;
}

.fd-today-highlights-strip .fd-today-highlight-list {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.125rem 0 0.35rem;
  scroll-snap-type: x proximity;
}

.fd-today-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 2rem;
}

.fd-ops-today .fd-turnaround-timeline {
  --fd-turnaround-timeline-label-width: clamp(15rem, 24vw, 18rem);
}

.fd-today-turnaround-list,
.fd-today-highlight-list {
  display: grid;
  gap: 0.625rem;
}

.fd-today-turnaround-row,
.fd-today-highlight {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  color: var(--fd-text);
  text-decoration: none;
}

.fd-today-turnaround-row {
  grid-template-columns: minmax(3.5rem, 0.12fr) minmax(0, 1fr) minmax(8rem, 0.34fr) auto;
  min-height: 4.5rem;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-today-turnaround-row:hover,
.fd-today-highlight:hover {
  border-color: var(--fd-border-strong);
  color: var(--fd-text);
}

.fd-today-carriers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.fd-today-carrier-logo {
  max-width: 2.75rem;
  max-height: 1.4rem;
}

.fd-today-timeline-label-main {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.fd-today-timeline-carriers {
  justify-content: flex-start;
  width: 3.5rem;
}

.fd-today-timeline-copy {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.fd-today-timeline-copy .fd-list-title {
  min-width: 0;
  overflow-wrap: normal;
}

.fd-today-timeline-track-empty {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

.fd-today-turnaround-main,
.fd-today-turnaround-meta,
.fd-today-highlight-body {
  min-width: 0;
  display: grid;
  gap: 0.125rem;
}

.fd-today-turnaround-main strong,
.fd-today-highlight strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.fd-today-turnaround-main > span,
.fd-today-turnaround-meta,
.fd-today-highlight-detail,
.fd-today-prm-groups {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

.fd-today-prm-groups {
  display: grid;
  gap: 0.125rem;
}

.fd-today-prm-group {
  display: block;
}

.fd-today-prm-count {
  color: var(--fd-text-muted);
}

.fd-today-turnaround-meta {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fd-today-highlight {
  position: relative;
  display: block;
  flex: 0 0 19rem;
  width: 19rem;
  max-width: calc(100vw - 3rem);
  padding: 0.625rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  scroll-snap-align: start;
}

.fd-today-highlight-content {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 1rem;
  align-items: center;
  gap: 0.75rem;
  min-height: 100%;
  color: var(--fd-text);
  text-decoration: none;
}

.fd-today-highlight-content:hover {
  color: var(--fd-text);
}

.fd-today-highlight-hide-form {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
}

.fd-icon-btn.fd-today-highlight-hide {
  width: 0.9375rem;
  height: 0.9375rem;
  min-height: 0.9375rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fd-text-muted);
  opacity: 0.58;
}

.fd-icon-btn.fd-today-highlight-hide .ti {
  width: 0.875rem;
  height: 0.875rem;
  font-size: 0.875rem;
  stroke-width: 2;
}

.fd-icon-btn.fd-today-highlight-hide:hover,
.fd-icon-btn.fd-today-highlight-hide:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--fd-text);
  opacity: 1;
}

.fd-today-highlight-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #fcf4d6;
  color: #8e6a00;
}

.fd-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.36fr);
  gap: var(--fd-dashboard-gap);
  align-items: start;
}

.fd-dashboard-main,
.fd-dashboard-side {
  min-width: 0;
  display: grid;
  gap: var(--fd-dashboard-gap);
}

.fd-board-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  overflow: hidden;
}

.fd-board-toggle-link {
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-right: 1px solid var(--fd-border);
}

.fd-board-toggle-link:last-child {
  border-right: 0;
}

.fd-board-toggle-link:hover {
  background: var(--fd-surface-2);
  color: var(--fd-text);
}

.fd-board-toggle-link.is-active {
  background: var(--fd-link);
  color: #ffffff;
}

.fd-flight-board-table {
  min-width: 74rem;
}

.fd-cell-lines {
  display: grid;
  gap: 0.125rem;
}

.fd-flight-logo-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.fd-carrier-logo {
  width: 4.5rem;
  height: 1.75rem;
  object-fit: contain;
  flex: 0 0 auto;
}

.fd-public-board-body {
  min-height: 100vh;
  overflow: hidden;
  background: rgb(23 60 99);
  color: #ffffff;
}

.fd-public-board {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 0%) 28rem),
    rgb(23 60 99);
}

.fd-public-board-header {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto minmax(12rem, 1fr);
  align-items: center;
  gap: 2rem;
  min-width: 0;
}

.fd-public-board-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.fd-public-board-logo {
  width: 12rem;
  max-height: 5rem;
  object-fit: contain;
}

.fd-public-board-title {
  margin: 0;
  font-size: 3.25rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.fd-public-board-clock {
  justify-self: end;
  color: rgb(255 255 255 / 82%);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-public-board-table-wrap {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--fd-radius-md);
  background: rgb(255 255 255 / 96%);
  color: var(--fd-text);
  box-shadow: 0 24px 70px rgb(0 0 0 / 22%);
}

.fd-public-board-table {
  --fd-public-board-row-height: 8rem;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.fd-public-board-table th,
.fd-public-board-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--fd-border);
  text-align: left;
  vertical-align: middle;
}

.fd-public-board-table th {
  background: #e8eef6;
  color: #31445f;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-public-board-table th:nth-child(1),
.fd-public-board-table td:nth-child(1) {
  width: 13%;
}

.fd-public-board-table th:nth-child(2),
.fd-public-board-table td:nth-child(2) {
  width: 30%;
}

.fd-public-board-table th:nth-child(3),
.fd-public-board-table td:nth-child(3) {
  width: 20%;
}

.fd-public-board-table th:nth-child(4),
.fd-public-board-table td:nth-child(4) {
  width: 17%;
}

.fd-public-board-table th:nth-child(5),
.fd-public-board-table td:nth-child(5) {
  width: 20%;
}

.fd-public-board-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.fd-public-board-table tbody tr,
.fd-public-board-table tbody td {
  height: var(--fd-public-board-row-height);
}

.fd-public-board-table tbody tr:last-child td {
  border-bottom: 0;
}

.fd-public-board-time,
.fd-public-board-airports,
.fd-public-board-flight,
.fd-public-board-status {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}

.fd-public-carrier-logo {
  width: 11rem;
  height: 3rem;
  object-fit: contain;
}

.fd-public-board-airports {
  display: grid;
  gap: 0.25rem;
  color: #1f2937;
}

.fd-public-board-airline {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.15;
}

.fd-public-board-status {
  display: grid;
  align-content: center;
  gap: 0.2rem;
  color: #1f2937;
}

.fd-public-board-mobile-status {
  display: none;
}

.fd-public-board-scheduled-time {
  display: block;
}

.fd-public-board-status-success {
  color: #0f7b45;
}

.fd-public-board-status-warning {
  color: #b45309;
}

.fd-public-board-status-danger {
  color: #b91c1c;
}

.fd-public-board-empty {
  padding: 4rem 1.5rem;
  color: var(--fd-text-secondary);
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
}

.fd-check-in-screen-body {
  min-height: 100vh;
  overflow: hidden;
  background: rgb(22 60 99);
  color: #ffffff;
}

.fd-check-in-screen {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 33.333vh minmax(0, 1fr);
  background: rgb(22 60 99);
}

.fd-check-in-screen-empty-state {
  grid-template-rows: 0 minmax(0, 1fr);
}

.fd-check-in-screen-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #ffffff;
  color: rgb(22 60 99);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 700;
}

.fd-check-in-screen-empty-state .fd-check-in-screen-brand {
  display: none;
}

.fd-check-in-screen-main {
  position: relative;
  min-height: 0;
  display: grid;
  padding: 2.5rem 4rem 9rem;
  background: rgb(22 60 99);
}

.fd-check-in-screen-empty-state .fd-check-in-screen-main {
  min-height: 100vh;
  padding: 4rem;
  place-items: center;
}

.fd-check-in-screen-content {
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}

.fd-check-in-screen-empty-state .fd-check-in-screen-content {
  width: 100%;
  height: 100%;
  place-content: center;
}

.fd-check-in-carrier-logo {
  width: calc(100vw - 40px);
  height: calc(33.333vh - 40px);
  object-fit: contain;
}

.fd-check-in-flight {
  color: #ffffff;
  font-size: clamp(6rem, 15vw, 16rem);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.fd-check-in-destination {
  display: grid;
  gap: 0.35rem;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(3.75rem, 7.5vw, 8.5rem);
  font-weight: 600;
  line-height: 1;
}

.fd-check-in-message {
  width: min(72rem, 86vw);
  margin-bottom: 1.5rem;
  padding: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  white-space: nowrap;
  overflow: hidden;
}

.fd-check-in-message > span {
  display: inline-block;
  max-width: 100%;
}

.fd-check-in-message-scroll > span {
  max-width: none;
  padding-left: 100%;
  animation: fd-check-in-message-scroll 24s linear infinite;
}

.fd-check-in-empty {
  display: grid;
  justify-items: center;
  width: min(86rem, 82vw);
}

.fd-check-in-empty img {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
}

.fd-check-in-clock {
  position: fixed;
  z-index: 10;
  right: 1.5rem;
  bottom: 2rem;
  pointer-events: none;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(2rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .fd-check-in-screen-brand {
    padding: 20px;
  }

  .fd-check-in-screen-main {
    padding: 2rem 2rem 7rem;
  }

  .fd-check-in-screen-content {
    gap: 1rem;
  }

  .fd-check-in-clock {
    right: 1rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 900px) {
  .fd-public-board {
    gap: 1.25rem;
    padding: 1rem;
    overflow-x: auto;
  }

  .fd-public-board-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
  }

  .fd-public-board-logo {
    width: 8rem;
  }

  .fd-public-board-title {
    font-size: 2.5rem;
  }

  .fd-public-board-clock {
    font-size: 2rem;
  }

  .fd-public-board-time,
  .fd-public-board-flight {
    font-size: 1.75rem;
  }

  .fd-public-board-airports,
  .fd-public-board-status {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .fd-public-board {
    gap: 0.625rem;
    padding: 0.5rem;
    overflow-x: hidden;
  }

  .fd-public-board-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.5rem;
  }

  .fd-public-board-logo {
    width: 5.25rem;
    max-height: 2.5rem;
  }

  .fd-public-board-title {
    font-size: 1.85rem;
  }

  .fd-public-board-clock {
    font-size: 1.55rem;
  }

  .fd-public-board-table {
    --fd-public-board-row-height: 5.75rem;
    width: 100%;
    min-width: 0;
  }

  .fd-public-board-table th,
  .fd-public-board-table td {
    padding: 0.55rem 0.25rem;
  }

  .fd-public-board-table th {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
  }

  .fd-public-board-table th:nth-child(1),
  .fd-public-board-table td:nth-child(1) {
    width: 22%;
  }

  .fd-public-board-table th:nth-child(2),
  .fd-public-board-table td:nth-child(2) {
    width: 34%;
  }

  .fd-public-board-table th:nth-child(3),
  .fd-public-board-table td:nth-child(3) {
    width: 18%;
  }

  .fd-public-board-table th:nth-child(4),
  .fd-public-board-table td:nth-child(4) {
    width: 26%;
  }

  .fd-public-board-table th:nth-child(5),
  .fd-public-board-table td:nth-child(5) {
    display: none;
  }

  .fd-public-board-time,
  .fd-public-board-flight {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .fd-public-board-table td.fd-public-board-time {
    text-align: center;
  }

  .fd-public-board-airports,
  .fd-public-board-status {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .fd-public-board-mobile-status {
    position: relative;
    display: block;
    margin-top: 0.35rem;
    min-height: 1.05em;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.05;
    overflow: hidden;
  }

  .fd-public-board-mobile-status span {
    display: block;
  }

  .fd-public-board-mobile-status-rotating span {
    animation: fd-public-board-mobile-status-fade 6s ease-in-out infinite;
    opacity: 0;
  }

  .fd-public-board-mobile-status-rotating span + span {
    position: absolute;
    inset: 0;
    animation-delay: 3s;
  }

  .fd-public-board-airline {
    font-size: 0.75rem;
    overflow-wrap: anywhere;
  }

  .fd-public-carrier-logo {
    width: 2.75rem;
    height: 1.5rem;
  }

  .fd-public-board-empty {
    padding: 2.5rem 0.75rem;
    font-size: 1.25rem;
  }
}

@keyframes fd-public-board-mobile-status-fade {
  0%,
  42% {
    opacity: 1;
  }

  50%,
  92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fd-check-in-message-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.fd-turnaround-timeline {
  --fd-turnaround-timeline-label-width: clamp(10rem, 18vw, 12rem);
  display: grid;
  gap: 0.625rem;
  overflow-x: auto;
  overflow-y: clip;
}

.fd-turnaround-timeline-scale,
.fd-turnaround-timeline-row {
  display: grid;
  grid-template-columns: var(--fd-turnaround-timeline-label-width) minmax(34rem, 1fr);
  column-gap: 1rem;
  align-items: center;
}

.fd-turnaround-timeline-scale {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

.fd-turnaround-timeline-scale-label {
  justify-self: start;
}

.fd-turnaround-timeline-scale-times {
  position: relative;
  min-height: 1rem;
  min-width: 0;
}

.fd-turnaround-timeline-scale-times span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}

.fd-turnaround-timeline-scale-times span:nth-child(1) {
  left: 0;
}

.fd-turnaround-timeline-scale-times span:nth-child(2) {
  left: 25%;
  transform: translateX(-50%);
}

.fd-turnaround-timeline-scale-times span:nth-child(3) {
  left: 50%;
  transform: translateX(-50%);
}

.fd-turnaround-timeline-scale-times span:nth-child(4) {
  left: 75%;
  transform: translateX(-50%);
}

.fd-turnaround-timeline-scale-times span:nth-child(5) {
  right: 0;
}

.fd-turnaround-timeline-row {
  min-height: 3.25rem;
}

.fd-turnaround-timeline-label {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.fd-turnaround-timeline-track {
  --fd-turnaround-timeline-lane-height: 2.5rem;
  --fd-turnaround-timeline-lane-offset: 0rem;
  --fd-turnaround-timeline-track-height: 2.5rem;
  position: relative;
  min-height: var(--fd-turnaround-timeline-track-height);
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background:
    linear-gradient(90deg, transparent 24.9%, var(--fd-border) 25%, transparent 25.1%),
    linear-gradient(90deg, transparent 49.9%, var(--fd-border) 50%, transparent 50.1%),
    linear-gradient(90deg, transparent 74.9%, var(--fd-border) 75%, transparent 75.1%),
    var(--fd-surface-2);
}

.fd-turnaround-timeline-bar {
  position: absolute;
  top: calc(0.375rem + var(--fd-turnaround-timeline-lane-offset));
  height: calc(var(--fd-turnaround-timeline-lane-height) - 0.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 3.5rem;
  padding: 0 0.5rem;
  border-radius: var(--fd-radius-xs);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 14px rgb(15 98 254 / 22%);
}

.fd-turnaround-timeline-segment {
  position: absolute;
  top: calc(0.375rem + var(--fd-turnaround-timeline-lane-offset));
  height: calc(var(--fd-turnaround-timeline-lane-height) - 0.75rem);
  z-index: 2;
  min-width: 0.35rem;
  border-radius: var(--fd-radius-xs);
  pointer-events: none;
}

.fd-turnaround-timeline-segment.is-early {
  background: var(--fd-success);
  box-shadow: 0 6px 14px rgb(36 161 72 / 20%);
}

.fd-turnaround-timeline-segment.is-late {
  background: var(--fd-danger);
  box-shadow: 0 6px 14px rgb(218 30 40 / 20%);
}

.fd-turnaround-timeline-time {
  position: relative;
  z-index: 3;
  white-space: nowrap;
}

.fd-turnaround-timeline-bar.is-compact {
  justify-content: center;
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.fd-turnaround-timeline-bar.is-compact .fd-turnaround-timeline-time {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0 0.45rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-xs);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  box-shadow: 0 4px 10px rgb(22 22 22 / 12%);
  transform: translateY(-50%);
}

.fd-turnaround-timeline-bar.is-compact .fd-turnaround-timeline-time-start {
  right: calc(100% + 0.25rem);
}

.fd-turnaround-timeline-bar.is-compact .fd-turnaround-timeline-time-end {
  left: calc(100% + 0.25rem);
}

.fd-turnaround-timeline-bar:hover {
  color: #ffffff;
  filter: brightness(0.96);
}

.fd-turnaround-timeline-bar.is-compact:hover .fd-turnaround-timeline-time {
  color: var(--fd-text);
}

.fd-turnaround-timeline-bar.is-ready {
  background: linear-gradient(135deg, #0f62fe, #0043ce);
}

.fd-turnaround-timeline-bar.is-pairing {
  background: linear-gradient(135deg, #f1c21b, #ff832b);
  color: #161616;
}

.fd-deferred-panel,
.fd-occupancy-placeholder {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px dashed var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-deferred-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #fff4ce;
  color: #8a3800;
  font-weight: 600;
}

.fd-metric-placeholder {
  display: grid;
  gap: 0.25rem;
  min-height: 7rem;
  align-content: center;
}

.fd-metric-value {
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-occupancy-ring {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  border: 0.75rem solid var(--fd-border);
  border-radius: 999px;
  color: var(--fd-text-secondary);
  font-weight: 600;
}

.fd-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.375rem;
  padding: 0.0625rem 0.375rem;
  border: 1px solid currentColor;
  border-radius: 0;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.fd-status-neutral {
  color: var(--fd-text-secondary);
  background: var(--fd-surface-2);
}

.fd-status-info {
  color: var(--fd-info);
  background: #edf5ff;
}

.fd-status-success {
  color: var(--fd-success);
  background: #defbe6;
}

.fd-status-warning {
  color: #8e6a00;
  background: #fcf4d6;
}

.fd-status-danger {
  color: var(--fd-danger);
  background: #fff1f1;
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, opacity 120ms ease, transform 120ms ease;
}

.fd-btn:hover {
  text-decoration: none;
}

.fd-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.fd-btn-primary {
  background: var(--fd-link);
  border-color: var(--fd-link);
  color: #ffffff;
}

.fd-btn-primary:hover {
  background: var(--fd-link-hover);
  border-color: var(--fd-link-hover);
  color: #ffffff;
}

.fd-btn:active {
  transform: translateY(1px);
}

.fd-btn-secondary {
  background: var(--fd-surface-3);
  border-color: var(--fd-border-strong);
  color: var(--fd-text);
}

.fd-btn-secondary:hover {
  background: #dde3ea;
  border-color: var(--fd-border-strong);
  color: var(--fd-text);
}

.fd-btn-ghost {
  background: transparent;
  border-color: var(--fd-border-strong);
  color: var(--fd-text);
}

.fd-btn-ghost:hover {
  background: var(--fd-surface-2);
  color: var(--fd-text);
}

.fd-btn-danger {
  background: var(--fd-danger);
  border-color: var(--fd-danger);
  color: #ffffff;
}

.fd-btn-danger:hover {
  background: #a2191f;
  border-color: #a2191f;
  color: #ffffff;
}

.fd-btn-sm {
  min-height: 1.875rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
}

.fd-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.fd-icon-btn:hover,
.fd-icon-btn:focus-visible {
  background: var(--fd-surface-2);
  color: var(--fd-link);
}

.fd-icon-btn-danger {
  background: var(--fd-danger);
  border-color: var(--fd-danger);
  color: #ffffff;
}

.fd-icon-btn-danger:hover,
.fd-icon-btn-danger:focus-visible {
  background: #a2191f;
  border-color: #a2191f;
  color: #ffffff;
}

.fd-icon-btn-secondary {
  background: var(--fd-surface-2);
  color: var(--fd-text);
}

.fd-icon-btn .ti {
  font-size: 1.125rem;
}

.fd-btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   8. Forms (inputs, selects, textareas)
   -------------------------------------------------------------------------- */

.fd-form {
  display: grid;
  gap: 1rem;
}

.fd-form-grid {
  display: grid;
  gap: 1rem;
}

.fd-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-form-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fd-report-filter-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.fd-report-filter-grid > .fd-field {
  grid-column: span 2;
}

.fd-report-filter-grid > .fd-field:nth-child(n + 4) {
  grid-column: span 3;
}

.fd-form-section {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
  border-radius: var(--fd-radius-sm);
}

.fd-load-section {
  gap: 1.25rem;
  padding: 1.25rem;
}

.fd-load-section-title {
  margin: 0;
  color: var(--fd-text);
  font-size: 1.125rem;
  font-weight: 600;
}

.fd-load-total {
  color: var(--fd-text);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.1;
}

.fd-load-divider {
  border-top: 1px solid var(--fd-border);
}

.fd-load-field-row {
  display: grid;
  gap: 1.5rem;
}

.fd-load-passenger-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-load-weight-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-ldm-section {
  gap: 1rem;
}

.fd-ldm-section .fd-settings-section-header {
  margin-bottom: 0;
}

.fd-ldm-output {
  max-height: 18rem;
  margin: 0;
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.fd-uppercase {
  text-transform: uppercase;
}

.fd-field,
.fd-fieldset {
  display: grid;
  gap: 0.375rem;
}

.fd-inline-field {
  align-items: center;
  display: inline-flex;
  gap: 0.5rem;
}

.fd-field-stretch {
  flex: 1 1 20rem;
}

.fd-fieldset {
  padding: 1rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
  border-radius: var(--fd-radius-sm);
}

.fd-fieldset-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.fd-label {
  display: inline-block;
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-required-marker {
  color: var(--fd-danger);
}

.fd-label-inline {
  margin: 0;
}

.fd-input,
.fd-form input[type="text"],
.fd-form input[type="password"],
.fd-form input[type="email"],
.fd-form input[type="date"],
.fd-form input[type="datetime-local"],
.fd-form input[type="number"],
.fd-form input[type="file"],
.fd-form select,
.fd-form textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: #ffffff;
  color: var(--fd-text);
  padding: 0.625rem 0.75rem;
}

.fd-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.fd-manual-invoice-row-form {
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fd-border);
}

.fd-manual-invoice-row-fields {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(20rem, 1.4fr) minmax(9rem, 0.7fr) minmax(12rem, 0.8fr) auto;
  gap: 0.75rem;
}

.fd-manual-invoice-row-form textarea {
  height: 2.75rem;
  min-height: 2.75rem;
}

.fd-manual-invoice-row-errors {
  grid-column: 1 / -1;
}

.fd-manual-invoice-row-actions {
  display: flex;
  align-items: flex-end;
  padding-top: 1.5rem;
}

.fd-input::placeholder,
.fd-form input::placeholder,
.fd-form textarea::placeholder {
  color: var(--fd-text-muted);
}

.fd-input:focus,
.fd-form input:focus,
.fd-form select:focus,
.fd-form textarea:focus {
  border-color: var(--fd-link);
  box-shadow: inset 0 0 0 1px var(--fd-link), var(--fd-shadow-focus);
}

.fd-field-error .fd-input,
.fd-field-error input,
.fd-field-error select,
.fd-field-error textarea,
.fd-field-error .fd-combobox-input,
.fd-field-error .fd-multiselect-control {
  border-color: var(--fd-danger);
  box-shadow: inset 0 0 0 1px var(--fd-danger);
}

.fd-page-subtitle {
  margin: 0;
  max-width: 48rem;
  color: var(--fd-text-secondary);
  font-size: 0.9375rem;
}

.fd-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  gap: 1.5rem;
  align-items: start;
}

.fd-settings-layout-single,
.fd-settings-layout-hub {
  grid-template-columns: minmax(0, 1fr);
}

.fd-settings-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 75rem) {
  .fd-settings-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .fd-settings-hub-grid {
    grid-template-columns: 1fr;
  }
}

.fd-settings-hub-card {
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  min-height: 12rem;
  padding: 1.25rem;
}

.fd-settings-hub-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.fd-settings-group {
  display: grid;
  gap: 0.75rem;
}

.fd-settings-group-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fd-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.25rem;
  margin: 0.5rem 0 0 0;
}

.fd-settings-group-title .ti {
  font-size: 1rem;
  color: var(--fd-link);
}

.fd-settings-hub-icon {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface-2);
  color: var(--fd-link);
}

.fd-settings-hub-icon .ti {
  font-size: 1.25rem;
}

.fd-settings-card-actions {
  display: flex;
  justify-content: flex-end;
}

.fd-settings-form {
  min-width: 0;
}

.fd-settings-section {
  padding: 1.35rem;
}

.fd-settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.fd-settings-section-heading {
  display: grid;
  gap: 1rem;
}

.fd-settings-section .fd-form-grid {
  gap: 1.5rem;
}

.fd-settings-action-list {
  display: grid;
}

.fd-settings-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--fd-border);
}

.fd-settings-action-list > .fd-settings-action-row:first-child,
.fd-settings-section > .fd-settings-action-row {
  padding-top: 0;
  border-top: 0;
}

.fd-settings-action-list > .fd-settings-action-row:last-child,
.fd-settings-section > .fd-settings-action-row {
  padding-bottom: 0;
}

.fd-settings-action-row > div {
  min-width: 0;
}

.fd-settings-action-title {
  margin: 0 0 0.25rem;
  color: var(--fd-text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
}

.fd-settings-input-shell {
  position: relative;
}

.fd-settings-readonly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.75rem;
  align-items: center;
  min-height: 3.125rem;
  padding: 0.625rem 0;
}

.fd-settings-readonly > span {
  min-width: 0;
  overflow: hidden;
  color: var(--fd-text);
  font-size: 0.875rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-settings-readonly-wide {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.fd-settings-edit-button {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 0;
  border-radius: var(--fd-radius-xs);
  background: transparent;
  color: var(--fd-text-secondary);
  cursor: pointer;
}

.fd-settings-edit-button:hover {
  background: var(--fd-surface-2);
  color: var(--fd-link);
}

.fd-settings-edit-button:disabled {
  color: var(--fd-text-muted);
  cursor: not-allowed;
  opacity: 0.45;
}

.fd-settings-edit-button:disabled:hover {
  background: transparent;
  color: var(--fd-text-muted);
}

.fd-settings-edit-button .ti {
  font-size: 1.05rem;
}

.fd-settings-input-shell .fd-input {
  min-height: 3.125rem;
  border-color: var(--fd-border);
  box-shadow: inset 0 1px 2px rgb(22 22 22 / 3%);
  font-size: 0.875rem;
  text-overflow: ellipsis;
}

.fd-settings-input-shell .fd-input::placeholder {
  color: var(--fd-text);
  opacity: 1;
}

.fd-settings-summary {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
}

.fd-settings-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.fd-settings-summary-header .ti {
  margin-top: 0.25rem;
  color: var(--fd-text-secondary);
  font-size: 1rem;
}

.fd-settings-state {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.fd-settings-state.is-ok {
  color: var(--fd-success);
}

.fd-settings-state.is-warning {
  color: #8e6a00;
}

.fd-settings-state.is-muted {
  color: var(--fd-text-secondary);
}

.fd-settings-status-list {
  display: grid;
  margin: 0;
}

.fd-settings-status-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--fd-border);
}

.fd-settings-status-list > div:first-child {
  margin-top: 0.25rem;
}

.fd-settings-status-list > div:last-child {
  padding-bottom: 0;
}

.fd-settings-status-list dt {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.fd-settings-status-list dd {
  margin: 0;
  color: var(--fd-text);
  font-size: 0.875rem;
  text-align: right;
}

.fd-fids-token-grid {
  align-items: start;
}

.fd-fids-preview {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.fd-fids-preview-shell {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.fd-fids-preview-summary {
  width: max-content;
  list-style: none;
}

.fd-fids-preview-summary::-webkit-details-marker {
  display: none;
}

.fd-fids-preview-frame {
  width: min(100%, 24rem);
  height: 30rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface-2);
}

.fd-check-in-screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fd-check-in-screen-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface-2);
}

.fd-check-in-screen-panel.is-disabled {
  background: var(--fd-surface);
  color: var(--fd-text-secondary);
}

.fd-check-in-screen-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

@media (max-width: 900px) {
  .fd-check-in-screen-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.fd-checkbox-field {
  display: flex;
  align-items: end;
  min-height: 100%;
}

.fd-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--fd-text);
  font-size: 0.875rem;
  font-weight: 500;
}

.fd-checkbox-label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--fd-link);
}

.fd-choice-list ul {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-choice-list-columns ul {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.fd-choice-list li {
  min-width: 0;
}

.fd-choice-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  font-size: 0.875rem;
  line-height: 1.35;
}

.fd-choice-list input {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  accent-color: var(--fd-link);
}

.fd-temporary-password {
  padding: 1rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-family: var(--fd-font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.fd-field-error .fd-input-prefix {
  border-color: var(--fd-danger);
}

.fd-input-prefix-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
}

.fd-input-prefix {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--fd-border-strong);
  border-right: 0;
  border-radius: var(--fd-radius-sm) 0 0 var(--fd-radius-sm);
  background: var(--fd-surface-2);
  color: var(--fd-text-secondary);
  white-space: nowrap;
}

.fd-form .fd-input-prefix-group input {
  border-radius: 0 var(--fd-radius-sm) var(--fd-radius-sm) 0;
}

.fd-combobox {
  position: relative;
}

.fd-combobox-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fd-combobox-list {
  position: absolute;
  display: none;
  z-index: 40;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--fd-border-strong);
  background: var(--fd-surface-1);
  border-radius: var(--fd-radius-sm);
  box-shadow: var(--fd-shadow-overlay);
}

.fd-combobox-list.is-open {
  display: block;
}

.fd-combobox-option {
  display: block;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  text-align: left;
  cursor: pointer;
}

.fd-combobox-option:last-of-type {
  border-bottom: 0;
}

.fd-combobox-option:hover,
.fd-combobox-option.is-active {
  background: var(--fd-surface-2);
}

.fd-combobox-option[aria-selected="true"] {
  border-left: 3px solid var(--fd-link);
  font-weight: 500;
}

.fd-combobox-empty {
  margin: 0;
  padding: 0.75rem;
  color: var(--fd-text-muted);
}

.fd-multiselect {
  position: relative;
}

.fd-multiselect-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fd-multiselect-control {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.375rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.375rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: #ffffff;
  cursor: text;
}

.fd-multiselect-control:focus-within {
  border-color: var(--fd-link);
  box-shadow: inset 0 0 0 1px var(--fd-link), var(--fd-shadow-focus);
}

.fd-multiselect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.fd-multiselect-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 1.875rem;
  max-width: 100%;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgb(15 98 254 / 20%);
  border-radius: var(--fd-radius-xs);
  background: rgb(15 98 254 / 8%);
  color: var(--fd-link);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.fd-multiselect-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-multiselect-input {
  width: 100%;
  min-width: 8rem;
  min-height: 1.875rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fd-text);
  font: inherit;
}

.fd-multiselect-list {
  position: absolute;
  display: none;
  z-index: 40;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-height: 17rem;
  overflow-y: auto;
  border: 1px solid var(--fd-border-strong);
  background: var(--fd-surface-1);
  border-radius: var(--fd-radius-sm);
  box-shadow: var(--fd-shadow-overlay);
}

.fd-multiselect-list.is-open {
  display: block;
}

.fd-multiselect-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.625rem;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  text-align: left;
  cursor: pointer;
}

.fd-multiselect-option:last-of-type {
  border-bottom: 0;
}

.fd-multiselect-option:hover,
.fd-multiselect-option.is-active {
  background: var(--fd-surface-2);
}

.fd-multiselect-option-check {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-xs);
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1;
}

.fd-multiselect-option[aria-selected="true"] .fd-multiselect-option-check {
  border-color: var(--fd-link);
  background: var(--fd-link);
}

.fd-multiselect-empty {
  margin: 0;
  padding: 0.75rem;
  color: var(--fd-text-muted);
}

.fd-checkbox {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  accent-color: var(--fd-link);
}

.fd-check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  border-radius: var(--fd-radius-sm);
}

.fd-check-field .fd-help {
  margin-top: 0.125rem;
}

.fd-invoicing-rule-form-card {
  max-width: 76rem;
}

.fd-invoicing-rule-form-grid {
  align-items: start;
}

.fd-error {
  margin: 0;
  color: var(--fd-danger);
  font-size: 0.8125rem;
}

.fd-alert {
  padding: 0.875rem 1rem;
  border: 1px solid var(--fd-border-strong);
  border-left-width: 4px;
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-alert p {
  margin: 0;
}

.fd-alert-success {
  border-left-color: var(--fd-success);
}

.fd-alert-error {
  border-left-color: var(--fd-danger);
}

.fd-alert-warning {
  border-left-color: var(--fd-warning);
}

/* --------------------------------------------------------------------------
   11. Tables
   -------------------------------------------------------------------------- */

.fd-table-wrap {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.fd-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: separate;
  border-spacing: 0;
}

.fd-table th,
.fd-table td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--fd-border);
  text-align: left;
  vertical-align: middle;
}

.fd-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--fd-surface-2);
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-turnaround-import-preview {
  margin-bottom: 1rem;
}

.fd-turnaround-import-preview section[aria-labelledby^="turnaround-import-"] {
  padding-top: 0.25rem;
}

.fd-turnaround-import-preview section[aria-labelledby^="turnaround-import-"] + section[aria-labelledby^="turnaround-import-"] {
  margin-top: 1rem;
}

.fd-import-table {
  table-layout: fixed;
  width: 100%;
}

.fd-turnaround-import-preview-table .fd-table,
.fd-import-table {
  min-width: 56rem;
}

.fd-turnaround-import-preview-table td {
  vertical-align: top;
}

.fd-import-col-date {
  width: 18%;
}

.fd-import-col-flight {
  width: 18%;
}

.fd-import-col-route {
  width: 32%;
}

.fd-import-col-status {
  width: 32%;
}

.fd-import-col-change {
  width: 30%;
}

.fd-import-col-before,
.fd-import-col-after {
  width: 17%;
}

.fd-import-col-apply {
  width: 8%;
}

.fd-import-col-apply-date {
  width: 14%;
}

.fd-import-col-aircraft {
  width: 18%;
}

.fd-import-col-arrival,
.fd-import-col-departure {
  width: 22%;
}

.fd-import-col-notes {
  width: 16%;
}

.fd-import-flight-route,
.fd-import-flight-time {
  display: block;
}

.fd-import-status-warning {
  color: var(--fd-warning);
  font-weight: 700;
}

.fd-turnaround-import-preview-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 0.75rem;
  background: var(--fd-surface-1);
}

.fd-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.fd-table tbody tr:hover {
  background: #edf5ff;
}

.fd-table tbody tr.is-highlighted {
  background: #e8f1ff;
}

.fd-table tbody tr:last-child td {
  border-bottom: 0;
}

.fd-table tfoot td {
  border-top: 2px solid var(--fd-border-strong);
  background: var(--fd-surface-2);
  font-weight: 600;
}

.fd-table td.is-actions,
.fd-table th.is-actions {
  width: 1%;
  white-space: nowrap;
}

.fd-table td.is-number,
.fd-table th.is-number {
  text-align: right;
}

.fd-table-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--fd-text-secondary);
}

.fd-table-responsive td {
  overflow-wrap: anywhere;
}

.fd-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.fd-list-item {
  display: grid;
  gap: 0.375rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  border-radius: var(--fd-radius-sm);
}

.fd-list-title {
  display: block;
  font-weight: 500;
}

.fd-list-meta {
  display: block;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   12. Turnaround Components
   -------------------------------------------------------------------------- */

.fd-turnaround-toolbar,
.fd-turnaround-command-bar {
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(10rem, 0.75fr)) auto auto;
  align-items: end;
}

.fd-turnaround-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fd-turnaround-kpi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  min-height: 7.25rem;
  align-items: start;
}

.fd-turnaround-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #edf5ff;
  color: var(--fd-link);
  font-weight: 700;
}

.fd-turnaround-kpi-icon .ti {
  font-size: 1.35rem;
}

.fd-turnaround-kpi-warning .fd-turnaround-kpi-icon {
  background: #fff1e6;
  color: #ba4e00;
}

.fd-turnaround-kpi-main {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
}

.fd-turnaround-kpi-label {
  margin: 0;
  color: var(--fd-text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.fd-turnaround-kpi-value {
  color: var(--fd-text);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-turnaround-kpi-footnote {
  margin: 0;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

.fd-baggage-scanner {
  display: grid;
  gap: 1rem;
  min-width: 0;
  max-width: 100%;
}

.fd-baggage-kpi-grid {
  grid-template-columns: repeat(4, minmax(8rem, 1fr));
}

.fd-baggage-toolbar {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.fd-panel-actions.fd-baggage-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.fd-baggage-toolbar-row {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.fd-baggage-toolbar-row-primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-baggage-toolbar-row-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fd-baggage-toolbar-row .fd-btn {
  justify-content: center;
  min-width: 0;
}

.fd-baggage-toolbar-row .fd-btn i {
  font-size: 1.05rem;
}

.fd-baggage-toolbar-btn {
  min-height: 3.25rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.fd-baggage-toolbar-btn.is-active,
.fd-baggage-toolbar-btn[aria-pressed="true"] {
  border-color: var(--fd-link);
  background: #dbeafe;
  color: var(--fd-link);
}

.fd-baggage-mode-summary {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-baggage-launcher-list {
  display: grid;
  gap: 0.75rem;
}

.fd-baggage-launcher .fd-page-head {
  padding-bottom: 0.5rem;
}

.fd-baggage-launcher .fd-page-head-main {
  gap: 0.25rem;
}

.fd-baggage-launcher .fd-page-eyebrow {
  font-size: 0.6875rem;
}

.fd-baggage-launcher .fd-title {
  font-size: 1.5rem;
}

.fd-baggage-launcher-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.fd-baggage-launcher-card.is-locked {
  border-color: #facc15;
}

.fd-baggage-launcher-card.is-del-warning {
  background: #fee2e2;
  border-color: #dc2626;
}

.fd-baggage-launcher-main {
  display: grid;
  gap: 0.625rem;
  min-width: 0;
}

.fd-baggage-launcher-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fd-baggage-launcher-route {
  margin: 0;
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
}

.fd-baggage-launcher-std {
  color: var(--fd-text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.fd-baggage-launcher-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
}

.fd-baggage-launcher-meta div {
  min-width: 0;
  padding: 0.625rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-baggage-launcher-meta dt {
  margin: 0 0 0.2rem;
  color: var(--fd-text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-baggage-launcher-meta dd {
  margin: 0;
  color: var(--fd-text);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.fd-baggage-launcher-mode {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-baggage-launcher-bags {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fd-text-secondary);
}

.fd-baggage-launcher-reg {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-baggage-launcher-actions {
  display: flex;
  justify-content: flex-end;
}

.fd-baggage-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: stretch;
  min-width: 0;
}

.fd-baggage-panel {
  min-width: 0;
  max-width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-baggage-scan-panel {
  position: sticky;
  top: 0.75rem;
  z-index: 5;
}

.fd-baggage-scanner-mode {
  gap: 0.2rem;
}

.fd-baggage-scanner-mode .fd-page-head {
  padding-bottom: 0;
  border-bottom: 0;
}

.fd-baggage-scanner-header-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
  min-width: 0;
}

.fd-baggage-header-menu {
  position: relative;
  min-width: 0;
}

.fd-baggage-header-menu-toggle {
  display: grid;
  gap: 0.125rem;
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  text-align: left;
}

.fd-baggage-header-menu-toggle:focus-visible {
  outline: 2px solid var(--fd-focus);
  outline-offset: 2px;
}

.fd-baggage-header-menu-label {
  color: var(--fd-text-secondary);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.fd-baggage-header-menu-value {
  min-width: 0;
  overflow: hidden;
  color: var(--fd-text);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-baggage-header-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 0.25rem;
  width: min(19rem, calc(100vw - 1.25rem));
  max-height: min(18rem, 60dvh);
  padding: 0.35rem;
  overflow: auto;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  box-shadow: var(--fd-shadow-md);
}

.fd-baggage-header-menu:nth-child(2) .fd-baggage-header-menu-panel {
  right: 0;
  left: auto;
}

.fd-baggage-header-menu-panel[hidden] {
  display: none;
}

.fd-baggage-header-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.fd-baggage-header-menu-item:hover,
.fd-baggage-header-menu-item:focus-visible,
.fd-baggage-header-menu-item.is-active {
  background: #edf5ff;
  color: var(--fd-link);
}

.fd-baggage-header-menu-main {
  min-width: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-baggage-header-menu-meta {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
}

.fd-baggage-header-menu-form {
  margin: 0;
}

.fd-baggage-header-create-trigger {
  margin-top: 0.25rem;
  border-top: 1px solid var(--fd-border);
}

.fd-baggage-header-menu-empty {
  padding: 0.5rem;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 700;
}

.fd-baggage-scanner-mode .fd-baggage-scanner {
  gap: 0.18rem;
}

.fd-app.is-pwa-scanner .fd-baggage-scanner > * + * {
  margin-top: 0.18rem;
}

.fd-baggage-scanner-mode .fd-baggage-scan-panel {
  top: 0;
}

.fd-app.is-pwa-scanner .fd-baggage-scan-panel {
  padding: 0;
  border: 0;
  background: transparent;
  margin-top: -0.1rem;
}

.fd-app.is-pwa-scanner .fd-baggage-scan-panel > * + * {
  margin-top: 0;
}

.fd-app.is-pwa-scanner .fd-baggage-camera {
  gap: 0.25rem;
}

.fd-app.is-pwa-scanner .fd-baggage-camera-status {
  min-height: 0;
  font-size: 0.74rem;
  line-height: 1.15;
}

.fd-app.is-pwa-scanner .fd-alert {
  padding: 0.45rem 0.6rem;
  border-left-width: 3px;
  font-size: 0.875rem;
  line-height: 1.2;
}

.fd-app.is-pwa-scanner .fd-baggage-toolbar {
  gap: 0.3rem;
}

.fd-app.is-pwa-scanner .fd-baggage-toolbar-row {
  gap: 0.3rem;
}

.fd-baggage-scanner-mode .fd-baggage-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fd-baggage-panel-head,
.fd-baggage-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fd-baggage-panel-title,
.fd-baggage-section-title {
  margin: 0;
  color: var(--fd-text);
  font-size: 0.95rem;
  font-weight: 600;
}

.fd-baggage-summary {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-baggage-summary.is-del-warning {
  background: #fee2e2;
  border-color: #dc2626;
}

.fd-app.is-pwa-scanner .fd-baggage-summary {
  gap: 0.18rem;
  padding: 0;
  border: 0;
  background: transparent;
  margin-top: -0.1rem;
}

.fd-app.is-pwa-scanner .fd-baggage-summary.is-del-warning {
  background: transparent;
  border-color: transparent;
}

.fd-baggage-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
}

.fd-baggage-summary-cell {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem;
  background: var(--fd-surface-2);
  border-right: 1px solid var(--fd-border);
}

.fd-app.is-pwa-scanner .fd-baggage-summary-cell {
  gap: 0.15rem;
  padding: 0.4rem;
}

.fd-app.is-pwa-scanner .fd-baggage-summary-label {
  font-size: 0.64rem;
}

.fd-app.is-pwa-scanner .fd-baggage-summary-value {
  font-size: 1.2rem;
}

.fd-baggage-summary-cell:last-child {
  border-right: 0;
}

.fd-baggage-summary-label {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-baggage-summary-value {
  color: var(--fd-text);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-baggage-destination-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.fd-baggage-destination-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.fd-baggage-destination-link:hover,
.fd-baggage-destination-link.is-active {
  border-color: var(--fd-link);
  background: #edf5ff;
  color: var(--fd-link);
}

.fd-baggage-mode-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.fd-baggage-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.fd-baggage-mode-option.is-active {
  border-color: var(--fd-link);
  background: #edf5ff;
  color: var(--fd-link);
}

.fd-baggage-inline-form,
.fd-baggage-hold-form {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
}

.fd-baggage-hold-form {
  grid-template-columns: minmax(5rem, 8rem) auto;
}

.fd-baggage-camera {
  display: grid;
  gap: 0.5rem;
}

.fd-baggage-camera-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.fd-baggage-scan-btn {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1.125rem;
}

.fd-baggage-mode-btn.is-active {
  --fd-btn-bg: var(--fd-primary);
  --fd-btn-color: #fff;
}

.fd-baggage-scan-panel.is-offload-mode {
  background: rgb(255 230 230);
}

.fd-baggage-scan-panel.is-move-mode {
  background: rgb(220 235 255);
}

.fd-baggage-camera-status,
.fd-baggage-scan-context {
  margin: 0;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-baggage-camera-reader {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-app.is-pwa-scanner .fd-baggage-camera-reader {
  height: clamp(12rem, 32vh, 18rem);
  min-height: 0;
}

.fd-baggage-camera-toggle-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  transform: translateZ(0);
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-color: rgb(15 23 42 / 32%);
  background: rgb(255 255 255 / 92%);
  color: var(--fd-text);
  box-shadow: var(--fd-shadow-sm);
}

.fd-baggage-camera-toggle-icon i {
  font-size: 1.25rem;
}

.fd-baggage-camera-toggle-icon.is-active {
  background: rgb(15 23 42 / 88%);
  color: #ffffff;
}

.fd-baggage-camera-torch-icon {
  position: absolute;
  top: 3.5rem;
  right: 0.5rem;
  z-index: 2;
  transform: translateZ(0);
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-color: rgb(15 23 42 / 32%);
  background: rgb(255 255 255 / 92%);
  color: var(--fd-text);
  box-shadow: var(--fd-shadow-sm);
}

.fd-baggage-camera-torch-icon i {
  font-size: 1.25rem;
}

.fd-baggage-camera-torch-icon.is-active {
  background: rgb(15 23 42 / 88%);
  color: #ffffff;
}

.fd-baggage-camera-reader video {
  display: block;
  width: 100%;
  height: clamp(12rem, 32vh, 18rem);
  object-fit: cover;
}

.fd-app.is-pwa-scanner .fd-baggage-camera-reader video {
  position: absolute;
  inset: 0;
  height: 100%;
}

.fd-baggage-scan-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: #ffffff;
  letter-spacing: 0;
  text-align: center;
  padding: 2rem;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}

.fd-baggage-scan-overlay-content {
  display: grid;
  gap: 1rem;
  justify-items: center;
  max-width: min(90vw, 52rem);
}

.fd-baggage-scan-overlay-title {
  font-size: clamp(3rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.fd-baggage-scan-overlay-detail {
  font-size: clamp(1.1rem, 4.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.fd-baggage-scan-overlay.is-ok {
  background: #15803d;
}

.fd-baggage-scan-overlay.is-rejected {
  background: #b91c1c;
}

.fd-baggage-scan-overlay.is-loading {
  background: #ffffff;
  cursor: default;
}

.fd-baggage-scan-loading-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid var(--fd-border);
  border-top-color: var(--fd-primary);
  border-radius: 50%;
  animation: fd-spin 0.8s linear infinite;
}

@keyframes fd-spin {
  to {
    transform: rotate(360deg);
  }
}

.fd-baggage-scan-overlay[hidden] {
  display: none;
}

.fd-baggage-offline-panel[hidden] {
  display: none;
}

.fd-baggage-offline-summary {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-baggage-offline-list {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.fd-baggage-offline-table {
  min-width: 36rem;
}

.fd-baggage-offline-action-list {
  display: grid;
  gap: 0.5rem;
}

.fd-baggage-offline-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-baggage-offline-action.is-failed {
  border-color: #fecaca;
  background: #fef2f2;
}

.fd-baggage-offline-action-text {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: var(--fd-text);
  font-size: 0.8125rem;
}

.fd-baggage-offline-action-text span {
  color: var(--fd-text-secondary);
  word-break: break-word;
}

.fd-baggage-table {
  min-width: 54rem;
}

.fd-baggage-scanner .fd-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.fd-baggage-table tr.is-muted {
  color: var(--fd-text-secondary);
  background: var(--fd-surface-2);
}

.fd-baggage-table tr.is-atl-denied {
  background: var(--fd-danger-bg-subtle, #fef2f2);
  color: var(--fd-danger-text, #991b1b);
}

.fd-baggage-modal .fd-card {
  width: min(100%, 64rem);
  display: flex;
  flex-direction: column;
}

.fd-baggage-modal-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.fd-baggage-bag-list-table {
  min-width: 46rem;
}

.fd-baggage-message-tooltip-bubble {
  width: min(28rem, calc(100vw - 2rem));
  max-width: min(28rem, calc(100vw - 2rem));
  max-height: min(56vh, 24rem);
  overflow: auto;
  white-space: normal;
}

.fd-baggage-tooltip-entry {
  display: grid;
  gap: 0.25rem;
}

.fd-baggage-tooltip-entry + .fd-baggage-tooltip-entry {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.fd-baggage-tooltip-meta {
  color: rgb(255 255 255 / 72%);
  font-size: 0.6875rem;
  font-weight: 600;
}

.fd-baggage-tooltip-raw {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}

.fd-baggage-message-log {
  display: grid;
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.fd-baggage-message-log-entry {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-baggage-message-log-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-baggage-raw-message {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--fd-text);
  font-family: var(--fd-font-sans);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.fd-turnaround-list-shell {
  display: grid;
  gap: 0;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  box-shadow: var(--fd-shadow-card);
  overflow: visible;
}

.fd-turnaround-list-shell > *,
#turnaround-search-results {
  min-width: 0;
}

.fd-turnaround-filter-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.fd-turnaround-filter-form > *,
.fd-turnaround-date-range,
.fd-turnaround-shortcuts {
  min-width: 0;
}

.fd-turnaround-date-card {
  padding: 0.875rem 1rem;
}

.fd-turnaround-date-control {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fd-turnaround-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.fd-turnaround-date-picker {
  min-width: 0;
}

.fd-turnaround-shortcuts {
  display: grid;
  gap: 0.375rem;
}

.fd-turnaround-list-header {
  padding: 0.875rem 1rem;
  margin-bottom: 0;
  background: var(--fd-surface-1);
}

.fd-turnaround-results-meta {
  display: flex;
  justify-content: flex-end;
}

.fd-turnaround-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
}

.fd-turnaround-results-count {
  color: var(--fd-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.fd-table td.is-number,
.fd-table th.is-number,
.fd-comment-meta time,
.fd-event-log-item time,
.fd-time-stepper-help,
.fd-turnaround-page-current {
  font-variant-numeric: tabular-nums;
}

.fd-turnaround-results-actions {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.fd-inline-link {
  color: var(--fd-link);
  font-weight: 500;
  text-decoration: none;
}

.fd-inline-link:hover {
  color: var(--fd-link-hover);
  text-decoration: underline;
}

.fd-turnaround-table {
  display: grid;
  min-width: 0;
}

.fd-turnaround-table-head,
.fd-turnaround-row {
  display: grid;
  grid-template-columns: minmax(5rem, 0.55fr) minmax(5.5rem, 0.55fr) minmax(10rem, 1fr) minmax(5rem, 0.5fr) minmax(5rem, 0.5fr) minmax(5.5rem, 0.55fr) minmax(7rem, 0.7fr) minmax(7rem, 0.7fr) minmax(4.5rem, 0.45fr) minmax(4.5rem, 0.45fr);
  align-items: center;
}

.fd-turnaround-list-table .fd-turnaround-table-head,
.fd-turnaround-list-table .fd-turnaround-row {
  grid-template-columns: minmax(5rem, 0.5fr) minmax(5.5rem, 0.5fr) minmax(9rem, 1fr) minmax(4.5rem, 0.42fr) minmax(4.75rem, 0.42fr) minmax(5rem, 0.48fr) minmax(6.25rem, 0.55fr) minmax(7.5rem, 0.65fr) minmax(6.25rem, 0.55fr) minmax(7.5rem, 0.65fr) minmax(5.5rem, 0.5fr);
}

.fd-flight-list-table .fd-turnaround-table-head,
.fd-flight-list-table .fd-turnaround-row {
  grid-template-columns: minmax(5rem, 0.55fr) minmax(5.5rem, 0.55fr) minmax(10rem, 1fr) minmax(5rem, 0.5fr) minmax(5.5rem, 0.55fr) minmax(7rem, 0.7fr) minmax(7rem, 0.7fr) minmax(5.5rem, 0.55fr);
}

.fd-turnaround-table-head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

.fd-turnaround-list-table .fd-turnaround-table-head {
  padding-right: 3.25rem;
}

.fd-turnaround-table-head span {
  color: var(--fd-text-secondary);
  font-weight: 500;
  letter-spacing: 0;
}

.fd-column-label-stack {
  display: inline-grid;
  gap: 0.1rem;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.fd-turnaround-table-head .fd-column-label-stack span {
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.fd-turnaround-column-head {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.fd-turnaround-column-head.is-align-start {
  justify-content: flex-start;
}

.fd-turnaround-sort-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.fd-turnaround-column-head-sta,
.fd-turnaround-column-head-std,
.fd-turnaround-column-head-departure,
.fd-turnaround-column-head-arrival {
  align-items: flex-start;
}

.fd-turnaround-column-head-sta .fd-turnaround-sort-link,
.fd-turnaround-column-head-std .fd-turnaround-sort-link,
.fd-turnaround-column-head-departure .fd-turnaround-sort-link,
.fd-turnaround-column-head-arrival .fd-turnaround-sort-link {
  align-items: flex-start;
}

.fd-turnaround-column-head-sta .fd-turnaround-sort-label,
.fd-turnaround-column-head-std .fd-turnaround-sort-label,
.fd-turnaround-column-head-departure .fd-turnaround-sort-label,
.fd-turnaround-column-head-arrival .fd-turnaround-sort-label {
  max-width: 7.5rem;
}

.fd-turnaround-sort-link:hover,
.fd-turnaround-sort-link.is-active {
  color: var(--fd-link);
}

.fd-turnaround-table-head .fd-turnaround-sort-label {
  color: inherit;
  font-weight: inherit;
}

.fd-turnaround-table-head .fd-turnaround-sort-meta {
  color: var(--fd-text-secondary);
  font-weight: 500;
}

.fd-turnaround-sort-indicator {
  color: currentColor;
  font-size: 0.8rem;
  line-height: 1;
}

.fd-turnaround-filter {
  position: relative;
  display: inline-grid;
}

.fd-turnaround-filter-toggle {
  width: 1.75rem;
  height: 1.75rem;
  border-color: transparent;
  background: transparent;
  color: var(--fd-text-secondary);
}

.fd-turnaround-filter-toggle:hover,
.fd-turnaround-filter-toggle.is-active {
  border-color: var(--fd-border-strong);
  background: var(--fd-surface-1);
  color: var(--fd-link);
}

.fd-turnaround-filter-toggle .ti {
  font-size: 1rem;
}

.fd-turnaround-filter-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 0.75rem;
  width: min(22rem, calc(100vw - 2rem));
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  box-shadow: var(--fd-shadow-overlay);
  color: var(--fd-text);
  text-transform: none;
}

.fd-turnaround-filter-popover-wide {
  width: min(26rem, calc(100vw - 2rem));
}

.fd-turnaround-filter-popover-right {
  right: 0;
  left: auto;
}

.fd-turnaround-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-turnaround-filter-presets,
.fd-turnaround-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fd-turnaround-filter-actions {
  justify-content: flex-end;
}

.fd-turnaround-filter-presets .fd-btn.is-active {
  border-color: var(--fd-link);
  color: var(--fd-link);
}

.fd-turnaround-table-body {
  display: grid;
}

.fd-turnaround-row {
  min-height: 6.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--fd-border);
  color: var(--fd-text);
}

.fd-turnaround-row-link {
  position: relative;
  padding-right: 3.25rem;
  color: var(--fd-text);
  text-decoration: none;
  cursor: pointer;
}

.fd-turnaround-row-link:hover {
  color: var(--fd-text);
  text-decoration: none;
}

.fd-turnaround-row:hover {
  background: #f9fbff;
}

.fd-turnaround-row-link:focus-visible {
  outline: 2px solid var(--fd-link);
  outline-offset: -2px;
  background: #f9fbff;
}

.fd-turnaround-row:last-child {
  border-bottom: 0;
}

.fd-turnaround-alert-indicator {
  position: absolute;
  top: 50%;
  right: 0.875rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgb(241 194 27 / 70%);
  border-radius: 999px;
  background: #fff7d6;
  color: #8a6d00;
  transform: translateY(-50%);
}

.fd-turnaround-alert-indicator .ti {
  font-size: 1rem;
}

.fd-tooltip {
  position: relative;
}

.fd-tooltip:not(.fd-icon-btn) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
}

.fd-tooltip[tabindex] {
  cursor: help;
}

.fd-tooltip:focus-visible {
  outline: 2px solid var(--fd-link);
  outline-offset: 2px;
  border-radius: var(--fd-radius-xs);
}

.fd-tooltip-bubble {
  position: absolute;
  display: none;
  bottom: calc(100% + 0.5rem);
  left: 0;
  z-index: 30;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.5rem 0.625rem;
  border-radius: var(--fd-radius-xs);
  background: #161616;
  box-shadow: var(--fd-shadow-overlay);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateY(0.25rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.fd-tooltip .fd-tooltip-bubble,
.fd-tooltip .fd-tooltip-bubble *,
.fd-turnaround-alert-tooltip,
.fd-turnaround-alert-tooltip * {
  color: #ffffff;
}

.fd-icon-btn.fd-tooltip .fd-tooltip-bubble {
  right: 0;
  left: auto;
}

.fd-header-alert-toggle.fd-tooltip .fd-tooltip-bubble {
  top: calc(100% + 0.5rem);
  right: 0;
  bottom: auto;
  left: auto;
  max-width: min(18rem, calc(100vw - 2rem));
  overflow-wrap: anywhere;
  white-space: normal;
}

.fd-turnaround-alert-tooltip {
  position: absolute;
  display: none;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 30;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.5rem 0.625rem;
  border-radius: var(--fd-radius-xs);
  background: #161616;
  box-shadow: var(--fd-shadow-overlay);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(0.25rem);
  transition: opacity 120ms ease, transform 120ms ease;
}

.fd-tooltip:hover .fd-tooltip-bubble,
.fd-tooltip:focus-visible .fd-tooltip-bubble,
.fd-tooltip:focus-within .fd-tooltip-bubble,
.fd-turnaround-sort-link:focus-visible .fd-tooltip-bubble {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.fd-turnaround-alert-indicator:hover .fd-turnaround-alert-tooltip,
.fd-turnaround-row-link:focus-visible .fd-turnaround-alert-tooltip {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.fd-turnaround-row-cell {
  min-width: 0;
  padding-right: 0.75rem;
  font-size: 0.875rem;
}

.fd-turnaround-date,
.fd-turnaround-carrier-cell,
.fd-turnaround-time-cell,
.fd-turnaround-status-cell {
  display: grid;
  gap: 0.25rem;
}

.fd-turnaround-date-primary,
.fd-turnaround-flight-title {
  color: var(--fd-text);
  font-weight: 500;
}

.fd-turnaround-date-secondary,
.fd-turnaround-route-cell p,
.fd-turnaround-route-note,
.fd-turnaround-status-cell > span:last-child {
  color: var(--fd-text-secondary);
}

.fd-turnaround-route-cell .fd-turnaround-codeshares {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

.fd-turnaround-flight-title {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.25;
}

.fd-turnaround-flight-title a {
  color: var(--fd-link);
  text-decoration: none;
}

.fd-turnaround-flight-title a:hover {
  color: var(--fd-link-hover);
  text-decoration: underline;
}

.fd-table-edit-button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.fd-table-edit-button:hover,
.fd-table-edit-button:focus-visible {
  color: var(--fd-link);
  text-decoration: underline;
}

.fd-table-edit-button-strong {
  font-weight: 500;
}

.fd-table-edit-button-muted {
  color: var(--fd-text-secondary);
}

.fd-turnaround-route-edit {
  margin-top: 0.35rem;
}

.fd-turnaround-route-note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
}

.fd-service-type-letter {
  font-weight: 500;
}

.fd-flight-list-title {
  color: var(--fd-text);
  font-weight: 500;
}

.fd-flight-list-title a {
  color: var(--fd-link);
  text-decoration: none;
}

.fd-flight-list-title a:hover {
  color: var(--fd-link-hover);
  text-decoration: underline;
}

.fd-turnaround-route-cell p {
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.fd-turnaround-carrier-cell {
  justify-items: start;
}

.fd-turnaround-carrier-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.fd-turnaround-carrier-logo {
  width: 4rem;
  height: 1.5rem;
}

.fd-turnaround-carrier-code {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0 0.45rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.fd-turnaround-time-cell {
  font-variant-numeric: tabular-nums;
}

.fd-turnaround-actual-time {
  font-weight: inherit;
}

.fd-turnaround-estimated-time {
  color: var(--fd-text-secondary);
  font-weight: 500;
}

.fd-turnaround-actual-time-success {
  color: var(--fd-success);
}

.fd-turnaround-actual-time-danger {
  color: var(--fd-danger);
}

.fd-turnaround-action-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.fd-danger-action-button {
  margin-left: auto;
}

.fd-turnaround-workspace-link {
  color: var(--fd-link);
}

.fd-turnaround-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--fd-border);
  color: var(--fd-text-secondary);
}

.fd-turnaround-page-current {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: var(--fd-radius-sm);
  background: var(--fd-link);
  color: #ffffff;
  font-weight: 600;
}

.fd-turnaround-card-list {
  display: grid;
  gap: 1rem;
}

.fd-turnaround-card {
  gap: 1rem;
}

.fd-turnaround-card-head,
.fd-turnaround-card-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fd-turnaround-card-main {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}

.fd-turnaround-card-title {
  margin: 0;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.fd-turnaround-card-subtitle,
.fd-turnaround-card-operator {
  color: var(--fd-text-secondary);
}

.fd-turnaround-card-subtitle {
  margin: 0;
}

.fd-turnaround-card-side {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.fd-turnaround-card-body {
  display: grid;
  gap: 1rem;
}

.fd-turnaround-fact-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.fd-turnaround-fact {
  display: grid;
  gap: 0.25rem;
}

.fd-turnaround-fact dt {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fd-turnaround-fact dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.fd-turnaround-fact dd span {
  display: block;
}

.fd-turnaround-progress {
  display: grid;
  gap: 0.5rem;
}

.fd-turnaround-progress-scale {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--fd-surface-2);
  overflow: hidden;
}

.fd-turnaround-progress-bar {
  height: 100%;
  border-radius: 999px;
}

.fd-turnaround-progress-bar.is-scheduled {
  background: var(--fd-success);
}

.fd-turnaround-progress-bar.is-in-progress {
  background: var(--fd-info);
}

.fd-turnaround-progress-bar.is-departed {
  background: var(--fd-text-secondary);
}

.fd-turnaround-progress-bar.is-cancelled {
  background: var(--fd-danger);
}

.fd-turnaround-flight-sections,
.fd-turnaround-actions {
  min-width: 0;
  display: grid;
  gap: 1rem;
}

.fd-header-alerts {
  display: inline-flex;
  max-width: min(42rem, 100%);
}

.fd-header-alerts[hidden] {
  display: none;
}

.fd-header-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.375rem 0.5rem 0.375rem 0.625rem;
  border-left-width: 3px;
}

.fd-header-alerts.is-collapsed .fd-header-alert {
  padding: 0;
  border: 0;
  background: transparent;
}

.fd-header-alert-content {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.fd-header-alert-icon {
  flex: 0 0 auto;
  color: #9f7a00;
  font-size: 1rem;
}

.fd-header-alert-title {
  color: var(--fd-text);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-header-alert-body {
  min-width: 0;
  max-width: min(34rem, 34vw);
  overflow: hidden;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-header-alert-form {
  display: inline-flex;
  flex: 0 0 auto;
}

.fd-header-alert-toggle {
  width: 2rem;
  height: 2rem;
}

.fd-header-alerts.is-collapsed .fd-header-alert-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-color: rgb(159 122 0 / 46%);
  color: #9f7a00;
}

/* --------------------------------------------------------------------------
   13. Workspace
   -------------------------------------------------------------------------- */

.fd-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 1px solid var(--fd-border);
}

.fd-workspace-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--fd-text-secondary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.fd-workspace-tab:hover {
  color: var(--fd-link);
}

.fd-workspace-tab.is-active {
  border-color: var(--fd-border);
  background: var(--fd-surface-1);
  color: var(--fd-text);
}

.fd-workspace-tab.is-disabled {
  color: var(--fd-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.fd-comment-list,
.fd-event-log-list {
  display: grid;
  gap: 0.75rem;
}

.fd-comment-bubble,
.fd-comment-form {
  max-width: 52rem;
}

.fd-comment-bubble {
  padding: 0.875rem 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.375rem;
}

.fd-comment-meta form {
  margin-left: auto;
}

.fd-inline-danger-button {
  border: 0;
  background: transparent;
  color: var(--fd-danger);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
}

.fd-inline-danger-button:hover {
  color: #a2191f;
  text-decoration: underline;
}

.fd-comment-meta time,
.fd-event-log-item time,
.fd-event-log-item span {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

.fd-comment-bubble p {
  margin: 0;
  color: var(--fd-text);
  line-height: 1.45;
}

.fd-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.fd-attachment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface);
  max-width: 100%;
}

.fd-attachment-thumb-link {
  flex-shrink: 0;
}

.fd-attachment-thumb {
  width: 4rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--fd-border);
}

.fd-attachment-icon-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 3rem;
  border: 1px solid var(--fd-border);
  border-radius: 3px;
  background: var(--fd-surface-2);
  text-decoration: none;
  color: var(--fd-text-secondary);
  font-size: 1.5rem;
}

.fd-attachment-icon-link:hover {
  background: var(--fd-surface-hover);
  color: var(--fd-text);
}

.fd-attachment-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.fd-attachment-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fd-link);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.3;
}

.fd-attachment-name:hover {
  text-decoration: underline;
}

.fd-attachment-size {
  font-size: 0.75rem;
  color: var(--fd-text-secondary);
}

.fd-attachment-info .fd-inline-form {
  margin-top: 0.125rem;
}

.fd-attachment-item-inline {
  border: none;
  padding: 0;
  background: transparent;
}

.fd-inline-form {
  display: inline;
}

.fd-event-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fd-event-log-item {
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--fd-border);
}

.fd-event-log-item:last-child {
  border-bottom: 0;
}

.fd-event-log-item div {
  display: grid;
  gap: 0.125rem;
}

.fd-event-log-source {
  display: inline-block;
  font-weight: 500;
  color: var(--fd-link);
}

.fd-event-log-reason {
  grid-column: 2;
  margin-top: 0.25rem;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

.fd-service-capture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fd-service-capture-group {
  display: grid;
  align-content: start;
  gap: 0.625rem;
}

.fd-service-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fd-service-button {
  justify-content: flex-start;
}

.fd-service-record-table td {
  vertical-align: top;
}

.fd-service-records-inline {
  margin-top: 0.75rem;
}

.fd-inline-form {
  display: inline;
}

.fd-field-span-2 {
  grid-column: 1 / -1;
}

.fd-turnaround-actions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fd-action-group-list {
  display: grid;
  gap: 1rem;
}

.fd-action-choice-list {
  display: grid;
  gap: 0.75rem;
}

.fd-action-group {
  display: grid;
  gap: 0.625rem;
}

.fd-action-group-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 0;
  border: none;
  background: none;
  color: var(--fd-text-secondary);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.fd-action-group-header:hover {
  color: var(--fd-text);
}

.fd-action-group-header:focus-visible {
  outline: none;
  box-shadow: var(--fd-shadow-focus);
  border-radius: var(--fd-radius-xs);
}

.fd-action-group-header-title {
  margin: 0;
}

.fd-action-group-chevron {
  font-size: 1rem;
  transition: transform 0.15s;
}

.fd-action-group-header[aria-expanded="false"] .fd-action-group-chevron {
  transform: rotate(-90deg);
}

.fd-action-group-panel[hidden] {
  display: none;
}

.fd-action-tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-action-tile {
  min-height: 10rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.fd-action-tile:focus-visible {
  outline: 2px solid var(--fd-link);
  outline-offset: 2px;
}

.fd-action-tile-status,
.fd-action-tile-main,
.fd-action-tile-label {
  display: block;
}

.fd-action-tile-status {
  justify-self: end;
  margin: 0.75rem 0.75rem 0 0.75rem;
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.fd-action-tile-main {
  align-self: end;
  padding: 0 0.875rem;
}

.fd-action-tile-service .fd-action-tile-main {
  grid-row: 2;
}

.fd-action-tile-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fd-action-tile-meta {
  display: block;
  margin-top: 0.35rem;
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  line-height: 1.35;
}

.fd-action-tile-helper {
  display: block;
  margin-top: 0.35rem;
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
}

.fd-action-tile-load-details {
  display: grid;
  gap: 0.125rem;
}

.fd-action-tile-load-row {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.fd-action-tile-load-label {
  font-weight: 700;
}

.fd-action-tile-label {
  grid-row: 3;
  padding: 0.75rem 0.875rem;
  border-top: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-size: 1rem;
  font-weight: 500;
}

.fd-action-tile.is-complete {
  background: var(--fd-success);
  border-color: var(--fd-success);
  color: var(--fd-bg);
}

.fd-action-tile.is-complete .fd-action-tile-status,
.fd-action-tile.is-complete .fd-action-tile-meta,
.fd-action-tile.is-complete .fd-action-tile-helper {
  color: var(--fd-bg);
}

.fd-action-tile.is-caution {
  background: var(--fd-warning);
  border-color: var(--fd-warning);
  color: var(--fd-text);
}

.fd-action-tile.is-caution .fd-action-tile-status,
.fd-action-tile.is-caution .fd-action-tile-meta,
.fd-action-tile.is-caution .fd-action-tile-helper {
  color: var(--fd-text);
}

.fd-action-tile.is-hidden {
  background: var(--fd-danger);
  border-color: var(--fd-danger);
  color: var(--fd-bg);
}

.fd-action-tile.is-hidden .fd-action-tile-status,
.fd-action-tile.is-hidden .fd-action-tile-meta,
.fd-action-tile.is-hidden .fd-action-tile-helper {
  color: var(--fd-bg);
}

.fd-action-tile.is-command {
  background: var(--fd-link);
  border-color: var(--fd-link);
  color: var(--fd-bg);
}

.fd-action-tile.is-command .fd-action-tile-status,
.fd-action-tile.is-command .fd-action-tile-meta {
  color: var(--fd-bg);
}

.fd-action-tile:hover {
  border-color: var(--fd-link);
}

.fd-action-tile.is-placeholder,
.fd-action-tile:disabled {
  background: var(--fd-surface-2);
  border-color: var(--fd-border);
  color: var(--fd-text-secondary);
  cursor: not-allowed;
}

.fd-action-tile.is-placeholder .fd-action-tile-status,
.fd-action-tile.is-placeholder .fd-action-tile-meta,
.fd-action-tile.is-placeholder .fd-action-tile-helper,
.fd-action-tile:disabled .fd-action-tile-status,
.fd-action-tile:disabled .fd-action-tile-meta,
.fd-action-tile:disabled .fd-action-tile-helper {
  color: var(--fd-text-secondary);
}

.fd-action-tile:disabled:hover {
  border-color: var(--fd-border);
}

.fd-action-tile.is-archived {
  background: var(--fd-surface-2);
  border-color: var(--fd-border);
  color: var(--fd-text-secondary);
  cursor: pointer;
}

.fd-action-tile.is-archived .fd-action-tile-status,
.fd-action-tile.is-archived .fd-action-tile-meta,
.fd-action-tile.is-archived .fd-action-tile-helper {
  color: var(--fd-text-secondary);
}

.fd-action-tile.is-archived:hover {
  border-color: var(--fd-link);
}

.fd-auth-page {
  width: min(100%, 34rem);
  max-width: 34rem;
  margin: 0 auto;
  gap: 3.5rem;
  justify-items: center;
}

.fd-auth-card {
  background: var(--fd-surface-1);
}

.fd-auth-brand {
  display: grid;
  justify-items: center;
}

.fd-auth-logo {
  width: min(320px, 76vw);
  height: auto;
}

.fd-login-card {
  width: 100%;
  padding: 2rem 2.25rem;
  border-color: rgb(168 176 187 / 54%);
  border-radius: var(--fd-radius-md);
  box-shadow: 0 1px 2px rgb(22 22 22 / 8%), 0 18px 48px rgb(23 60 99 / 12%);
}

.fd-login-card .fd-card-title {
  font-size: clamp(1.75rem, 4vw, 2rem);
  line-height: 1.12;
}

.fd-auth-login-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.fd-auth-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(4.25rem, 1fr));
  align-items: center;
  flex: 0 0 auto;
  gap: 0.125rem;
  margin: 0.125rem 0 0;
  padding: 0.1875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-md);
  background: var(--fd-surface-2);
}

.fd-auth-language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.375rem 0.625rem;
  border: 0;
  border-radius: var(--fd-radius-sm);
  background: transparent;
  color: var(--fd-text-secondary);
  cursor: pointer;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.fd-auth-language-option:hover,
.fd-auth-language-option:focus-visible {
  color: var(--fd-link-hover);
  background: #ffffff;
}

.fd-auth-language-option.is-active {
  background: #ffffff;
  color: var(--fd-link-hover);
  box-shadow: 0 1px 2px rgb(22 22 22 / 10%);
}

.fd-auth-primary-actions {
  display: grid;
}

.fd-auth-entra-button {
  width: 100%;
  min-height: 3.5rem;
  gap: 0.75rem;
  padding-inline: 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgb(15 98 254 / 18%);
}

.fd-auth-entra-button .ti {
  flex: 0 0 auto;
  font-size: 1.5rem;
}

.fd-auth-entra-button span {
  min-width: 0;
}

.fd-password-login {
  padding-top: 0.25rem;
}

.fd-auth-choice-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
}

.fd-auth-choice-divider::before,
.fd-auth-choice-divider::after {
  content: "";
  height: 1px;
  background: var(--fd-border);
}

.fd-auth-choice-divider span {
  white-space: nowrap;
}

.fd-auth-section-title {
  margin: 0;
  color: var(--fd-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.fd-login-card .fd-auth-form {
  gap: 0.875rem;
}

.fd-auth-check-field {
  justify-items: start;
  gap: 0.25rem;
}

.fd-auth-check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fd-text-secondary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.fd-auth-check-label .fd-checkbox {
  margin: 0;
}

.fd-auth-password-button {
  width: 100%;
  min-height: 2.75rem;
  font-weight: 600;
}

.fd-auth-divider {
  height: 1px;
  background: var(--fd-border);
}

.fd-session-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(22 22 22 / 64%);
  z-index: 60;
}

.fd-session-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
}

.fd-session-modal > .fd-card {
  width: min(100%, 34rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--fd-surface-1);
  box-shadow: var(--fd-shadow-overlay);
}

.fd-staff-allocation-modal {
  overflow: visible;
}

.fd-staff-allocation-modal > .fd-card,
.fd-staff-allocation-modal .fd-form,
.fd-staff-allocation-modal .fd-form-grid,
.fd-staff-allocation-modal .fd-field {
  overflow: visible;
}

.fd-fids-visibility-modal > .fd-card {
  width: min(100%, 34rem);
  padding: 0;
  overflow: hidden;
}

.fd-fids-visibility-header,
.fd-fids-visibility-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
}

.fd-fids-visibility-header {
  border-bottom: 1px solid var(--fd-border);
  justify-content: flex-start;
}

.fd-fids-visibility-list {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--fd-surface-2);
}

.fd-fids-visibility-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-fids-visibility-row-main {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.fd-fids-visibility-flight {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.fd-fids-visibility-side {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-fids-visibility-label {
  overflow: hidden;
  color: var(--fd-text);
  font-size: 1rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fd-fids-visibility-status {
  display: flex;
  align-items: center;
}

.fd-fids-visibility-actions {
  display: flex;
  justify-content: flex-end;
}

.fd-fids-visibility-action {
  min-width: 9.75rem;
  justify-content: center;
}

.fd-fids-visibility-footer {
  border-top: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  justify-content: flex-end;
}

.fd-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.625rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.fd-badge-public {
  border-color: #9ad7ab;
  background: #e6f5eb;
  color: #0e6027;
}

.fd-badge-hidden {
  border-color: #e7a0a4;
  background: #fbe7e9;
  color: #8f1319;
}

.fd-badge-unavailable {
  border-color: var(--fd-border);
  background: var(--fd-surface-2);
  color: var(--fd-text-secondary);
}

.fd-prm-modal .fd-prm-modal-card {
  width: min(100%, 40rem);
  padding: 0;
  overflow: hidden;
}

.fd-prm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
}

.fd-prm-form {
  margin: 0;
}

.fd-prm-modal-body {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
}

.fd-prm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: start;
}

.fd-prm-form-grid .fd-field-span-2 {
  grid-column: 1 / -1;
}

.fd-prm-modal .fd-field {
  gap: 0.45rem;
}

.fd-prm-modal textarea {
  min-height: 8rem;
}

.fd-prm-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
}

.fd-prm-modal-footer .fd-btn {
  min-width: 6rem;
}

.fd-prm-modal .fd-field-error .fd-label {
  color: var(--fd-danger);
}

.fd-field-errors {
  display: grid;
  gap: 0.25rem;
}

.fd-timestamp-modal .fd-timestamp-modal-card {
  width: min(100%, 29rem);
  padding: 1.25rem;
  text-align: center;
}

.fd-timestamp-modal-form {
  display: grid;
  justify-items: center;
  gap: 0.625rem;
}

.fd-timestamp-modal-form > * + * {
  margin-top: 0;
}

.fd-timestamp-modal-form .fd-alert,
.fd-timestamp-modal-form .fd-error {
  width: 100%;
  text-align: left;
}

.fd-timestamp-modal-actions {
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
}

.fd-ldm-backdrop {
  z-index: 80;
}

.fd-ldm-modal {
  z-index: 90;
}

.fd-ldm-modal .fd-card {
  width: min(100%, 44rem);
}

.fd-flight-field-modal .fd-card {
  overflow: visible;
}

.fd-flight-field-modal .fd-form-grid-2 .fd-label {
  display: flex;
  align-items: flex-end;
  min-height: 2.25rem;
}

.fd-flight-field-single-grid {
  grid-template-columns: minmax(16rem, 24rem);
}

.fd-flight-field-single-grid .fd-label {
  max-width: none;
}

.fd-turnaround-create-modal > .fd-card {
  width: min(100%, 62rem);
}

.fd-turnaround-create-modal > .fd-card {
  max-height: none;
  overflow: visible;
}

.fd-delay-codes-modal > .fd-card {
  width: min(100%, 44rem);
  overflow: visible;
}

.fd-delay-code-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
}

.fd-delay-code-summary-cell {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem;
  border-right: 1px solid var(--fd-border);
  border-bottom: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
}

.fd-delay-code-summary-cell:nth-child(2n) {
  border-right: 0;
}

.fd-delay-code-summary-cell:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.fd-delay-code-summary-label {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-delay-code-summary-value {
  color: var(--fd-text);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fd-delay-code-grid {
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 10rem);
  align-items: start;
}

.fd-deicing-modal .fd-card {
  width: min(100%, 64rem);
}

.fd-deicing-stock-grid,
.fd-deicing-action-grid,
.fd-deicing-result-grid,
.fd-deicing-summary-grid,
.fd-deicing-form-grid {
  display: grid;
  gap: 1rem;
}

.fd-deicing-stock-grid,
.fd-deicing-action-grid,
.fd-deicing-result-grid,
.fd-deicing-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fd-deicing-stock-card {
  min-height: 7.25rem;
}

.fd-deicing-action-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 7rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: var(--fd-shadow-card);
}

.fd-deicing-action-tile:hover,
.fd-deicing-action-tile:focus-visible {
  border-color: var(--fd-link);
}

.fd-deicing-action-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--fd-radius-sm);
  background: #edf5ff;
  color: var(--fd-link);
}

.fd-deicing-action-icon .ti {
  font-size: 1.75rem;
}

.fd-deicing-action-main,
.fd-deicing-action-title,
.fd-deicing-action-meta {
  display: block;
  min-width: 0;
}

.fd-deicing-action-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.fd-deicing-action-meta {
  margin-top: 0.25rem;
  color: var(--fd-text-secondary);
  font-size: 0.9375rem;
}

.fd-deicing-reference-card > div,
.fd-deicing-summary-grid > div {
  display: grid;
  gap: 0.25rem;
  min-height: 4.25rem;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-deicing-reference-card span,
.fd-deicing-summary-grid span {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fd-deicing-reference-card strong,
.fd-deicing-summary-grid strong {
  font-size: 1.125rem;
  font-weight: 600;
}

.fd-deicing-touch-button,
.fd-deicing-submit-button,
.fd-deicing-close-button {
  min-height: 4rem;
  font-size: 1rem;
}

.fd-deicing-submit-button {
  width: 100%;
  min-height: 4rem;
}

.fd-deicing-touch-modal {
  align-items: stretch;
  place-items: center;
}

.fd-deicing-touch-modal .fd-card {
  max-height: calc(100dvh - 2rem);
}

.fd-deicing-touch-form .fd-input,
.fd-deicing-touch-form input[type="text"],
.fd-deicing-touch-form input[type="date"],
.fd-deicing-touch-form input[type="time"],
.fd-deicing-touch-form input[type="datetime-local"],
.fd-deicing-touch-form input[type="number"],
.fd-deicing-touch-form select,
.fd-deicing-touch-form textarea,
.fd-deicing-large-input {
  min-height: 3.5rem;
  padding: 0.875rem 1rem;
  font-size: 1.0625rem;
}

.fd-deicing-touch-form textarea {
  min-height: 9rem;
}

.fd-deicing-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.fd-deicing-treatment-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fd-deicing-treatment-grid .fd-field {
  grid-column: 1 / -1;
}

.fd-deicing-segmented,
.fd-deicing-step-nav,
.fd-deicing-reference-card {
  display: grid;
  gap: 0.5rem;
}

.fd-deicing-segmented {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.25rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-deicing-segmented button {
  min-height: 3.5rem;
  border: 1px solid transparent;
  border-radius: var(--fd-radius-xs);
  background: transparent;
  color: var(--fd-text);
  cursor: pointer;
  font-weight: 600;
}

.fd-deicing-segmented button.is-active {
  border-color: var(--fd-link);
  background: var(--fd-link);
  color: #ffffff;
}

.fd-deicing-result-card {
  display: grid;
  gap: 0.5rem;
  min-height: 7rem;
  align-content: center;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  border-top: 3px solid var(--fd-link);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-deicing-result-value {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 650;
  line-height: 1.1;
}

.fd-deicing-reference-card {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-deicing-fieldset {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-deicing-fieldset > legend {
  padding-inline: 0.25rem;
  color: var(--fd-text);
  font-weight: 650;
}

.fd-deicing-check-tile {
  display: grid;
  min-height: 4.5rem;
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-deicing-check-tile label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3rem;
  cursor: pointer;
  font-weight: 600;
}

.fd-deicing-check-tile .fd-checkbox {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  flex: 0 0 auto;
}

.fd-deicing-daily-step-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fd-deicing-daily-unit-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.fd-deicing-daily-single-column {
  grid-template-columns: minmax(0, 1fr);
}

.fd-deicing-readonly-value {
  display: grid;
  align-items: center;
  min-height: 4rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-size: 1.25rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.fd-deicing-daily-reference-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-deicing-daily-reference-row .fd-deicing-readonly-value {
  gap: 0.375rem;
  min-height: 4.75rem;
}

.fd-deicing-daily-reference-row .fd-deicing-readonly-value > span {
  color: var(--fd-text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fd-deicing-daily-reference-row .fd-deicing-readonly-value > strong {
  color: var(--fd-text);
  font-size: 1.25rem;
  line-height: 1.1;
}

.fd-deicing-daily-section-title {
  margin: 0.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--fd-border);
  color: var(--fd-text);
  font-size: 1rem;
  font-weight: 650;
}

.fd-deicing-control-field {
  display: grid;
  gap: 0.75rem;
}

.fd-deicing-ok-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fd-deicing-ok-segment {
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.fd-deicing-ok-segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.fd-deicing-ok-segment.is-ok {
  border-color: #a7d3b8;
}

.fd-deicing-ok-segment.is-not-ok {
  border-color: #f2b8b5;
}

.fd-deicing-ok-segment.is-ok .fd-action-tile-status,
.fd-deicing-ok-segment.is-ok .fd-action-tile-value {
  color: var(--fd-success);
}

.fd-deicing-ok-segment.is-not-ok .fd-action-tile-status,
.fd-deicing-ok-segment.is-not-ok .fd-action-tile-value {
  color: var(--fd-danger);
}

.fd-deicing-ok-segment .fd-action-tile-main {
  align-self: center;
  padding: 0;
}

.fd-deicing-ok-segment .fd-action-tile-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.fd-deicing-ok-segment:has(input:checked) {
  box-shadow: 0 0 0 2px currentColor inset;
}

.fd-deicing-ok-segment.is-ok:has(input:checked) {
  background: #defbe6;
  color: var(--fd-success);
}

.fd-deicing-ok-segment.is-not-ok:has(input:checked) {
  background: #fff1f1;
  color: var(--fd-danger);
}

.fd-deicing-inline-button {
  min-height: 3.5rem;
  white-space: nowrap;
}

.fd-deicing-number-backdrop {
  z-index: 120;
}

.fd-deicing-number-modal {
  z-index: 130;
}

.fd-deicing-number-modal > .fd-card {
  width: min(32rem, calc(100vw - 2rem));
}

.fd-deicing-number-display {
  display: grid;
  place-items: center;
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  color: var(--fd-text);
  font-size: 2.25rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fd-deicing-number-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.fd-deicing-number-key {
  display: grid;
  place-items: center;
  min-height: 4rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
}

.fd-deicing-number-key:hover {
  border-color: var(--fd-link);
  background: #edf5ff;
}

.fd-deicing-number-key:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.fd-deicing-number-key-zero-centered {
  grid-column: 2;
}

.fd-deicing-number-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 0.75rem;
}

.fd-deicing-page [data-deicing-numeric-mode] {
  min-height: 4rem;
  cursor: pointer;
  caret-color: transparent;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.fd-deicing-check-list {
  display: grid;
  gap: 0.75rem;
}

.fd-deicing-check-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
}

.fd-deicing-check-row > div {
  display: grid;
  gap: 0.125rem;
}

.fd-deicing-check-row span {
  color: var(--fd-text-secondary);
}

.fd-deicing-step-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fd-deicing-step-tab {
  min-height: 4rem;
  padding: 0.625rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  cursor: pointer;
  font-weight: 600;
}

.fd-deicing-step-tab.is-active {
  border-color: var(--fd-link);
  background: #edf5ff;
  color: var(--fd-link);
}

.fd-deicing-step-tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.fd-deicing-step-panel {
  margin-top: 1rem;
}

.fd-deicing-daily-step-panel {
  padding-top: 1.5rem;
  border-top: 1px solid var(--fd-border);
}

.fd-deicing-input-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

.fd-deicing-step-actions {
  display: grid;
}

.fd-deicing-step-actions-split {
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 1rem;
}

.fd-time-picker {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  margin-block: 0.625rem 0.875rem;
}

.fd-time-date-field {
  width: min(14rem, 100%);
  justify-self: center;
}

.fd-time-date-field .fd-label {
  justify-self: center;
}

.fd-time-date-field .fd-input,
.fd-time-date-field input {
  text-align: center;
}

.fd-time-stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(6rem, 7.25rem));
  gap: 0.625rem;
  justify-content: center;
}

.fd-time-stepper-group {
  display: grid;
  grid-template-rows: 2.25rem minmax(3.75rem, 1fr) 2.25rem;
  min-height: 8.25rem;
  overflow: hidden;
  border: 1px solid var(--fd-border);
  border-radius: 8px;
  background: var(--fd-surface-1);
  box-shadow: var(--fd-shadow-card);
}

.fd-time-stepper-control {
  min-height: 2.25rem;
  border: 0;
  background: var(--fd-surface-2);
  color: var(--fd-text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.fd-time-stepper-control:hover {
  background: var(--fd-surface-3);
  color: var(--fd-link);
}

.fd-time-stepper-control:focus {
  outline: 2px solid var(--fd-link);
  outline-offset: -2px;
}

.fd-time-stepper-value {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 3.75rem;
  border: 0;
  border-radius: 0;
  background: var(--fd-surface-1);
  color: var(--fd-text);
  font-size: 2.125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

input.fd-time-stepper-value {
  appearance: textfield;
  padding: 0;
}

input.fd-time-stepper-value:focus {
  outline: 2px solid var(--fd-link);
  outline-offset: -2px;
}

.fd-time-stepper-help {
  color: var(--fd-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin: 0;
}

.fd-turnaround-create-card {
  padding: 1rem;
  gap: 1rem;
}

.fd-turnaround-create-card > header {
  padding-bottom: 0.25rem;
}

.fd-turnaround-create-form {
  gap: 0.875rem;
}

.fd-turnaround-create-panel {
  display: grid;
  gap: 0.625rem;
  padding: 0.875rem 1rem 1rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface-2);
  border-radius: var(--fd-radius-sm);
}

.fd-turnaround-create-leg {
  display: grid;
  gap: 0.625rem;
}

.fd-turnaround-create-leg + .fd-turnaround-create-leg {
  padding-top: 0.875rem;
  border-top: 1px solid var(--fd-border);
}

.fd-turnaround-create-leg-head,
.fd-turnaround-create-footer,
.fd-turnaround-create-leg-actions,
.fd-turnaround-create-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.fd-turnaround-create-leg-head {
  justify-content: space-between;
}

.fd-turnaround-create-panel > .fd-stack-xs,
.fd-turnaround-create-leg-head .fd-card-title {
  gap: 0.25rem;
}

.fd-turnaround-create-actions {
  justify-content: flex-start;
  padding: 0.375rem 0 0.125rem;
}

.fd-turnaround-create-mode {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.fd-turnaround-create-mode-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.fd-turnaround-create-mode-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--fd-border-strong);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
  color: var(--fd-text);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.fd-turnaround-create-mode-option:hover {
  background: var(--fd-surface-2);
}

.fd-turnaround-create-mode-option:has(input:focus-visible) {
  outline: 2px solid var(--fd-link);
  outline-offset: 2px;
}

.fd-turnaround-create-mode-option:has(input:checked) {
  border-color: var(--fd-link);
  background: var(--fd-link);
  color: #ffffff;
}

.fd-turnaround-create-mode-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.fd-turnaround-create-saved {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--fd-border);
  background: var(--fd-surface-1);
  border-radius: var(--fd-radius-sm);
}

.fd-turnaround-create-saved-main {
  display: grid;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.fd-turnaround-create-saved-row {
  display: grid;
  grid-template-columns: minmax(9rem, 1.1fr) minmax(8rem, 0.8fr) minmax(14rem, 1.4fr) minmax(10rem, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 0;
}

.fd-turnaround-create-saved-row div {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.fd-turnaround-create-saved-row dt {
  color: var(--fd-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fd-turnaround-create-saved-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.fd-turnaround-create-saved-row dd,
.fd-turnaround-create-saved-row dt {
  font-variant-numeric: tabular-nums;
}

.fd-turnaround-create-actions .fd-btn,
.fd-turnaround-create-leg-actions .fd-btn,
.fd-turnaround-create-footer .fd-btn {
  min-width: 10rem;
}

.fd-turnaround-create-actions .fd-btn {
  min-width: 11rem;
}

.fd-turnaround-create-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
}

.fd-turnaround-create-footer {
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 0.25rem;
}

.fd-session-title {
  font-size: 1.5rem;
}

.fd-mono {
  font-family: var(--fd-font-sans);
  font-variant-numeric: tabular-nums;
}

.fd-operational-value {
  font-family: var(--fd-font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}

.fd-col-span-full {
  grid-column: 1 / -1;
}

.fd-disclosure {
  padding: 0;
  overflow: hidden;
}

.fd-turnaround-create-modal .fd-disclosure {
  overflow: visible;
}

.fd-disclosure[open] > .fd-disclosure-summary {
  border-bottom: 1px solid var(--fd-border);
}

.fd-disclosure-summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.fd-disclosure-summary::-webkit-details-marker {
  display: none;
}

.fd-disclosure-summary::after {
  content: "+";
  color: var(--fd-text-secondary);
  font-size: 1.25rem;
  line-height: 1;
}

.fd-disclosure[open] > .fd-disclosure-summary::after {
  content: "-";
}

.fd-disclosure-body {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}

.fd-disclosure-summary-subtle {
  padding: 0;
  border-bottom: 0 !important;
}

.fd-invoice-preview-groups {
  display: grid;
  gap: 0.75rem;
}

.fd-invoice-preview-group {
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-1);
}

.fd-invoice-preview-group .fd-table-wrap {
  border: 0;
  border-radius: 0;
}

.fd-invoice-preview-total {
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--fd-border);
  border-radius: var(--fd-radius-sm);
  background: var(--fd-surface-2);
  font-weight: 700;
  text-align: right;
}

/* --------------------------------------------------------------------------
   14. Empty States
   -------------------------------------------------------------------------- */

.fd-empty-state {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 1.5rem;
  border: 1px dashed var(--fd-border-strong);
  background: var(--fd-surface-1);
  border-radius: var(--fd-radius-sm);
}

.fd-empty-state-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fd-loading {
  opacity: 0.68;
}

.htmx-request {
  opacity: 0.7;
}

.fd-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.fd-app-shell-note {
  color: var(--fd-text-secondary);
  font-size: 0.8125rem;
}

@media (max-width: 1100px) {
  .fd-grid-tiles,
  .fd-cmms-kpi-grid,
  .fd-cmms-work-order-summary,
  .fd-kpi-grid,
  .fd-dashboard-kpi-grid,
  .fd-turnaround-kpi-grid,
  .fd-grid-4,
  .fd-action-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-turnaround-toolbar,
  .fd-turnaround-command-bar,
  .fd-turnaround-fact-grid,
  .fd-baggage-command-grid,
  .fd-action-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-turnaround-table {
    overflow-x: auto;
  }

  .fd-turnaround-table-head,
  .fd-turnaround-row {
    min-width: 82rem;
  }

  .fd-turnaround-list-table .fd-turnaround-table-head,
  .fd-turnaround-list-table .fd-turnaround-row {
    min-width: 91rem;
  }

  .fd-flight-list-table .fd-turnaround-table-head,
  .fd-flight-list-table .fd-turnaround-row {
    min-width: 72rem;
  }

  .fd-grid-3,
  .fd-page-grid,
  .fd-dashboard-grid,
  .fd-today-grid,
  .fd-cmms-action-row {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .fd-content,
  html.is-nav-collapsed .fd-content,
  .fd-app.is-nav-collapsed .fd-content {
    margin-left: 0;
  }

  .fd-nav-toggle-mobile {
    display: inline-flex;
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 30;
    box-shadow: var(--fd-shadow-card);
  }

  .fd-app:not(.is-anonymous) .fd-shell {
    padding-top: 4.25rem;
  }

  .fd-nav-toggle-sidebar {
    display: none;
  }

  .fd-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 19rem);
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 160ms ease-out;
    box-shadow: var(--fd-shadow-overlay);
  }

  html.is-nav-collapsed .fd-sidebar {
    width: min(86vw, 19rem);
  }

  html.is-nav-collapsed .fd-sidebar-group,
  .fd-app.is-nav-collapsed .fd-sidebar-group {
    overflow-y: auto;
  }

  .fd-sidebar.is-open {
    transform: translateX(0);
  }

  html.is-nav-collapsed .fd-brand,
  html.is-nav-collapsed .fd-sidebar-label,
  html.is-nav-collapsed .fd-sidebar-link span:not(.fd-sidebar-link-icon),
  html.is-nav-collapsed .fd-sidebar-user-text,
  html.is-nav-collapsed .fd-sidebar-user-caret,
  .fd-app.is-nav-collapsed .fd-brand,
  .fd-app.is-nav-collapsed .fd-sidebar-label,
  .fd-app.is-nav-collapsed .fd-sidebar-link span:not(.fd-sidebar-link-icon),
  .fd-app.is-nav-collapsed .fd-sidebar-user-text,
  .fd-app.is-nav-collapsed .fd-sidebar-user-caret {
    display: inline-flex;
  }

  html.is-nav-collapsed .fd-sidebar-user-text,
  .fd-app.is-nav-collapsed .fd-sidebar-user-text {
    display: grid;
  }

  html.is-nav-collapsed .fd-sidebar-user-name span,
  html.is-nav-collapsed .fd-sidebar-user-airport,
  .fd-app.is-nav-collapsed .fd-sidebar-user-name span,
  .fd-app.is-nav-collapsed .fd-sidebar-user-airport {
    display: revert;
  }

  html.is-nav-collapsed .fd-sidebar-user-name,
  .fd-app.is-nav-collapsed .fd-sidebar-user-name {
    display: grid;
    grid-template-columns: 1.125rem minmax(0, 1fr);
    place-items: initial;
  }

  html.is-nav-collapsed .fd-sidebar-label,
  .fd-app.is-nav-collapsed .fd-sidebar-label {
    display: block;
  }

  html.is-nav-collapsed .fd-sidebar-link,
  .fd-app.is-nav-collapsed .fd-sidebar-link {
    justify-content: flex-start;
    padding-inline: 0.875rem;
  }

  html.is-nav-collapsed .fd-sidebar-branch-head,
  .fd-app.is-nav-collapsed .fd-sidebar-branch-head {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
  }

  html.is-nav-collapsed .fd-sidebar-branch-toggle,
  .fd-app.is-nav-collapsed .fd-sidebar-branch-toggle {
    display: inline-grid;
  }

  html.is-nav-collapsed .fd-sidebar-subnav,
  .fd-app.is-nav-collapsed .fd-sidebar-subnav {
    display: grid;
    position: static;
    min-width: 0;
    margin-left: 1.25rem;
    padding: 0 0 0 0.75rem;
    border-left: 1px solid rgb(255 255 255 / 18%);
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  html.is-nav-collapsed .fd-sidebar-subnav .fd-sidebar-sublink,
  .fd-app.is-nav-collapsed .fd-sidebar-subnav .fd-sidebar-sublink {
    padding-inline: 0.875rem;
    white-space: normal;
  }

  html.is-nav-collapsed .fd-sidebar-session,
  .fd-app.is-nav-collapsed .fd-sidebar-session {
    justify-items: stretch;
  }

  html.is-nav-collapsed .fd-sidebar-user-chip,
  .fd-app.is-nav-collapsed .fd-sidebar-user-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    place-items: initial;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.375rem 0.5rem;
  }

  html.is-nav-collapsed .fd-sidebar-session-menu,
  .fd-app.is-nav-collapsed .fd-sidebar-session-menu {
    bottom: calc(100% + 0.5rem);
    left: 0;
  }

  .fd-nav-scrim {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    background: rgb(22 22 22 / 45%);
  }
}

@media (max-width: 720px) {
  .fd-sidebar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .fd-shell {
    gap: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 4.25rem;
    padding-bottom: 1rem;
  }

  .fd-app.is-anonymous .fd-shell {
    padding-top: 1rem;
  }

  .fd-page {
    gap: 1rem;
  }

  .fd-cmms-kpi-grid {
    grid-template-columns: 1fr;
  }

  .fd-cmms-work-order-summary,
  .fd-cmms-work-order-detail-list,
  .fd-cmms-work-order-completion-grid,
  .fd-cmms-work-order-part-row {
    grid-template-columns: 1fr;
  }

  .fd-detail-span-2 {
    grid-column: auto;
  }

  .fd-cmms-due-edit {
    grid-template-columns: 1fr;
  }

  .fd-cmms-kpi {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .fd-cmms-kpi-arrow {
    display: none;
  }

  .fd-cmms-interval-body {
    grid-template-columns: 1fr;
  }

  .fd-cmms-task-def-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }

  .fd-cmms-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .fd-cmms-modal-footer .fd-btn {
    width: 100%;
  }

  .fd-baggage-command-grid,
  .fd-baggage-kpi-grid,
  .fd-baggage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-baggage-scanner-mode .fd-baggage-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-baggage-toolbar-btn {
    min-height: 3rem;
    padding-inline: 0.375rem;
    font-size: 0.8125rem;
  }

  .fd-baggage-launcher-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .fd-baggage-launcher-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-baggage-launcher-actions,
  .fd-baggage-launcher-actions .fd-btn {
    width: 100%;
  }

  .fd-delay-code-summary-grid {
    grid-template-columns: 1fr;
  }

  .fd-delay-code-summary-cell,
  .fd-delay-code-summary-cell:nth-child(2n) {
    border-right: 0;
  }

  .fd-delay-code-summary-cell:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--fd-border);
  }

  .fd-delay-code-summary-cell:last-child {
    border-bottom: 0;
  }

  .fd-baggage-summary-cell {
    border-right: 1px solid var(--fd-border);
    border-bottom: 1px solid var(--fd-border);
  }

  .fd-baggage-summary-cell:nth-child(2n) {
    border-right: 0;
  }

  .fd-baggage-summary-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .fd-baggage-scanner {
    max-width: calc(100vw - 1.5rem);
  }

  .fd-baggage-inline-form,
  .fd-baggage-hold-form {
    grid-template-columns: 1fr;
  }

  .fd-baggage-inline-form .fd-btn,
  .fd-baggage-hold-form .fd-btn,
  .fd-baggage-camera .fd-btn {
    width: 100%;
  }

  .fd-baggage-offline-action {
    align-items: stretch;
    flex-direction: column;
  }

  .fd-title {
    font-size: 1.75rem;
    line-height: 1.15;
  }

  .fd-card,
  .fd-tile,
  .fd-panel,
  .fd-auth-card {
    padding: 0.875rem;
  }

  .fd-auth-page {
    gap: 2rem;
  }

  .fd-auth-logo {
    width: min(320px, 82vw);
  }

  .fd-login-page .fd-auth-card {
    padding: 1.5rem;
  }

  .fd-auth-login-header {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .fd-auth-language-switch {
    width: 100%;
  }

  .fd-auth-entra-button {
    min-height: 3.25rem;
    padding-inline: 1rem;
  }

  .fd-card-header,
  .fd-panel-header {
    gap: 0.75rem;
  }

  .fd-turnaround-create-field-grid {
    grid-template-columns: 1fr;
  }

  .fd-turnaround-create-saved-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .fd-page-head,
  .fd-panel-header,
  .fd-card-header,
  .fd-settings-section-header,
  .fd-settings-action-row,
  .fd-row,
  .fd-turnaround-create-actions,
  .fd-turnaround-create-saved,
  .fd-turnaround-create-leg-actions,
  .fd-turnaround-create-footer,
  .fd-page-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fd-form-grid-2,
  .fd-form-grid-3,
  .fd-form-grid-4,
  .fd-report-filter-grid,
  .fd-manual-invoice-row-fields,
  .fd-settings-layout,
  .fd-load-passenger-row,
  .fd-load-weight-row,
  .fd-flight-field-single-grid,
  .fd-grid-2,
  .fd-grid-3,
  .fd-grid-tiles,
  .fd-cmms-kpi-grid,
  .fd-kpi-grid,
  .fd-dashboard-kpi-grid,
  .fd-turnaround-kpi-grid,
  .fd-grid-4,
  .fd-turnaround-toolbar,
  .fd-turnaround-command-bar,
  .fd-turnaround-fact-grid,
  .fd-service-capture-grid,
  .fd-action-tile-grid {
    grid-template-columns: 1fr;
  }

  .fd-report-filter-grid > .fd-field,
  .fd-report-filter-grid > .fd-field:nth-child(n + 4) {
    grid-column: auto;
  }

  .fd-settings-summary {
    position: static;
  }

  .fd-row > .fd-btn,
  .fd-page-actions > .fd-btn,
  .fd-page-actions > form,
  .fd-page-actions > form > .fd-btn,
  .fd-settings-action-row > .fd-btn,
  .fd-card-header .fd-btn,
  .fd-panel-header .fd-btn,
  .fd-turnaround-create-actions .fd-btn,
  .fd-turnaround-create-saved .fd-btn,
  .fd-turnaround-create-leg-actions .fd-btn,
  .fd-turnaround-create-footer .fd-btn {
    width: 100%;
  }

  .fd-page-actions > .fd-header-alerts {
    align-self: stretch;
    width: 100%;
  }

  .fd-page-actions > .fd-header-alerts.is-collapsed {
    align-self: flex-start;
    width: auto;
  }

  .fd-page-actions > .fd-header-alerts .fd-header-alert-form,
  .fd-page-actions > .fd-header-alerts .fd-header-alert-toggle {
    width: auto;
  }

  .fd-header-alert {
    max-width: 100%;
  }

  .fd-header-alert-body {
    max-width: calc(100vw - 11rem);
  }

  .fd-btn {
    min-height: 2.5rem;
  }

  .fd-btn-sm {
    min-height: 2.25rem;
  }

  .fd-icon-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .fd-turnaround-card-side {
    justify-items: start;
  }

  .fd-today-turnaround-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .fd-today-turnaround-meta {
    text-align: left;
  }

  .fd-turnaround-list-shell {
    border-radius: 0;
    margin-inline: -0.75rem;
    border-left: 0;
    border-right: 0;
  }

  .fd-turnaround-date-control {
    align-items: stretch;
    flex-direction: column;
  }

  .fd-turnaround-date-range {
    grid-template-columns: 1fr;
  }

  .fd-turnaround-command-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.75rem;
  }

  .fd-turnaround-command-bar .fd-field-stretch,
  .fd-turnaround-command-bar .fd-btn,
  .fd-turnaround-command-bar input[type="hidden"] {
    grid-column: 1 / -1;
  }

  .fd-turnaround-results-bar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.75rem;
  }

  .fd-turnaround-results-actions {
    width: 100%;
    justify-content: space-between;
  }

  .fd-turnaround-table {
    overflow-x: visible;
  }

  .fd-turnaround-table-head {
    display: none;
  }

  .fd-turnaround-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
    margin: 0.75rem;
    padding: 0.875rem;
    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius-sm);
    background: var(--fd-surface-1);
  }

  .fd-turnaround-list-table .fd-turnaround-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .fd-turnaround-list-table .fd-turnaround-row-link {
    padding: 0.875rem;
  }

  .fd-turnaround-list-table .fd-turnaround-row-link.has-alerts {
    padding-right: 3.25rem;
  }

  .fd-turnaround-row-cell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-right: 0;
    overflow-wrap: anywhere;
  }

  .fd-turnaround-row-cell::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--fd-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
  }

  .fd-turnaround-route-cell,
  .fd-turnaround-carrier-cell,
  .fd-turnaround-status-cell,
  .fd-turnaround-time-cell,
  .fd-turnaround-date {
    display: grid;
    justify-content: stretch;
  }

  .fd-turnaround-route-cell::before,
  .fd-turnaround-carrier-cell::before,
  .fd-turnaround-date::before {
    margin-bottom: 0.25rem;
  }

  .fd-turnaround-action-cell {
    justify-content: stretch;
  }

  .fd-turnaround-action-cell form,
  .fd-turnaround-action-cell .fd-icon-btn {
    flex: 0 0 auto;
  }

  .fd-turnaround-action-cell .fd-danger-action-button {
    margin-left: auto;
  }

  .fd-turnaround-action-cell .fd-flight-load-action {
    margin-left: 0;
  }

  .fd-turnaround-pagination {
    justify-content: space-between;
    padding: 0.75rem;
  }

  .fd-time-picker {
    margin-block: 0.625rem 0.875rem;
  }

  .fd-time-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fd-time-stepper-group {
    min-height: 8rem;
  }

  .fd-time-stepper-value {
    font-size: 2rem;
  }

  .fd-table:not(.fd-table-responsive) {
    min-width: 34rem;
  }

  .fd-table-wrap-responsive {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .fd-table-responsive {
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    display: grid;
    gap: 0.75rem;
  }

  .fd-table-responsive thead {
    display: none;
  }

  .fd-table-responsive tbody,
  .fd-table-responsive tfoot {
    display: grid;
    gap: 0.75rem;
  }

  .fd-table-responsive tr {
    display: grid;
    gap: 0.625rem;
    padding: 0.875rem;
    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius-sm);
    background: var(--fd-surface-1);
    box-shadow: var(--fd-shadow-card);
  }

  .fd-table-responsive tbody tr:nth-child(even),
  .fd-table-responsive tbody tr:hover {
    background: var(--fd-surface-1);
  }

  .fd-table-responsive td,
  .fd-table-responsive td.is-actions,
  .fd-table-responsive td.is-number {
    width: auto;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0;
    border-bottom: 0;
    text-align: right;
    white-space: normal;
  }

  .fd-table-responsive td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--fd-text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
  }

  .fd-table-responsive td[colspan] {
    display: block;
    text-align: center;
  }

  .fd-table-responsive td[colspan]::before {
    content: none;
  }

  .fd-table-responsive td.is-actions {
    justify-content: stretch;
    text-align: left;
  }

  .fd-table-responsive td.is-actions form {
    width: 100%;
  }

  .fd-table-responsive td.is-actions .fd-btn,
  .fd-table-responsive td.is-actions textarea {
    width: 100%;
  }

  .fd-session-modal {
    align-items: stretch;
    place-items: stretch;
    padding: 0;
  }

  .fd-session-modal > .fd-card {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .fd-prm-modal {
    align-items: start;
  }

  .fd-prm-modal .fd-prm-modal-card {
    max-height: none;
    overflow: visible;
  }

  .fd-prm-modal-header,
  .fd-prm-modal-body,
  .fd-prm-modal-footer {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .fd-prm-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fd-prm-modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .fd-fids-visibility-modal > .fd-card {
    max-height: 100vh;
    max-height: 100dvh;
  }

  .fd-fids-visibility-header,
  .fd-fids-visibility-footer,
  .fd-fids-visibility-list {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .fd-fids-visibility-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .fd-fids-visibility-label {
    white-space: normal;
  }

  .fd-fids-visibility-actions,
  .fd-fids-visibility-action,
  .fd-fids-visibility-footer .fd-btn {
    width: 100%;
  }

  .fd-session-modal.fd-timestamp-modal {
    align-items: center;
    place-items: center;
    padding: 1rem;
  }

  .fd-session-modal.fd-timestamp-modal .fd-card {
    width: min(100%, 29rem);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    border: 1px solid var(--fd-border);
    border-radius: var(--fd-radius-sm);
  }

  .fd-deicing-modal > .fd-card,
  .fd-turnaround-create-modal > .fd-card {
    width: 100%;
  }

  .fd-turnaround-create-modal > .fd-turnaround-create-card {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .fd-delay-codes-modal > .fd-card {
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }

  .fd-delay-codes-modal .fd-row {
    position: static;
  }

  .fd-turnaround-create-modal .fd-combobox-list {
    position: static;
    margin-top: 0.25rem;
    max-height: min(14rem, 45dvh);
    box-shadow: none;
  }

  .fd-delay-codes-modal .fd-combobox-list {
    position: static;
    margin-top: 0.25rem;
    max-height: min(14rem, 45dvh);
    box-shadow: none;
  }

  .fd-deicing-stock-grid,
  .fd-deicing-action-grid,
  .fd-deicing-result-grid,
  .fd-deicing-summary-grid,
  .fd-deicing-form-grid,
  .fd-deicing-reference-card,
  .fd-deicing-step-nav,
  .fd-deicing-check-row {
    grid-template-columns: 1fr;
  }

  .fd-deicing-input-action {
    grid-template-columns: 1fr;
  }

  .fd-deicing-treatment-grid {
    grid-template-columns: 1fr;
  }

  .fd-action-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
  }

  .fd-action-tile {
    min-height: 7.5rem;
  }

  .fd-action-tile-value {
    font-size: 1.375rem;
  }

  .fd-action-tile-label {
    font-size: 0.9375rem;
  }

}

@media (max-width: 480px) {
  .fd-shell {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .fd-turnaround-list-shell {
    margin-inline: -0.625rem;
  }

  .fd-turnaround-command-bar {
    grid-template-columns: 1fr;
  }

  .fd-action-tile-grid {
    grid-template-columns: 1fr;
  }

  .fd-turnaround-results-actions {
    display: grid;
    gap: 0.5rem;
  }

}

/* PWA scanner: override any mobile padding-top on .fd-shell. */
.fd-app.is-pwa-scanner .fd-shell {
  padding-top: 0.15rem;
}

.fd-app.is-pwa-scanner .fd-page-foot {
  margin-top: 0.35rem;
}

.fd-app.is-pwa-scanner {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.fd-app.is-pwa-scanner .fd-baggage-camera .fd-baggage-camera-toggle-icon {
  width: 2.5rem;
}
.fd-app.is-pwa-scanner .fd-baggage-camera .fd-baggage-camera-torch-icon {
  width: 2.5rem;
}
