#reception-view[hidden], #reception-view [hidden], #reception-return-view[hidden] {
  display: none;
}

#reception-view {
  --reception-ink: #0b2a33;
  --reception-muted: #445f70;
  --reception-action: #165575;
  --reception-line: #bbced9;
  --reception-paper: #f8fbfe;
  --reception-chrome: #102839;
  --reception-chrome-line: #345466;
  --reception-content-width: 1000px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #e6e9ee;
  color: var(--reception-ink);
  color-scheme: light;
  font-family: 'Ciente Manrope', system-ui, sans-serif;
}

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

#reception-view .reception-header {
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid var(--reception-chrome-line);
  color: #f8fbfe;
  background: var(--reception-chrome);
  background-image: linear-gradient(90deg, var(--reception-chrome) 20%, #102839e6 53%, #10283977),
    url('/piloto/assets/login-hangar.jpg');
  background-size: cover, min(100%, 630px) auto;
  background-repeat: no-repeat;
  background-position: center, right 92.5%;
}

#reception-view :is(.reception-header-inner, .reception-content) {
  width: min(100%, var(--reception-content-width));
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
}

#reception-view .reception-header-inner {
  display: grid;
  align-content: center;
  min-height: 112px;
  padding-block: 14px;
  gap: 10px;
}

#reception-view .reception-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#reception-view .reception-logo {
  flex: none;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

#reception-view .reception-logo[data-tenant-logo="true"] {
  width: clamp(96px, 33vw, 144px);
  height: 52px;
  object-position: left center;
}

#reception-view .reception-identity div {
  min-width: 0;
}

#reception-view .reception-hangar-name {
  display: block;
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  font-weight: 650;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#reception-view :is(.reception-location, .reception-session) {
  display: block;
  color: #c9dce8;
  font-size: .78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#reception-view .reception-location:not([hidden]) { margin-top: 3px; }
#reception-view .reception-session { margin: 0; }

#reception-view button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid;
  border-radius: 9px;
  font: 600 .85rem/1.3 'Ciente Manrope', system-ui, sans-serif;
  text-align: center;
  cursor: pointer;
}

#reception-view button:focus-visible, #reception-return-view button:focus-visible {
  outline: 2px solid var(--reception-action, #92c9ef);
  outline-offset: 3px;
}

#reception-view .reception-footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(67px + env(safe-area-inset-bottom));
  padding: 8px max(16px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--reception-chrome-line);
  background: var(--reception-chrome);
  box-shadow: 0 -6px 18px #10283921;
}

#reception-view .reception-logout {
  min-width: 96px;
  border-color: var(--reception-chrome-line);
  background: transparent;
  color: #f8fbfe;
  font-weight: 400;
}

#reception-view .reception-logout-feedback {
  margin: 0;
  color: #f9dacf;
  font-size: .8rem;
  text-align: center;
}

#reception-view .reception-logout-feedback:not(:empty) { margin-top: 6px; }
#reception-view .reception-logout:focus-visible { outline-color: #92c9ef; }
#reception-view .reception-refresh {
  border-color: var(--reception-line);
  background: var(--reception-paper);
  color: var(--reception-action);
}
#reception-view .reception-refresh:hover { background: #edf5fa; }
#reception-view .reception-logout:hover { background: #1d4559; }
#reception-view button:disabled { opacity: .65; cursor: wait; }

#reception-view .reception-icon,
#reception-view .reception-icon svg {
  display: block;
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: no-preference) {
  #reception-view .reception-refresh[aria-busy="true"] .reception-icon {
    animation: reception-refresh 1.3s linear infinite;
  }
}

@keyframes reception-refresh { to { transform: rotate(360deg); } }

#reception-view .reception-content {
  flex: 1;
  padding-block: 16px 22px;
}

#reception-view .reception-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#reception-view .reception-heading h1 {
  margin: 0;
  color: var(--reception-ink);
  font-size: clamp(1.18rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.25;
}

#reception-view .reception-heading h1::after {
  content: '';
  display: block;
  width: 19px;
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: #39788e;
}

#reception-view .reception-heading h1:focus { outline: none; }

#reception-view .reception-heading p {
  margin: 8px 0 0;
  color: var(--reception-muted);
  font-size: .83rem;
  line-height: 1.4;
}

#reception-view .reception-feedback {
  margin: 12px 0 0;
  color: var(--reception-muted);
  font-size: .85rem;
}

#reception-view .reception-feedback:empty { margin: 0; }

#reception-view .reception-empty {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--reception-line);
  border-radius: 12px;
  background: var(--reception-paper);
  color: var(--reception-muted);
}

#reception-view .reception-group { margin-top: 20px; }

#reception-view .reception-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 10px;
  margin-bottom: 8px;
}

#reception-view .reception-group-heading h2 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}

#reception-view .reception-date { color: var(--reception-muted); font-size: .8rem; }

#reception-view .reception-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#reception-view .reception-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, .55fr) minmax(0, 1fr);
  grid-template-areas: 'aircraft operation hour status';
  align-items: center;
  gap: 10px 16px;
  padding: 13px 15px;
  border: 1px solid var(--reception-line);
  border-radius: 12px;
  background: var(--reception-paper);
}

#reception-view .reception-aircraft {
  grid-area: aircraft;
  display: grid;
  justify-items: start;
  gap: 3px;
  min-width: 0;
  overflow-wrap: anywhere;
}

#reception-view .reception-prefix { font-size: 1.05rem; font-weight: 700; line-height: 1.18; }
#reception-view :is(.reception-model, .reception-operator) {
  color: var(--reception-muted);
  font-size: .79rem;
  line-height: 1.35;
}

#reception-view .reception-category {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf3f7;
  color: var(--reception-muted);
  font-size: .72rem;
  font-weight: 600;
}

#reception-view .reception-operation {
  grid-area: operation;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--reception-action);
  font-size: .86rem;
  font-weight: 600;
}

#reception-view .reception-hour {
  grid-area: hour;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#reception-view .reception-status {
  grid-area: status;
  display: grid;
  gap: 4px;
  justify-items: start;
  align-content: center;
  min-width: 0;
}

#reception-view .reception-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 4px 7px;
  border-radius: 6px;
  color: #634418;
  background: #f7edd9;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: start;
}

#reception-view .reception-badge::before {
  content: '';
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#reception-view .reception-badge[data-tone="confirmed"] { color: #245644; background: #e5f3ed; }
#reception-view .reception-badge[data-tone="overdue"] { color: #912f35; background: #fae5e7; }
#reception-view .reception-badge[data-tone="canceled"] { color: #842938; background: #f8dce0; }
#reception-view .reception-badge[data-tone="canceled"]::before {
  flex-basis: 8px;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: linear-gradient(45deg, transparent 42%, currentColor 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, currentColor 42% 58%, transparent 58%);
}
#reception-view .reception-status-detail { color: var(--reception-muted); font-size: .72rem; line-height: 1.3; }

@media (max-width: 570px) {
  #reception-view .reception-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    grid-template-areas: 'aircraft hour' 'operation status';
    align-items: start;
    padding: 12px;
    gap: 12px 10px;
  }
  #reception-view .reception-hour { justify-self: end; }
  #reception-view .reception-status { justify-items: end; text-align: end; }
}

#reception-return-view {
  display: grid;
  gap: 12px;
  text-align: center;
}

#reception-return-view p { margin: 0; }
#reception-return-welcome { font-weight: 600; }
#reception-return-view button { min-height: 44px; }
#reception-return-view .reception-return-exit {
  justify-self: center;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}
