:root {
  --bg-dark: #0a0b10;
  --bg-panel: #14161f;
  --bg-card: #1c1f2b;
  --bg-elev: #202435;
  --primary: #00f2ff;
  --primary-dim: rgba(0, 242, 255, 0.1);
  --secondary: #7000ff;
  --success: #00ffa3;
  --warning: #ffb020;
  --danger: #ff3366;
  --text-main: #ffffff;
  --text-muted: #8b9bb4;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --font-main: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
}

html,
body {
  height: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-main);
  background:
    radial-gradient(1200px 500px at 88% -4%, rgba(0, 242, 255, 0.12), transparent 55%),
    radial-gradient(900px 420px at 12% 110%, rgba(112, 0, 255, 0.09), transparent 60%),
    var(--bg-dark);
  padding: clamp(12px, 2vw, 24px);
  padding-left: max(clamp(12px, 2vw, 24px), env(safe-area-inset-left));
  padding-right: max(clamp(12px, 2vw, 24px), env(safe-area-inset-right));
  padding-bottom: max(clamp(12px, 2vw, 24px), env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.03) 0, transparent 34%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.02) 0, transparent 25%);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  filter: blur(16px);
  pointer-events: none;
}

.bg-shape-1 {
  top: -110px;
  left: -110px;
  background: radial-gradient(circle at 35% 35%, rgba(0, 242, 255, 0.25), rgba(0, 242, 255, 0.07));
  border-radius: 56% 44% 68% 32%;
}

.bg-shape-2 {
  bottom: -120px;
  right: -95px;
  background: radial-gradient(circle at 50% 50%, rgba(112, 0, 255, 0.2), rgba(112, 0, 255, 0.08));
  border-radius: 48% 52% 38% 62%;
}

.hero,
.kpis,
.quick-nav,
.layout,
.sources {
  max-width: 1360px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero,
.kpis,
.quick-nav,
.layout {
  margin-bottom: 14px;
}

.dashboard-shell {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-shell > .quick-nav {
  max-width: none;
  margin: 0;
}

.dashboard-content > .hero,
.dashboard-content > .kpis,
.dashboard-content > .layout,
.dashboard-content > .sources {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  position: relative;
  z-index: 1;
}

.app-sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 35%), var(--bg-panel);
  border-right: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  box-shadow: var(--shadow-soft);
  overflow: auto;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--primary);
  letter-spacing: 1.6px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.96;
}

.brand::before {
  content: "◈";
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 15px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.22s;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
}

.nav-btn:hover {
  background: linear-gradient(180deg, rgba(0, 242, 255, 0.15), rgba(0, 242, 255, 0.06));
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 242, 255, 0.12);
}

.nav-btn.active {
  background: linear-gradient(180deg, rgba(0, 242, 255, 0.18), rgba(0, 242, 255, 0.08));
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.18);
}

.widget-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.budget-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.budget-bar {
  height: 100%;
  background: var(--success);
  width: 0%;
  transition: width 0.35s ease;
}

.sidebar-kpi-value {
  font-size: 1rem;
  margin-top: 6px;
}

.sidebar-meta-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar-meta-line strong {
  color: var(--text-main);
  font-size: 0.8rem;
  text-align: right;
}

.signature {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2px;
}

.signature strong {
  color: var(--text-main);
  font-weight: 800;
}

.sig-role {
  margin-top: 3px;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.sig-company {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.6px;
  color: var(--primary);
  background: rgba(0, 242, 255, 0.08);
}

.app-main {
  display: grid;
  grid-template-rows: minmax(76px, auto) 1fr auto;
  min-width: 0;
  overflow: hidden;
}

.app-header {
  border-bottom: 1px solid var(--border);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.92), rgba(20, 22, 31, 0.75));
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.header-kicker {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-family: var(--font-mono);
}

.header-kpi-strip {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.header-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.header-kpi .kpi-value {
  margin-top: 4px;
  font-size: 0.95rem;
}

.identity-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.25;
  white-space: nowrap;
}

.identity-pill strong {
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  color: var(--text-main);
}

.identity-pill span {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.content-scroll {
  overflow: auto;
  padding: 22px 24px 34px;
  display: grid;
  gap: 14px;
  align-content: start;
  -webkit-overflow-scrolling: touch;
}

.content-scroll > .overview-stack,
.content-scroll > .section-card,
.content-scroll > .sources {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.overview-stack {
  display: grid;
  gap: 14px;
  scroll-margin-top: 32px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.08;
  font-family: var(--font-heading);
}

.command-card {
  min-height: 100%;
}

.command-value {
  margin: 10px 0;
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}

.action-stack {
  display: grid;
  gap: 10px;
}

.app-mobile-nav {
  display: none;
  gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.94), rgba(20, 22, 31, 0.98));
  backdrop-filter: blur(10px);
}

