/* EastCo Client Portal — LRP Daily Quotes tab = the emailed quote sheet as live HTML
   (2026-10-21). Renderer: assets/quotes-sheet.js. Everything is scoped under .qs so it
   cannot leak into another tab; the global table rules (uppercase sticky th, nowrap
   cells) are reset here to the sheet's own look. Brand: navy var(--ec-navy), gold var(--ec-gold) (brand/eastco-tokens.css). */

.qs {
  --qs-navy: var(--ec-navy);
  --qs-gold: var(--ec-gold);
  --qs-alt: #eef2f6;
  --qs-line: #d5dbe3;
  --qs-ink: #1b2434;
  --qs-green: #2e7d32;
  --qs-red: #a3352a;
  margin-top: 0.6rem;
  min-width: 0;
}

/* ---- toolbar: toggle · sales-effective chip · download ---- */
.qs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin: 0.4rem 0 1rem; }
.qs-bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.qs-toggle button { min-height: 36px; }
.qs-eff {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--qs-navy);
  background: #f7ecd2; border: 1px solid #ecd9a8; border-radius: 999px; padding: 0.3rem 0.8rem;
}
.qs-dl {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px;
  padding: 0.45rem 1rem; border-radius: 999px; background: var(--qs-navy); color: #fff;
  font-weight: 600; font-size: 0.86rem; text-decoration: none; border: 1px solid var(--qs-navy);
}
.qs-dl:hover { background: #0a4a85; }
.qs-dl:focus-visible { outline: 2px solid var(--qs-gold); outline-offset: 2px; }

/* ---- masthead band (the sheet's navy header) + gold rule ---- */
.qs-band {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  background: var(--qs-navy); color: #fff; padding: 1rem 1.5rem; border-radius: 10px 10px 0 0;
}
.qs-logo { height: 64px; width: auto; display: block; }
.qs-band-text { text-align: right; margin-left: auto; min-width: 0; }
.qs-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.7rem); letter-spacing: 0.01em; line-height: 1.15; }
.qs-tag { font-size: 0.9rem; color: #d7e1ec; margin-top: 0.2rem; }
.qs-band-sm { padding: 0.8rem 1.3rem; }
.qs-band-sm .qs-band-text { text-align: left; margin-left: 0; }
.qs-band-sm .qs-title { font-size: clamp(1.02rem, 1.6vw, 1.3rem); }
.qs-rule { height: 4px; background: var(--qs-gold); border-radius: 0 0 3px 3px; margin-bottom: 1rem; }

/* ---- sections / headings ---- */
.qs-sec { margin-top: 1.4rem; min-width: 0; }
.qs-sheet > .qs-split:first-of-type .qs-sec:first-child { margin-top: 0; }
.qs-h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--qs-navy); margin: 0 0 0.55rem; }
.qs-h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--qs-navy); margin: 0 0 0.4rem; text-align: center; }
.qs-center { text-align: center; }
.qs-sub { color: #4f5a6b; font-size: 0.88rem; margin: -0.3rem 0 0.7rem; overflow-wrap: anywhere; }
.qs-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.45rem; }
.qs-foot { font-size: 0.8rem; font-style: italic; color: #4f5a6b; margin-top: 0.4rem; }
.qs-eeo { text-align: center; font-style: italic; font-size: 0.82rem; color: #4f5a6b; margin: 1rem 0 0; }

/* two-up rows on wide screens (table | chart); stacked below 1200px */
.qs-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (min-width: 1200px) {
  .qs-p1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .qs-p2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qs-seas .qs-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.qs-chart-card { background: #fff; border: 1px solid var(--qs-line); border-radius: 10px; padding: 0.9rem 0.9rem 0.6rem; min-width: 0; }
.qs-chart { display: block; width: 100%; height: auto; font-family: "Work Sans", Calibri, Arial, sans-serif; }

/* ---- tables: the sheet's look ---- */
.qs-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.qs table.qs-t { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; background: #fff; color: var(--qs-ink); }
.qs table.qs-t th, .qs table.qs-t td {
  text-transform: none; letter-spacing: 0; position: static; white-space: nowrap;
  text-align: center; padding: 0.5rem 0.65rem; border: 1px solid var(--qs-line);
}
.qs table.qs-t thead th { background: var(--qs-navy); color: #fff; font-weight: 700; font-size: 0.82rem; border-color: #1d4f80; }
.qs table.qs-t tbody tr:nth-child(even) td { background: var(--qs-alt); }
.qs table.qs-t tbody tr:hover td { background: #fbf4e2; }
.qs table.qs-t .qs-pos { color: var(--qs-green); }
.qs table.qs-t .qs-neg { color: var(--qs-red); }

/* PAF table (centered, compact) */
.qs-t-paf { max-width: 640px; margin: 0 auto; }
.qs-paf .qs-h2 { margin-bottom: 0.45rem; }
.qs-paf { margin-bottom: 1.2rem; }

/* summary: black outer frame + the sheet's two heavy column rules */
.qs table.qs-t-sum { border: 2px solid #111; }
.qs table.qs-t-sum thead th { white-space: normal; line-height: 1.2; min-width: 4.4rem; }
.qs table.qs-t-sum td:nth-child(1), .qs table.qs-t-sum th:nth-child(1),
.qs table.qs-t-sum td:nth-child(3), .qs table.qs-t-sum th:nth-child(3) { border-right: 2px solid #111; }
.qs table.qs-t-sum td { padding-top: 0.6rem; padding-bottom: 0.6rem; }

/* Live seasonal table: the sheet prints it as a plain grid */
.qs table.qs-t-seas thead th { white-space: normal; line-height: 1.2; }

/* p3 matrix */
.qs table.qs-t-mx { font-size: 0.86rem; }
.qs table.qs-t-mx thead th.qs-range { letter-spacing: 0.02em; }
.qs table.qs-t-mx tbody tr:nth-child(even) td { background: transparent; }
.qs table.qs-t-mx tr.qs-mx-cost td { background: var(--qs-alt); }
.qs table.qs-t-mx tr.qs-mx-strike td { border-top: 2px solid var(--qs-navy); }
.qs table.qs-t-mx td.qs-wk { background: #fff !important; font-weight: 600; vertical-align: middle; }
.qs table.qs-t-mx td.qs-lbl { color: #3d4757; }

/* p4 per-end-date blocks: ONE column, full width, end-date order (RN-0017, McLane 11/3:
   "stacked vertically ... so each expiration table is read straight down") */
.qs-det-stack { display: flex; flex-direction: column; gap: 1rem; }
.qs-det-stack > .qs-det-wrap { width: 100%; }
.qs table.qs-t-det { font-size: 0.8rem; }
.qs table.qs-t-det tbody tr:nth-child(even) td { background: transparent; }
.qs table.qs-t-det th.qs-lbl { background: var(--qs-alt); color: var(--qs-ink); font-weight: 700; font-size: 0.8rem; }
.qs table.qs-t-det td.qs-val { background: var(--qs-alt) !important; font-weight: 600; }
.qs table.qs-t-det tr.qs-det-strike td:not(.qs-val) { background: var(--qs-navy) !important; color: #fff; }
.qs table.qs-t-det td, .qs table.qs-t-det th { padding: 0.36rem 0.4rem; }
.qs table.qs-t-det th.qs-lbl { font-size: 0.76rem; }
/* the ADVERTISED SUBSIDY row under each Strike row (the % the PDF's p3 matrix prints per strike) */
.qs table.qs-t-det tr.qs-det-sub td { background: #f7ecd2 !important; color: var(--qs-navy); font-weight: 700; }
.qs table.qs-t-det tr.qs-det-sub td.qs-lbl { background: var(--qs-alt) !important; }
.qs table.qs-t-det tr.qs-det-sub th.qs-lbl { background: #f7ecd2; color: var(--qs-navy); white-space: normal; line-height: 1.15; }

/* ---- RN-0016: class x weight picker on the PAF table ---- */
.qs-pick { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; padding: 0.55rem 0.85rem;
  background: #f7ecd2; border: 1px solid #ecd9a8; border-left: 4px solid var(--qs-gold); border-radius: 8px;
  color: var(--qs-ink); font-size: 0.9rem; line-height: 1.35; }
.qs-pick strong { color: var(--qs-navy); }
.qs-pick-ico { flex: none; color: var(--qs-gold); }
.qs table.qs-t-paf thead th, .qs table.qs-t-paf td, .qs table.qs-t-paf tbody th { padding: 0.25rem; }
.qs table.qs-t-paf th.qs-paf-wt { background: #fff; color: var(--qs-ink); font-weight: 700; font-size: 0.86rem; padding: 0.4rem 0.6rem; }
.qs table.qs-t-paf tbody tr:hover td { background: transparent; }
.qs-paf-cls, .qs-paf-btn {
  display: block; width: 100%; min-height: 40px; border-radius: 6px; cursor: pointer; font: inherit;
  font-variant-numeric: tabular-nums; transition: background-color 0.12s, box-shadow 0.12s, color 0.12s;
}
.qs-paf-cls { background: transparent; border: 1px solid rgba(255, 255, 255, 0.45); color: #fff; font-weight: 700; font-size: 0.86rem; }
.qs-paf-cls:hover { background: rgba(255, 255, 255, 0.14); }
.qs-paf-cls.on { background: var(--qs-gold); border-color: var(--qs-gold); color: #fff; }
.qs-paf-btn { background: #fff; border: 1px solid #c5ced9; color: var(--qs-ink); font-size: 0.95rem; font-weight: 600; }
.qs-paf-btn:hover { background: #fbf4e2; border-color: var(--qs-gold); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.qs-paf-cell.on .qs-paf-btn { background: var(--qs-navy); border-color: var(--qs-navy); color: #fff; box-shadow: 0 0 0 3px var(--qs-gold); }
.qs-paf-cls:focus-visible, .qs-paf-btn:focus-visible, .qs-reset:focus-visible { outline: 3px solid var(--qs-gold); outline-offset: 2px; }
.qs-showing { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.7rem; margin-top: 0.7rem; padding: 0.6rem 0.9rem;
  background: var(--qs-navy); color: #fff; border-radius: 8px; border-left: 5px solid var(--qs-gold); }
.qs-showing.is-base { background: #eef2f6; color: var(--qs-ink); border-left-color: var(--qs-navy); }
.qs-showing-lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.qs-showing-what { font-size: 0.98rem; }
.qs-reset { margin-left: auto; min-height: 36px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid #fff;
  background: transparent; color: #fff; font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.qs-reset:hover { background: rgba(255, 255, 255, 0.15); }
.qs-showing-note { flex-basis: 100%; font-size: 0.8rem; opacity: 0.9; }
.qs-seltag { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--qs-gold);
  color: #fff; font-size: 0.78rem; font-weight: 700; vertical-align: middle; letter-spacing: 0; }
.qs table.qs-t td.qs-adj { color: var(--qs-navy); font-weight: 600; }
.qs table.qs-t .qs-dim { color: #9aa3b0; background: #f4f5f7 !important; }
.qs table.qs-t thead th.qs-dim { background: #dfe4ea !important; color: #5f6b7a; border-color: #c9d1db; }
.qs-cme-note { font-size: 0.82rem; color: #4f5a6b; margin: 0.45rem 0 0; font-style: italic; }
.qs-det .qs-cme-note { text-align: center; margin: -0.3rem 0 0.7rem; }
.qs-adj-note { font-size: 0.84rem; color: #2c3545; background: #fff; border: 1px solid var(--qs-line); border-left: 4px solid var(--qs-gold);
  border-radius: 8px; padding: 0.55rem 0.85rem; margin: 1rem 0 0; }

/* compliance page */
.qs-comp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem 2.4rem; background: #fff; border: 1px solid var(--qs-line); border-radius: 10px; padding: 1.2rem 1.4rem; }
@media (min-width: 1100px) { .qs-comp { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.qs-comp .qs-h3 { text-align: left; font-size: 1.02rem; margin-top: 0.4rem; }
.qs-comp p { font-size: 0.86rem; line-height: 1.5; color: #2c3545; margin: 0 0 0.6rem; max-width: 120ch; }
.qs-comp-sec + .qs-comp-sec { margin-top: 0.9rem; }
.qs-hol { list-style: none; margin: 0 0 0.5rem; padding: 0; font-size: 0.86rem; line-height: 1.55; columns: 1; }
.qs-comp .qs-foot { font-style: normal; }

/* calculator: inputs | results side by side on wide screens */
.qs-calc-sec { margin-top: 1.8rem; }
.qs-calc-sec > p { margin: -0.3rem 0 0.7rem; }
.qs-calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2rem; }
@media (min-width: 900px) {
  .qs-calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qs-calc .calc-out { margin-top: 0; border-top: none; padding-top: 0; border-left: 2px solid var(--line); padding-left: 2rem; }
}
/* RN-0021 (McLane 11/4): the calculator lives in the sheet's slot under the "Showing" bar, right
   above the Highest Options table - compact (gold-edged card, tighter rows) so the printed
   table still starts close by. Phones stack inputs over results (the base rule above). */
.qs-calc-slot .qs-calc-sec { margin: 0 0 1.2rem; }
.qs-calc-slot .qs-calc-sec .qs-h2 { margin-bottom: 0.3rem; }
.qs-calc-slot .qs-calc-sec > p { margin: 0 0 0.55rem; }
.qs-calc-slot .qs-calc { padding: 0.9rem 1.1rem; border-left: 4px solid var(--qs-gold); }
.qs-calc-slot .qs-calc .field { margin-bottom: 0.55rem; }
.qs-calc-slot .qs-calc .calc-out { gap: 0.3rem; }
@media (min-width: 900px) {
  .qs-calc-slot .qs-calc { gap: 0 1.4rem; }
  .qs-calc-slot .qs-calc .calc-out { padding-left: 1.4rem; }
}
@media (max-width: 720px) {
  .qs-calc-slot .qs-calc { padding: 0.8rem 0.85rem; }
}

/* phones: no sideways page scroll — wide tables scroll inside .qs-scroll */
@media (max-width: 720px) {
  .qs-band { padding: 0.85rem 1rem; }
  .qs-band-text { text-align: left; margin-left: 0; }
  .qs-logo { height: 46px; }
  .qs-tag { font-size: 0.8rem; }
  .qs-bar { align-items: stretch; }
  .qs-bar-right { width: 100%; justify-content: space-between; }
  .qs table.qs-t { font-size: 0.82rem; }
  .qs table.qs-t th, .qs table.qs-t td { padding: 0.42rem 0.5rem; }
  .qs-comp { padding: 1rem; }
  /* charts keep a legible size and swipe sideways inside their card */
  .qs-chart-card { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0.7rem 0.5rem 0.5rem; }
  .qs-chart { min-width: 620px; }
  .qs-h3 { text-align: left; }
}
@media (pointer: coarse) { .qs-toggle button, .qs-dl, .qs-paf-btn, .qs-paf-cls, .qs-reset { min-height: 44px; } }
@media (max-width: 720px) {
  .qs table.qs-t-paf th, .qs table.qs-t-paf td { padding: 0.18rem; }
  .qs-paf-cls { font-size: 0.74rem; padding: 0 0.1rem; }
  .qs-paf-btn { font-size: 0.86rem; }
  .qs table.qs-t-paf th.qs-paf-wt { font-size: 0.74rem; padding: 0.3rem; white-space: normal; }
  .qs-reset { margin-left: 0; }
}

@media print {
  .qs-bar, .qs-calc-sec, .qs-pick, .qs-reset { display: none !important; }
  .qs-chart-card, .qs-comp { break-inside: avoid; }
}
