:root {
  --bg: #06110d;
  --panel: #0d1b17;
  --line: #2a4338;
  --text: #f2fbf7;
  --muted: #9bb6aa;
  --blue: #4cc3b0;
  --green: #00ff55;
  --yellow: #fff200;
  --ink: #04110c;
}

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  max-width: 100%;
  color: var(--text);
  background: linear-gradient(135deg, #06110d 0%, #0b1e18 58%, #030806 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

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

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

.statusStore {
  display: none;
}

.leasebackIntro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(76, 195, 176, .18) 0%, rgba(76, 195, 176, 0) 38%),
    linear-gradient(180deg, #06110d 0%, #020605 100%);
  transition: opacity .55s ease, visibility .55s ease;
  animation: introExit .65s ease 3.65s forwards;
}

.leasebackIntro::before,
.leasebackIntro::after {
  content: "";
  position: absolute;
  left: -15vw;
  right: -15vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 195, 176, .8), transparent);
  opacity: .5;
  transform: scaleX(.2);
}

.leasebackIntro::before {
  top: auto;
  bottom: 17%;
  animation: introLineSlide 1.4s ease forwards;
}

.leasebackIntro::after {
  top: auto;
  bottom: 20%;
  left: 12vw;
  right: 12vw;
  opacity: .32;
  animation: introLineSlide 1.4s ease .18s forwards;
}

.introStage {
  position: relative;
  width: min(720px, 86vw);
  min-height: min(540px, 72vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vh, 34px);
  isolation: isolate;
}

.introMark {
  display: grid;
  gap: 10px;
  place-items: center;
  transform: translateY(8px);
  animation: introMarkLift 1.45s cubic-bezier(.2, .9, .18, 1) forwards;
}

.introFLEETVIEWLogo {
  width: min(280px, 64vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 52px rgba(0, 0, 0, .4));
  animation: introLogoSettle 1.45s cubic-bezier(.2, .9, .18, 1) forwards;
}

.introPlaneDraw {
  position: relative;
  width: min(410px, 86vw);
  aspect-ratio: 1517 / 653;
  opacity: 0;
  animation: introTextRise .8s cubic-bezier(.2, .9, .18, 1) .52s forwards;
}

.introPlaneDraw img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(76, 195, 176, .76))
    drop-shadow(0 12px 24px rgba(0, 0, 0, .28));
  clip-path: inset(0 100% 0 0);
  animation:
    introDrawPlane 2.15s cubic-bezier(.28, .82, .21, 1) .65s forwards,
    introPlaneFloat 3.1s ease-in-out 2.85s infinite;
}

.introPlaneDraw::after {
  content: "";
  position: absolute;
  inset: -10% -4%;
  background: linear-gradient(100deg, transparent 0%, rgba(76, 195, 176, .22) 46%, rgba(255, 242, 0, .24) 50%, rgba(76, 195, 176, .14) 54%, transparent 100%);
  transform: translateX(-110%);
  opacity: 0;
  animation: introDrawSweep 2.15s cubic-bezier(.28, .82, .21, 1) .65s forwards;
}

.introPlaneTraceSvg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.introPlaneTracePath {
  fill: none;
  stroke: rgba(76, 195, 176, .2);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34 22;
  opacity: 0;
  animation: introTraceGlow 2.35s ease .45s forwards;
}

.introDrawDot {
  fill: #fffef0;
  opacity: 0;
  filter:
    drop-shadow(0 0 10px #fffef0)
    drop-shadow(0 0 18px #fff200)
    drop-shadow(0 0 34px rgba(76, 195, 176, .95));
  animation: introDrawDotGlow 2.35s ease .45s forwards;
}

.introCopy {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  text-transform: uppercase;
  animation: introTextRise 1.05s cubic-bezier(.2, .9, .18, 1) 1.25s both;
}

.introCopy span {
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: 0;
}

.introCopy strong {
  color: var(--blue);
  font-size: clamp(13px, 1.8vw, 24px);
  letter-spacing: .22em;
}

.skipIntroButton {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 1;
  padding: 10px 16px;
  border: 1px solid rgba(76, 195, 176, .5);
  border-radius: 8px;
  color: var(--text);
  background: rgba(4, 17, 12, .78);
  font-weight: 900;
}

.leasebackIntro.introHidden {
  animation: introExit .32s ease forwards;
}

@keyframes introLogoSettle {
  0% { opacity: 0; transform: scale(.88); }
  55% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes introMarkLift {
  to { transform: translateY(0); }
}

@keyframes introPlaneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes introDrawPlane {
  to { clip-path: inset(0 0 0 0); }
}

@keyframes introDrawSweep {
  0% { opacity: 0; transform: translateX(-110%); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translateX(112%); }
}

@keyframes introTextRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introLineSlide {
  0% { transform: scaleX(.12); opacity: 0; }
  28% { opacity: .7; }
  100% { transform: scaleX(1); opacity: .34; }
}

@keyframes introTraceGlow {
  0% { opacity: 0; stroke-dashoffset: 80; }
  20% { opacity: .42; }
  100% { opacity: 0; stroke-dashoffset: -80; }
}

@keyframes introDrawDotGlow {
  0% { opacity: 0; }
  12%, 86% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes introExit {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leasebackIntro,
  .leasebackIntro::before,
  .leasebackIntro::after,
  .introMark,
  .introFLEETVIEWLogo,
  .introPlaneDraw,
  .introPlaneDraw img,
  .introPlaneDraw::after,
  .introPlaneTracePath,
  .introDrawDot,
  .introCopy,
  .introRunway span {
    animation: none !important;
  }

  .leasebackIntro {
    display: none;
  }
}

/* Fuel Usage style intro for Leaseback. The older intro selectors remain above
   for cache tolerance, but this block owns the current intro markup. */
.leasebackIntro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(76, 195, 176, .18) 0%, rgba(76, 195, 176, 0) 38%),
    linear-gradient(180deg, #07100f 0%, #020605 100%);
  transition: opacity .55s ease, visibility .55s ease;
  animation: introFuelExit .55s ease 5.05s forwards;
}

.leasebackIntro::before,
.leasebackIntro::after {
  content: "";
  position: absolute;
  inset: auto -15vw 16% -15vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 195, 176, .8), transparent);
  opacity: .5;
  transform: scaleX(.2);
  animation: introFuelSweep 1.4s ease forwards;
}

.leasebackIntro::after {
  inset: auto 12vw 19% 12vw;
  opacity: .32;
  animation-delay: .18s;
}

.introFuelStage {
  display: grid;
  justify-items: center;
  gap: clamp(12px, 2vh, 20px);
  transform: translateY(8px);
  animation: introFuelLift 1.45s cubic-bezier(.2, .9, .18, 1) forwards;
}

.introLaunchIcon {
  width: min(76vw, 430px);
  display: grid;
  place-items: center;
  filter:
    drop-shadow(0 0 34px rgba(76, 195, 176, .28))
    drop-shadow(0 24px 62px rgba(0, 0, 0, .48));
  animation:
    introFuelIconFrame 1.15s cubic-bezier(.2, .9, .18, 1) forwards,
    introFuelLogoFadeZoom 2.85s cubic-bezier(.2, .9, .18, 1) forwards;
}

.introLaunchIcon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.introFuelTitle {
  margin-top: 0;
  color: var(--teal);
  font-size: clamp(15px, 2vw, 25px);
  font-weight: 950;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  animation: introFuelText .85s ease 2.15s forwards;
}

.introSilhouetteShowcase {
  position: relative;
  width: min(86vw, 500px);
  aspect-ratio: 16 / 9;
  margin-top: -4px;
  opacity: 0;
  animation:
    introFuelText .85s ease 1.85s forwards,
    introSilhouetteFloat 2.8s ease-in-out 2.35s infinite,
    introSilhouetteExit 5.05s ease forwards;
}

.introSilhouetteShowcase::before {
  content: "";
  position: absolute;
  inset: 23% 5% 16%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(76, 195, 176, .18), rgba(76, 195, 176, 0) 66%);
  filter: blur(12px);
}

.introSilhouettePlane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  filter:
    drop-shadow(0 0 9px rgba(76, 195, 176, .72))
    drop-shadow(0 12px 26px rgba(0, 0, 0, .34));
  animation: introSilhouetteCleanReveal 5.05s ease-in-out forwards;
}

.introSilhouettePlane.planeTwo,
.introSilhouettePlane.planeThree,
.introSilhouettePlane.planeFour,
.introSilhouettePlane.planeFive {
  display: none;
}

.leasebackIntro.introHidden {
  animation: introFuelExit .32s ease forwards;
}

@keyframes introSilhouetteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes introSilhouetteCycle {
  0%, 12% { opacity: 0; transform: scale(.965) translateX(-8px); }
  18%, 34% { opacity: 1; transform: scale(1) translateX(0); }
  42%, 100% { opacity: 0; transform: scale(1.018) translateX(8px); }
}

@keyframes introSilhouetteCleanReveal {
  0%, 34% { opacity: 0; transform: scale(.965) translateY(8px); }
  46%, 86% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(.985) translateY(-8px); }
}

@keyframes introSilhouetteExit {
  0%, 78% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-10px) scale(.97); opacity: 0; }
}

@keyframes introFuelIconFrame {
  0% { opacity: 0; transform: scale(.88); }
  55% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes introFuelLogoFadeZoom {
  0% { opacity: 0; transform: scale(.72); }
  18%, 58% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.28); }
}

@keyframes introFuelText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introFuelLift {
  to { transform: translateY(0); }
}

@keyframes introFuelSweep {
  0% { transform: scaleX(.12); opacity: 0; }
  28% { opacity: .7; }
  100% { transform: scaleX(1); opacity: .34; }
}

@keyframes introFuelExit {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leasebackIntro,
  .leasebackIntro::before,
  .leasebackIntro::after,
  .introFuelStage,
  .introLaunchIcon,
  .introFuelTitle,
  .introSilhouetteShowcase,
  .introSilhouettePlane {
    animation: none !important;
  }

  .leasebackIntro {
    display: none;
  }
}

/* Match the Fuel Usage intro exactly for the leaseback splash. */
.appSplash.leasebackIntro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 42%, rgba(82, 209, 195, .18) 0%, rgba(82, 209, 195, 0) 38%),
    linear-gradient(180deg, #07100f 0%, #020605 100%);
  transition: opacity .55s ease, visibility .55s ease;
  animation: none;
}

.appSplash.leasebackIntro::before,
.appSplash.leasebackIntro::after {
  content: "";
  position: absolute;
  inset: auto 12% 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(82, 209, 195, .55), transparent);
  opacity: .55;
  transform: scaleX(.2);
  animation: launchSweep 1.4s ease forwards;
}

.appSplash.leasebackIntro::after {
  inset: auto 23% 19%;
  animation-delay: .18s;
  opacity: .32;
}

.appSplash.leasebackIntro.introHidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.splashMark {
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translateY(8px);
  animation: splashLift 1.45s cubic-bezier(.2, .9, .18, 1) forwards;
}

.launchIcon {
  width: min(70vw, 280px);
  height: auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, .38));
  transform-origin: 50% 50%;
  animation:
    launchIconFrame 1.45s cubic-bezier(.2, .9, .18, 1) forwards,
    logoFadeZoom 4.4s cubic-bezier(.2, .82, .16, 1) forwards;
}

.launchIcon img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.splashTitle {
  margin-top: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  animation: splashText .7s ease .35s forwards;
}

.silhouetteShowcase {
  position: relative;
  width: min(88vw, 390px);
  aspect-ratio: 16 / 9;
  margin-top: 8px;
  opacity: 0;
  animation:
    splashText .7s ease .52s forwards,
    silhouetteFloat 1.9s ease-in-out 1.15s infinite,
    silhouetteExit 4.4s ease forwards;
}

.silhouetteShowcase::before {
  content: "";
  position: absolute;
  inset: 12% 2%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(0, 194, 255, .17) 0%, rgba(0, 194, 255, .06) 34%, transparent 70%);
  filter: blur(8px);
  opacity: .75;
}

.silhouettePlane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 7px rgba(0, 194, 255, .76))
    drop-shadow(0 0 18px rgba(0, 194, 255, .36))
    drop-shadow(0 12px 24px rgba(0, 0, 0, .28));
  opacity: 0;
  transform: scale(.985);
  animation: silhouetteCycle 4.4s ease-in-out forwards;
}

.silhouettePlane.planeTwo { animation-delay: .52s; }
.silhouettePlane.planeThree { animation-delay: 1.04s; }
.silhouettePlane.planeFour { animation-delay: 1.56s; }
.silhouettePlane.planeFive { animation-delay: 2.08s; }

@keyframes silhouetteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes silhouetteCycle {
  0% { opacity: 0; transform: scale(.988); }
  4% { opacity: 0; transform: scale(.99); }
  8% { opacity: 1; transform: scale(1); }
  12% { opacity: 1; transform: scale(1.002); }
  17% { opacity: 0; transform: scale(1.006); }
  100% { opacity: 0; transform: scale(1.006); }
}

@keyframes silhouetteExit {
  0%, 68% { opacity: 1; }
  78%, 100% { opacity: 0; }
}

@keyframes launchIconFrame {
  0% { opacity: 0; transform: scale(.88); }
  55% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes logoFadeZoom {
  66% {
    opacity: 1;
    transform: scale(1);
    filter:
      drop-shadow(0 28px 52px rgba(0, 0, 0, .38))
      drop-shadow(0 0 0 rgba(82, 209, 195, 0));
  }

  73% {
    opacity: 1;
    transform: scale(1.08);
    filter:
      drop-shadow(0 28px 52px rgba(0, 0, 0, .38))
      drop-shadow(0 0 18px rgba(82, 209, 195, .55));
  }

  86% {
    opacity: .78;
    transform: scale(2.35);
    filter:
      drop-shadow(0 0 18px rgba(82, 209, 195, .78))
      drop-shadow(0 0 46px rgba(0, 194, 255, .48));
  }

  100% {
    opacity: 0;
    transform: scale(4.6);
    filter:
      drop-shadow(0 0 26px rgba(255, 241, 100, .38))
      drop-shadow(0 0 72px rgba(0, 194, 255, .58));
  }
}

@keyframes splashText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splashLift {
  to { transform: translateY(0); }
}

@keyframes launchSweep {
  0% { transform: scaleX(.12); opacity: 0; }
  28% { opacity: .7; }
  100% { transform: scaleX(1); opacity: .34; }
}

@media (prefers-reduced-motion: reduce) {
  .appSplash.leasebackIntro,
  .appSplash.leasebackIntro::before,
  .appSplash.leasebackIntro::after,
  .splashMark,
  .launchIcon,
  .splashTitle,
  .silhouetteShowcase,
  .silhouettePlane {
    animation: none !important;
  }

  .appSplash.leasebackIntro {
    display: none;
  }
}

.appShell {
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  padding: 0;
  display: grid;
  grid-template-columns: clamp(150px, 11.5vw, 220px) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 10%, rgba(76, 195, 176, .12), transparent 30%),
    linear-gradient(135deg, #06110d 0%, #0b1e18 58%, #030806 100%);
}

.topBar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(42, 67, 56, .7);
  background: rgba(5, 15, 12, .72);
  padding: clamp(4px, .45vw, 8px) clamp(28px, 2.8vw, 48px);
  min-width: 0;
}

.sideBar {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  display: block;
  gap: 26px;
  padding: clamp(10px, 1vw, 18px) clamp(8px, .8vw, 16px);
  border-right: 1px solid rgba(42, 67, 56, .8);
  background: linear-gradient(180deg, rgba(8, 28, 23, .92), rgba(4, 13, 10, .96));
  min-width: 0;
}

.brandBlock {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 1.4vw, 26px);
  min-width: 0;
  text-align: left;
}

.brandLogo {
  width: clamp(200px, 13.1vw, 288px);
  height: clamp(140px, 9.75vw, 208px);
  max-height: none;
  margin: 0;
  object-fit: contain;
  transform: none;
}

.brandPlane {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 176, .28);
  border-radius: 14px;
  color: var(--blue);
  background:
    radial-gradient(circle at 50% 50%, rgba(76, 195, 176, .16), transparent 58%),
    rgba(8, 28, 23, .7);
  box-shadow: 0 0 28px rgba(76, 195, 176, .12);
}

.brandPlane svg {
  width: 43px;
  height: 43px;
  display: block;
  fill: currentColor;
  transform: rotate(-12deg);
  filter: drop-shadow(0 0 10px rgba(76, 195, 176, .18));
}