.app-mobile-nav .nav-btn {
  justify-content: center;
  padding: 10px 9px;
  font-size: 0.75rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.04rem, 1.7vw, 1.28rem);
  margin-bottom: 12px;
}

h3 {
  line-height: 1.28;
}

p {
  line-height: 1.45;
}

a {
  color: var(--primary);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.section-card {
  scroll-margin-top: 28px;
}

.section-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 242, 255, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.33);
}

.section-card > h2,
.section-card .section-title-row h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-card > h2::before,
.section-card .section-title-row h2::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.14);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.73rem;
  letter-spacing: 1.4px;
  color: var(--primary);
  font-family: var(--font-mono);
}

.subtitle {
  margin: 10px 0 0;
  color: var(--text-muted);
  max-width: 78ch;
}

.small {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.85fr) minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(0, 242, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.hero::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -25px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.12), transparent 72%);
  pointer-events: none;
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-side {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.hero-side p {
  margin: 8px 0;
}

.hero-side strong {
  color: #d4e8ff;
}

.hero-side-meter {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  margin-bottom: 10px;
}

.hero-side-meter span {
  display: block;
  width: 84%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--success));
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: var(--primary-dim);
  color: var(--primary);
  margin-bottom: 10px;
  border: 1px solid rgba(0, 242, 255, 0.22);
}

.pill.ok {
  background: rgba(0, 255, 163, 0.13);
  color: var(--success);
  border-color: rgba(0, 255, 163, 0.24);
}

.pill.warn {
  background: rgba(255, 176, 32, 0.13);
  color: var(--warning);
  border-color: rgba(255, 176, 32, 0.24);
}

.pill.bad {
  background: rgba(255, 51, 102, 0.12);
  color: #ff9bb3;
  border-color: rgba(255, 51, 102, 0.24);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 10px 13px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  font-family: var(--font-main);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.2s ease;
  touch-action: manipulation;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(120deg, #00b7c4, #00f2ff);
  color: #001016;
  box-shadow: 0 8px 18px rgba(0, 242, 255, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #00d1df, #7cffff);
  box-shadow: 0 10px 20px rgba(0, 242, 255, 0.34);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(0, 242, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.kpi {
  padding: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)) var(--bg-card);
}

.kpi::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
}

.kpi-label {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kpi-value {
  margin: 7px 0 0;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}

.quick-nav {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  position: sticky;
  top: 12px;
  z-index: 9;
  min-height: calc(100dvh - 24px);
  background:
    linear-gradient(180deg, rgba(0, 242, 255, 0.08), rgba(0, 242, 255, 0) 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(16, 18, 27, 0.88);
  border-color: rgba(0, 242, 255, 0.14);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
}

.quick-nav-head {
  display: grid;
  gap: 4px;
  padding: 4px 4px 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-nav-title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.quick-nav-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quick-link {
  position: relative;
  text-decoration: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px 11px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-mono);
  transition: all 0.2s ease;
  white-space: normal;
}

.quick-link-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.quick-link-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
  flex: 0 0 auto;
  transition: inherit;
}

.quick-link-badge {
  flex: 0 0 auto;
  min-width: 38px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 14, 0.72);
  color: var(--text-main);
  text-align: center;
  font-size: 0.72rem;
  line-height: 1;
  font-family: var(--font-mono);
}

.quick-link.active {
  color: var(--primary);
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(0, 242, 255, 0.18), rgba(0, 242, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.18), 0 12px 26px rgba(0, 242, 255, 0.12);
}

.quick-link.active .quick-link-label::before {
  background: var(--primary);
  box-shadow: 0 0 18px rgba(0, 242, 255, 0.5);
}

.quick-link.active .quick-link-badge {
  color: #041016;
  background: var(--primary);
  border-color: rgba(0, 242, 255, 0.45);
}

.quick-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
  box-shadow: 0 8px 20px rgba(0, 242, 255, 0.12);
}

.quick-link:hover .quick-link-label::before {
  background: rgba(0, 242, 255, 0.6);
  box-shadow: 0 0 14px rgba(0, 242, 255, 0.32);
}

.quick-link:hover .quick-link-badge {
  border-color: rgba(0, 242, 255, 0.24);
}

