:root {
  --brown-dark: #3b2a20;
  --brown: #6b4a34;
  --tan: #e8dcc7;
  --cream: #faf6ee;
  --accent: #8a2d2d;
  --ok: #2d6a2d;
  --err: #a12020;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream); color: var(--brown-dark);
}
.topbar {
  background: var(--brown-dark); color: var(--tan);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.5rem;
}
.brand { font-weight: bold; font-size: 1.1rem; letter-spacing: 0.02em; }
.topnav { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; }
.topnav button {
  background: var(--brown); color: white; border: none; padding: 0.4rem 0.9rem;
  border-radius: 4px; cursor: pointer; font-family: inherit;
}
.topnav button:hover { background: var(--accent); }

main { max-width: 1500px; margin: 0 auto; padding: 1.5rem; padding-bottom: 8rem; }

.screen { display: none; }
.screen.active { display: block; }

.card {
  background: white; border: 1px solid var(--tan); border-radius: 8px;
  padding: 2rem; max-width: 420px; margin: 2rem auto;
}
.card.wide { max-width: 800px; }

h1 { color: var(--brown-dark); margin-top: 0; }
h2 { color: var(--brown); border-bottom: 2px solid var(--tan); padding-bottom: 0.3rem; }

form label { display: block; margin-bottom: 1rem; font-size: 0.95rem; }
form input {
  display: block; width: 100%; padding: 0.5rem; margin-top: 0.3rem;
  border: 1px solid #767676; border-radius: 4px; font-family: inherit; font-size: 1rem;
}
.pw-wrap { position: relative; display: block; margin-top: 0.3rem; }
.pw-wrap input { margin-top: 0; padding-right: 2.4rem; }
.pw-toggle {
  position: absolute; right: 0; top: 0; height: 100%; width: 2.2rem;
  background: none; border: none; cursor: pointer; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; color: #555; opacity: 1;
}
.pw-toggle:hover { opacity: 1; }
.pw-toggle-active { opacity: 1; color: var(--accent); }
.btn-primary {
  background: var(--accent); color: white; border: none; padding: 0.7rem 1.4rem;
  border-radius: 5px; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.btn-primary:disabled { background: #767676; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: #6e1f1f; }
.btn-secondary {
  background: var(--tan); color: var(--brown-dark); border: none; padding: 0.5rem 1rem;
  border-radius: 5px; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-block;
}
.error { color: var(--err); font-size: 0.9rem; min-height: 1.2em; }
.success { color: var(--ok); font-size: 0.9rem; }
.muted { color: #666; }
.small { font-size: 0.85rem; }
.switch-link { text-align: center; }

.search-box { width: 100%; padding: 0.6rem; font-size: 1rem; margin: 1rem 0; border: 1px solid #767676; border-radius: 4px; }
.order-note-label { display: block; margin: 0.8rem 0 0.3rem; font-size: 0.9rem; font-weight: bold; }
.order-note-input {
  width: 100%; max-width: 600px; padding: 0.6rem; font: inherit; font-size: 0.95rem;
  border: 1px solid #767676; border-radius: 4px; resize: vertical; box-sizing: border-box;
  margin-bottom: 0.8rem;
}
.rep-customer-list { max-height: 60vh; overflow-y: auto; }
.rep-customer-item {
  padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--tan); cursor: pointer;
}
.rep-customer-item:hover { background: var(--tan); }

.catalog-header { margin-bottom: 1rem; }
.section-title { margin-top: 2rem; color: var(--brown-dark); }
.subgroup { margin-bottom: 1.5rem; }
.subgroup-head { display: flex; justify-content: space-between; align-items: baseline; }
.subgroup-head h3 { margin-bottom: 0.2rem; color: var(--brown); }
.catalog-link { font-size: 1.05rem; color: var(--accent); text-decoration: none; display: inline-block; margin: 0.2rem 0 0.5rem; }
.min-note { font-size: 0.95rem; font-weight: bold; color: var(--brown); margin: 0.2rem 0 0.6rem; }

.product-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.product-table tr { border-bottom: 1px solid #eee; }
.product-table td { padding: 0.15rem 0.3rem; line-height: 1.3; }
.p-sku { color: #666; font-size: 0.85rem; text-align: center; }
.p-price { text-align: center; }
.p-qty { text-align: center; }
.p-qty input { width: 60px; padding: 0.3rem; border: 1px solid #767676; border-radius: 4px; }
.p-qty select { width: 66px; padding: 0.25rem; border: 1px solid #767676; border-radius: 4px; background: white; text-align: center; }
.out-of-stock-label { color: #b00020; font-weight: 700; font-size: 0.9rem; }

.matrix-table-wrap { overflow-x: auto; margin-bottom: 2rem; width: fit-content; max-width: 100%; }
.matrix-table-wrap.unified-wrap { width: 100%; overflow-x: visible; }
.matrix-table { border-collapse: collapse; font-size: 0.85rem; table-layout: auto; }
.matrix-table th, .matrix-table td { border: 1px solid var(--tan); padding: 0.2rem 0.3rem; text-align: center; white-space: nowrap; }
.matrix-header-row th:first-child { text-align: right; font-weight: normal; color: #666; background: var(--cream); position: sticky; left: 0; }
.matrix-table thead th { background: #f3ead9; }
.matrix-name {
  text-align: left !important; white-space: nowrap; background: white;
  font-size: 0.95rem; line-height: 1; padding-top: 0.12rem !important; padding-bottom: 0.12rem !important;
}
.matrix-suffix { color: #666; font-size: 0.75rem; }
.matrix-suffix-col {
  color: #666; font-size: 0.95rem; line-height: 1;
  padding-top: 0.12rem !important; padding-bottom: 0.12rem !important;
}
.matrix-qty { padding: 0.15rem !important; }
.matrix-qty input { width: 46px; box-sizing: border-box; padding: 0.2rem; border: 1px solid #767676; border-radius: 4px; text-align: center; }
.matrix-qty select { width: 52px; box-sizing: border-box; padding: 0.15rem; border: 1px solid #767676; border-radius: 4px; text-align: center; font-size: 0.8rem; background: white; }

/* Scent Notes column: left-aligned, smaller, wrapping text for actual scent-note data rows. */
.matrix-scent-notes-col {
  text-align: left !important; white-space: normal !important; font-size: 0.68rem; color: #666;
  line-height: 1.2; max-width: 170px; min-width: 110px; background: white;
}
/* Inside the stationary (sticky) header block this is a HEADER cell, not a data cell —
   it needs to look and behave exactly like its sibling header cells (same alignment,
   background, and font treatment per row), just with no width cap so it doesn't get
   squeezed oddly while sticky. */
.matrix-sticky-row .matrix-scent-notes-col {
  text-align: center !important; white-space: normal !important;
  max-width: none; min-width: 0; background: #f3ead9 !important;
}
.matrix-type-row .matrix-scent-notes-col {
  font-size: 0.75rem !important; font-weight: bold; color: inherit;
}
.matrix-price-row.matrix-sticky-row .matrix-scent-notes-col {
  font-size: 0.78rem !important; font-weight: normal; color: #666;
}

.matrix-line-divider td {
  background: var(--tan); border-top: 2px solid var(--brown); text-align: left !important;
  white-space: normal; padding: 0.6rem 0.6rem;
}
.matrix-line-divider .line-title { font-size: 1.15rem; font-weight: bold; color: var(--brown-dark); }
.matrix-line-divider .min-note { margin-top: 0.3rem; }

.matrix-price-row td { background: var(--cream); font-size: 0.78rem; color: #666; }

.matrix-type-row td, .matrix-type-row th { font-size: 0.75rem; font-weight: bold; line-height: 1.15; }
.matrix-sticky-row td {
  position: sticky; z-index: 5; background: #f3ead9;
  height: 1.7rem; box-sizing: border-box; padding-top: 0.15rem; padding-bottom: 0.15rem;
}
/* Row 1 (type labels) can now wrap to two lines (COOKIE JAR, TRAVEL TIN, etc.), so it
   gets extra height; rows 2/3 (Wholesale/Retail) shift down to match, with no overlap. */
.sticky-row-1 td { top: 0; height: 2.3rem; white-space: normal; vertical-align: middle; }
.sticky-row-2 td { top: 2.3rem; }
.sticky-row-3 td { top: 4rem; }
.matrix-sticky-row td:first-child { z-index: 6; }
.matrix-price-label { text-align: right !important; font-weight: normal; color: #666; }

.matrix-extra-block td {
  text-align: left !important; white-space: normal; background: white;
  padding: 1rem 0.8rem; font-size: 0.92rem; line-height: 1.5;
}
.matrix-extra-block p { margin: 0.5rem 0; }
.matrix-extra-block ul { margin: 0.3rem 0 0.8rem; padding-left: 1.4rem; }
.matrix-extra-block li { margin: 0.15rem 0; }

.intro-columns { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.intro-col { flex: 1 1 260px; }
.intro-col p { margin: 0.3rem 0; }
.intro-col ul { margin: 0.2rem 0; }

.fragrance-groups {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 1.8rem; align-items: start;
}
.fragrance-group { margin-bottom: 0.4rem; break-inside: avoid; }
.fragrance-group h4 { margin: 0 0 0.15rem; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.03em; }
.fragrance-group ul { margin: 0 0 0.3rem; padding-left: 1.1rem; }
.fragrance-group li { margin: 0.05rem 0; font-size: 0.85rem; line-height: 1.3; }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--brown-dark);
  color: white; box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}
.cart-bar-inner { max-width: 1500px; margin: 0 auto; padding: 0.8rem 1.5rem; }
.cart-totals { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cart-total-final { font-weight: bold; }
.requirements-panel { font-size: 0.85rem; max-height: 5.5em; overflow-y: auto; margin-bottom: 0.4rem; }
.requirements-panel ul { margin: 0.2rem 0; padding-left: 1.2rem; color: #ffcccc; }
.requirements-panel .ok { color: #b7e4b7; margin: 0; }
.req-title { margin: 0; font-weight: bold; }

.order-summary-text {
  background: var(--tan); padding: 1rem; border-radius: 6px; white-space: pre-wrap;
  font-family: monospace; font-size: 0.9rem;
}
.report-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-bottom: 2rem; }
.report-table th, .report-table td { text-align: left; padding: 0.4rem; border-bottom: 1px solid var(--tan); }
.report-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.report-tab-btn {
  background: var(--tan); color: var(--brown-dark); border: none; padding: 0.5rem 1rem;
  border-radius: 5px; cursor: pointer; font-family: inherit; font-size: 0.9rem;
}
.report-tab-btn.active { background: var(--accent); color: white; }
.file-maint-list { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.5rem; }
.file-maint-list button { min-width: 240px; text-align: left; }
.file-maint-note { color: var(--brown-dark); margin-top: 0; }
.report-search {
  display: block; width: 100%; max-width: 320px; padding: 0.5rem; margin-bottom: 1rem;
  border: 1px solid #767676; border-radius: 4px; font-family: inherit; font-size: 0.95rem;
}

.top-promotions {
  background: white; border: 1px solid var(--tan); border-radius: 6px;
  padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.92rem; line-height: 1.5;
}
.top-promotions p { margin: 0.5rem 0; }
.top-promotions ul { margin: 0.3rem 0 0.8rem; padding-left: 1.4rem; }
.top-promotions li { margin: 0.15rem 0; }

.fulfillment-block {
  background: var(--tan); border-radius: 6px; padding: 0.9rem 1.2rem; margin-bottom: 1.2rem;
}
.fulfillment-option { display: block; margin: 0.3rem 0; font-size: 0.95rem; cursor: pointer; }
.fulfillment-option input { margin-right: 0.5rem; }
.fulfillment-note { font-weight: bold; color: #a33; font-size: 0.9rem; }
.no-email-warning {
  font-weight: bold; color: #a33; font-size: 0.9rem; background: #fdf0f0;
  border: 1px solid #e3b3b3; border-radius: 4px; padding: 0.5rem 0.8rem; margin: 0.5rem 0;
}
#cart-freight-progress { font-weight: bold; }
.fulfillment-instructions { margin: 0.7rem 0 0; font-size: 0.85rem; font-weight: bold; }
.shipping-promo-banner {
  font-size: 1.15rem; font-weight: bold; color: #a33; margin: 0 0 1.2rem;
}

.policy-block { margin: 1.5rem 0; font-size: 0.9rem; line-height: 1.4; }
.policy-block h3 { margin-bottom: 0.4rem; }
.policy-block ul { margin: 0.3rem 0; padding-left: 1.3rem; }
.policy-block li { margin: 0.25rem 0; }

.policy-intro-divider { border: none; border-top: 2px solid var(--tan); margin: 2rem 0 0.8rem; }
.policy-intro-title { font-size: 1.3rem; font-weight: bold; color: var(--brown-dark); margin: 0 0 1rem; }

/* Printing the submitted order (Print order button on the confirmation screen):
   hide app chrome/buttons, show just the order text in plain black on white. */
@media print {
  .no-print, .cart-bar, .catalog-header, nav, header, .reports-nav-btn, .back-to-order-btn { display: none !important; }
  body, .card { background: white !important; box-shadow: none !important; }
  .order-summary-text {
    background: white !important; border: none !important; padding: 0 !important;
    color: black !important; font-size: 11pt;
  }
  .card.wide { max-width: none; margin: 0; padding: 0; }
}

/* ---- Accessibility (WCAG 2.1 AA) ---- */
:focus-visible { outline: 3px solid #1a4fa3; outline-offset: 2px; }
.topbar :focus-visible, .cart-bar :focus-visible { outline-color: #ffd54a; }
[tabindex="-1"]:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }
button.rep-customer-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--tan); font: inherit; color: inherit;
}
.pw-toggle:focus-visible { outline-offset: -3px; }
@media print { .skip-link, .sr-only { display: none !important; } }

/* ---- Accessibility, round 2 ---- */
html { scroll-padding-top: 5.5rem; scroll-padding-bottom: 10rem; } /* keeps focused fields clear of sticky headers / cart bar */
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.update-banner { background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffe69c; padding: 10px 16px; text-align: center; font-size: 14px; }
.update-banner-btn { margin-left: 10px; padding: 4px 12px; cursor: pointer; }
.update-banner-dismiss { margin-left: 6px; padding: 4px 10px; background: transparent; border: 1px solid #664d03; border-radius: 4px; }
/* Narrow screens / high zoom (WCAG 1.4.10 reflow, 2.4.11): nothing pinned over the content */
@media (max-width: 900px) {
  .cart-bar { position: static; }
  main { padding-bottom: 1.5rem; }
  .matrix-sticky-row td { position: static; }
  .unified-wrap { overflow-x: auto; }
  .topbar { flex-wrap: wrap; gap: 0.5rem; }
  .card { margin: 1rem auto; padding: 1.2rem; }
  .cart-totals { gap: 0.6rem; }
}

.site-footer { text-align: center; padding: 0 1rem 13rem; font-size: 0.85rem; }
.site-footer a { color: var(--accent); }

.topnav-link { color: var(--tan); text-decoration: underline; }
.topnav-link:hover { color: #fff; }

.accessibility-link { font-size: 1.15rem; font-weight: bold; margin: 1.5rem 0 0.5rem; }
.accessibility-link a { color: var(--accent); }
.back-link { font-size: 1.15rem; font-weight: bold; margin: 0 0 1rem; }
.switch-link a[href='accessibility.html'] { font-size: 1.1rem; font-weight: bold; }

/* Log out button and signed-in email only show once someone is logged in */
body:not(.logged-in) .logout-btn, body:not(.logged-in) .user-email-display { display: none; }

.export-field { font-family: inherit; font-size: 1rem; }
.export-field input { font-family: inherit; font-size: 1rem; padding: 0.35rem 0.5rem; border: 1px solid #767676; border-radius: 4px; }

.export-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0.5rem 0; }
.export-row .export-field { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; white-space: nowrap; }
.export-row .export-field input { margin: 0; width: auto; }
.export-field select { font-family: inherit; font-size: 1rem; padding: 0.35rem 0.5rem; border: 1px solid #767676; border-radius: 4px; margin: 0; width: auto; background: #fff; }
.export-row #daily-export-estnum { width: 6rem; }

/* Daily Order Export: From/To stacked on the left, Starting Estimate Number in the middle,
   Entered by on the right, Download Excel underneath (per "Redo of Daily Download screen"). */
.export-grid { display: flex; align-items: flex-start; gap: 3rem; flex-wrap: wrap; margin: 0.8rem 0 0.5rem; }
.export-col { display: flex; flex-direction: column; gap: 0.6rem; }
.export-grid .export-field { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; white-space: nowrap; }
.export-grid .export-field input { margin: 0; width: auto; }
.export-grid #daily-export-estnum { width: 6rem; }
.export-label-2line { display: inline-block; text-align: center; line-height: 1.2; white-space: normal; }
.export-btn-row { margin: 0.5rem 0 1rem; }

.export-divider { border: none; border-top: 2px solid var(--tan); margin: 1.5rem 0; }

.sent-banner { background: #e6f4e6; border: 2px solid var(--ok); color: #1d4d1d; border-radius: 6px; padding: 0.8rem 1.2rem; margin-bottom: 1rem; font-weight: bold; }


.tally-confirm-note { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--accent, #8a2b2b); background: #fff8ec; }

.order-sent-banner { background:#e8f5e9; border:1px solid #81c784; color:#1b5e20; border-radius:6px; padding:0.75rem 1rem; margin:0.5rem 0 1rem; font-weight:bold; }

/* Fundraiser: slimmer bottom status bar */
.cart-bar-inner { padding: 0.4rem 1.5rem; }
.requirements-panel { margin-bottom: 0.2rem; }
.requirements-panel .req-msg { margin: 0; color: #ffcccc; line-height: 1.3; font-size: 1.1rem; }
.requirements-panel { max-height: none; }

/* Trimmer line at the end of each section */
.trimmer-row td { border-top: 1px dashed #d8cbb5; }
.trimmer-cell { text-align: left; }
.trimmer-cell .trimmer-price { display: inline-block; min-width: 5.5em; }

/* Payment option blanks */
.pay-field { white-space: nowrap; }
.pay-input { padding: 0.15rem 0.35rem; border: none; border-bottom: 1px solid #555; background: transparent; font: inherit; }
.pay-input:focus { outline: none; border-bottom: 2px solid var(--accent, #8a2b2b); }

/* Compact top-of-form rows: every line the same height, less padding between blocks */
:root { --row-h: 1.75rem; }
.catalog-intro { margin-bottom: 0.4rem; }
.catalog-intro p, .catalog-intro li, .intro-col p { margin: 0; line-height: var(--row-h); }
.catalog-intro ul, .intro-col ul { margin: 0; }
.fulfillment-block { padding: 0.25rem 1rem; margin-bottom: 0.4rem; }
.fulfillment-block .fulfillment-instructions,
.fulfillment-block .fulfillment-option {
  margin: 0; line-height: var(--row-h); min-height: var(--row-h); font-size: 0.95rem;
}
.fulfillment-option input[type="radio"] { margin: 0 0.5rem 0 0; vertical-align: middle; }
.pay-input { height: calc(var(--row-h) - 0.35rem); padding: 0 0.3rem; line-height: 1; vertical-align: middle; box-sizing: border-box; }
.fulfillment-option .pay-input { margin: 0; }

/* Order-form picker */
.form-picker { background: var(--tan); border-radius: 6px; padding: 0.4rem 1rem 0.6rem; margin-bottom: 0.6rem; }
.form-picker-title { margin: 0; line-height: var(--row-h, 1.75rem); font-size: 0.95rem; font-weight: bold; }
.form-picker-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.form-toggle { display: inline-flex; align-items: stretch; border: 2px solid var(--accent, #8a2b2b); border-radius: 999px; overflow: hidden; background: #fff; }
.form-toggle-btn { border: none; background: transparent; color: var(--accent, #8a2b2b); font: inherit; font-weight: bold; padding: 0.35rem 0.9rem; cursor: pointer; }
.form-toggle.on { background: var(--accent, #8a2b2b); }
.form-toggle.on .form-toggle-btn { color: #fff; }
.form-toggle.on .form-toggle-btn::before { content: '✓ '; }
.form-catalog-link { display: inline-flex; align-items: center; padding: 0 0.8rem; font-size: 0.8rem; text-decoration: underline; color: var(--accent, #8a2b2b); border-left: 1px solid var(--accent, #8a2b2b); background: #fff; }
.form-toggle.on .form-catalog-link { background: #fff; }
.no-form-chosen { font-style: italic; color: #666; margin: 0.5rem 0 1rem; }
#section-forms .matrix-table-wrap { margin-bottom: 1rem; }

/* Add New Customer */
.add-customer-line { margin: 0.4rem 0 0.8rem; font-size: 1rem; }
.add-customer-line .btn-primary { margin-left: 0.4rem; }
.new-customer-note { background: #fff8ec; border-left: 4px solid var(--accent, #8a2b2b); padding: 0.6rem 0.9rem; }
#new-customer-form select { display: block; width: 100%; padding: 0.5rem; margin-top: 0.3rem; border: 1px solid #767676; border-radius: 4px; font: inherit; }
#new-customer-form .nc-same input { display: inline; width: auto; margin: 0 0.4rem 0 0; }
#new-customer-form input:disabled { background: #eee; }
.req { color: #a33; }
#nc-rep:disabled { background: #eee; color: #444; }
.nc-cancel-row { margin: 0 0 0.8rem; }

/* Customer list upload preview */
.cust-preview-box { background: #fff8ec; border: 1px solid #e6cfa3; border-radius: 6px; padding: 0.6rem 1rem; margin: 0.5rem 0; }
.cust-preview-box details { margin: 0.25rem 0; }
.cust-preview-box ul { margin: 0.25rem 0 0.5rem; max-height: 14rem; overflow-y: auto; }
.cust-mode label { display: block; margin: 0.2rem 0; }
.cust-mode { margin: 0.4rem 0 0.6rem; }

/* Daily Order Export (from the wholesale site) */
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.export-field { font-family: inherit; font-size: 1rem; }
.export-field input { font-family: inherit; font-size: 1rem; padding: 0.35rem 0.5rem; border: 1px solid #767676; border-radius: 4px; }
.export-row { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0.5rem 0; }
.export-row .export-field { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; white-space: nowrap; }
.export-row .export-field input { margin: 0; width: auto; }
.export-field select { font-family: inherit; font-size: 1rem; padding: 0.35rem 0.5rem; border: 1px solid #767676; border-radius: 4px; margin: 0; width: auto; background: #fff; }
.export-row #daily-export-estnum { width: 6rem; }
.export-grid { display: flex; align-items: flex-start; gap: 3rem; flex-wrap: wrap; margin: 0.8rem 0 0.5rem; }
.export-col { display: flex; flex-direction: column; gap: 0.6rem; }
.export-grid .export-field { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; white-space: nowrap; }
.export-grid .export-field input { margin: 0; width: auto; }
.export-grid #daily-export-estnum { width: 6rem; }
.export-label-2line { display: inline-block; text-align: center; line-height: 1.2; white-space: normal; }
.export-btn-row { margin: 0.5rem 0 1rem; }
.export-order-list { margin: 0.8rem 0; max-height: 22rem; overflow-y: auto; }
.export-order-table input { display: inline-block; width: auto; margin: 0; }
.export-divider { border: none; border-top: 2px solid var(--tan); margin: 1.5rem 0; }

.seq-preview-list { margin: 0.5rem 0 1rem; padding-left: 1.6rem; }
.seq-preview-list li { margin: 0.2rem 0; }
.seq-preview-list .seq-space { display: block; margin: 0.3rem 0 0.1rem -1.6rem; color: #8a7a6a; font-size: 0.8rem; letter-spacing: 0.05em; }

.seasonal-mark { color: #8b2a2a; font-weight: 700; margin-left: 0.1em; }
.seasonal-note { font-weight: 600; color: #8b2a2a; }

/* Floats above the bottom status bar so it doesn't cover the order form's sticky headers. */
.update-notice { position: fixed; right: 16px; bottom: 120px; z-index: 1000; max-width: 440px; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1rem; background: #fff3c4; color: #3a2a1a; border: 2px solid #d9b44a; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.2); font-size: 1rem; }
@media (max-width: 520px) { .update-notice { left: 16px; right: 16px; max-width: none; } }
.update-notice span { flex: 1 1 320px; }
.update-notice button { padding: 0.35rem 0.9rem; border: 1px solid #8b5e34; border-radius: 4px; background: #8b5e34; color: #fff; cursor: pointer; font: inherit; }
.update-notice button.update-later { background: transparent; color: #8b5e34; }