.brandBlock h1 {
  margin: 0;
  font-size: clamp(38px, 3vw, 58px);
  line-height: .95;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.controlBlock {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.monthPicker {
  display: grid;
  grid-template-columns: 48px minmax(160px, 1fr) minmax(160px, 1fr) 48px;
  align-items: end;
  gap: 8px;
}

.controlBlock label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.controlBlock input,
.controlBlock button,
.ownerCell input,
.ownerCell button {
  min-height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #12241e;
  padding: 0 12px;
  font-weight: 900;
}

.controlBlock button,
.ownerCell button,
.connectButton {
  color: var(--ink);
  background: var(--blue);
}

.connectButton {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.monthPicker button {
  min-width: 48px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.selectedMonthLabel {
  justify-self: start;
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.syncStatus {
  color: var(--muted);
  font-weight: 800;
}

.dashboardGrid {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: clamp(12px, 1vw, 18px);
  padding: clamp(10px, .9vw, 16px) clamp(10px, 1.2vw, 24px);
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
}

.leasebackTabs {
  display: grid;
  align-content: start;
  gap: clamp(5px, .5vw, 8px);
}

.leasebackTabs button {
  min-height: clamp(44px, 3.8vw, 58px);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  padding: 0 clamp(8px, .8vw, 16px);
  font-size: clamp(13px, .92vw, 18px);
  font-weight: 950;
  text-align: left;
  display: grid;
  grid-template-columns: clamp(24px, 1.7vw, 32px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, .65vw, 12px);
}

.leasebackTabs button.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(76, 195, 176, .28), rgba(76, 195, 176, .08));
  border-color: rgba(76, 195, 176, .25);
}

.leasebackTabs button span {
  min-width: 0;
  white-space: nowrap;
}

.tabIcon {
  width: clamp(22px, 1.55vw, 28px);
  height: clamp(22px, 1.55vw, 28px);
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: rgba(242, 251, 247, .82);
}

.leasebackTabs button.active .tabIcon {
  color: var(--blue);
}

.washDetailIcon,
.maintenanceIcon {
  stroke-width: 2.15;
}

.washDetailIcon {
  width: clamp(25px, 1.75vw, 31px);
  height: clamp(25px, 1.75vw, 31px);
}

.userBlock {
  display: grid;
  grid-template-columns: 44px auto;
  column-gap: 10px;
  align-items: center;
}

.userBlock span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1d3442;
  font-weight: 950;
}

.userBlock small {
  color: var(--muted);
}

.aircraftPageView {
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(8, 21, 17, .92);
  overflow-x: hidden;
  overflow-y: auto;
}

.aircraftPageTop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, .58fr);
  align-items: center;
  gap: 26px;
  margin: 18px;
  padding: 28px 28px;
  border: 1px solid rgba(42, 67, 56, .85);
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 35%, rgba(76, 195, 176, .12), transparent 30%),
    linear-gradient(135deg, rgba(8, 25, 20, .98), rgba(5, 15, 12, .98));
  box-shadow: inset 0 0 40px rgba(76, 195, 176, .035);
}

.aircraftPageTop button {
  min-height: 58px;
  border: 1px solid rgba(76, 195, 176, .5);
  border-radius: 7px;
  color: var(--blue);
  background: rgba(10, 31, 25, .8);
  padding: 0 22px;
  font-size: 22px;
  font-weight: 950;
}

.aircraftPageTop button:hover,
.aircraftPageTop button:focus-visible {
  border-color: rgba(76, 195, 176, .9);
  background: rgba(76, 195, 176, .12);
  outline: 2px solid rgba(76, 195, 176, .18);
  outline-offset: 2px;
}

.aircraftReportHeroCopy {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
}

.aircraftPageTop h2 {
  margin: 2px 0 0;
  font-size: clamp(50px, 5.2vw, 86px);
  line-height: .88;
  letter-spacing: .04em;
}

.aircraftReportHeroCopy > strong {
  color: var(--text);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.05;
}

.aircraftReportHeroCopy > span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.aircraftPageMetrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  color: #d2e5de;
  font-size: 18px;
  font-weight: 850;
}

.aircraftPageMetrics span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding-right: 17px;
  margin-right: 17px;
  border-right: 1px solid rgba(155, 182, 170, .42);
  white-space: nowrap;
}

.aircraftPageMetrics span:last-child {
  border-right: 0;
}

.aircraftPageMetrics .moneyMetric {
  color: #31d695;
}

.aircraftPageSelector {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  align-items: end;
  gap: 12px;
  margin-top: 12px;
  max-width: 560px;
}

.aircraftPageSelector label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.aircraftPageSelector select,
.aircraftPageSelector button {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(76, 195, 176, .46);
  border-radius: 7px;
  color: var(--text);
  background: rgba(9, 31, 25, .88);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 950;
}

.aircraftPageSelector button {
  color: #02120e;
  background: linear-gradient(180deg, #55cab8, #1c8d7d);
  white-space: nowrap;
}

.aircraftPageHeroMedia {
  position: relative;
  min-width: 0;
}

.aircraftPageHeroPhoto {
  min-height: 186px;
  border: 1px solid rgba(76, 195, 176, .35);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: rgba(242, 251, 247, .6);
  background:
    linear-gradient(135deg, rgba(76, 195, 176, .16), rgba(255, 255, 255, .04)),
    #0c241d;
  background-position: center;
  background-size: contain;
  font-size: 32px;
  font-weight: 950;
  overflow: hidden;
  background-repeat: no-repeat;
}

.aircraftPageHeroPhoto.hasPhoto {
  color: transparent;
}

.aircraftPagePhotoButton {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(76, 195, 176, .9);
  border-radius: 7px;
  color: var(--blue);
  background: rgba(10, 31, 25, .92);
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.aircraftPagePhotoButton:hover,
.aircraftPagePhotoButton:focus-within {
  background: rgba(76, 195, 176, .18);
}

.aircraftPagePhotoButton input {
  display: none;
}

.aircraftPageView .aircraftDetail {
  border-bottom: 1px solid var(--line);
}

.aircraftPageExpenseRows {
  margin: 14px 22px 0;
}

.aircraftExpenseForm {
  grid-template-columns: minmax(190px, 1fr) minmax(130px, .55fr) minmax(220px, 1.2fr) auto;
  padding: 14px 22px 24px;
}

.aircraftExpenseHeader,
.aircraftExpenseRow {
  grid-template-columns: minmax(200px, 1fr) minmax(120px, .45fr) minmax(220px, 1.2fr) minmax(100px, .45fr);
}

.numbersView {
  min-height: 0;
  min-width: 0;
  display: grid;
  gap: clamp(10px, .9vw, 14px);
}

.dashboardHero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .55fr);
  gap: clamp(12px, 1vw, 18px);
  align-items: stretch;
  min-width: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(42, 67, 56, .55);
}

.heroLeft {
  display: grid;
  align-content: start;
  gap: clamp(8px, .8vw, 14px);
  min-width: 0;
}

.heroCopy h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
}

.heroCopy p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.reportFilter {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(170px, .65fr);
  gap: 12px;
  padding: 0;
  align-items: end;
  min-width: 0;
}

.reportFilter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.reportFilter select,
.reportFilter input,
.expenseForm input,
.expenseForm select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(18, 36, 30, .9);
  padding: 10px 12px;
  font-weight: 850;
}

.generateReportButton {
  min-height: 46px;
  border: 1px solid rgba(76, 195, 176, .45);
  border-radius: 6px;
  color: #eafff8;
  background: linear-gradient(180deg, #1f8b76, #0e5e4f);
  padding: 0 12px;
  font-weight: 950;
}

.aircraftFeatureCard,
.uploadWidget,
.chartPanel,
.savedReportsPanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 27, 23, .88), rgba(5, 14, 11, .9));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .2);
  min-width: 0;
}

.aircraftFeatureCard {
  min-height: clamp(150px, 10vw, 190px);
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(260px, 1fr);
  overflow: hidden;
  container-type: inline-size;
}

.aircraftFeatureCard > div:first-child {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
}

.aircraftFeatureCard strong {
  font-size: 22px;
}

.aircraftFeatureCard .aircraftPhotoButton {
  margin-top: 4px;
}

.aircraftFeatureCard span,
.aircraftFeatureCard small {
  color: var(--muted);
}

.aircraftImage {
  min-height: clamp(150px, 10vw, 190px);
  background:
    linear-gradient(135deg, rgba(76, 195, 176, .18), rgba(5, 14, 11, .2)),
    radial-gradient(circle at 48% 52%, rgba(242, 251, 247, .18), transparent 22%);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.aircraftImage.hasPhoto {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}


.aircraftPhotoButton {
  width: fit-content;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 5px;
  color: var(--blue);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.aircraftPhotoButton input {
  display: none;
}

.dashboardBody {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr);
  gap: clamp(12px, 1vw, 18px);
  min-width: 0;
  align-items: start;
}

.uploadWidget,
.chartPanel,
.savedReportsPanel {
  padding: clamp(12px, .8vw, 16px);
}

.uploadWidget {
  grid-column: 1;
  display: grid;
  gap: 14px;
  min-height: clamp(260px, 20vw, 330px);
}

.cardTitle,
.panelTitle {
  font-size: 18px;
  font-weight: 950;
}

.summaryStrip {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, .8vw, 14px);
  min-width: 0;
  border: 0;
  background: transparent;
}

.summaryStrip article {
  min-height: clamp(106px, 7.5vw, 138px);
  display: grid;
  align-content: center;
  gap: 7px;
  padding: clamp(10px, .75vw, 14px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(13, 27, 23, .88), rgba(5, 14, 11, .9));
}

.summaryStrip span {
  color: var(--muted);
  font-size: clamp(10px, .68vw, 12px);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.summaryStrip strong {
  max-width: 100%;
  font-size: clamp(20px, 1.55vw, 30px);
  line-height: 1;
  overflow-wrap: anywhere;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}

.detailStats strong,
.savedReportRow strong,
.settlementRow,
.expenseRow {
  font-variant-numeric: tabular-nums;
}

.trend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trend.up {
  color: var(--blue);
}

.trend.down {
  color: #ff6868;
}

.trend.neutral {
  color: var(--muted);
}

.leasebackPanel {
  grid-column: 1 / -1;
  order: 5;
  display: none;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 21, 17, .92);
  overflow: auto;
}

.leasebackPanel .panelTitle,
.chartPanel .panelTitle,
.savedReportsPanel .panelTitle {
  padding: 20px 20px 0;
}

.tableHeader,
.aircraftRow,
.ownerGroupHeader {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(110px, .8fr) minmax(70px, .45fr) minmax(86px, .55fr) repeat(4, minmax(90px, .7fr));
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.tableHeader {
  min-height: 58px;
  padding: 0 24px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.aircraftRows {
  max-height: calc(100vh - 392px);
  overflow: auto;
}

.ownerGroup + .ownerGroup {
  border-top: 8px solid #06110d;
}

.ownerGroupHeader {
  min-height: 74px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(76, 195, 176, .15);
}

.ownerGroupName {
  display: grid;
  gap: 3px;
}

.ownerGroupName strong {
  color: var(--text);
  font-size: 23px;
  line-height: 1;
}

.ownerGroupName small,
.ownerSubtotalLabel {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ownerSubtotal {
  color: var(--text);
  font-size: 22px;
  font-weight: 950;
}

.aircraftRow {
  min-height: 94px;
  width: 100%;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  padding: 0 24px;
  border-bottom: 1px solid rgba(42, 67, 56, .75);
  font-size: 26px;
  font-weight: 850;
}

.aircraftRow:hover,
.aircraftRow:focus-visible {
  background: rgba(76, 195, 176, .12);
  outline: 1px solid var(--blue);
  outline-offset: -1px;
}

.tail {
  display: grid;
  gap: 4px;
}

.tail strong {
  font-size: 32px;
}

.tail em {
  color: var(--muted);
  font-size: 17px;
  font-style: normal;
  font-weight: 750;
}

.dataCell {
  min-width: 0;
}

.moneyCell,
.totalOwner {
  color: var(--green);
}

.reviewCell {
  color: var(--green);
  font-size: 20px;
  font-weight: 950;
  text-transform: uppercase;
}

.reviewCell.warn {
  color: var(--yellow);
}

.ownerText {
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
}

.ownerCell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.ownerCell input {
  width: 100%;
}

.ownerCell button {
  min-width: 58px;
}

.emptyRows {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.manageModal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, .62);
}

.manageModal.hidden {
  display: none;
}

.manageForm.hidden {
  display: none;
}

.managePanel {
  width: min(1120px, calc(100vw - 36px));
  max-height: min(86vh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid var(--line);
  background: #081511;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.warningModal {
  z-index: 30;
}

.saveToast {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 60;
  width: min(410px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  border: 1px solid rgba(76, 195, 176, .68);
  border-radius: 9px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 195, 176, .14), transparent 34%),
    rgba(5, 23, 17, .98);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .42);
  padding: 18px 20px;
  transform: translateY(0);
  opacity: 1;
  transition: opacity .18s ease, transform .18s ease;
}

.saveToast.hidden {
  display: grid !important;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-12px);
}

.saveToast strong {
  color: var(--blue);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.saveToast span {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.28;
}

.loadingBar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  width: min(620px, calc(100vw - 32px));
  transform: translateX(-50%);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(76, 195, 176, .44);
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 0%, rgba(76, 195, 176, .2), transparent 35%),
    rgba(5, 18, 14, .96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
}

.loadingBarText {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.loadingBarText strong {
  font-size: 16px;
  font-weight: 950;
  color: #f4fbf6;
}

.loadingBarText span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.loadingTrack {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(155, 182, 170, .16);
}

.loadingTrack span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #33df95, #4cc3b0, #1686f5);
  animation: loadingSweep 1.15s ease-in-out infinite;
}

@keyframes loadingSweep {
  0% {
    transform: translateX(-105%);
  }
  50% {
    transform: translateX(85%);
  }
  100% {
    transform: translateX(265%);
  }
}

.deleteWarningPanel {
  width: min(520px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
  border: 1px solid rgba(235, 87, 87, .75);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 8%, rgba(235, 87, 87, .18), transparent 28%),
    #081511;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .52);
}

.deleteWarningPanel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.deleteWarningPanel p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.35;
}

.deleteWarningActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
  margin-top: 8px;
}

.deleteWarningActions button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: #12241e;
  padding: 0 18px;
  font-weight: 950;
}