.quick-nav-footer {
  margin-top: auto;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(0, 242, 255, 0.08), rgba(0, 242, 255, 0) 120%),
    rgba(255, 255, 255, 0.025);
  display: grid;
  gap: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.quick-nav-footer-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.quick-nav-meta {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-nav-meta span {
  color: var(--text-muted);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.quick-nav-meta strong {
  color: var(--text-main);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.quick-nav-meta strong[data-state="ok"] {
  color: var(--success);
}

.quick-nav-meta strong[data-state="warn"] {
  color: var(--warning);
}

.quick-nav-meta strong[data-state="bad"] {
  color: var(--danger);
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.section-inline-actions .small {
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.inventory-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) var(--bg-elev);
}

.filters label,
.budget-controls label,
.shipment-form label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-main);
  color: var(--text-main);
  background: var(--bg-dark);
  min-height: 42px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(139, 155, 180, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 242, 255, 0.12);
}

input[type="checkbox"] {
  accent-color: var(--success);
  min-height: 16px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(20, 22, 31, 0.86);
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  position: relative;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
  table-layout: fixed;
}

thead {
  position: sticky;
  top: 0;
  z-index: 5;
}

th,
td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  word-break: normal;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cell-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cell-numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.98), rgba(20, 22, 31, 0.9));
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(0, 242, 255, 0.06);
}

td {
  border-bottom: 1px solid var(--border);
}

#sec-inventory .table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

#inventory-table {
  /* Detailed app-shell rules are defined later on `.inventory-table` to avoid
     conflicting with the legacy dashboard layout. */
}

#inventory-table .col-order {
  font-family: var(--font-mono);
}

#inventory-table .inventory-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(8, 10, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce7f5;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
}

#inventory-table .col-equipment strong {
  display: inline-block;
  margin-bottom: 2px;
  font-size: 1.02rem;
  color: #fff;
}

#inventory-table .col-equipment .small {
  font-size: 0.82rem;
  max-width: 340px;
}

#inventory-table .col-supplier,
#logistics-table .col-company,
#shipment-table .col-reference,
#shipment-table .col-incoterm {
  font-weight: 600;
}

#inventory-table .inventory-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(4, 8, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}

#inventory-table .inventory-money {
  min-width: 128px;
}

#inventory-table .inventory-total {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

#inventory-table .col-status .status-ok,
#inventory-table .col-status .status-pending {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.supplier-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#inventory-table .supplier-links a,
#inventory-table .supplier-contact {
  color: var(--primary);
  text-decoration: none;
}

#inventory-table .supplier-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #b8c6da;
}

#inventory-table .supplier-links a:hover {
  color: #dffbff;
  border-color: var(--warning);
  background: rgba(255, 176, 32, 0.08);
}

#inventory-table .supplier-contact {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

#inventory-table .equip-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
}

#inventory-table .thumb-empty {
  width: 60px;
  height: 60px;
}

#logistics-table {
  min-width: 1320px;
}

#logistics-table th:nth-child(1),
#logistics-table td:nth-child(1) {
  width: 220px;
  min-width: 220px;
}

#logistics-table th:nth-child(2),
#logistics-table td:nth-child(2) {
  width: 280px;
  min-width: 280px;
}

#logistics-table th:nth-child(3),
#logistics-table td:nth-child(3) {
  width: 320px;
  min-width: 320px;
}

#logistics-table th:nth-child(4),
#logistics-table td:nth-child(4) {
  width: 420px;
  min-width: 420px;
}

#shipment-table {
  min-width: 1480px;
}

#shipment-table th:nth-child(1),
#shipment-table td:nth-child(1) {
  width: 190px;
  min-width: 190px;
}

#shipment-table th:nth-child(2),
#shipment-table td:nth-child(2) {
  width: 260px;
  min-width: 260px;
}

#shipment-table th:nth-child(3),
#shipment-table td:nth-child(3) {
  width: 108px;
  min-width: 108px;
}

#shipment-table th:nth-child(4),
#shipment-table td:nth-child(4) {
  width: 170px;
  min-width: 170px;
}

#shipment-table th:nth-child(5),
#shipment-table td:nth-child(5) {
  width: 130px;
  min-width: 130px;
}

#shipment-table th:nth-child(6),
#shipment-table td:nth-child(6) {
  width: 340px;
  min-width: 340px;
}

#shipment-table th:nth-child(7),
#shipment-table td:nth-child(7) {
  width: 180px;
  min-width: 180px;
}

.status-ok,
.status-pending {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-ok {
  background: rgba(0, 255, 163, 0.12);
  color: var(--success);
  border-color: rgba(0, 255, 163, 0.24);
}

.status-pending {
  background: rgba(255, 176, 32, 0.13);
  color: var(--warning);
  border-color: rgba(255, 176, 32, 0.24);
}

.thumb-btn {
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  transition: transform 0.14s ease;
  position: relative;
  display: inline-block;
}

.thumb-btn:hover {
  transform: scale(1.03);
}

.equip-thumb {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #111;
  display: block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.36);
}

