:root {
  color-scheme: dark;
  --bg: #070b12;
  --surface: #0f1623;
  --surface-2: #161f30;
  --input-bg: #0a101b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-deep: #d97706;
  --sky: #38bdf8;
  --emerald: #34d399;
  --danger: #f87171;
  --radius: 16px;
  --radius-sm: 11px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--amber);
}

body {
  margin: 0;
  min-block-size: 100dvh;
  background:
    radial-gradient(ellipse 90% 35% at 50% -8%, rgba(245, 158, 11, 0.13), transparent 70%),
    radial-gradient(ellipse 70% 30% at 85% 0%, rgba(56, 189, 248, 0.08), transparent 60%),
    var(--bg);
}

.visually-hidden {
  position: absolute;
  clip-path: inset(50%);
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
}

/* SHELL MÓVIL OSCURO */
.app-shell {
  max-inline-size: 640px;
  margin-inline: auto;
  min-block-size: 100dvh;
  display: flex;
  flex-direction: column;
  padding-block-end: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

.app-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(7, 11, 18, 0.86);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-inline-size: 0;
}

.brand__logo {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.18));
}

.brand__text {
  min-inline-size: 0;
}

.brand__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.12;
}

.brand__subtitle {
  margin: 0.08rem 0 0;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--amber-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.correlative-pill {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  min-block-size: 36px;
  padding: 0.25rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.correlative-pill:hover {
  border-color: var(--amber);
}

.correlative-pill__dot {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}

.btn-new {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  min-block-size: 36px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

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

/* CUERPO PRINCIPAL */
.app-main {
  padding: 1rem;
  flex: 1;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 28px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.card--compact {
  padding: 0.9rem 1rem;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.usd-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.client-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(135px, 0.85fr);
  gap: 0.75rem;
}

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

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-inline-size: 0;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
  font: inherit;
  font-size: max(1rem, 1em);
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  min-block-size: 48px;
  inline-size: 100%;
  min-inline-size: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: #475569;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

textarea {
  resize: vertical;
  min-block-size: 62px;
}

/* TARJETAS DE ÍTEMS */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.item-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.item-index {
  display: inline-grid;
  place-items: center;
  min-inline-size: 1.65rem;
  block-size: 1.65rem;
  padding-inline: 0.35rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-bright);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.item-desc-wrap {
  flex: 1;
  min-inline-size: 0;
}

.item-desc-input {
  min-block-size: 44px !important;
  padding: 0.5rem 0.7rem !important;
}

.btn-trash {
  font: inherit;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-trash:hover,
.btn-trash:active {
  background: rgba(248, 113, 113, 0.14);
  color: var(--danger);
}

.item-card__math {
  display: grid;
  grid-template-columns: 0.78fr 1.12fr minmax(92px, auto);
  gap: 0.55rem;
  align-items: end;
}

.item-card__math input {
  min-block-size: 44px;
  padding: 0.45rem 0.65rem;
}

.item-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-block-size: 44px;
  padding-inline: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.item-amount span {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.item-amount strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 390px) {
  .item-card__math {
    grid-template-columns: 1fr 1fr;
  }
  .item-amount {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-block-size: 32px;
    padding-block-start: 0.35rem;
    border-block-start: 1px dashed var(--border);
  }
}

.btn-add-item {
  font: inherit;
  font-size: max(1rem, 1em);
  font-weight: 700;
  color: var(--amber-bright);
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px dashed rgba(245, 158, 11, 0.38);
  border-radius: var(--radius-sm);
  min-block-size: 48px;
  inline-size: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-add-item:hover,
.btn-add-item:active {
  background: rgba(245, 158, 11, 0.16);
  border-color: var(--amber);
}

/* DOCK INFERIOR FLOTANTE */
.dock-bar {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(16px);
  border-block-start: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

@media (min-width: 640px) {
  .dock-bar {
    max-inline-size: 640px;
    margin-inline: auto;
    inset-block-end: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding-block-end: 0.8rem;
  }
}

.dock-bar__summary {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.dock-bar__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dock-bar__label small {
  color: var(--amber-bright);
  font-size: inherit;
}

.dock-bar__total {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.dock-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-cta,
.btn-ghost {
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  min-block-size: 48px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, filter 0.15s ease, background-color 0.15s ease;
}

.btn-cta:active,
.btn-ghost:active {
  transform: translateY(1px);
}

.btn-cta {
  background: linear-gradient(135deg, var(--amber-bright), var(--amber-deep));
  color: #090d16;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.btn-cta:hover {
  filter: brightness(1.06);
}

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

.btn-ghost:hover {
  border-color: var(--text-muted);
}

.btn-sm {
  min-block-size: 40px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn-full {
  inline-size: 100%;
}

/* MODALES */
dialog.modal {
  inline-size: min(94vw, 440px);
  max-block-size: 90dvh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72);
}

dialog.modal--preview {
  inline-size: min(96vw, 800px);
}

dialog.modal[open] {
  display: flex;
  flex-direction: column;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(5px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.05rem;
  border-block-end: 1px solid var(--border);
}

.modal__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.modal__head-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon-close {
  font: inherit;
  inline-size: 38px;
  block-size: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.modal__body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow-y: auto;
}

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

.modal__desc code {
  color: var(--amber-bright);
  font-weight: 700;
}

.modal__divider {
  border-block-start: 1px solid var(--border);
}

.json-sync-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border);
}

.json-sync-box__title {
  font-size: 0.84rem;
  font-weight: 700;
}

.json-sync-box__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.json-sync-box__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.25rem;
}

.file-label {
  position: relative;
}

.preview-stage {
  padding: 1rem;
  overflow: auto;
  background: #1e293b;
}

/* TOAST */
.toast {
  position: fixed;
  inset-block-end: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  inset-inline: 1rem;
  margin-inline: auto;
  max-inline-size: 360px;
  z-index: 40;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.45);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   DOCUMENTO PDF EJECUTIVO DE ALTA GAMA (Papel blanco)
   ========================================================= */
.print-root {
  display: none;
}

.pdf-sheet {
  color-scheme: light;
  background: #ffffff;
  color: #0f172a;
  border-radius: 6px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

/* Cabecera ejecutiva oscura */
.pdf-hero {
  background: linear-gradient(135deg, #090f1d 0%, #111c33 65%, #172542 100%);
  color: #ffffff;
  padding: 1.65rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.pdf-hero__brand {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.pdf-emblem {
  display: block;
  flex-shrink: 0;
}

.pdf-hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #38bdf8;
  margin-block-end: 0.2rem;
}

.pdf-hero__name {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  line-height: 1;
}

.pdf-hero__sub {
  margin: 0.28rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fbbf24;
}

.pdf-hero__meta {
  text-align: end;
  margin-inline-start: auto;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pdf-doc-pill {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #090f1d;
  background: #fbbf24;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
}

.pdf-doc-number {
  margin-block-start: 0.35rem;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.pdf-doc-date {
  margin-block-start: 0.12rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

.pdf-doc-date strong {
  color: #ffffff;
  font-weight: 600;
}

.pdf-gold-rule {
  block-size: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 55%, #0284c7 100%);
}

/* Cuerpo del documento */
.pdf-body {
  padding: 1.5rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pdf-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.pdf-info-card {
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-inline-start: 4px solid #0f172a;
  border-radius: 6px;
}

.pdf-info-card--right {
  border-inline-start: 1px solid #e2e8f0;
  border-inline-end: 4px solid #f59e0b;
  text-align: end;
}

.pdf-kicker {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #64748b;
  margin-block-end: 0.22rem;
}

.pdf-client-value {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.pdf-currency-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

/* Tabla editorial */
.pdf-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pdf-table thead th {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.75rem 0.75rem;
  text-align: start;
  border-block-start: 1px solid #cbd5e1;
  border-block-end: 2px solid #0f172a;
}

.pdf-table .col-idx {
  inline-size: 2.8rem;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}

.pdf-table .col-qty,
.pdf-table .col-unit,
.pdf-table .col-amt {
  text-align: end;
  white-space: nowrap;
}

.pdf-table tbody td {
  padding: 0.8rem 0.75rem;
  border-block-end: 1px solid #e2e8f0;
  color: #0f172a;
  vertical-align: top;
}

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

.pdf-table tbody td.col-desc {
  font-weight: 600;
}

.pdf-table tbody td.col-amt {
  font-weight: 800;
  color: #0f172a;
}

.pdf-empty-cell {
  text-align: center;
  color: #94a3b8 !important;
  padding: 1.8rem !important;
}

/* Resumen final */
.pdf-summary-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
}

.pdf-notes-card {
  flex: 1 1 250px;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-inline-start: 4px solid #f59e0b;
  border-radius: 6px;
}

.pdf-notes-card[hidden] {
  display: none;
}

.pdf-notes-text {
  margin: 0;
  font-size: 0.83rem;
  color: #334155;
  white-space: pre-line;
}

.pdf-total-box {
  margin-inline-start: auto;
  min-inline-size: 265px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.pdf-total-box__row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}

.pdf-total-box__hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.05rem;
  background: linear-gradient(135deg, #090f1d 0%, #111c33 100%);
  color: #ffffff;
  border-block-start: 3px solid #f59e0b;
}

.pdf-total-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #cbd5e1;
}

.pdf-total-currency {
  font-size: 0.75rem;
  font-weight: 800;
  color: #38bdf8;
}

.pdf-total-box__hero strong {
  font-size: 1.55rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: -0.01em;
}

/* Firmas y pie */
.pdf-footer {
  margin-block-start: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pdf-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block-start: 0.5rem;
}

.pdf-sig-col {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

.pdf-sig-line {
  block-size: 2rem;
  border-block-end: 1px solid #94a3b8;
  margin-block-end: 0.35rem;
}

.pdf-footer-meta {
  padding-block-start: 0.75rem;
  border-block-start: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #64748b;
}

@media (max-width: 540px) {
  .pdf-hero {
    padding: 1.15rem;
  }
  .pdf-body {
    padding: 1rem;
  }
  .pdf-info-card--right {
    text-align: start;
    border-inline-end: 1px solid #e2e8f0;
    border-inline-start: 4px solid #f59e0b;
  }
  .pdf-table {
    font-size: 0.78rem;
  }
  .pdf-table thead th,
  .pdf-table tbody td {
    padding: 0.55rem 0.45rem;
  }
  .pdf-signatures {
    gap: 1.25rem;
  }
}

/* IMPRESIÓN / PDF */
@page {
  size: auto;
  margin: 8mm;
}

@media print {
  :root {
    color-scheme: light !important;
  }

  html,
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .print-root {
    display: block !important;
  }

  .pdf-sheet {
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .pdf-hero {
    border-radius: 6px 6px 0 0;
  }

  .pdf-table tbody tr,
  .pdf-summary-row,
  .pdf-footer {
    break-inside: avoid;
  }
}