.deleteWarningActions button:last-child {
  border-color: rgba(235, 87, 87, .9);
  color: #fff;
  background: linear-gradient(135deg, #b91f2b, #72131d);
}

.manageHeader {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.manageHeader h2 {
  margin: 2px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.iconButton {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #12241e;
  font-weight: 900;
}

.manageForm {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.manageForm label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.manageForm input,
.manageForm button,
.manageActions button {
  min-height: 46px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #12241e;
  padding: 0 12px;
  font-weight: 900;
}

.manageForm input {
  width: 100%;
}

.manageForm input:disabled {
  opacity: .78;
}

.manageFormActions {
  display: flex;
  gap: 8px;
}

.manageFormActions button:first-child,
.manageActions button:first-child,
.detailActions button:first-child {
  color: var(--ink);
  background: var(--blue);
}

.manageActions button:last-child,
.detailActions button:last-child {
  color: #fff;
  background: #7b1212;
  border-color: #d02727;
}

.manageList {
  display: grid;
}

.manageRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(42, 67, 56, .75);
}

.manageRow span {
  display: grid;
  gap: 4px;
}

.manageRow strong {
  font-size: 28px;
  line-height: 1;
}

.manageRow em,
.manageRow small {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.manageActions {
  display: flex;
  gap: 8px;
}

.emptyManage {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.aircraftDetail {
  display: grid;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.detailTop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.detailTop span {
  display: grid;
  gap: 4px;
}

.detailTop strong {
  font-size: clamp(38px, 6vw, 68px);
  line-height: .95;
}

.detailTop em,
.detailTop small {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.detailActions {
  display: flex;
  gap: 8px;
}

.detailActions button,
.reservationRow {
  min-height: 46px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #12241e;
  padding: 0 12px;
  font-weight: 900;
}

.detailStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.detailStats span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 36, 30, .72);
}

.detailStats small,
.detailHeader {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.detailStats strong {
  font-size: 30px;
  line-height: 1;
}

.detailStats strong em {
  color: var(--muted);
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.discoveryValue {
  display: grid;
  gap: 4px;
}

.detailStats .discoveryValue {
  padding: 0;
  border: 0;
  background: transparent;
}

.discoveryValue b {
  color: var(--text);
  font-size: inherit;
  line-height: 1;
}

.discoveryValue em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.detailEmpty {
  color: var(--muted);
  font-size: 22px;
  font-weight: 800;
}

.detailHeader {
  padding: 18px 22px 0;
}

.reservationList {
  display: grid;
  padding: 14px 22px 22px;
  gap: 8px;
  min-width: 0;
}

.reservationRow {
  display: grid;
  grid-template-columns: minmax(82px, .8fr) minmax(90px, .9fr) minmax(110px, 1fr) minmax(54px, .42fr) minmax(64px, .42fr) minmax(74px, .5fr) minmax(118px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.reservationRow span:first-child {
  display: grid;
  gap: 2px;
}

.reservationRow em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.reservationHeader {
  min-height: 42px;
  color: var(--muted);
  background: #123a32;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uploadPanel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 21, 17, .92);
  padding: 22px;
}

.analyticsPagePanel {
  align-content: start;
  overflow: hidden;
}

.analyticsControlBar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(160px, .55fr);
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(76, 195, 176, .24);
  border-radius: 8px;
  background: rgba(13, 27, 23, .84);
}

.analyticsControlBar label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.analyticsControlBar select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid rgba(76, 195, 176, .34);
  border-radius: 6px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(19, 68, 56, .92), rgba(8, 33, 27, .96));
  padding: 0 40px 0 12px;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4cc3b0 50%),
    linear-gradient(135deg, #4cc3b0 50%, transparent 50%),
    linear-gradient(180deg, rgba(19, 68, 56, .92), rgba(8, 33, 27, .96));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

.analyticsControlBar select:focus {
  outline: 2px solid rgba(76, 195, 176, .65);
  outline-offset: 2px;
}

.analyticsControlBar select option {
  color: var(--text);
  background: #0b211a;
}

.analyticsPageContent {
  min-width: 0;
  overflow: hidden;
}

.analyticsPageContent .analyticsSheet {
  box-shadow: none;
}

.analyticsPageContent .analyticsHero {
  border-radius: 8px 8px 0 0;
}

.savedReportsPanel {
  grid-column: 1;
  min-width: 0;
  min-height: 0;
}

.documentsPanel h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.documentsPanel p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.documentsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 16px;
  min-width: 0;
  align-items: stretch;
}

.contractForm {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(170px, .8fr) minmax(170px, .8fr) minmax(260px, 1.1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 27, 23, .86);
}

.contractForm label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contractForm input,
.contractForm select {
  width: 100%;
  min-height: 54px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #12241e;
  padding: 0 14px;
  font-weight: 950;
}

.contractForm button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 7px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 22px;
  font-weight: 950;
  white-space: nowrap;
}

.viewCurrentDocumentButton,
.deleteCurrentDocumentButton,
#saveDocumentButton {
  min-width: 0;
}

.documentFormActions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  min-width: 0;
}

.deleteCurrentDocumentButton {
  color: #fff !important;
  background: linear-gradient(180deg, #e5383b, #9d1518) !important;
  border-color: rgba(255, 100, 100, .55) !important;
}

.contractDrop {
  display: grid;
  gap: 8px;
  min-height: 54px;
  cursor: pointer;
}

.contractDrop input {
  display: none;
}

.contractDrop span,
.contractDrop em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contractDrop span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(76, 195, 176, .75);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(76, 195, 176, .92);
  padding: 0 14px;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: none;
}

.contractDrop em {
  color: var(--text);
  font-style: normal;
  font-size: 15px;
  min-height: 20px;
  letter-spacing: 0;
  text-transform: none;
}

.contractDrop.dragging span {
  outline: 3px solid rgba(76, 195, 176, .25);
  outline-offset: 3px;
}

.contractDrop.uploaded span {
  border-style: solid;
  border-color: rgba(51, 223, 149, .72);
  color: var(--ink);
  background: linear-gradient(180deg, #48d5b9, #2cae98);
  font-size: 0;
}

.contractDrop.uploaded span::before {
  content: "Uploaded";
  font-size: 18px;
}

.documentUploadSuccess,
.documentSaveSuccess {
  grid-column: 1 / -1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 0 14px;
  border: 1px solid rgba(51, 223, 149, .45);
  border-radius: 999px;
  background: rgba(51, 223, 149, .14);
  color: #33df95;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.documentWarnings {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  font-weight: 950;
}

.documentWarnings article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.documentWarnings strong {
  flex: 0 0 auto;
  font-size: 13px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.documentWarnings span {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.documentWarnings.dueSoon {
  border: 1px solid rgba(246, 199, 74, .56);
  background: rgba(246, 199, 74, .14);
  color: #ffd85a;
}

.documentWarnings.expired {
  border: 1px solid rgba(255, 98, 98, .62);
  background: rgba(255, 98, 98, .14);
  color: #ff7a7a;
}

.contractStatusCard {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 195, 176, .16), transparent 34%),
    rgba(13, 27, 23, .86);
  padding: 20px;
}

.contractStatusCard span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contractStatusCard strong {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1;
}

.contractStatusCard strong.active {
  color: #33df95;
}

.contractStatusCard strong.dueSoon {
  color: #f6c74a;
}

.contractStatusCard strong.expired {
  color: #ff6a73;
}

.contractStatusCard em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
}

.documentExpirationCard {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(76, 195, 176, .26);
  border-radius: 8px;
  background: rgba(7, 25, 18, .72);
}

.documentsExpirationSummary {
  display: grid;
}

.documentExpirationRow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(76, 195, 176, .16);
}

.documentExpirationRow:first-child {
  border-top: 0;
}

.documentExpirationRow strong {
  min-width: 0;
  color: #f4fbf6;
  font-size: clamp(14px, 1.1vw, 18px);
}

.documentExpirationRow span {
  flex: 0 0 auto;
  max-width: 55%;
  text-align: right;
  color: #f4c64f;
  font-size: clamp(12px, .95vw, 15px);
  font-weight: 900;
}

.documentExpirationRow span.active {
  color: #4cc3b0;
}

.documentExpirationRow span.expired {
  color: #ff6262;
}

.documentExpirationRow span.missing,
.documentExpirationRow span.dueSoon {
  color: #f4c64f;
}

.contractRows {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contractRow {
  min-width: 0;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.25fr) minmax(140px, .55fr) minmax(110px, .45fr) minmax(210px, .75fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(42, 67, 56, .85);
  border-radius: 7px;
  background: rgba(18, 36, 30, .68);
  padding: 12px 16px;
  font-weight: 900;
}

.contractRow span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contractRow span:first-child {
  display: grid;
  gap: 3px;
}

.contractRow strong {
  font-size: 22px;
  line-height: 1;
}

.contractRow em {
  color: var(--muted);
  font-style: normal;
  font-size: 15px;
}

.contractRow b {
  justify-self: start;
  border-radius: 999px;
  background: rgba(155, 182, 170, .16);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.contractRow b.active {
  color: #04110c;
  background: #33df95;
}

.contractRow b.dueSoon {
  color: #04110c;
  background: #f6c74a;
}

.contractRow b.expired {
  color: #fff;
  background: #b91f2b;
}

.contractActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.contractActions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 950;
}

.contractActions button:last-child {
  color: #fff;
  background: #7b1212;
  border-color: #d02727;
}

.contractActions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.exportPanel h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.exportPanel p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.exportSummaryCard {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 195, 176, .16), transparent 34%),
    rgba(13, 27, 23, .86);
  padding: 22px;
}

.exportSummaryCard span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.exportSummaryCard strong {
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
}

.exportSummaryCard em {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.exportSourcePicker {
  display: grid;
  gap: 8px;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.exportSourcePicker select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(8, 21, 17, .92);
  padding: 0 14px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.exportInvoiceToggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 680px);
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 56, 45, .72);
  padding: 14px 16px;
  cursor: pointer;
}

.exportInvoiceToggle input {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.exportInvoiceToggle span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.exportInvoiceToggle strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.exportInvoiceToggle em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.exportActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.exportActions button {
  min-height: 58px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 8px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 22px;
  font-size: 20px;
  font-weight: 950;
}

.exportActions button:disabled {
  cursor: not-allowed;
  color: rgba(242, 251, 247, .55);
  background: rgba(18, 36, 30, .7);
  border-color: var(--line);
}

.backupPanel h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
}

.backupPanel p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

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

.backupCard {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 195, 176, .16), transparent 34%),
    rgba(13, 27, 23, .86);
  padding: 22px;
  min-width: 0;
}

.backupCard > span,
.backupImportDrop {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.backupCard strong {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
}

.cloudSyncMeta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  border: 1px solid rgba(76, 195, 176, .28);
  border-radius: 8px;
  background: rgba(4, 16, 12, .42);
  padding: 12px;
  min-width: 0;
}

.cloudSyncMeta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cloudSyncMeta b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
}

.cloudSyncMeta b.synced {
  color: var(--blue);
}

.cloudSyncMeta b.error {
  color: #ff6868;
}

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

.backupCard button,
.backupImportDrop {
  min-height: 56px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 8px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 18px;
  font-size: 18px;
  font-weight: 950;
}

.cloudSyncActions button:last-child {
  color: var(--text);
  background: rgba(18, 36, 30, .86);
}

.backupCard button:disabled {
  cursor: not-allowed;
  color: rgba(242, 251, 247, .55);
  background: rgba(18, 36, 30, .7);
  border-color: var(--line);
}

.backupImportDrop {
  display: grid;
  place-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  letter-spacing: 0;
  text-transform: none;
}

.backupImportDrop input {
  display: none;
}

.backupImportDrop em {
  max-width: 100%;
  overflow: hidden;
  color: #06231a;
  font-size: 14px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.backupStatus {
  border: 1px solid rgba(76, 195, 176, .38);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(0, 255, 85, .05);
  padding: 14px 16px;
  font-weight: 950;
}

.savedReportsRows {
  display: grid;
  gap: 8px;
  padding: clamp(12px, .9vw, 16px) clamp(12px, 1vw, 20px) clamp(14px, 1vw, 20px);
}

.savedReportRow,
.archiveRow {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(48px, .38fr) minmax(58px, .42fr) minmax(64px, .46fr) minmax(42px, .3fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(42, 67, 56, .75);
  border-radius: 6px;
  color: var(--text);
  background: rgba(18, 36, 30, .58);
  padding: 9px 10px;
  text-align: left;
  font-size: clamp(12px, .74vw, 14px);
  font-weight: 850;
}

.savedReportActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.savedReportActions button {
  min-height: 34px;
  border: 1px solid rgba(76, 195, 176, .42);
  border-radius: 6px;
  background: rgba(76, 195, 176, .12);
  color: var(--blue);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 950;
}

.savedReportActions .deleteSavedReportButton {
  border-color: rgba(255, 68, 68, .72);
  background: linear-gradient(180deg, #cf2a2a, #9f1515);
  color: #fff;
}

.archiveRows {
  display: grid;
  gap: 10px;
}

.archiveFilterBar,
.maintenanceFilterBar {
  display: grid;
  gap: 18px;
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(42, 67, 56, .75);
  border-radius: 8px;
  background: rgba(18, 36, 30, .58);
}

.archiveFilterBar {
  grid-template-columns: repeat(2, minmax(180px, 260px));
}

.maintenanceFilterBar {
  grid-template-columns: minmax(180px, 240px) minmax(240px, 320px) minmax(150px, 200px) minmax(220px, 1fr);
}

.archiveFilterBar label,
.maintenanceFilterBar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.archiveFilterBar select,
.maintenanceFilterBar select,
.maintenanceFilterBar input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 21, 17, .92);
  padding: 0 12px;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
}

.maintenanceFilterBar input[readonly] {
  color: #dff7ef;
  background: rgba(8, 21, 17, .72);
  cursor: default;
}

.archiveRow {
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(70px, .65fr)) minmax(150px, .75fr);
}

.savedReportRow span,
.archiveRow span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.savedReportRow strong,
.archiveRow strong {
  font-size: clamp(12px, .8vw, 15px);
  line-height: 1.15;
}

.savedReportRow:hover,
.savedReportRow:focus-visible,
.archiveRow:hover,
.archiveRow:focus-visible {
  outline: 1px solid var(--blue);
  background: rgba(76, 195, 176, .12);
}

.savedReportRow span:first-child,
.archiveRow span:first-child {
  display: grid;
  gap: 3px;
}

.savedReportRow em,
.archiveRow em {
  color: var(--muted);
  font-size: clamp(11px, .7vw, 13px);
  font-style: normal;
}

.savedReportRow span:last-child,
.archiveRow span:last-child {
  color: var(--blue);
  justify-self: end;
}

.archiveActions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.archiveActions button {
  min-height: 34px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
}

.archiveActions .deleteArchiveButton {
  border-color: rgba(255, 112, 112, .55);
  color: #ffe9e9;
  background: rgba(150, 32, 32, .8);
}

.archiveActions button:hover,
.archiveActions button:focus-visible {
  outline: 2px solid rgba(76, 195, 176, .22);
  outline-offset: 2px;
}

.aircraftManagePanel {
  min-height: min(720px, calc(100vh - 170px));
  max-width: 100%;
  overflow-x: hidden;
}

.aircraftManagePanel h2 {
  font-size: clamp(34px, 3.2vw, 58px);
}

.aircraftManageHeader {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.aircraftManageHeader > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.aircraftManageAddButton {
  min-height: 56px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 8px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 22px;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.aircraftManageGrid {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.aircraftManageList,
.aircraftEditor {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(7, 19, 15, .72);
}

.aircraftManageRows {
  display: grid;
  gap: 10px;
  padding: 14px;
  max-height: none;
  overflow: visible;
}

.aircraftManageRow {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(18, 36, 30, .74);
  padding: 10px;
  text-align: left;
  cursor: grab;
}

.aircraftManageRow:hover,
.aircraftManageRow:focus-within,
.aircraftManageRow.selected {
  border-color: rgba(76, 195, 176, .7);
  background: rgba(76, 195, 176, .12);
}

.aircraftManageRow.dragging {
  cursor: grabbing;
  opacity: .58;
}

.aircraftManageRow.dragOver {
  border-color: rgba(76, 195, 176, .95);
  background: rgba(76, 195, 176, .18);
  box-shadow: inset 0 0 0 2px rgba(76, 195, 176, .22);
}

.aircraftManageSelect {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, .62fr);
  align-items: center;
  gap: 12px;
  border: 0;
  color: inherit;
  background: transparent;
  padding: 0 4px;
  text-align: left;
  cursor: inherit;
}

.aircraftManageSelect span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.aircraftManageRow strong {
  font-size: clamp(20px, 1.7vw, 28px);
}

.aircraftManageRow em,
.aircraftManageSelect > span:last-child {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
  min-width: 0;
  overflow-wrap: anywhere;
}

.aircraftEditor {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  overflow: hidden;
}

.aircraftEditorTop {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(260px, .62fr);
  gap: 14px;
  min-width: 0;
  align-items: stretch;
}

.aircraftManagePhotoPreview {
  position: relative;
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: min(390px, calc(100vh - 430px));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 76px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(76, 195, 176, .18), rgba(8, 21, 17, .72));
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.aircraftManageStatus {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76, 195, 176, .12), transparent 35%),
    rgba(8, 21, 17, .92);
  padding: clamp(16px, 1.4vw, 24px);
}

.aircraftStatusHeader {
  display: grid;
  gap: 4px;
}

.aircraftStatusHeader strong {
  font-size: clamp(26px, 2vw, 38px);
  line-height: 1;
}

.aircraftStatusHeader span,
.aircraftStatusFacts dt,
.aircraftStatusList span,
.aircraftStatusEmpty {
  color: var(--muted);
  font-weight: 850;
}

.aircraftStatusFacts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.aircraftStatusFacts div {
  display: grid;
  gap: 3px;
}

.aircraftStatusFacts dt {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aircraftStatusFacts dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 1vw, 20px);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.aircraftStatusList {
  display: grid;
  gap: 8px;
}