.thumb-empty {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.66rem;
  color: var(--text-muted);
  background: #11141d;
  padding: 4px;
}

.thumb-stack-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #001016;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  padding: 0 6px;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.image-modal.is-open {
  display: flex;
}

.image-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 22, 31, 0.55);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.image-modal.has-multiple .image-modal-nav {
  display: inline-flex;
}

.image-modal-nav:hover {
  border-color: var(--primary);
}

.image-modal-nav.prev {
  left: 18px;
}

.image-modal-nav.next {
  right: 18px;
}

.image-modal-img {
  max-width: min(92vw, 980px);
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #fff;
  object-fit: contain;
}

.image-modal-counter {
  margin: 10px 0 0;
  color: #dce7f5;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.image-modal-caption {
  margin: 6px 0 0;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.flight-booking-card {
  margin-bottom: 12px;
}

.flight-booking-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.flight-booking-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.flight-meta-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
}

.flight-meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.flight-segments {
  display: grid;
  gap: 10px;
}

.flight-segment-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
}

.flight-segment-card.outbound {
  border-color: rgba(0, 242, 255, 0.24);
}

.flight-segment-card.return {
  border-color: rgba(255, 176, 32, 0.24);
}

.flight-segment-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.flight-time-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  font-family: var(--font-mono);
  color: #dbe8f6;
  font-size: 0.8rem;
}

.flight-type-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.flight-type-badge.return {
  border-color: var(--warning);
  color: var(--warning);
  background: rgba(255, 176, 32, 0.12);
}

.flight-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flight-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03);
}

.flight-chip strong {
  color: var(--text-main);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 13px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--bg-dark);
}

.timeline-date {
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.timeline-note {
  margin: 5px 0 0;
  color: var(--text-muted);
}

.centers-grid,
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 10px;
}

.center-card,
.hotel-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  position: relative;
}

.center-card::before,
.hotel-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0.6;
}

.center-card:hover,
.hotel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 255, 0.28);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.35);
}

.center-card h3,
.hotel-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.center-card p,
.hotel-card p {
  margin: 4px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.hotels-wrap {
  margin-top: 16px;
}

.hotels-wrap h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.shipment-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) var(--bg-elev);
}

.shipment-form .span-2 {
  grid-column: span 2;
}

.shipment-form textarea {
  min-height: 74px;
  resize: vertical;
}

.shipment-form .form-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  padding-top: 2px;
}

.shipment-status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.shipment-status.blue {
  background: rgba(42, 100, 183, 0.16);
  color: #8fb7ff;
  border-color: rgba(42, 100, 183, 0.24);
}

.shipment-status.orange {
  background: rgba(255, 176, 32, 0.14);
  color: var(--warning);
  border-color: rgba(255, 176, 32, 0.24);
}

.shipment-status.green {
  background: rgba(0, 255, 163, 0.14);
  color: var(--success);
  border-color: rgba(0, 255, 163, 0.24);
}

.shipment-status.gray {
  background: rgba(139, 155, 180, 0.12);
  color: #c6d3e6;
  border-color: rgba(139, 155, 180, 0.24);
}

.shipment-status.red {
  background: rgba(255, 51, 102, 0.14);
  color: #ff9bb3;
  border-color: rgba(255, 51, 102, 0.24);
}

.shipment-action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.shipment-action-buttons .btn {
  padding: 6px 9px;
  font-size: 0.78rem;
}

.checklist-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 12px;
}

.checklist-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
}

.checklist-group h3 {
  margin-bottom: 10px;
  font-size: 0.98rem;
}

.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  padding: 7px 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: all 0.16s ease;
}

.todo-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 242, 255, 0.14);
}

.todo-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.todo-item.done label {
  text-decoration: line-through;
  color: var(--text-muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.budget-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.budget-controls span {
  font-size: 0.8rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.budget-controls input[type="range"] {
  padding: 0;
  border: 0;
  height: 26px;
  background: transparent;
}

.budget-controls input[type="range"]::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border);
}

.budget-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #001016;
  background: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 242, 255, 0.35);
}

.budget-controls input[type="range"]::-moz-range-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border);
}

.budget-controls input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #001016;
  background: var(--primary);
}

.budget-results {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.budget-results article {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
}

.budget-results p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.budget-results h3 {
  margin-top: 7px;
  font-size: 1.1rem;
  color: var(--success);
  font-family: var(--font-mono);
}

.notes-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #d5deed;
}

.notes-list li::marker {
  color: var(--primary);
}

.sources ul,
#sources-list {
  margin: 0;
  padding-left: 18px;
}

.sources li {
  margin: 6px 0;
  color: var(--text-muted);
}

.sources a {
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.42s ease forwards;
}

.reveal:nth-child(2) {
  animation-delay: 0.06s;
}

