html,
body {
  margin: 0;
  min-height: 100%;
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 78% 10%, rgba(74, 96, 168, 0.3), transparent 24%),
    linear-gradient(160deg, #090c13 0%, #111625 100%);
  color: #f3efe8;
}

body {
  padding: 0;
}

.bill-shell {
  min-height: 100vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: #8baeff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

p,
.subtext,
#empty-copy {
  margin-top: 16px;
  color: #c7beb4;
  line-height: 1.7;
}

.hidden {
  display: none;
}

.empty-state {
  width: min(760px, calc(100% - 32px));
  margin: 10vh auto 0;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 18, 27, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #f3efe8;
}

.invoice-view {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 24px;
}

.invoice-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}

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

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: #f3efe8;
  font: inherit;
  cursor: pointer;
}

.toolbar-primary {
  color: #11151f;
  background: linear-gradient(135deg, #8baeff, #d7e3ff);
  border-color: transparent;
}

.meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.meta div {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.meta small {
  display: block;
  color: #a89d91;
  margin-bottom: 8px;
}

.meta strong {
  display: block;
}

.viewer {
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.viewer iframe {
  display: block;
  width: 100%;
  min-height: calc(100vh - 220px);
  border: 0;
  background: #111;
}

@media (max-width: 760px) {
  .invoice-topbar,
  .meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .viewer iframe {
    min-height: 620px;
  }
}