.aircraftStatusList span {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.aircraftStatusList em {
  font-style: normal;
  font-size: clamp(15px, .95vw, 18px);
  font-weight: 900;
}

.aircraftStatusList em.ok {
  color: var(--blue);
}

.aircraftStatusList em.warn {
  color: #f6c74a;
}

.aircraftManagePhotoPreview.hasPhoto {
  color: var(--text);
  background-color: #07140f;
}

.aircraftManagePhotoPreview input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.aircraftManagePhotoPreview span {
  pointer-events: none;
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 176, .65);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(76, 195, 176, .92);
  line-height: 1;
}

.aircraftManagePhotoPreview:not(.hasPhoto) span {
  font-size: 0;
}

.aircraftManagePhotoPreview:not(.hasPhoto) span::before {
  content: "+";
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 58px;
  line-height: 1;
  transform: translate(-50%, -54%);
}

.aircraftManagePhotoPreview.hasPhoto span {
  width: auto;
  height: auto;
  align-self: end;
  justify-self: start;
  margin: 12px;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.aircraftManageForm {
  align-content: start;
  padding: 0;
  grid-template-columns: minmax(150px, .72fr) minmax(320px, 1.6fr) minmax(220px, 1fr);
  gap: 14px;
  min-width: 0;
}

.aircraftManageForm label {
  font-size: 14px;
}

.aircraftManageForm input {
  min-height: 66px;
  font-size: clamp(17px, 1.15vw, 24px);
  font-weight: 950;
  overflow: visible;
  text-overflow: clip;
}

.aircraftRateFields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(76, 195, 176, .3);
  border-radius: 10px;
  background: rgba(9, 35, 28, .5);
}

.aircraftRateFields legend {
  padding: 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.aircraftRateFields label {
  min-width: 0;
}

.aircraftRateFields input {
  min-height: 52px;
  font-size: clamp(15px, .95vw, 20px);
}

.aircraftManageForm .manageFormActions {
  grid-column: 1 / -1;
}

.aircraftManageForm .manageFormActions button {
  min-height: 58px;
  font-size: 20px;
  padding: 0 20px;
}

.aircraftManageForm .manageFormActions .dangerButton {
  border-color: rgba(235, 87, 87, .82);
  color: #fff;
  background: linear-gradient(135deg, #b91f2b, #72131d);
}

.aircraftManageForm .manageFormActions .dangerButton:hover,
.aircraftManageForm .manageFormActions .dangerButton:focus-visible {
  border-color: rgba(255, 120, 128, .95);
  outline: 2px solid rgba(235, 87, 87, .24);
  outline-offset: 2px;
}

.reportSaveBar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 22px 24px;
}

.reportSaveBar .saveReportButton,
#saveAircraftReportButton,
.reportSaveBar .analyticsSummaryButton,
#analyticsSummaryButton {
  min-height: 46px;
  border: 1px solid rgba(76, 195, 176, .72);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, #54c8b9, #168a78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  padding: 0 22px;
  font-weight: 950;
  appearance: none;
}

.reportSaveBar .saveReportButton:hover,
.reportSaveBar .saveReportButton:focus-visible,
#saveAircraftReportButton:hover,
#saveAircraftReportButton:focus-visible,
.reportSaveBar .analyticsSummaryButton:hover,
.reportSaveBar .analyticsSummaryButton:focus-visible,
#analyticsSummaryButton:hover,
#analyticsSummaryButton:focus-visible {
  border-color: rgba(76, 195, 176, .95);
  background: linear-gradient(135deg, #68d6c9, #1b9f8a);
  outline: 2px solid rgba(76, 195, 176, .25);
  outline-offset: 2px;
}

.analyticsSummaryView {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #04110d;
}

.analyticsSummaryContent {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
}

.analyticsSheet {
  overflow: hidden;
  border: 1px solid rgba(20, 67, 52, .8);
  border-radius: 8px;
  background: #f8fbf9;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .35);
  color: #081a14;
}

.analyticsHero {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(360px, 1.4fr) minmax(280px, .9fr);
  gap: 22px;
  align-items: center;
  position: relative;
  padding: 28px 34px;
  color: #f7fffb;
  background:
    radial-gradient(circle at 85% 30%, rgba(76, 195, 176, .24), transparent 26%),
    linear-gradient(135deg, #05120f 0%, #08261f 62%, #03100c 100%);
}

.analyticsBackButton {
  position: absolute;
  left: 18px;
  top: 14px;
  min-height: 34px;
  border: 1px solid rgba(76, 195, 176, .5);
  border-radius: 6px;
  color: #dffbf4;
  background: rgba(7, 24, 19, .82);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.analyticsBrand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.analyticsBrand img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.analyticsBrand span {
  display: grid;
  gap: 4px;
}

.analyticsBrand strong {
  font-size: 30px;
  line-height: 1;
}

.analyticsBrand em,
.analyticsAircraftCard em,
.analyticsAircraftCard small {
  color: #b7d0c7;
  font-style: normal;
  font-weight: 800;
}

.analyticsBrand em {
  color: #4cc3b0;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.analyticsTitle {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.analyticsTitle h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.analyticsTitle p {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.analyticsTitle small {
  color: #52d7bd;
  font-size: 16px;
  font-weight: 850;
}

.analyticsAircraftCard {
  display: grid;
  grid-template-columns: minmax(120px, .7fr) minmax(160px, 1fr);
  overflow: hidden;
  min-height: 142px;
  border: 1px solid rgba(76, 195, 176, .28);
  border-radius: 7px;
  background: rgba(4, 17, 12, .75);
}

.analyticsAircraftCard span {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 18px;
}

.analyticsAircraftCard strong {
  color: #4ee2bd;
  font-size: 24px;
}

.analyticsAircraftPhoto {
  min-height: 142px;
  background:
    linear-gradient(135deg, rgba(76, 195, 176, .15), rgba(255, 255, 255, .06)),
    #0f281f;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.analyticsGlance {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  margin: 18px;
  padding: 20px;
  border: 1px solid #d3dfda;
  border-radius: 7px;
  background: #fff;
}

.analyticsGlanceIntro {
  display: grid;
  align-content: center;
  gap: 10px;
}

.analyticsCircleIcon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid #0f4b38;
  border-radius: 999px;
  color: #0f4b38;
  font-weight: 950;
}

.analyticsGlanceIntro strong,
.analyticsCard h3,
.analyticsOwnerTotal span {
  color: #0b2a20;
  font-size: 19px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.analyticsGlanceIntro p,
.analyticsCard p {
  margin: 0;
  color: #263e36;
  font-size: 14px;
  line-height: 1.45;
}

.analyticsMetricStrip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 0;
}

.analyticsMetricStrip span {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 12px;
  align-content: center;
  min-width: 0;
  padding: 8px 16px;
  border-left: 1px solid #d4dfda;
}

.analyticsMetricStrip em {
  grid-row: span 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #28c475, #0b5946);
  font-size: 28px;
  font-style: normal;
  font-weight: 950;
}

.analyticsMetricStrip small {
  color: #0b2a20;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analyticsMetricStrip strong {
  color: #0b3a2c;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1;
}

.analyticsMetricStrip b {
  color: #11895c;
  font-size: 13px;
}

.analyticsMetricStrip b.up {
  color: #11895c;
}

.analyticsMetricStrip b.down {
  color: #c0393a;
}

.analyticsMetricStrip b.neutral {
  color: #667c73;
}

.analyticsCards {
  display: grid;
  grid-template-columns: 1.18fr 1.1fr .9fr;
  gap: 14px;
  padding: 0 18px 18px;
}

.analyticsCard,
.analyticsOwnerTotal {
  border: 1px solid #cfdcd7;
  border-radius: 7px;
  background: #fff;
  padding: 18px;
}

.analyticsCard h3 {
  margin: 0 0 4px;
}

.donutAndLegend {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(190px, 1fr);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
}

.donutChart {
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
}

.donutChart::before {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: inherit;
  background: #fff;
}

.donutChart span {
  position: relative;
  display: grid;
  justify-items: center;
  color: #081a14;
  font-size: 24px;
  font-weight: 950;
}

.donutChart small {
  font-size: 12px;
  font-weight: 850;
}

.donutLegend {
  display: grid;
  gap: 11px;
}

.donutLegend span,
.hoursLine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid #d8e2de;
  font-size: 14px;
}

.donutLegend i,
.hoursLine i {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: middle;
}

.donutLegend strong {
  font-size: 14px;
}

.analyticsBars {
  height: 240px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding: 22px 8px 0;
  border-left: 1px solid #d4dfda;
  border-bottom: 1px solid #d4dfda;
}

.analyticsBars span {
  min-height: 16px;
  display: grid;
  align-content: start;
  justify-items: center;
  position: relative;
  border-radius: 4px 4px 0 0;
  color: #081a14;
  background: linear-gradient(180deg, #2dbd76, #0a4a37);
}

.analyticsBars strong {
  position: absolute;
  top: -24px;
  font-size: 13px;
}

.analyticsBars em {
  position: absolute;
  bottom: -25px;
  font-size: 12px;
  font-style: normal;
}

.analyticsNoTrend {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  max-width: 320px;
  color: #4b5f56;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.hoursBreakdown {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hoursLine strong,
.hoursLine em {
  font-style: normal;
  font-weight: 950;
}

.hoursLine em {
  color: #169865;
}

.hoursLine.total {
  border-bottom: 0;
  font-size: 16px;
}

.utilizationDays {
  grid-column: span 1;
}

.utilizationTable {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 90px;
  gap: 8px 12px;
  margin-top: 16px;
  font-size: 14px;
}

.utilizationTable span {
  color: #263e36;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.utilizationTable strong {
  padding: 5px 0;
  border-bottom: 1px solid #d8e2de;
}

.utilizationTable .utilizationDate {
  display: grid;
  gap: 2px;
}

.utilizationTable .utilizationDate span {
  color: #11895c;
  font-size: 12px;
  line-height: 1.15;
}

.utilizationTable .utilizationDate b {
  color: #081a14;
  font-size: 14px;
  line-height: 1.2;
}

.analyticsNotes {
  grid-column: span 1;
}

.analyticsNotes p {
  margin-top: 12px;
  color: #0d2b22;
  font-weight: 800;
}

.analyticsOwnerTotal {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 180px;
  background: linear-gradient(135deg, #f4fbf8, #e7f2ef);
}

.analyticsOwnerTotal strong {
  color: #0b3a2c;
  font-size: 46px;
}

.analyticsOwnerTotal em {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #16855f;
  font-style: normal;
  font-size: 30px;
  font-weight: 950;
}

.analyticsFooter {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.5fr;
  gap: 18px;
  padding: 18px 34px;
  color: #f2fbf7;
  background: linear-gradient(135deg, #04110d, #08261f);
  font-size: 14px;
  font-weight: 800;
}

.analyticsEmpty {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--text);
}

.analyticsEmpty button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 16px;
  font-weight: 950;
}

.chartPanel {
  grid-column: 2;
  min-width: 0;
}

.chartTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chartTitle select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(18, 36, 30, .72);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.chartGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(10px, .8vw, 14px);
  min-width: 0;
  padding: clamp(12px, .9vw, 16px) clamp(12px, 1vw, 20px) clamp(14px, 1vw, 20px);
}

.barChartPanel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(42, 67, 56, .75);
  border-radius: 8px;
  padding: 16px;
  background: rgba(3, 10, 8, .35);
}

.barChartPanel strong {
  font-size: 14px;
}

.chartLegend {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.chartLegend span {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--blue);
}

.chartLegend span:nth-of-type(2) {
  background: #eb5757;
}

.barChart {
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: clamp(6px, .55vw, 10px);
  min-width: 0;
  padding: 38px clamp(8px, .7vw, 14px) 30px;
  border: 0;
  border-radius: 0;
  background:
    repeating-linear-gradient(to top, rgba(255, 255, 255, .05) 0 1px, transparent 1px 42px),
    rgba(3, 10, 8, .35);
}

.barChart span {
  display: grid;
  align-items: end;
  justify-items: center;
  position: relative;
  min-height: 22px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #4cc3b0, #17745f);
}

.barChart span strong {
  position: absolute;
  top: -30px;
  max-width: clamp(54px, 4.6vw, 88px);
  color: var(--text);
  font-size: clamp(8px, .58vw, 11px);
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.barChart span em {
  position: absolute;
  bottom: -22px;
  color: var(--muted);
  font-size: clamp(9px, .72vw, 11px);
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.barChart.twoTone span.expenseBar {
  background: linear-gradient(180deg, #eb5757, #8f2727);
}

.barChart.twoTone span.expenseBar em {
  color: transparent;
}

.chartEmpty {
  grid-column: 1 / -1;
  align-self: center;
  justify-self: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.csvDropMirror {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(18, 36, 30, .45);
  padding: 20px;
  font-weight: 850;
  text-align: center;
}

.settlementTable {
  display: grid;
  border: 1px solid var(--line);
  background: rgba(5, 14, 11, .86);
  overflow: hidden;
  min-width: 0;
}

.settlementHeader,
.settlementRow {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(58px, .45fr) minmax(72px, .5fr) minmax(96px, .65fr) minmax(0, 1.15fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 67, 56, .75);
}

.settlementHeader {
  color: var(--text);
  background: #123a32;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.settlementRow {
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.settlementRow.revenue span:nth-child(4) {
  background: rgba(0, 255, 85, .14);
  color: var(--green);
}

.settlementRow.expense span:nth-child(4) {
  background: rgba(255, 242, 0, .1);
  color: #ffd39b;
}

.settlementRow.subtotal,
.settlementRow.total {
  font-size: 18px;
  font-weight: 950;
}

.settlementRow.total {
  color: var(--text);
  background: #143d63;
}

.settlementRow span:nth-child(4) {
  padding: 8px 10px;
}

.inlineMoneyInput {
  display: block;
  width: 100%;
}

.inlineMoneyInput input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(255, 242, 0, .28);
  color: #ffd39b;
  background: rgba(255, 242, 0, .1);
  padding: 6px 8px;
  font-weight: 950;
}

.inlineMoneyInput input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.inlineTextInput {
  display: block;
  width: 100%;
}

.inlineTextInput input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(80, 201, 186, .4);
  color: var(--text);
  background: rgba(80, 201, 186, .08);
  padding: 6px 8px;
  font: inherit;
  font-weight: 950;
}

.inlineTextInput input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.inlineNoteInput {
  display: block;
  width: min(100%, 360px);
}

.inlineNoteInput input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(80, 201, 186, .35);
  color: var(--text);
  background: rgba(80, 201, 186, .08);
  padding: 6px 8px;
  font: inherit;
  font-weight: 900;
}

.inlineNoteInput input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.carryoverPanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  border: 1px solid rgba(255, 204, 64, .45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(91, 60, 0, .22), rgba(6, 29, 23, .88));
  padding: 14px 16px;
}

.carryoverPanel div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.carryoverPanel strong {
  color: #ffd66e;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 950;
}

.carryoverPanel span {
  color: var(--muted);
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 850;
}

.carryoverActions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.carryoverPanel button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(78, 199, 181, .78);
  border-radius: 6px;
  color: #fff;
  background: var(--teal);
  padding: 10px 18px;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.carryoverPanel button:disabled {
  cursor: default;
  color: rgba(255, 255, 255, .72);
  background: rgba(78, 199, 181, .12);
}

.carryoverPanel .carryoverRemoveButton {
  border-color: rgba(255, 89, 89, .85);
  color: #fff;
  background: linear-gradient(135deg, #c92525, #8d1212);
}

@media (max-width: 720px) {
  .carryoverPanel {
    align-items: stretch;
    flex-direction: column;
  }

  .carryoverActions {
    width: 100%;
  }

  .carryoverPanel button {
    width: 100%;
  }
}

.settlementNotesAction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.settlementNotesAction em {
  min-width: 0;
  font-style: normal;
}

.viewErrorOtherButton {
  flex: 0 0 auto;
  min-height: 32px;
  border: 1px solid rgba(78, 199, 181, .75);
  border-radius: 6px;
  color: var(--teal);
  background: rgba(78, 199, 181, .12);
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.viewErrorOtherButton:hover {
  color: #001510;
  background: var(--teal);
}

.errorOtherPanel {
  width: min(96vw, 1120px);
  max-height: min(86vh, 780px);
  overflow: auto;
  border: 1px solid rgba(78, 199, 181, .48);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(4, 18, 14, .98), rgba(9, 37, 30, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}

.errorOtherBody {
  padding: 18px;
}

.errorOtherSummary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 850;
}

.errorOtherSummary strong {
  color: var(--text);
  font-size: 28px;
}

.errorOtherRows {
  display: grid;
  border: 1px solid var(--line);
  background: rgba(5, 14, 11, .86);
}

.errorOtherHeader,
.errorOtherRow {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(70px, .45fr) minmax(130px, .8fr) minmax(180px, 1.25fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(42, 67, 56, .75);
}

.errorOtherHeader {
  color: var(--text);
  background: #123a32;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.errorOtherRow {
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.errorOtherRow span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.errorOtherRow em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.settlementHeader span,
.settlementRow span,
.reservationRow span,
.detailStats span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.uploadPanel h2 {
  margin: 4px 0 6px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}

.uploadPanel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.uploadGrid {
  display: grid;
  grid-template-columns: minmax(220px, .6fr) minmax(260px, 1fr);
  gap: 14px;
}

.uploadGridSingle {
  grid-template-columns: minmax(260px, 620px);
}

.uploadGrid label,
.pasteLabel {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uploadGrid select,
.uploadGrid input,
.pasteLabel textarea {
  min-height: 46px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #12241e;
  padding: 10px 12px;
  font-weight: 850;
}

.csvDrop {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed var(--blue);
  border-radius: 8px;
  background: rgba(76, 195, 176, .09);
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.csvDrop.dragging {
  border-color: var(--green);
  background: rgba(0, 255, 85, .14);
}

.csvDrop.uploaded {
  border-style: solid;
  border-color: rgba(51, 223, 149, .8);
  background:
    radial-gradient(circle at 50% 0%, rgba(51, 223, 149, .2), transparent 38%),
    rgba(51, 223, 149, .1);
}

.csvDrop.uploaded span {
  background: #33df95;
}

.csvDrop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.csvDrop span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--blue);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 6px;
  pointer-events: none;
}

.csvDrop em {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 18px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}

.csvDrop small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
}

.csvUploadSuccess {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(51, 223, 149, .5);
  border-radius: 8px;
  color: #33df95;
  background: rgba(51, 223, 149, .1);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.inlineUploadActions {
  display: grid;
  grid-template-columns: 1fr auto;
}

.fuelFlowView {
  display: grid;
  gap: 16px;
}

.fuelFlowHero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: stretch;
}

.fuelFlowHero > div {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(23, 37, 32, .96), rgba(9, 18, 16, .92));
  padding: clamp(22px, 4vw, 42px);
}

.fuelFlowTitleLine {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: 14px;
}

.fuelFlowIcon {
  flex: 0 0 clamp(74px, 7vw, 116px);
  width: clamp(74px, 7vw, 116px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 210, 148, .3);
  border-radius: 18px;
  background: rgba(91, 210, 148, .1);
}

.fuelFlowIcon svg {
  width: 72%;
  height: 72%;
  fill: none;
  stroke: var(--green);
  stroke-width: 4.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fuelFlowIcon svg path:nth-child(1),
.fuelFlowIcon svg path:nth-child(3) {
  fill: var(--green);
  stroke: none;
}

.fuelFlowIcon svg path:nth-child(2) {
  fill: var(--bg);
  stroke: none;
}

.fuelFlowHero h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 72px);
  line-height: .94;
  letter-spacing: 0;
}

.fuelFlowHero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
}

.fuelFlowDrop {
  min-height: 230px;
}

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

.fuelFlowControlGrid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fuelFlowControlGrid input,
.fuelFlowGphInput {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(91, 210, 148, .22);
  border-radius: 12px;
  background: rgba(7, 18, 15, .72);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
}

.fuelFlowHalfCostButton {
  align-self: end;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 12px;
  background: rgba(10, 31, 25, .84);
  color: var(--blue);
  padding: 0 16px;
  font-weight: 950;
  line-height: 1;
}

.fuelFlowHalfCostButton span {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-.5px);
}