.reveal:nth-child(3) {
  animation-delay: 0.11s;
}

.reveal:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .dashboard-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .app-sidebar {
    padding: 18px;
  }

  .app-header {
    padding: 14px 22px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-kpi-strip {
    width: 100%;
  }

  .content-scroll {
    padding: 18px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .filters,
  .budget-controls,
  .budget-results {
    grid-template-columns: 1fr;
  }

  .shipment-form {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .flight-booking-meta {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .shipment-form .span-2 {
    grid-column: span 2;
  }

  .centers-grid,
  .hotels-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .checklist-board {
    grid-template-columns: 1fr;
  }

  #inventory-table th:nth-child(1),
  #inventory-table td:nth-child(1),
  #inventory-table th:nth-child(2),
  #inventory-table td:nth-child(2) {
    position: static;
    left: auto;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .quick-nav {
    position: static;
    padding: 10px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-height: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
  }

  .quick-nav-head,
  .quick-nav-footer {
    display: none;
  }

  .quick-link {
    width: auto;
    white-space: nowrap;
    scroll-snap-align: start;
    min-height: 42px;
    padding: 10px 12px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .app-header {
    padding: 14px 16px;
  }

  .header-kpi-strip {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .identity-pill {
    width: 100%;
    align-items: flex-start;
    white-space: normal;
  }

  .content-scroll {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .app-mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.28);
  }

  .flight-segment-head {
    flex-direction: column;
  }

  .flight-time-block {
    align-items: flex-start;
    text-align: left;
  }

  .kpis {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: flex-start;
  }

  .section-inline-actions,
  .inventory-actions,
  .flight-booking-actions,
  .flight-toolbar,
  .shipment-form .form-actions {
    width: 100%;
  }

  table {
    min-width: 740px;
  }

  .timeline {
    padding-left: 18px;
  }

  .timeline::before {
    left: 7px;
  }

  .timeline-item::before {
    left: -16px;
  }

  .image-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 720px) {
  .card {
    padding: 14px;
  }

  .app-header {
    padding: 12px 14px;
  }

  .header-kpi-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .header-kpi {
    min-width: 0;
  }

  .identity-pill {
    width: 100%;
    white-space: normal;
  }

  .content-scroll {
    padding: 14px 14px 92px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .inventory-actions,
  .section-inline-actions {
    width: 100%;
  }

  .section-inline-actions .btn {
    width: auto;
  }

  .quick-link {
    font-size: 0.72rem;
    padding: 8px 9px;
  }

  .quick-link-badge {
    min-width: 32px;
    padding-inline: 7px;
  }

  .equip-thumb,
  .thumb-empty {
    width: 70px;
    height: 70px;
  }

  .image-modal-close {
    top: 10px;
    right: 12px;
    font-size: 1.35rem;
  }

  .image-modal-counter {
    font-size: 0.74rem;
  }

  .shipment-form {
    grid-template-columns: 1fr;
  }

  .flight-booking-meta {
    grid-template-columns: 1fr;
  }

  .flight-booking-actions .btn {
    width: 100%;
  }

  .shipment-form .span-2 {
    grid-column: auto;
  }

  .shipment-form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shipment-form .form-actions .btn {
    width: 100%;
  }

  .centers-grid,
  .hotels-grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 680px;
  }
}

@media (max-width: 520px) {
  .card {
    padding: 12px;
  }

  .content-scroll {
    padding: 12px 12px 90px;
  }

  h1 {
    font-size: 1.15rem;
  }

  h2 {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 1.18rem;
  }

  .header-kpi-strip {
    grid-template-columns: 1fr;
  }

  .kpi-value {
    font-size: 1.05rem;
  }

  .quick-link {
    font-size: 0.68rem;
    padding: 7px 8px;
  }

  .quick-link-label {
    gap: 8px;
  }

  .quick-link-label::before {
    width: 7px;
    height: 7px;
  }

  .quick-link-badge {
    min-width: 28px;
    font-size: 0.66rem;
    padding: 4px 6px;
  }

  .equip-thumb,
  .thumb-empty {
    width: 62px;
    height: 62px;
  }

  table {
    min-width: 620px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
    overflow: visible;
  }

  body::before,
  .bg-shape,
  .app-sidebar,
  .app-header,
  .app-mobile-nav,
  .image-modal {
    display: none !important;
  }

  .app-shell,
  .app-main,
  .content-scroll {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border-color: #ccc;
    background: #fff;
    color: #000;
    break-inside: avoid;
  }

  .btn,
  .nav-btn {
    display: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  #inventory-table th:nth-child(1),
  #inventory-table td:nth-child(1),
  #inventory-table th:nth-child(2),
  #inventory-table td:nth-child(2) {
    position: static !important;
    left: auto !important;
    box-shadow: none !important;
  }
}

/* App shell fusion with BET223_DG_Validation */
body {
  padding: 0;
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.view {
  display: none;
  gap: 14px;
  align-content: start;
  animation: rise 0.32s ease;
}

.view.active {
  display: grid;
}

.view > .section-card,
.view > .sources,
.view > .overview-stack {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}

.compact-two-col {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.compact-two-col .kpi-value {
  margin: 0;
}

.mission-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mission-brief-grid article {
  padding: 6px 2px;
}

.filters.filters-4 {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.inventory-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.inventory-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1;
  font-family: var(--font-mono);
}

.inventory-pill strong {
  color: var(--text-main);
}

.inventory-pill.is-selected {
  background: rgba(0, 255, 163, 0.08);
  border-color: rgba(0, 255, 163, 0.18);
  color: #8df0c2;
}

.inventory-pill.is-selected strong {
  color: var(--success);
}

.inventory-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.inventory-toolbar-actions label {
  min-width: 210px;
}

.inventory-mobile-list {
  display: none;
}

.inventory-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inventory-table {
  min-width: 1320px;
  border-spacing: 0 10px;
}

.inventory-table th {
  background: linear-gradient(180deg, rgba(10, 11, 16, 0.98), rgba(10, 11, 16, 0.92));
  border: 0;
  padding: 10px 12px;
}

.inventory-table td {
  padding: 12px 14px;
  vertical-align: middle;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.inventory-table td:first-child {
  border-left: 1px solid var(--border);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.inventory-table td:last-child {
  border-right: 1px solid var(--border);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.inventory-table tbody tr {
  background: var(--bg-card);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.inventory-table tbody tr.is-selected {
  background: linear-gradient(180deg, rgba(0, 255, 163, 0.08), rgba(0, 255, 163, 0.03)) var(--bg-card);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 163, 0.18);
}

.inventory-table tbody tr:hover {
  background: #232736;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.inventory-table thead th:nth-child(1),
.inventory-table tbody td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 88px;
  min-width: 88px;
  text-align: center;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}

.inventory-table thead th:nth-child(2),
.inventory-table tbody td:nth-child(2) {
  position: sticky;
  left: 88px;
  z-index: 3;
  width: 64px;
  min-width: 64px;
  text-align: center;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}

.inventory-table thead th:nth-child(3),
.inventory-table tbody td:nth-child(3) {
  position: sticky;
  left: 152px;
  z-index: 2;
  width: 380px;
  min-width: 380px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.08);
}

.inventory-table thead th:nth-child(4),
.inventory-table tbody td:nth-child(4) {
  width: 122px;
  min-width: 122px;
}

.inventory-table thead th:nth-child(5),
.inventory-table tbody td:nth-child(5) {
  width: 108px;
  min-width: 108px;
}

.inventory-table thead th:nth-child(6),
.inventory-table tbody td:nth-child(6) {
  width: 144px;
  min-width: 144px;
}

.inventory-table thead th:nth-child(7),
.inventory-table tbody td:nth-child(7) {
  width: 176px;
  min-width: 176px;
}

.inventory-table thead th:nth-child(8),
.inventory-table tbody td:nth-child(8) {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 236px;
  min-width: 236px;
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.08);
}

.inventory-table thead th:nth-child(1),
.inventory-table thead th:nth-child(2),
.inventory-table thead th:nth-child(3),
.inventory-table thead th:nth-child(8) {
  background: linear-gradient(180deg, rgba(10, 11, 16, 0.98), rgba(10, 11, 16, 0.92));
}

.inventory-table tbody td:nth-child(1),
.inventory-table tbody td:nth-child(2),
.inventory-table tbody td:nth-child(3),
.inventory-table tbody td:nth-child(8) {
  background: var(--bg-card);
}

.inventory-table tbody tr:hover td:nth-child(1),
.inventory-table tbody tr:hover td:nth-child(2),
.inventory-table tbody tr:hover td:nth-child(3),
.inventory-table tbody tr:hover td:nth-child(8) {
  background: #232736;
}

.inventory-table tbody tr.is-selected td:nth-child(1),
.inventory-table tbody tr.is-selected td:nth-child(2),
.inventory-table tbody tr.is-selected td:nth-child(3),
.inventory-table tbody tr.is-selected td:nth-child(8) {
  background: linear-gradient(180deg, rgba(0, 255, 163, 0.08), rgba(0, 255, 163, 0.03)) var(--bg-card);
}

.inventory-table tbody tr.is-selected:hover td:nth-child(1),
.inventory-table tbody tr.is-selected:hover td:nth-child(2),
.inventory-table tbody tr.is-selected:hover td:nth-child(3),
.inventory-table tbody tr.is-selected:hover td:nth-child(8) {
  background: linear-gradient(180deg, rgba(0, 255, 163, 0.1), rgba(0, 255, 163, 0.04)) #232736;
}

.inventory-table .col-image {
  text-align: center;
}

.inventory-table .col-check {
  text-align: center;
}

.inventory-line-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.inventory-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
}

.inventory-name a {
  color: inherit;
  text-decoration: none;
}

.inventory-name a:hover {
  color: var(--primary);
}

.inventory-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.category-it,
.category-reseau {
  background: rgba(0, 242, 255, 0.14);
  color: var(--primary);
  border-color: rgba(0, 242, 255, 0.16);
}

.category-securite {
  background: rgba(0, 178, 255, 0.15);
  color: #5fd7ff;
  border-color: rgba(95, 215, 255, 0.16);
}

.category-energie {
  background: rgba(0, 255, 163, 0.12);
  color: var(--success);
  border-color: rgba(0, 255, 163, 0.18);
}

.category-agri {
  background: rgba(255, 176, 32, 0.14);
  color: var(--warning);
  border-color: rgba(255, 176, 32, 0.18);
}

.category-event {
  background: rgba(112, 0, 255, 0.15);
  color: #b898ff;
  border-color: rgba(184, 152, 255, 0.2);
}

.category-autre {
  background: rgba(255, 255, 255, 0.08);
  color: #d8e4ff;
  border-color: rgba(255, 255, 255, 0.1);
}

.inventory-metric-input {
  width: 100%;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 4, 12, 0.82);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 10px;
}

.inventory-metric-input:focus {
  border-color: var(--primary);
}

.inventory-total {
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 1.03rem;
}

.inventory-total.dimmed {
  color: var(--text-muted);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions .nav-btn,
.row-actions .btn {
  padding: 7px 10px;
  font-size: 0.8rem;
  height: auto;
}

.row-actions .btn-alibaba {
  border-color: var(--warning);
  color: #ffcc70;
}

.row-actions .btn-alibaba:hover {
  border-color: var(--warning);
  background: rgba(255, 176, 32, 0.12);
  color: var(--warning);
}

.check-toggle {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(214, 232, 255, 0.6);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  transition: all 0.18s ease;
}

.check-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: transparent;
  transition: inherit;
}

.check-toggle.checked {
  border-color: var(--success);
  background: rgba(0, 255, 163, 0.12);
}

.check-toggle.checked::after {
  background: var(--success);
  box-shadow: 0 0 14px rgba(0, 255, 163, 0.4);
}

.inventory-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(10, 11, 16, 0.97), rgba(20, 22, 31, 0.98));
  border-top: 1px solid rgba(0, 242, 255, 0.18);
  border-bottom: 0;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.inventory-table tfoot td:first-child {
  border-left: 0;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.inventory-table tfoot td:last-child {
  border-right: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.inventory-table tfoot td:nth-last-child(2) {
  color: var(--success);
}

.inventory-table tfoot td:last-child {
  color: #8df0c2;
}

.inventory-mobile-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)) var(--bg-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.inventory-mobile-card.is-selected {
  border-color: rgba(0, 255, 163, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 163, 0.14), var(--shadow-card);
}

.inventory-mobile-head {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 14px 10px;
}

.inventory-mobile-main {
  min-width: 0;
}

.inventory-mobile-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.inventory-mobile-main .inventory-line-meta {
  margin-bottom: 7px;
}

.inventory-mobile-main .inventory-name {
  font-size: 0.98rem;
  line-height: 1.25;
}

.inventory-mobile-main .inventory-desc {
  margin-top: 6px;
}

.inventory-mobile-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.inventory-mobile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-mobile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.inventory-mobile-field {
  display: grid;
  gap: 6px;
}

.inventory-mobile-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.inventory-mobile-total {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(1, 4, 12, 0.66);
}

.inventory-mobile-supplier {
  display: grid;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.inventory-mobile-empty {
  padding: 18px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: var(--text-muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.inventory-mobile-supplier .row-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.inventory-mobile-supplier .row-actions .btn,
.inventory-mobile-supplier .row-actions .nav-btn {
  width: 100%;
  justify-content: center;
}

.flight-panel {
  display: grid;
  gap: 14px;
}

.flight-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flight-toolbar .nav-btn {
  padding: 10px 12px;
}

.flight-toolbar .is-reset {
  border-color: rgba(255, 51, 102, 0.24);
}

.flight-key-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}

.flight-key-field,
.flight-field {
  display: grid;
  gap: 6px;
}

.flight-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flight-list {
  display: grid;
  gap: 12px;
}

.flight-editor-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) var(--bg-elev);
}

.flight-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.flight-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flight-type-chip.outbound {
  color: var(--primary);
  background: rgba(0, 242, 255, 0.12);
}

.flight-type-chip.return {
  color: var(--warning);
  background: rgba(255, 176, 32, 0.12);
}

.flight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.flight-meta .flight-chip {
  display: inline-flex;
  gap: 4px;
}

.flight-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.flight-field.span-1 {
  grid-column: span 1;
}

.flight-field.span-2 {
  grid-column: span 2;
}

.flight-field.span-3 {
  grid-column: span 3;
}

.flight-field.span-4 {
  grid-column: span 4;
}

.flight-field.span-full {
  grid-column: 1 / -1;
}

.flight-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.flight-actions .mini-btn {
  padding: 8px 10px;
  font-size: 0.8rem;
}

.visa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.visa-grid .span-2 {
  grid-column: span 2;
}

.visa-status-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
}

.visa-status-panel.status-ok {
  color: var(--success);
  border-color: rgba(0, 255, 163, 0.16);
  background: rgba(0, 255, 163, 0.08);
}

.visa-status-panel.status-warn {
  color: var(--warning);
  border-color: rgba(255, 176, 32, 0.18);
  background: rgba(255, 176, 32, 0.08);
}

.visa-status-panel.status-bad {
  color: #ff9bb3;
  border-color: rgba(255, 51, 102, 0.2);
  background: rgba(255, 51, 102, 0.08);
}

@media (max-width: 1160px) {
  .mission-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .inventory-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .flight-field.span-3,
  .flight-field.span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .view {
    gap: 12px;
  }

  .mission-brief-grid,
  .flight-key-dates,
  .visa-grid,
  .filters.filters-4 {
    grid-template-columns: 1fr;
  }

  .flight-booking-meta,
  .budget-results,
  .centers-grid,
  .hotels-grid,
  .shipment-form,
  .inventory-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-toolbar {
    gap: 10px;
  }

  .inventory-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    align-items: stretch;
  }

  .inventory-toolbar-actions label,
  .inventory-toolbar-actions .btn {
    min-width: 0;
    width: 100%;
  }

  .inventory-mobile-list {
    display: grid;
    gap: 12px;
  }

  .inventory-table-wrap {
    display: none;
  }

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

  .inventory-mobile-field:last-child {
    grid-column: 1 / -1;
  }

  .inventory-table th:nth-child(1),
  .inventory-table td:nth-child(1),
  .inventory-table th:nth-child(2),
  .inventory-table td:nth-child(2),
  .inventory-table th:nth-child(3),
  .inventory-table td:nth-child(3),
  .inventory-table th:nth-child(8),
  .inventory-table td:nth-child(8) {
    position: static;
    left: auto;
    right: auto;
    box-shadow: none;
  }

  .visa-grid .span-2,
  .flight-field.span-2,
  .flight-field.span-3,
  .flight-field.span-4,
  .flight-field.span-full,
  .shipment-form .span-2 {
    grid-column: auto;
  }

  .flight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .inventory-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .inventory-pill {
    justify-content: space-between;
  }

  .inventory-mobile-list {
    display: grid;
    gap: 12px;
  }

  .inventory-table-wrap {
    display: none;
  }

  .inventory-mobile-metrics {
    grid-template-columns: 1fr;
  }

  .compact-two-col {
    grid-template-columns: 1fr;
  }

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

  .section-inline-actions,
  .inventory-actions,
  .flight-booking-actions,
  .flight-toolbar,
  .shipment-form .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-inline-actions .btn,
  .section-inline-actions .nav-btn,
  .inventory-actions .btn,
  .flight-booking-actions .btn,
  .flight-booking-actions .nav-btn,
  .flight-toolbar .btn,
  .flight-toolbar .nav-btn,
  .shipment-form .form-actions .btn,
  .shipment-form .form-actions .nav-btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .app-mobile-nav {
    gap: 6px;
    padding-top: 8px;
  }

  .app-mobile-nav .nav-btn {
    padding: 9px 6px;
    font-size: 0.68rem;
  }

  .inventory-pills {
    grid-template-columns: 1fr;
  }

  .inventory-mobile-head {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .inventory-mobile-check {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-height: 0;
    margin-top: -4px;
  }

  .inventory-mobile-metrics {
    grid-template-columns: 1fr;
  }

  .inventory-mobile-field:last-child {
    grid-column: auto;
  }

  .inventory-mobile-supplier .row-actions {
    grid-template-columns: 1fr;
  }

  .header-kpi-strip {
    grid-template-columns: 1fr;
  }

  .mission-brief-grid {
    gap: 10px;
  }
}