.fuelFlowHalfCostButton strong {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.fuelFlowHalfCostButton[aria-pressed="true"] {
  background: var(--blue);
  color: var(--ink);
}

.fuelFlowHalfCostButton[aria-pressed="true"] span {
  color: var(--ink);
}

.fuelFlowIncludePanel {
  display: grid;
  gap: 14px;
}

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

.fuelFlowIncludeTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fuelFlowIncludeTop h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: 0;
}

.fuelFlowIncludeActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.fuelFlowIncludeActions button,
#fuelFlowApplyGphButton {
  min-height: 36px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 7px;
  background: rgba(10, 31, 25, .84);
  color: var(--blue);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.fuelFlowIncludeActions button:hover,
.fuelFlowIncludeActions button:focus-visible,
#fuelFlowApplyGphButton:hover,
#fuelFlowApplyGphButton:focus-visible {
  border-color: rgba(76, 195, 176, .9);
  background: rgba(76, 195, 176, .12);
  color: var(--text);
  outline: 2px solid rgba(76, 195, 176, .2);
  outline-offset: 2px;
}

#fuelFlowApplyGphButton {
  background: var(--blue);
  color: var(--ink);
  padding: 0 16px;
}

#fuelFlowApplyGphButton:hover,
#fuelFlowApplyGphButton:focus-visible {
  background: #66d8c8;
  color: var(--ink);
}

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

.fuelFlowCalculatorPanel {
  display: grid;
  gap: 14px;
}

.fuelFlowGphQuickControl {
  display: grid;
  grid-template-columns: minmax(130px, 180px) max-content;
  align-items: end;
  gap: 12px;
}

.fuelFlowGphQuickControl label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fuelFlowGphQuickControl input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(91, 210, 148, .22);
  border-radius: 12px;
  background: rgba(7, 18, 15, .72);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-weight: 900;
}

.fuelFlowAircraftOption {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(91, 210, 148, .18);
  border-radius: 12px;
  background: rgba(7, 18, 15, .56);
  padding: 10px 12px;
  cursor: pointer;
}

.fuelFlowAircraftOption input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.fuelFlowAircraftOption strong,
.fuelFlowAircraftOption em {
  display: block;
}

.fuelFlowAircraftOption strong {
  color: var(--text);
  font-size: 16px;
}

.fuelFlowAircraftOption em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

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

.fuelFlowAircraftHeader,
.fuelFlowAircraftRow {
  grid-template-columns: minmax(120px, 1fr) .5fr .65fr .65fr .7fr .7fr minmax(160px, 1fr);
}

.fuelFlowDetailHeader,
.fuelFlowDetailRow {
  grid-template-columns: minmax(120px, .8fr) minmax(120px, .8fr) minmax(130px, .8fr) .65fr .65fr .65fr minmax(150px, 1fr);
}

.fuelFlowGeneratedReportSummary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.fuelFlowReportActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(91, 210, 148, .18);
  border-radius: 8px;
  background: rgba(7, 18, 15, .54);
}

.fuelFlowReportActions button {
  min-height: 38px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 7px;
  background: var(--blue);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 950;
}

.fuelFlowReportActions button:disabled {
  cursor: not-allowed;
  color: rgba(242, 251, 247, .48);
  background: rgba(10, 31, 25, .84);
  border-color: rgba(76, 195, 176, .2);
}

.fuelFlowReportActions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.fuelFlowGeneratedReportSummary article {
  min-height: 74px;
  border: 1px solid rgba(91, 210, 148, .18);
  border-radius: 8px;
  background: rgba(7, 18, 15, .54);
  padding: 12px;
}

.fuelFlowGeneratedReportSummary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fuelFlowGeneratedReportSummary strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.fuelFlowGeneratedReportHeader,
.fuelFlowGeneratedReportRow {
  grid-template-columns: minmax(120px, 1fr) .55fr .8fr .8fr .8fr;
}

.fuelFlowAircraftRow,
.fuelFlowDetailRow,
.fuelFlowGeneratedReportRow {
  min-height: 58px;
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-top: 1px solid rgba(91, 210, 148, .12);
  color: var(--text);
}

.fuelFlowAircraftRow:nth-child(even),
.fuelFlowDetailRow:nth-child(even),
.fuelFlowGeneratedReportRow:nth-child(even) {
  background: rgba(11, 28, 23, .36);
}

.fuelFlowAircraftRow strong {
  display: block;
  font-size: 18px;
}

.fuelFlowAircraftRow em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.fuelFlowGphInput {
  max-width: 96px;
}

.fuelFlowFuel {
  color: var(--green);
  font-weight: 950;
}

.fuelFlowCost {
  color: var(--gold);
  font-weight: 950;
}

.fuelFlowStatusPill {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(91, 210, 148, .28);
  border-radius: 999px;
  background: rgba(91, 210, 148, .08);
  color: #bff6d7;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.fuelFlowStatusPill.warn {
  border-color: rgba(245, 217, 95, .42);
  background: rgba(245, 217, 95, .08);
  color: var(--gold);
}

.inlineUploadActions button {
  border-radius: 4px;
}

.expenseRows {
  display: grid;
  border: 1px solid var(--line);
  background: rgba(5, 14, 11, .62);
}

.expenseHeader,
.expenseRow {
  display: grid;
  grid-template-columns: minmax(110px, .6fr) minmax(200px, 1fr) minmax(120px, .6fr) minmax(220px, 1.2fr) minmax(100px, .5fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(42, 67, 56, .75);
}

.expenseHeader {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.expenseRow {
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
}

.expenseRow button {
  min-height: 38px;
  border: 1px solid #d02727;
  color: #fff;
  background: #7b1212;
  font-weight: 900;
}

.expenseForm {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(190px, 1fr) minmax(130px, .6fr) minmax(220px, 1.2fr) auto;
  gap: 12px;
  align-items: end;
}

.expenseForm label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.expenseForm button {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 16px;
  color: var(--ink);
  background: var(--blue);
  font-weight: 950;
}

.invoicePanel {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 14, 11, .62);
  padding: 16px;
}

.invoicePanelHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.invoicePanel h3 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1;
}

.invoiceForm {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(130px, .58fr) minmax(145px, .65fr) minmax(120px, .55fr) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.invoiceForm label {
  display: grid;
  grid-template-rows: 34px auto;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.invoiceForm input,
.invoiceForm select,
.invoiceForm textarea {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(18, 36, 30, .9);
  padding: 0 12px;
  font-weight: 850;
}

.editingExpiration {
  border-color: rgba(76, 195, 176, .95) !important;
  box-shadow: 0 0 0 3px rgba(76, 195, 176, .22);
}

.invoiceForm textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
  line-height: 1.35;
  white-space: pre-wrap;
}

.invoiceDescriptionField {
  grid-column: 1 / -2;
}

.invoiceUploadDrop {
  align-self: stretch;
}

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

  .invoiceDescriptionField,
  .invoiceUploadDrop,
  .invoiceUploadStatus,
  .invoiceSaveStatus,
  .invoiceTailPrompt,
  .invoiceFormActions {
    grid-column: 1 / -1;
  }
}

.invoiceUploadDrop input {
  display: none;
}

.invoiceUploadDrop span {
  min-height: 92px;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px dashed rgba(76, 195, 176, .7);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 12px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.invoiceUploadDrop.readyForInvoice span {
  gap: 8px;
  background: linear-gradient(180deg, rgba(76, 195, 176, .96), rgba(42, 151, 132, .96));
  font-size: clamp(16px, 1.1vw, 20px);
}

.invoiceUploadDrop.readyForInvoice span::first-letter {
  font-size: clamp(34px, 3vw, 46px);
  line-height: .8;
}

.invoiceUploadStatus,
.invoiceSaveStatus {
  grid-column: 1 / -1;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(51, 223, 149, .5);
  border-radius: 8px;
  color: #33df95;
  background: rgba(51, 223, 149, .1);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.invoiceTailPrompt {
  grid-column: 1 / -1;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(76, 195, 176, .7);
  border-radius: 8px;
  color: #f2fbf7;
  background: rgba(76, 195, 176, .12);
  padding: 8px 10px 8px 14px;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.invoiceTailPrompt button {
  min-height: 34px;
  border: 1px solid rgba(76, 195, 176, .85);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 18px;
  font-weight: 950;
}

.invoiceFormActions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}

.deleteInvoiceFileButton {
  color: #fff !important;
  background: linear-gradient(180deg, #e5383b, #9d1518) !important;
  border-color: rgba(255, 100, 100, .55) !important;
}

.invoiceForm button,
.invoiceActions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--blue);
  padding: 0 14px;
  font-weight: 950;
}

.invoiceFormActions button:last-child {
  color: var(--text);
  background: #12241e;
}

.invoiceRows {
  display: grid;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(5, 14, 11, .62);
}

.invoiceHeader,
.invoiceRow {
  display: grid;
  grid-template-columns: minmax(120px, .65fr) minmax(120px, .6fr) minmax(105px, .5fr) minmax(120px, .55fr) minmax(200px, 1fr) minmax(220px, .9fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(42, 67, 56, .75);
}

.invoiceHeader {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.invoiceRow {
  color: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.invoiceRow span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoiceDescription {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  margin-top: 2px;
  padding: 12px 14px;
  border: 1px solid rgba(76, 195, 176, .22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(76, 195, 176, .06);
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal;
}

.invoiceDescription small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.invoiceDescription strong {
  color: #dcefe9;
  font-size: clamp(13px, .85vw, 16px);
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.invoiceActions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.invoiceActions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
}

.invoiceActions button:last-child {
  color: #fff;
  background: #7b1212;
  border-color: #d02727;
}

.pasteLabel textarea {
  min-height: 160px;
  resize: vertical;
  text-transform: none;
  letter-spacing: normal;
}

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

.uploadActions button {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--ink);
  background: var(--blue);
  font-weight: 950;
}

.uploadActions button:last-child {
  color: var(--text);
  background: #12241e;
}

.uploadStatus {
  color: var(--blue);
  font-weight: 900;
}

.uploadPreview {
  border: 1px solid var(--line);
  background: rgba(18, 36, 30, .4);
}

.uploadPreviewGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px 22px;
}

.uploadPreviewGrid span {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(18, 36, 30, .72);
}

.uploadPreviewGrid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uploadPreviewGrid strong {
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .appShell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .sideBar {
    grid-column: 1;
    grid-row: 2;
    min-height: auto;
    padding: 10px 14px 0;
    border-right: 0;
    border-bottom: 0;
    background: rgba(5, 15, 12, .72);
  }

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

  .leasebackTabs button {
    min-height: 46px;
    padding: 0 8px;
    font-size: 14px;
    text-align: center;
  }

  .topBar {
    grid-column: 1;
    grid-row: 1;
    border-top: 1px solid rgba(42, 67, 56, .55);
  }

  .dashboardGrid {
    grid-column: 1;
    grid-row: 3;
  }

  .dashboardHero,
  .dashboardBody,
  .aircraftPageTop {
    grid-template-columns: 1fr;
  }

  .aircraftPageTop {
    align-items: start;
  }

  .aircraftPageHeroPhoto {
    min-height: 220px;
    width: 100%;
  }

  .summaryStrip,
  .leasebackPanel,
  .savedReportsPanel,
  .chartPanel {
    grid-column: auto;
  }

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

  .aircraftManageGrid,
  .aircraftEditor {
    grid-template-columns: 1fr;
  }

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

  .documentsGrid,
  .contractForm {
    grid-template-columns: 1fr;
  }

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

  .contractRow {
    grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.2fr) minmax(120px, .55fr) minmax(100px, .45fr);
  }

  .aircraftManagePhotoPreview {
    height: auto;
    max-height: none;
  }

  .aircraftManageRows {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .topBar,
  .reportFilter,
  .aircraftFeatureCard,
  .summaryStrip,
  .chartGrid,
  .savedReportRow,
  .archiveRow,
  .documentsGrid,
  .contractForm,
  .contractRow,
  .aircraftManageGrid,
  .aircraftEditor,
  .aircraftManageRow {
    grid-template-columns: 1fr;
  }

  .topBar {
    align-items: start;
  }

  .userBlock {
    justify-self: start;
  }

  .leasebackTabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .leasebackTabs button {
    min-height: 40px;
    border-radius: 6px;
    padding: 0 4px;
    font-size: clamp(10px, 2.6vw, 12px);
    letter-spacing: 0;
  }

  .dashboardGrid {
    padding: 14px;
  }

  .aircraftImage {
    min-height: 180px;
  }

  .tableHeader {
    display: none;
  }

  .aircraftRows {
    max-height: none;
    overflow: visible;
  }

  .aircraftRow {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
    font-size: 20px;
  }

  .ownerGroupHeader {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 18px;
  }

  .ownerGroupName,
  .ownerSubtotalLabel {
    grid-column: 1 / -1;
  }

  .ownerSubtotal {
    display: grid;
    gap: 3px;
  }

  .ownerSubtotal::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .tail {
    grid-column: 1 / -1;
  }

  .dataCell {
    display: grid;
    gap: 3px;
  }

  .ownerCell {
    grid-column: 1 / -1;
  }

  .dataCell::before,
  .ownerCell::before,
  .ownerText::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .manageForm,
  .manageRow,
  .uploadGrid,
  .uploadPreviewGrid,
  .expenseForm,
  .invoiceForm,
  .invoiceHeader,
  .invoiceRow,
  .aircraftExpenseForm,
  .expenseHeader,
  .expenseRow {
    grid-template-columns: 1fr;
  }

  .invoiceDescriptionField,
  .invoiceUploadStatus,
  .invoiceSaveStatus,
  .invoiceFormActions {
    grid-column: 1 / -1;
  }

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

  .manageFormActions,
  .manageActions {
    flex-wrap: wrap;
  }

  .manageFormActions button,
  .manageActions button {
    flex: 1 1 160px;
  }

  .detailTop,
  .detailStats,
  .reservationRow,
  .settlementHeader,
  .settlementRow {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .errorOtherHeader {
    display: none;
  }

  .errorOtherRow {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .errorOtherRow span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  .errorOtherRow span::before {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .errorOtherRow span:nth-child(1)::before { content: "Date / Time"; }
  .errorOtherRow span:nth-child(2)::before { content: "Category"; }
  .errorOtherRow span:nth-child(3)::before { content: "Pilot"; }
  .errorOtherRow span:nth-child(4)::before { content: "Hours"; }
  .errorOtherRow span:nth-child(5)::before { content: "Hobbs / Tach"; }
  .errorOtherRow span:nth-child(6)::before { content: "Notes"; }

  .detailActions {
    flex-wrap: wrap;
  }

  .detailActions button {
    flex: 1 1 160px;
  }

  .aircraftPageTop {
    margin: 10px;
    padding: 18px;
  }

  .aircraftPageMetrics {
    display: grid;
    gap: 8px;
    font-size: 16px;
  }

  .aircraftPageMetrics span {
    margin: 0;
    padding: 0;
    border-right: 0;
    white-space: normal;
  }

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

  .aircraftManageRows {
    max-height: none;
    overflow: visible;
  }

  .aircraftManagePhotoPreview {
    height: auto;
  }
}

/* Fluid layout guardrails: every leaseback screen should fit the viewport without horizontal scrolling. */
img,
svg,
canvas,
video,
input,
select,
textarea,
button {
  max-width: 100%;
  min-width: 0;
}

.dashboardGrid > *,
.numbersView > *,
.dashboardHero > *,
.dashboardBody > *,
.topBar > *,
.sideBar > *,
.uploadView > *,
.expensesView > *,
.archivesView > *,
.documentsView > *,
.exportView > *,
.aircraftManageView > *,
.aircraftPageView > *,
.analyticsSummaryView > * {
  min-width: 0;
  max-width: 100%;
}

.appShell,
.topBar,
.sideBar,
.dashboardGrid,
.numbersView,
.uploadView,
.expensesView,
.archivesView,
.documentsView,
.exportView,
.aircraftManageView,
.aircraftPageView,
.analyticsSummaryView,
.uploadPanel,
.leasebackPanel,
.chartPanel,
.savedReportsPanel {
  min-width: 0;
  max-width: 100%;
}

.dashboardGrid,
.aircraftPageView,
.analyticsSummaryView,
.uploadPanel,
.leasebackPanel {
  overflow-x: hidden;
}

.summaryStrip strong,
.aircraftPageTop h2,
.aircraftReportHeroCopy > strong,
.analyticsMetricStrip strong,
.analyticsOwnerTotal strong,
.savedReportRow strong,
.archiveRow strong,
.detailStats strong,
.aircraftFeatureCard strong,
.aircraftFeatureCard span,
.aircraftFeatureCard small,
.expenseRow,
.invoiceRow,
.contractRow,
.documentStatusCard,
.exportReportPreview {
  overflow-wrap: anywhere;
  word-break: normal;
}

.analyticsSummaryContent {
  width: 100%;
  min-width: 0;
  padding: clamp(10px, 2vw, 18px);
}

.analyticsSheet {
  width: 100%;
}

@media (max-width: 1540px) {
  .dashboardHero {
    grid-template-columns: 1fr;
  }

  .aircraftFeatureCard {
    grid-template-columns: minmax(240px, .62fr) minmax(300px, 1fr);
  }

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

  .uploadWidget,
  .summaryStrip,
  .chartPanel,
  .savedReportsPanel {
    grid-column: 1 / -1;
  }

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

  .savedReportsPanel,
  .chartPanel {
    min-height: 0;
  }
}

@media (max-width: 1180px) {
  .topBar {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .monthPicker {
    grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) 42px;
  }

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

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

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

  .generateReportButton {
    grid-column: 1 / -1;
  }

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

  .uploadWidget,
  .summaryStrip,
  .chartPanel,
  .savedReportsPanel {
    grid-column: 1 / -1;
  }

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

  .tableHeader,
  .aircraftRow,
  .ownerGroupHeader {
    min-width: 0;
    grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(85px, .75fr)) repeat(2, minmax(110px, .85fr));
    gap: 10px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: clamp(16px, 1.8vw, 22px);
  }

  .tableHeader span:nth-child(7),
  .tableHeader span:nth-child(8),
  .aircraftRow > span:nth-child(7),
  .aircraftRow > span:nth-child(8),
  .ownerGroupHeader > span:nth-child(7),
  .ownerGroupHeader > span:nth-child(8) {
    display: none;
  }

  .aircraftRows {
    overflow-x: hidden;
  }

  .aircraftExpenseForm,
  .aircraftExpenseHeader,
  .aircraftExpenseRow {
    grid-template-columns: minmax(0, 1fr) minmax(120px, .5fr) minmax(0, 1fr);
  }

  .aircraftExpenseForm button,
  .aircraftExpenseHeader span:last-child,
  .aircraftExpenseRow span:last-child {
    grid-column: 1 / -1;
  }

  .analyticsHero,
  .analyticsGlance,
  .analyticsCards,
  .analyticsFooter {
    grid-template-columns: 1fr;
  }

  .analyticsBrand,
  .analyticsTitle,
  .analyticsAircraftCard {
    justify-self: stretch;
  }

  .analyticsMetricStrip {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .analyticsMetricStrip span {
    border-left: 0;
    border-top: 1px solid #d4dfda;
  }

  .donutAndLegend,
  .analyticsAircraftCard {
    grid-template-columns: 1fr;
  }

  .analyticsAircraftPhoto {
    min-height: 180px;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .topBar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 14px;
  }

  .userBlock {
    justify-self: start;
  }

  .dashboardGrid {
    padding: 14px;
  }

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

  .aircraftFeatureCard,
  .aircraftManageGrid,
  .aircraftEditor,
  .aircraftEditorTop,
  .aircraftManageForm,
  .aircraftPageTop,
  .aircraftPageBody,
  .uploadGrid,
  .uploadPreviewGrid,
  .expenseForm,
  .invoiceForm,
  .manageForm {
    grid-template-columns: 1fr;
  }

  .invoiceDescriptionField,
  .invoiceUploadStatus,
  .invoiceSaveStatus,
  .invoiceFormActions {
    grid-column: 1 / -1;
  }

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

  .aircraftPageTop {
    margin: 12px;
    padding: 18px;
  }

  .aircraftPageSelector {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .aircraftPageMetrics span {
    white-space: normal;
  }

  .reportSaveBar {
    flex-wrap: wrap;
    padding: 0 14px 18px;
  }

  .reportSaveBar button {
    flex: 1 1 180px;
  }

  .savedReportRow,
  .archiveRow {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

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

  .archiveActions {
    justify-content: stretch;
  }

  .archiveActions button {
    flex: 1 1 130px;
  }

  .settlementHeader,
  .reservationHeader,
  .invoiceHeader {
    display: none;
  }

  .settlementRow,
  .reservationRow,
  .invoiceRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    align-items: start;
  }

  .settlementRow span,
  .reservationRow span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 620px) {
  .appShell {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .sideBar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px;
  }

  .leasebackTabs {
    gap: 4px;
  }

  .leasebackTabs button {
    min-height: 38px;
    padding: 0 3px;
    font-size: clamp(9px, 2.4vw, 11px);
  }

  .brandLogo {
    width: 188px;
    height: 138px;
    transform: none;
  }

  .brandPlane {
    width: 86px;
    height: 64px;
  }

  .brandPlane svg {
    width: 36px;
    height: 36px;
  }

  .brandBlock h1 {
    font-size: 30px;
  }

  .monthPicker,
  .reportFilter,
  .archiveFilterBar,
  .maintenanceFilterBar,
  .documentsGrid,
  .contractForm,
  .contractRow,
  .summaryStrip,
  .chartGrid,
  .detailStats,
  .aircraftManageForm,
  .aircraftExpenseForm,
  .aircraftExpenseHeader,
  .aircraftExpenseRow {
    grid-template-columns: 1fr;
  }

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

  .dashboardGrid {
    gap: 12px;
    padding: 10px;
  }

  .uploadWidget,
  .chartPanel,
  .savedReportsPanel,
  .uploadPanel,
  .analyticsCard,
  .analyticsOwnerTotal {
    padding: 12px;
  }

  .summaryStrip article {
    min-height: 104px;
  }

  .summaryStrip strong,
  .detailStats strong {
    font-size: clamp(24px, 9vw, 34px);
  }

  .aircraftPageTop h2 {
    font-size: clamp(40px, 16vw, 62px);
  }

  .aircraftPageHeroPhoto,
  .aircraftManagePhotoPreview {
    min-height: 180px;
  }

  .tableHeader {
    display: none;
  }

  .aircraftRow,
  .ownerGroupHeader {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    min-height: auto;
    padding: 14px;
    font-size: 18px;
  }

  .tail,
  .ownerGroupName,
  .ownerSubtotalLabel {
    grid-column: 1 / -1;
  }

  .tail strong {
    font-size: 26px;
  }

  .dataCell,
  .ownerCell,
  .ownerText,
  .ownerSubtotal {
    display: grid;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .analyticsHero {
    padding: 54px 14px 18px;
  }

  .analyticsTitle h2 {
    font-size: clamp(25px, 9vw, 38px);
  }

  .analyticsMetricStrip,
  .utilizationTable,
  .hoursLine,
  .donutLegend span,
  .analyticsFooter,
  .settlementRow,
  .reservationRow {
    grid-template-columns: 1fr;
  }

  .analyticsBars {
    gap: 9px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .analyticsBars strong {
    font-size: 10px;
    top: -20px;
  }

  .analyticsBars em {
    font-size: 10px;
    bottom: -22px;
  }
}

/* Final responsive normalization for every leaseback screen and generated report view. */
html,
body,
.appShell {
  inline-size: 100%;
  max-inline-size: 100vw;
  overflow-x: clip;
}

.dashboardGrid,
.numbersView,
.uploadView,
.expensesView,
.archivesView,
.documentsView,
.exportView,
.backupView,
.washDetailView,
.aircraftManageView,
.aircraftPageView,
.analyticsSummaryView {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: clip;
}

.dashboardGrid {
  padding-inline: clamp(10px, 1.4vw, 28px);
}

.dashboardHero,
.dashboardBody,
.chartGrid,
.documentsGrid,
.aircraftManageGrid,
.aircraftEditor,
.aircraftEditorTop,
.aircraftPageTop,
.aircraftPageBody,
.detailStats,
.uploadGrid,
.uploadPreviewGrid,
.expenseForm,
.invoiceForm,
.washDetailForm,
.contractForm,
.archiveFilterBar,
.maintenanceFilterBar,
.analyticsControlBar,
.backupGrid,
.exportReportCard,
.exportActions {
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.dashboardHero > *,
.dashboardBody > *,
.chartGrid > *,
.documentsGrid > *,
.aircraftManageGrid > *,
.aircraftEditor > *,
.aircraftPageTop > *,
.aircraftPageBody > *,
.uploadGrid > *,
.expenseForm > *,
.invoiceForm > *,
.washDetailForm > *,
.contractForm > *,
.archiveFilterBar > *,
.maintenanceFilterBar > *,
.analyticsControlBar > *,
.backupGrid > *,
.exportReportCard > * {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.summaryStrip,
.metricGrid,
.detailStats,
.uploadPreviewGrid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.dashboardBody {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1fr);
}

.summaryStrip {
  align-items: stretch;
}

.summaryStrip article,
.metricTile,
.chartPanel,
.savedReportsPanel,
.uploadWidget,
.uploadPanel,
.leasebackPanel,
.expensePanel,
.invoicePanel,
.archivePanel,
.contractPanel,
.contractStatusCard,
.aircraftManageCard,
.aircraftEditor,
.exportPanel,
.backupPanel {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow: hidden;
}

.summaryStrip strong,
.metricTile strong,
.detailStats strong,
.analyticsMetricStrip strong,
.analyticsOwnerTotal strong {
  font-size: clamp(24px, 2.4vw, 42px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.reportFilter {
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .95fr) minmax(180px, .95fr) minmax(180px, .8fr);
}

.aircraftFeatureCard {
  grid-template-columns: minmax(260px, .62fr) minmax(320px, 1fr);
}

.aircraftImage,
.aircraftPageHeroPhoto,
.aircraftManagePhotoPreview,
.analyticsAircraftPhoto {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  object-fit: contain;
}

.savedReportRow,
.archiveRow,
.contractRow,
.invoiceHeader,
.invoiceRow,
.expenseHeader,
.expenseRow,
.reservationHeader,
.reservationRow,
.settlementHeader,
.settlementRow {
  inline-size: 100%;
  min-inline-size: 0;
}

.savedReportRow > *,
.archiveRow > *,
.contractRow > *,
.invoiceRow > *,
.expenseRow > *,
.reservationRow > *,
.settlementRow > * {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.analyticsSummaryContent {
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: clamp(8px, 1.5vw, 18px);
  overflow-x: clip;
}

.analyticsSheet {
  inline-size: 100%;
  max-inline-size: 100%;
  overflow: hidden;
}

.analyticsHero {
  grid-template-columns: minmax(220px, .9fr) minmax(280px, 1.25fr) minmax(220px, .9fr);
  gap: clamp(12px, 1.6vw, 22px);
  padding: clamp(22px, 2.4vw, 34px);
}

.analyticsTitle h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: .98;
}

.analyticsTitle p {
  font-size: clamp(18px, 2vw, 24px);
}

.analyticsTitle small {
  max-inline-size: 48ch;
  font-size: clamp(13px, 1.35vw, 16px);
}

.analyticsAircraftCard {
  grid-template-columns: minmax(110px, .72fr) minmax(140px, 1fr);
}

.analyticsGlance {
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 22px);
  margin: clamp(10px, 1.4vw, 18px);
  padding: clamp(14px, 1.6vw, 20px);
}

.analyticsMetricStrip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.analyticsMetricStrip span {
  grid-template-columns: 46px minmax(0, 1fr);
  padding: clamp(8px, 1vw, 14px);
}

.analyticsMetricStrip em {
  width: 46px;
  height: 46px;
  font-size: 24px;
}

.analyticsCards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 clamp(10px, 1.4vw, 18px) clamp(10px, 1.4vw, 18px);
}

.donutAndLegend {
  grid-template-columns: minmax(160px, .8fr) minmax(160px, 1fr);
}

.donutLegend span,
.hoursLine {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.analyticsBars {
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: clamp(8px, 1.3vw, 18px);
}

.analyticsFooter {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding: clamp(14px, 1.8vw, 24px);
}

@media (max-width: 1400px) {
  .dashboardBody {
    grid-template-columns: 1fr;
  }

  .summaryStrip,
  .chartPanel,
  .savedReportsPanel,
  .uploadWidget {
    grid-column: 1 / -1;
  }

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

  .hoursBreakdown,
  .analyticsOwnerTotal {
    grid-column: auto;
  }
}

@media (max-width: 1100px) {
  .appShell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .topBar {
    grid-column: 1;
  }

  .sideBar {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
    border-bottom: 1px solid rgba(42, 67, 56, .7);
  }

  .dashboardGrid {
    grid-column: 1;
    grid-row: 3;
  }

  .leasebackTabs {
    grid-template-columns: repeat(auto-fit, minmax(106px, 1fr));
  }

  .brandLogo {
    width: clamp(150px, 22vw, 250px);
    height: clamp(88px, 13vw, 150px);
  }

  .brandBlock h1 {
    font-size: clamp(30px, 5vw, 48px);
  }

  .reportFilter,
  .aircraftFeatureCard,
  .aircraftPageTop,
  .aircraftPageBody,
  .documentsGrid,
  .contractForm,
  .aircraftManageGrid,
  .aircraftEditor,
  .aircraftEditorTop,
  .backupGrid,
  .exportReportCard,
  .analyticsHero,
  .analyticsGlance {
    grid-template-columns: 1fr;
  }

  .analyticsBrand,
  .analyticsTitle,
  .analyticsAircraftCard {
    justify-self: stretch;
  }

  .analyticsMetricStrip span {
    border-left: 0;
    border-top: 1px solid #d4dfda;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .topBar,
  .dashboardGrid {
    padding-inline: 10px;
  }

  .brandBlock {
    gap: 10px;
  }

  .brandLogo {
    width: 136px;
    height: 92px;
  }

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

  .leasebackTabs button {
    min-height: 42px;
    padding-inline: 6px;
    font-size: 13px;
  }

  .summaryStrip,
  .detailStats,
  .chartGrid,
  .archiveFilterBar,
  .maintenanceFilterBar,
  .invoiceForm,
  .expenseForm,
  .contractForm,
  .aircraftExpenseForm,
  .analyticsCards,
  .donutAndLegend,
  .analyticsMetricStrip,
  .analyticsFooter {
    grid-template-columns: 1fr;
  }

  .invoiceDescriptionField,
  .invoiceTailPrompt,
  .invoiceUploadStatus,
  .invoiceSaveStatus,
  .invoiceFormActions {
    grid-column: 1 / -1;
  }

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

  .savedReportRow,
  .archiveRow,
  .contractRow,
  .invoiceRow,
  .expenseRow,
  .reservationRow,
  .settlementRow {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .analyticsHero {
    padding: 56px 14px 18px;
  }

  .analyticsBackButton {
    left: 14px;
    top: 12px;
  }

  .analyticsTitle h2 {
    font-size: clamp(28px, 10vw, 38px);
  }

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

  .analyticsAircraftPhoto {
    min-height: 180px;
  }

  .analyticsBars {
    height: 210px;
  }
}

@media (max-width: 480px) {
  .brandBlock {
    align-items: center;
  }

  .brandLogo {
    width: 112px;
    height: 74px;
  }

  .brandBlock h1 {
    font-size: 25px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .leasebackTabs button span {
    font-size: 12px;
  }

  .dashboardGrid {
    gap: 10px;
  }

  .summaryStrip strong,
  .metricTile strong,
  .analyticsMetricStrip strong,
  .analyticsOwnerTotal strong {
    font-size: clamp(24px, 10vw, 34px);
  }

  .analyticsBrand {
    flex-direction: column;
    align-items: flex-start;
  }

  .analyticsBrand img {
    width: 108px;
    height: 72px;
  }

  .analyticsGlance {
    margin: 8px;
    padding: 12px;
  }
}

/* Aircraft imagery and analytics report polish: keep media visible and metrics readable at every width. */
.aircraftFeatureCard {
  grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr);
  align-items: stretch;
}

.aircraftFeatureCard > div:first-child {
  min-inline-size: 0;
  z-index: 1;
}

.aircraftImage {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: clamp(160px, 12vw, 220px);
  aspect-ratio: 16 / 9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.analyticsAircraftCard {
  grid-template-columns: minmax(118px, .38fr) minmax(420px, 1.62fr);
  min-inline-size: min(100%, 620px);
  min-block-size: clamp(168px, 13vw, 230px);
  justify-self: stretch;
}

.analyticsAircraftCard span {
  min-inline-size: 0;
  overflow-wrap: anywhere;
  padding: clamp(14px, 1.3vw, 20px);
}

.analyticsAircraftCard strong {
  font-size: clamp(20px, 1.75vw, 28px);
}

.analyticsAircraftCard em,
.analyticsAircraftCard small {
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.18;
}

.analyticsAircraftPhoto {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: clamp(168px, 13vw, 230px);
  aspect-ratio: 16 / 9;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.analyticsHero {
  grid-template-columns: minmax(150px, .48fr) minmax(300px, .9fr) minmax(560px, 1.62fr);
  gap: clamp(14px, 1.5vw, 24px);
  align-items: center;
}

.analyticsMetricStrip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.analyticsMetricStrip span {
  grid-template-columns: 48px minmax(0, 1fr);
  overflow: hidden;
}

.analyticsMetricStrip strong {
  font-size: clamp(25px, 1.85vw, 34px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.analyticsMetricStrip small,
.analyticsMetricStrip b {
  overflow-wrap: anywhere;
}

@media (max-width: 1320px) {
  .dashboardHero {
    grid-template-columns: 1fr;
  }

  .analyticsHero {
    grid-template-columns: minmax(130px, .42fr) minmax(280px, .86fr) minmax(500px, 1.55fr);
    padding-inline: clamp(18px, 2vw, 28px);
  }

  .aircraftFeatureCard {
    grid-template-columns: minmax(220px, .62fr) minmax(320px, 1fr);
  }
}

@media (max-width: 1160px) {
  .analyticsHero {
    grid-template-columns: 1fr;
  }

  .analyticsAircraftCard {
    grid-template-columns: minmax(150px, .42fr) minmax(420px, 1.58fr);
    min-inline-size: 0;
  }
}

@media (max-width: 760px) {
  .aircraftFeatureCard,
  .analyticsAircraftCard {
    grid-template-columns: 1fr;
  }

  .analyticsMetricStrip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  }
}

/* Final analytics header sizing: readable brand/type, complete aircraft photo, capped widescreen width. */
.analyticsSummaryContent {
  display: grid;
  justify-items: center;
}

.analyticsSheet {
  width: min(100%, 1540px);
}

.analyticsHero {
  grid-template-columns: minmax(250px, .72fr) minmax(360px, 1fr) minmax(560px, 1.45fr);
  gap: clamp(18px, 1.7vw, 30px);
  min-block-size: clamp(220px, 18vw, 300px);
  padding: clamp(18px, 1.5vw, 28px);
}

.analyticsBrand {
  gap: clamp(16px, 1.4vw, 24px);
  min-inline-size: 0;
  overflow: visible;
}

.analyticsBrand img {
  width: clamp(150px, 13vw, 230px);
  height: clamp(120px, 10vw, 185px);
  max-inline-size: none;
  object-fit: contain;
  transform: scale(1.12);
  transform-origin: center;
  margin-inline: 0;
}

.analyticsBrand strong {
  font-size: clamp(30px, 2.1vw, 44px);
}

.analyticsBrand em {
  font-size: clamp(13px, .95vw, 18px);
}

.analyticsTitle h2 {
  font-size: clamp(24px, 1.95vw, 36px);
}

.analyticsAircraftCard {
  grid-template-columns: minmax(190px, .58fr) minmax(330px, 1.42fr);
  min-inline-size: min(100%, 560px);
  min-block-size: clamp(150px, 10.5vw, 196px);
  justify-self: end;
}

.analyticsAircraftCard span {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.analyticsAircraftCard strong {
  font-size: clamp(24px, 1.7vw, 34px);
}

.analyticsAircraftCard em,
.analyticsAircraftCard small {
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.22;
}

.analyticsAircraftPhoto {
  min-block-size: clamp(150px, 10.5vw, 196px);
}

@media (max-width: 1380px) {
  .analyticsSheet {
    width: 100%;
  }

  .analyticsHero {
    grid-template-columns: minmax(220px, .66fr) minmax(320px, .95fr) minmax(520px, 1.38fr);
  }

  .analyticsAircraftCard {
    grid-template-columns: minmax(180px, .58fr) minmax(300px, 1.42fr);
    min-inline-size: 0;
  }
}

@media (max-width: 1180px) {
  .analyticsHero {
    grid-template-columns: 1fr;
  }

  .analyticsAircraftCard {
    justify-self: stretch;
    grid-template-columns: minmax(190px, .48fr) minmax(360px, 1.52fr);
  }
}

@media (max-width: 760px) {
  .analyticsAircraftCard {
    grid-template-columns: 1fr;
  }
}

/* Keep analytics metric values from breaking across lines. */
.analyticsMetricStrip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 0;
}

.analyticsMetricStrip span {
  min-inline-size: 0;
  grid-template-columns: 52px minmax(160px, 1fr);
}

.analyticsMetricStrip strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: clamp(28px, 1.65vw, 34px);
  letter-spacing: 0;
}

.analyticsMetricStrip small,
.analyticsMetricStrip b {
  white-space: normal;
}

@media (max-width: 1180px) {
  .analyticsMetricStrip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .analyticsMetricStrip span {
    grid-template-columns: 48px minmax(140px, 1fr);
  }
}

@media (max-width: 640px) {
  .analyticsMetricStrip span {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .analyticsMetricStrip strong {
    white-space: normal;
    font-size: clamp(26px, 8vw, 34px);
  }
}

/* Overview aircraft card: keep the complete airplane visible as the window changes. */
.dashboardHero {
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 520px), 520px);
}

.aircraftFeatureCard {
  grid-template-columns: minmax(190px, .58fr) minmax(300px, 1fr);
}

.aircraftImage {
  aspect-ratio: 16 / 9;
  min-block-size: clamp(170px, 11vw, 220px);
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

@media (max-width: 1700px) {
  .dashboardHero {
    grid-template-columns: 1fr;
  }

  .aircraftFeatureCard {
    grid-template-columns: minmax(240px, .48fr) minmax(420px, 1fr);
  }
}

@media (max-width: 820px) {
  .aircraftFeatureCard {
    grid-template-columns: 1fr;
  }

  .aircraftImage {
    min-block-size: clamp(190px, 48vw, 280px);
  }
}

/* Embedded Analytics page: mirror the Overview page's responsive sizing so nothing crops horizontally. */
.analyticsPagePanel {
  inline-size: 100%;
  max-inline-size: 100%;
  overflow: hidden;
}

.analyticsPageContent,
.analyticsPageContent .analyticsSheet {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow: hidden;
}

.analyticsPageContent .analyticsHero {
  grid-template-columns: minmax(190px, .5fr) minmax(280px, .82fr) minmax(360px, 1fr);
  min-block-size: auto;
  gap: clamp(14px, 1.4vw, 22px);
  padding: clamp(18px, 1.6vw, 26px);
}

.analyticsPageContent .analyticsBrand {
  min-inline-size: 0;
}

.analyticsPageContent .analyticsBrand img {
  width: clamp(105px, 8vw, 150px);
  height: clamp(82px, 6.5vw, 118px);
  transform: none;
}

.analyticsPageContent .analyticsBrand strong {
  font-size: clamp(26px, 2vw, 38px);
}

.analyticsPageContent .analyticsTitle h2 {
  font-size: clamp(24px, 2vw, 36px);
}

.analyticsPageContent .analyticsAircraftCard {
  justify-self: stretch;
  grid-template-columns: minmax(150px, .42fr) minmax(260px, 1fr);
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.analyticsPageContent .analyticsAircraftPhoto {
  min-inline-size: 0;
  min-block-size: clamp(150px, 12vw, 210px);
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.analyticsPageContent .analyticsGlance {
  grid-template-columns: minmax(180px, .42fr) minmax(0, 1fr);
}

@media (max-width: 1500px) {
  .analyticsPageContent .analyticsHero {
    grid-template-columns: 1fr;
  }

  .analyticsPageContent .analyticsBrand,
  .analyticsPageContent .analyticsTitle,
  .analyticsPageContent .analyticsAircraftCard {
    justify-self: stretch;
  }

  .analyticsPageContent .analyticsAircraftCard {
    grid-template-columns: minmax(180px, .42fr) minmax(340px, 1fr);
  }
}

@media (max-width: 1180px) {
  .analyticsControlBar,
  .analyticsPageContent .analyticsGlance {
    grid-template-columns: 1fr;
  }

  .analyticsPageContent .analyticsMetricStrip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
}

@media (max-width: 760px) {
  .analyticsPageContent .analyticsAircraftCard {
    grid-template-columns: 1fr;
  }

  .analyticsPageContent .analyticsAircraftPhoto {
    min-block-size: clamp(190px, 48vw, 280px);
  }
}

/* Recent report actions: keep View/Delete as clean buttons at every width. */
.savedReportRow {
  grid-template-columns: minmax(170px, 1.35fr) minmax(86px, .55fr) minmax(84px, .5fr) minmax(88px, .5fr) minmax(136px, auto);
}

.savedReportRow .savedReportActions,
.savedReportRow span.savedReportActions:last-child {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-inline-size: 136px;
  color: inherit;
  overflow-wrap: normal;
}

.savedReportActions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: auto;
  min-inline-size: 52px;
  min-block-size: 34px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1;
  padding-inline: 12px;
}

.savedReportActions .deleteSavedReportButton {
  min-inline-size: 66px;
}

@media (max-width: 980px) {
  .savedReportRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-height: 0;
    padding: 10px;
  }

  .savedReportRow > span:first-child {
    flex: 1 1 min(100%, 260px);
  }

  .savedReportRow > span:nth-child(2),
  .savedReportRow > span:nth-child(3),
  .savedReportRow > span:nth-child(4) {
    flex: 0 1 auto;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .savedReportRow .savedReportActions {
    flex: 0 0 auto;
    margin-left: auto;
    min-inline-size: 126px;
  }
}

@media (max-width: 620px) {
  .savedReportRow > span:first-child,
  .savedReportRow .savedReportActions {
    flex-basis: 100%;
  }

  .savedReportRow .savedReportActions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Recent reports live inside changing dashboard columns, so wrap by row space, not viewport size. */
.savedReportsRows .savedReportRow {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  min-inline-size: 0;
  overflow: visible;
  padding: 8px 10px;
}

.savedReportsRows .savedReportRow > span:first-child {
  flex: 1 1 180px;
  min-inline-size: 150px;
}

.savedReportsRows .savedReportRow > span:nth-child(2),
.savedReportsRows .savedReportRow > span:nth-child(3),
.savedReportsRows .savedReportRow > span:nth-child(4) {
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.savedReportsRows .savedReportRow .savedReportActions {
  flex: 0 0 auto;
  min-inline-size: 126px;
  margin-left: auto;
  justify-content: flex-end;
}

.savedReportsRows .savedReportActions button {
  min-inline-size: 58px;
  padding-inline: 10px;
}

@media (max-width: 760px) {
  .savedReportsRows .savedReportRow .savedReportActions {
    flex-basis: auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}

.savedReportsRows {
  container-type: inline-size;
}

@container (max-width: 520px) {
  .savedReportsRows .savedReportRow {
    gap: 8px 12px;
  }

  .savedReportsRows .savedReportRow .savedReportActions {
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .savedReportsRows .savedReportActions button {
    min-inline-size: 72px;
  }
}

@container (max-width: 430px) {
  .savedReportsRows .savedReportRow > span:first-child {
    flex-basis: 100%;
  }

  .savedReportsRows .savedReportRow > span:nth-child(2),
  .savedReportsRows .savedReportRow > span:nth-child(3),
  .savedReportsRows .savedReportRow > span:nth-child(4) {
    flex: 1 1 100px;
  }
}

/* Maintenance invoice form: keep upload/save controls level as the card narrows. */
.invoicePanel {
  container-type: inline-size;
}

.invoiceForm {
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  align-items: end;
}

.invoiceForm > label:nth-of-type(1),
.invoiceForm > label:nth-of-type(2),
.invoiceForm > label:nth-of-type(3) {
  grid-column: span 2;
}

.invoiceForm > label:nth-of-type(4) {
  grid-column: span 2;
}

.invoiceForm > label:nth-of-type(5) {
  grid-column: span 4;
}

.invoiceDescriptionField,
.invoiceUploadDrop,
.invoiceUploadStatus,
.invoiceSaveStatus,
.invoiceTailPrompt,
.invoiceFormActions {
  grid-column: 1 / -1;
}

.invoiceUploadDrop span {
  min-height: 56px;
}

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

@container (max-width: 1040px) {
  .invoiceForm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .invoiceForm > label:nth-of-type(1),
  .invoiceForm > label:nth-of-type(2),
  .invoiceForm > label:nth-of-type(3),
  .invoiceForm > label:nth-of-type(4),
  .invoiceForm > label:nth-of-type(5) {
    grid-column: span 1;
  }
}

@container (max-width: 720px) {
  .invoiceForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoiceForm > label:nth-of-type(5) {
    grid-column: 1 / -1;
  }
}

@container (max-width: 520px) {
  .invoiceForm {
    grid-template-columns: 1fr;
  }

  .invoiceForm > label:nth-of-type(1),
  .invoiceForm > label:nth-of-type(2),
  .invoiceForm > label:nth-of-type(3),
  .invoiceForm > label:nth-of-type(4),
  .invoiceForm > label:nth-of-type(5) {
    grid-column: 1 / -1;
  }

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

/* Documents page: use the same auto-fit sizing strategy as Overview and Analytics. */
.documentsView .uploadPanel,
.documentsPanel {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow: hidden;
}

.documentsPanel {
  padding: clamp(18px, 2vw, 30px);
}

.documentsPanel h2 {
  font-size: clamp(34px, 4vw, 58px);
  overflow-wrap: anywhere;
}

.documentsPanel > div:first-child p {
  max-inline-size: 100%;
  font-size: clamp(15px, 1.15vw, 19px);
  line-height: 1.35;
}

.documentsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(min(100%, 280px), .38fr);
  gap: clamp(12px, 1.2vw, 18px);
  align-items: stretch;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.documentsGrid > *,
.contractForm,
.contractStatusCard,
.documentExpirationCard,
.contractRows,
.contractRow {
  min-inline-size: 0;
  max-inline-size: 100%;
}

.contractForm {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(10px, 1vw, 14px);
  align-content: start;
}

.contractForm label {
  min-inline-size: 0;
}

.contractForm input,
.contractForm select {
  min-inline-size: 0;
  font-size: clamp(14px, 1vw, 16px);
}

input[type="date"],
input[type="month"] {
  color: var(--text);
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.7);
  opacity: .95;
  cursor: pointer;
}

#contractExpirationInput::-webkit-calendar-picker-indicator,
#invoiceDateInput::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.7);
  opacity: .95;
  cursor: pointer;
}

.contractDrop {
  min-inline-size: 0;
}

.contractDrop span {
  min-inline-size: 0;
  font-size: clamp(15px, 1vw, 18px);
}

.contractDrop em {
  white-space: normal;
  overflow-wrap: anywhere;
}

.documentUploadSuccess,
.documentSaveSuccess {
  inline-size: 100%;
  justify-self: stretch;
  border-radius: 8px;
  text-align: center;
  overflow-wrap: anywhere;
}

.documentWarnings {
  inline-size: 100%;
  max-inline-size: 100%;
}

.documentWarnings article {
  min-inline-size: 0;
}

.documentWarnings span {
  min-inline-size: 0;
  font-size: clamp(13px, 1vw, 16px);
}

.documentFormActions {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.documentFormActions button,
.contractActions button {
  min-inline-size: 0;
  white-space: normal;
}

.contractStatusCard {
  align-content: start;
  padding: clamp(16px, 1.4vw, 22px);
}

.contractStatusCard strong {
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.contractStatusCard em {
  overflow-wrap: anywhere;
}

.documentExpirationRow {
  min-inline-size: 0;
}

.documentExpirationRow strong,
.documentExpirationRow span {
  overflow-wrap: anywhere;
}

.contractRow {
  grid-template-columns: minmax(150px, .8fr) minmax(180px, 1.1fr) minmax(90px, .42fr) minmax(92px, .4fr) minmax(180px, auto);
  gap: clamp(8px, 1vw, 12px);
  padding: clamp(10px, 1vw, 14px);
}

.contractRow strong {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.contractRow em {
  overflow-wrap: anywhere;
}

.contractActions {
  min-inline-size: 0;
  justify-content: flex-end;
}

@media (max-width: 1250px) {
  .documentsGrid {
    grid-template-columns: 1fr;
  }

  .contractStatusCard {
    min-block-size: 0;
  }
}

@media (max-width: 920px) {
  .contractRow {
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    align-items: start;
  }

  .contractRow > span:nth-child(2),
  .contractRow > span:nth-child(3),
  .contractRow > b {
    grid-column: 1;
  }

  .contractActions {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
  }
}

@media (max-width: 620px) {
  .documentsPanel {
    padding: 14px;
  }

  .contractForm,
  .contractRow {
    grid-template-columns: 1fr;
  }

  .documentWarnings article {
    display: grid;
    justify-items: start;
  }

  .documentWarnings span {
    text-align: left;
  }

  .contractActions {
    grid-column: auto;
    grid-row: auto;
    justify-content: stretch;
  }

  .contractActions button {
    flex: 1 1 92px;
  }
}

/* Overview metrics: keep large money values readable instead of wrapping digits. */
.dashboardBody .summaryStrip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.dashboardBody .summaryStrip article {
  min-inline-size: 0;
}

.dashboardBody .summaryStrip strong {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: clamp(26px, 2.05vw, 42px);
  letter-spacing: 0;
}

@media (max-width: 1500px) {
  .dashboardBody .summaryStrip strong {
    font-size: clamp(24px, 1.85vw, 34px);
  }
}

@media (max-width: 980px) {
  .dashboardBody .summaryStrip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  }

  .dashboardBody .summaryStrip strong {
    font-size: clamp(22px, 6vw, 32px);
  }
}

@media (max-width: 920px) {
  .fuelFlowHero,
  .fuelFlowControlGrid,
  .fuelFlowFilterGrid,
  .fuelFlowGphQuickControl,
  .fuelFlowGeneratedReportSummary,
  .fuelFlowSummary {
    grid-template-columns: 1fr;
  }

  .fuelFlowTitleLine,
  .fuelFlowIncludeTop {
    align-items: flex-start;
  }

  .fuelFlowAircraftHeader,
  .fuelFlowDetailHeader,
  .fuelFlowGeneratedReportHeader {
    display: none;
  }

  .fuelFlowAircraftRow,
  .fuelFlowDetailRow,
  .fuelFlowGeneratedReportRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    padding: 14px 16px;
  }
}

@media (max-width: 560px) {
  .fuelFlowAircraftRow,
  .fuelFlowDetailRow {
    grid-template-columns: 1fr;
  }
}

/* Wash/Detail tracker */
.washDetailView {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 20px;
}

.washDetailPanel,
.polishingPanel,
.polishingReminderPanel {
  display: grid;
  gap: 18px;
  min-width: 0;
  overflow: hidden;
}

.washDetailPageHeader,
.polishingPanelHeader {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.washDetailPageHeader > div:last-child,
.polishingPanelHeader > div {
  min-width: 0;
}

.washDetailPageHeader h2,
.polishingPanelHeader h2 {
  margin: 2px 0 4px;
}

.washDetailPageHeader p,
.polishingPanelHeader p {
  margin: 0;
  color: var(--muted);
}

.washDetailTitleIcon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 8px;
  color: #53d7c2;
  background: rgba(18, 74, 62, .3);
}

.washDetailTitleIcon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.washSummaryTile {
  min-width: 0;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(76, 195, 176, .28);
  background: rgba(13, 31, 25, .78);
  border-radius: 8px;
  padding: 18px;
}

.washSummaryTile > span,
.washDetailForm label,
.polishingEntryForm label,
.polishingScheduleForm label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.washMetricLine {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}

.washMetricLine strong {
  display: block;
  color: var(--text);
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: .95;
}

.washMetricLine small,
.washSelectedTile small {
  color: var(--text);
  font-weight: 750;
}

.washProgressTrack {
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
}

.washProgressTrack i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38c9b3, #73dfce);
  transition: width .3s ease;
}

.washSelectedTile {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.washSelectedPhoto {
  width: 108px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, .035);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.washSelectedPhoto:not(.hasPhoto)::before {
  content: "Aircraft";
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.washSelectedTile > div:last-child {
  min-width: 0;
}

.washSelectedTile > div:last-child > span,
.washLastService {
  display: block;
}

.washSelectedTile strong {
  display: block;
  margin: 5px 0;
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  overflow-wrap: anywhere;
}

.washLastService {
  margin-top: 12px;
  color: var(--muted) !important;
}

.washEntryCard,
.washSavedCard {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(76, 195, 176, .25);
  border-radius: 8px;
  background: rgba(8, 24, 19, .55);
  padding: 16px;
}

.detailHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.washDetailForm,
.polishingEntryForm,
.polishingScheduleForm {
  display: grid;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.washDetailForm {
  grid-template-columns: minmax(190px, 1.5fr) minmax(145px, .8fr) minmax(190px, .9fr) minmax(120px, .6fr) minmax(180px, 1fr) minmax(155px, .8fr);
}

.polishingEntryForm {
  grid-template-columns: minmax(210px, 1.1fr) minmax(190px, .7fr) minmax(240px, 1.3fr) minmax(160px, .7fr);
}

.polishingScheduleForm {
  grid-template-columns: minmax(210px, 1.1fr) minmax(190px, .75fr) minmax(170px, .7fr) minmax(220px, 1.2fr) minmax(155px, .65fr);
}

.washDetailForm label,
.polishingEntryForm label,
.polishingScheduleForm label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.washDetailForm input,
.washDetailForm select,
.polishingEntryForm input,
.polishingEntryForm select,
.polishingScheduleForm input,
.polishingScheduleForm select {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(76, 195, 176, .26);
  border-radius: 8px;
  background: rgba(14, 35, 29, .86);
  color: var(--text);
  padding: 13px 14px;
  font-weight: 800;
}

.washDetailForm input[type="date"],
.polishingEntryForm input[type="date"],
.polishingScheduleForm input[type="date"] {
  min-width: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  padding-left: 12px !important;
  padding-right: 48px !important;
  white-space: nowrap;
}

.washDetailForm button,
.polishingEntryForm button,
.polishingScheduleForm button,
.washDetailRow button,
.polishingScheduleActions button {
  min-width: 0;
  min-height: 50px;
  border: 1px solid rgba(76, 195, 176, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, #55c9b8, #168675);
  color: #03120d;
  padding: 13px 18px;
  font-weight: 900;
}

.washDetailActions {
  display: grid;
  min-width: 0;
}

.washDetailForm .washDetailActions button {
  width: 100%;
  white-space: normal;
}

.washDetailRows,
.polishingScheduleRows {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.polishingScheduleRow {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(120px, .5fr) minmax(150px, .7fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(76, 195, 176, .25);
  border-radius: 8px;
  background: rgba(13, 31, 25, .72);
  padding: 14px 16px;
}

.polishingScheduleRow strong,
.polishingScheduleRow span,
.polishingScheduleRow p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.polishingScheduleRow strong {
  display: block;
  font-size: 18px;
}

.polishingScheduleRow span:not(.polishingStatus) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.polishingScheduleRow p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.polishingStatus {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.statusScheduled {
  color: #7fffe6;
  background: rgba(31, 131, 111, .26);
}

.statusDueSoon {
  color: #ffe58a;
  background: rgba(180, 132, 21, .26);
}

.statusOverdue {
  color: #fff;
  background: rgba(190, 33, 33, .82);
}

.statusNeutral {
  color: var(--muted);
  background: rgba(255, 255, 255, .08);
}

.polishingScheduleActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 10px;
  min-width: 0;
}

.polishingScheduleActions button[data-polishing-delete] {
  background: rgba(120, 25, 25, .95);
  color: var(--text);
  border-color: rgba(255, 70, 70, .65);
}

.washDetailRow {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(120px, .55fr) minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(76, 195, 176, .25);
  border-radius: 8px;
  background: rgba(13, 31, 25, .72);
  padding: 14px 16px;
}

.washDetailRow strong,
.washDetailRow span,
.washDetailRow p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.washDetailRow strong {
  display: block;
  font-size: 20px;
}

.washDetailRow span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.washEntryType span {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.washEntryType strong {
  color: #62d8c5;
  font-size: 16px;
}

.washDetailRow p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.washDetailRow button {
  background: rgba(120, 25, 25, .95);
  color: var(--text);
  border-color: rgba(255, 70, 70, .65);
}

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

  .washSummaryTile:last-child {
    grid-column: 1 / -1;
  }

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

  .washDetailActions,
  .polishingEntryForm button,
  .polishingScheduleForm button {
    grid-column: 1 / -1;
  }

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

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

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

  .washDetailRow button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .washDetailSummary,
  .washDetailForm,
  .polishingEntryForm,
  .polishingScheduleForm {
    grid-template-columns: 1fr;
  }

  .washSummaryTile:last-child,
  .washDetailActions,
  .polishingEntryForm button,
  .polishingScheduleForm button {
    grid-column: 1 / -1;
  }

  .washSelectedTile {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .washSelectedPhoto {
    width: 90px;
  }

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

/* Final maintenance invoice layout guard: keep upload and action buttons from colliding at any width. */
.invoicePanel .invoiceForm {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.invoicePanel .invoiceForm > label {
  min-width: 0;
}

.invoicePanel .invoiceForm > label:nth-of-type(1),
.invoicePanel .invoiceForm > label:nth-of-type(2),
.invoicePanel .invoiceForm > label:nth-of-type(3) {
  grid-column: span 2;
}

.invoicePanel .invoiceForm > label:nth-of-type(4) {
  grid-column: span 2;
}

.invoicePanel .invoiceForm > label:nth-of-type(5) {
  grid-column: span 4;
}

.invoicePanel .invoiceDescriptionField,
.invoicePanel .invoiceUploadDrop,
.invoicePanel .invoiceUploadStatus,
.invoicePanel .invoiceSaveStatus,
.invoicePanel .invoiceTailPrompt,
.invoicePanel .invoiceFormActions {
  grid-column: 1 / -1;
}

.invoicePanel .invoiceUploadDrop {
  display: block;
  align-self: auto;
  margin: 0;
}

.invoicePanel .invoiceUploadDrop span {
  min-height: 52px;
  inline-size: 100%;
}

.invoicePanel .invoiceFormActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 0;
}

.invoicePanel .invoiceFormActions button {
  inline-size: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  .invoicePanel .invoiceForm {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .invoicePanel .invoiceForm > label:nth-of-type(1),
  .invoicePanel .invoiceForm > label:nth-of-type(2),
  .invoicePanel .invoiceForm > label:nth-of-type(3),
  .invoicePanel .invoiceForm > label:nth-of-type(4),
  .invoicePanel .invoiceForm > label:nth-of-type(5) {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .invoicePanel .invoiceForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .invoicePanel .invoiceForm > label:nth-of-type(5) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  .invoicePanel .invoiceForm,
  .invoicePanel .invoiceFormActions {
    grid-template-columns: 1fr;
  }

  .invoicePanel .invoiceForm > label:nth-of-type(1),
  .invoicePanel .invoiceForm > label:nth-of-type(2),
  .invoicePanel .invoiceForm > label:nth-of-type(3),
  .invoicePanel .invoiceForm > label:nth-of-type(4),
  .invoicePanel .invoiceForm > label:nth-of-type(5) {
    grid-column: 1 / -1;
  }
}

/* Final date/month picker visibility guard: keep native calendar icons white everywhere. */
input[type="date"],
input[type="month"],
.leasebackApp input[type="date"],
.leasebackApp input[type="month"] {
  position: relative !important;
  color: var(--text) !important;
  color-scheme: dark !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 18px) 50% !important;
  background-size: 16px 16px !important;
  padding-right: 46px !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
.leasebackApp input[type="date"]::-webkit-calendar-picker-indicator,
.leasebackApp input[type="month"]::-webkit-calendar-picker-indicator {
  position: absolute !important;
  inset: 0 !important;
  filter: none !important;
  opacity: 0 !important;
  cursor: pointer !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.leasebackApp .washDetailForm #washDetailDateInput {
  min-width: 0 !important;
  padding-left: 12px !important;
  padding-right: 42px !important;
  font-size: 13px !important;
}

/* Keep every Wash/Detail date complete while the calendar remains clickable. */
.leasebackApp .washDetailForm input[type="date"],
.leasebackApp .polishingEntryForm input[type="date"],
.leasebackApp .polishingScheduleForm input[type="date"] {
  min-inline-size: 0 !important;
  inline-size: 100% !important;
  padding-left: 12px !important;
  padding-right: 42px !important;
  font-size: 13px !important;
  font-variant-numeric: tabular-nums;
}

/* Wash/Detail date fields: leave a single compact icon gutter so the year never clips. */
#washDetailDateInput,
#polishingDateInput,
#polishingScheduleDateInput {
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 12px 36px 12px 10px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}
