/* Polamai order board (S6, Prices tab S7). Loaded after app.css and uses its tokens (:root custom properties, light and dark).
   Mobile first: one tab bar at the bottom on phones, the same tabs on top from 720px. No inline styles (CSP: style-src 'self'). */

[hidden] { display: none !important; }
main[aria-busy="true"] { opacity: .7; }

/* ---- navigation ---------------------------------------------------------------------------------------------- */

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-list { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; margin: 0 auto; padding: 0; max-width: 960px; }
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .12rem;
  min-height: 60px; padding: .4rem .1rem .3rem; text-decoration: none; text-align: center;
  color: var(--muted); font-size: .72rem; line-height: 1.15; border-top: 3px solid transparent;
}
.nav-item.on { color: var(--accent); font-weight: 700; border-top-color: var(--accent); }
.nav-item:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: -3px; }
.nav-count {
  min-width: 1.5rem; padding: .04rem .4rem; border-radius: 999px; text-align: center;
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--accent-soft); color: var(--accent);
}
.nav-count-zero { background: transparent; color: var(--muted); font-weight: 400; }
.nav-count-none { background: transparent; }
.nav-count-attn { background: var(--warn-bg); color: var(--warn-ink); }
.nav-item.on .nav-count { background: var(--accent); color: var(--accent-ink); }
.nav-item.on .nav-count-zero { background: transparent; color: var(--accent); }
.nav-item.on .nav-count-none { background: transparent; }

/* the Access bridge banner (S10), between the tabs and the screen; hidden while the bridge is fine */
.bridge-status { max-width: 960px; margin: 0 auto; padding: .8rem 1rem 0; }
.bridge-status .banner { margin: 0; }
/* S12: the Wix error, "Etsy is disconnected" and the schedule's banners and line sit in the same place, one under the other */
.bridge-status > * + * { margin-top: .6rem; }
.status-line { margin: 0; font-size: .8rem; color: var(--muted); }

main { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.toast { bottom: calc(5rem + env(safe-area-inset-bottom)); }

@media (min-width: 720px) {
  .nav { position: static; border: 0; background: none; max-width: 960px; margin: 0 auto; padding: .8rem 1rem 0; }
  .nav-list { display: flex; flex-wrap: wrap; gap: .4rem; max-width: none; }
  .nav-item {
    flex-direction: row; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); color: var(--ink); font-size: .9rem; white-space: nowrap;
  }
  .nav-item.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .nav-count-none { display: none; }
  main { padding-bottom: 3rem; }
  .toast { bottom: calc(1rem + env(safe-area-inset-bottom)); }
}

/* ---- screens ------------------------------------------------------------------------------------------------- */

.screen-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: .2rem 0 .7rem; }
.screen-head h1 { font-size: 1.25rem; }
.lead { margin: -.3rem 0 .8rem; }
.stack { display: grid; gap: .8rem; }
.two-col { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }
.workshop { margin-bottom: 1.2rem; }
.workshop h2 { display: flex; align-items: center; gap: .5rem; }
.count-pill { font-size: .75rem; min-width: 1.4rem; text-align: center; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.plain { list-style: none; margin: .3rem 0 0; padding: 0; }
.plain li { padding: .25rem 0; overflow-wrap: anywhere; }
.plain small { display: block; }
.note { color: inherit; opacity: .85; }

.plist { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .35rem; }
.plist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .05rem .6rem; overflow-wrap: anywhere; }
.code { font-variant-numeric: tabular-nums; font-weight: 700; }
.pmeta { color: var(--muted); font-size: .84rem; }
.meta-sub { margin-top: .35rem; font-size: .8rem; }
.reason { margin: .5rem 0 0; overflow-wrap: anywhere; }
.media-line { margin-top: .5rem; overflow-wrap: anywhere; }

/* ---- pieces -------------------------------------------------------------------------------------------------- */

.pieces { display: grid; gap: .8rem; }
.piece { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; }
.piece-head { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; align-items: start; }
.piece-title h3 { margin: .2rem 0 .1rem; color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.piece-code { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: .2rem .5rem; align-items: center; }
.chips-inline { display: inline-flex; flex-wrap: wrap; gap: .3rem; font-weight: 400; }
.pic {
  width: 5.5rem; height: 5.5rem; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .7rem;
}
.pic-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-ph { padding: .25rem; }
.variations { list-style: none; margin: .4rem 0 0; padding: 0; font-size: .86rem; overflow-wrap: anywhere; }
.variations li { padding: .05rem 0; }
.vname { color: var(--muted); }
.vname::after { content: ":"; }

.fields { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); margin-top: .9rem; }
.fields .field { margin: 0; }
.fields-one { grid-template-columns: 1fr; max-width: 32rem; }
.field-wide { grid-column: 1 / -1; }
textarea {
  width: 100%; min-height: 72px; padding: .5rem .7rem; font: inherit; color: var(--ink); resize: vertical;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
textarea:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent); }
.setby, .customer-text, .setting-meta { display: block; margin-top: .2rem; color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.customer-text { font-size: .82rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.save-hint { margin: 0; }
.btn-sm { min-height: 44px; padding: 0 .9rem; font-size: .92rem; }

summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: .4rem; font-weight: 600; }
details { margin-top: .6rem; }
details > .kv, details > .fields { margin-top: .2rem; }
.costs { border-top: 1px solid var(--line); padding-top: .2rem; }
.change { border-top: 1px solid var(--line); padding-top: .2rem; }
.change-row { display: grid; gap: .4rem; margin: .8rem 0; }
.change-row label { font-weight: 600; }
.change-row .btn { justify-self: start; }

/* ---- findings ------------------------------------------------------------------------------------------------ */

.findings { display: grid; gap: .7rem; margin: .9rem 0 0; }
.findings h4 { margin: 0 0 .35rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.findings-exc h4 { color: var(--danger-ink); }
.finding-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.finding { border-radius: 12px; padding: .65rem .8rem; border: 1px solid transparent; overflow-wrap: anywhere; }
.finding-exception { background: var(--danger-bg); color: var(--danger-ink); }
.finding-suggestion { background: var(--info-bg); color: var(--info-ink); }
.finding-assumption { background: var(--bg); color: var(--muted); border-color: var(--line); }
.finding-meta, .finding-hint { display: block; margin-top: .15rem; font-size: .74rem; opacity: .8; }
.finding-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .55rem; }
.finding-actions .btn { width: auto; }
.settled { margin-top: 0; color: var(--muted); }
.settled .plain li { font-size: .86rem; }

/* ---- rows (sheets, shipping), drafts ------------------------------------------------------------------------- */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.row-sub { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.row-error { color: var(--danger-ink); }
.row-top .link-btn { margin: -.5rem 0 -.5rem auto; }
.draft { margin-top: .8rem; }
.draft-body {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0; padding: .7rem; font: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.panel-approve .btn { width: 100%; }
@media (min-width: 640px) { .panel-approve .btn { width: auto; } }
.assign, .ship { margin-top: .6rem; }
.ready-card .btn, .message .btn { width: auto; }
.card.message, .card.ready-card { cursor: default; }
/* S26: several ProdCodes in one message ("Apply to all N"), suggestions for a photo, the help on Messages */
.apply-all { margin: .6rem 0 .2rem; }
.apply-all .ticks { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: .3rem 0 .6rem; }
.apply-all .tick { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.suggest { margin-top: .5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.suggest .hint { flex-basis: 100%; margin: 0; }
details.help { margin: .2rem 0 .9rem; }
details.help li { overflow-wrap: anywhere; margin-top: .3rem; }
.link-btn.inline { margin: 0; }

.card-link { margin: .5rem 0 0; font-size: .9rem; }

/* ---- prices (S7) --------------------------------------------------------------------------------------------- */

.tab .count-attn, .tab.on .count-attn { background: var(--warn-bg); color: var(--warn-ink); }
.tabs { margin-top: .2rem; }

/* wide tables sit in their own scroll box; the first column stays in view while the rest scrolls */
.table-wrap { overflow-x: auto; margin: .6rem 0 .2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .86rem; }
.grid th, .grid td { padding: .45rem .65rem; text-align: left; vertical-align: top; white-space: nowrap; border-bottom: 1px solid var(--line); }
.grid thead th { background: var(--bg); color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.grid tbody tr:last-child > * { border-bottom: 0; }
.grid tbody th { font-weight: 700; background: var(--surface); }
.grid tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.grid .wrap { white-space: normal; min-width: 11rem; overflow-wrap: anywhere; }
.grid td small, .grid th small { white-space: normal; }
.grid tr.row-over > *, .grid tr.row-over th[scope="row"] { background: var(--warn-bg); }
.grid .btn { width: auto; }
.grid .actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.price-grid th:nth-child(2), .price-grid td:nth-child(2) { min-width: 15rem; white-space: normal; }
@media (max-width: 479px) {
  .price-tabs .tab { padding: 0 .6rem; font-size: .84rem; }
  .price-grid th:nth-child(2), .price-grid td:nth-child(2) { min-width: 9rem; }
  .grid .wrap { min-width: 9rem; }
}

.stack > .banner { margin: 0; }
.price-settings { display: grid; gap: .8rem; }
.filters { margin: .3rem 0 .6rem; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .7rem; }
.pager .hint { margin: 0 auto 0 0; }
.runs { margin-top: .8rem; }

.input-block { padding: .6rem 0; border-top: 1px solid var(--line); }
.input-block:first-of-type { border-top: 0; }
.input-block h3 { margin: .2rem 0; color: var(--ink); font-size: .98rem; }
.input-block h3 small { margin-left: .4rem; font-weight: 400; }
.input-form { margin-top: .5rem; }
.input-form .fields { margin-top: .4rem; }
.input-form .field label { font-weight: 500; font-size: .86rem; }

fieldset { min-width: 0; margin: 0 0 .8rem; padding: .2rem .9rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
/* grid children may shrink below their content (a select's longest option), so a phone never scrolls sideways */
.stack > *, .fields > *, .price-settings > * { min-width: 0; }
.quote-form select, .quote-form input, .filters select, .filters input { max-width: 100%; }
legend { padding: 0 .4rem; font-weight: 700; font-size: .9rem; }
.stone-set .fields { margin-top: .4rem; }
.quote-form .fields { margin-top: .4rem; }
.quote-price { margin: .6rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.quote-price strong { font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.quote-price span { color: var(--muted); }
.quote-save { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.link-form { display: flex; gap: .4rem; align-items: center; }
.link-form input { width: 6.5rem; min-height: 44px; }
#quote-result:empty { display: none; }

/* ---- shipments (S8) ------------------------------------------------------------------------------------------ */

.finding-warning { background: var(--warn-bg); color: var(--warn-ink); }
a.btn { text-decoration: none; }
.ship-card .card-top > *, .ship-detail .row-top > * { min-width: 0; }
.ship-ref { font-variant-numeric: tabular-nums; font-weight: 700; overflow-wrap: anywhere; text-align: right; }
.ship-card .plist { margin-top: .4rem; }
.ship-group .form-actions { margin-top: .2rem; }
.ship-detail .detail-head h1 { overflow-wrap: anywhere; }
.ship-detail .rid { overflow-wrap: anywhere; }
.ship-form .fields { margin-top: .4rem; }
.customs-list { list-style: none; margin: .2rem 0 0; padding: 0; }
.customs-line { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.customs-line:last-child { border-bottom: 0; }
.customs-line .fields, .customs-line .field { margin-top: .4rem; }
.customs-desc { overflow-wrap: anywhere; }
.customs-log td, .customs-log th { white-space: nowrap; }
.customs-log td.wrap { white-space: normal; min-width: 10rem; }

/* nine tabs on a phone: smaller labels (a column never gets narrower than its longest word, so no word is cut in two) */
@media (max-width: 479px) {
  .nav-list { overflow-x: auto; }
  .nav-item { font-size: .58rem; padding-inline: 0; }
  /* the customs log and the certificate log as one block per entry, each value with its label */
  .customs-log thead, .cert-log thead { display: none; }
  .customs-log, .customs-log tbody, .customs-log tr, .customs-log td,
  .cert-log, .cert-log tbody, .cert-log tr, .cert-log td { display: block; width: auto; }
  .customs-log tr, .cert-log tr { padding: .45rem 0; border-bottom: 1px solid var(--line); }
  .customs-log td, .customs-log td.wrap, .cert-log td, .cert-log td.wrap { white-space: normal; min-width: 0; padding: .05rem 0; border: 0; text-align: left; }
  .customs-log td::before, .cert-log td::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* ---- certificates (S9) ---------------------------------------------------------------------------------------- */

.cert-card { padding: 0; overflow: hidden; }
.cert-open { display: block; padding: .85rem 1rem; color: inherit; text-decoration: none; }
.cert-open:hover, .cert-open:focus-visible { background: var(--accent-soft); outline: none; }
.cert-ref { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; text-align: right; }
.cert-access { margin-top: .45rem; }
.cert-group { margin-bottom: 1.2rem; }
.cert-fold > summary { font-size: 1.1rem; }
.cert-fold > summary::before { content: "\25B8"; display: inline-block; width: 1rem; color: var(--muted); }
.cert-fold[open] > summary::before { content: "\25BE"; }
.cert-fold > .cert-card { margin-top: .5rem; }
.cert-detail .detail-head h1 { overflow-wrap: anywhere; }
.cert-detail .rid { overflow-wrap: anywhere; }

/* the certificate as it will be printed: serif lines on paper, the stone columns side by side where there is room */
.cert-sheet {
  margin: .4rem 0 0; padding: 1rem 1.1rem; background: #fff; color: #1d1d1b; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: Georgia, "Times New Roman", serif; line-height: 1.45; overflow-wrap: anywhere;
}
.cert-sheet p { margin: 0 0 .35rem; }
.cert-line { font-size: 1rem; }
.cert-title { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.cert-missing { color: #8a1c1c; font-style: italic; font-weight: 400; }
.cert-columns { display: grid; grid-template-columns: 1fr; gap: .6rem 1.4rem; margin: .7rem 0; padding: .6rem 0; border-top: 1px solid #d8d6cf; border-bottom: 1px solid #d8d6cf; }
@media (min-width: 560px) { .cert-columns-2 { grid-template-columns: 1fr 1fr; } }
.cert-stone { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.cert-stone li { padding: .08rem 0; }
.cert-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; margin: .4rem 0 0; font-size: .9rem; color: #55534d; }
.cert-fields { margin-top: .4rem; }
.cert-field-corrected input { border-color: var(--info-ink); }
.cert-field-issue input { border-color: var(--warn-ink); }
.cert-field .link-btn { display: block; }
.cert-form h3 { margin: .9rem 0 0; font-size: .95rem; }
.cert-form h3:first-of-type { margin-top: .2rem; }
.cert-mail { margin-top: 0; }
.cert-mail-text { min-height: 11rem; background: var(--bg); }
.cert-next .form-actions { margin-top: .6rem; }
.cert-next > p:first-of-type { margin-top: .3rem; }
.cert-log td, .cert-log th { white-space: nowrap; }
.cert-log td.wrap { white-space: normal; min-width: 9rem; }

/* ---- orders entered by hand and bills (S11) ------------------------------------------------------------------------ */

.manual-piece { margin: 0 0 .8rem; }
.manual-piece:last-of-type { margin-bottom: .4rem; }
.manual-piece .fields { margin-top: .4rem; }
.manual-article { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem; overflow-wrap: anywhere; }
.manual-search { display: flex; gap: .5rem; align-items: flex-start; }
.manual-search input { flex: 1 1 auto; min-width: 0; }
.manual-search .btn { width: auto; flex: 0 0 auto; }
.manual-results { grid-column: 1 / -1; }
.manual-results li { display: grid; gap: .15rem; }
.manual-results .btn { justify-self: start; width: auto; }
.manual-form .fields + .form-actions { margin-top: .9rem; }
.manual-form input[readonly] { background: var(--bg); }   /* a price, a quote, a kind that is Jaki's: shown, not chosen (L-04) */
.manual-actions .field { max-width: 32rem; }

.bill-workshop { margin-bottom: 1rem; }
.bill-workshop h3 { display: flex; align-items: center; gap: .5rem; }
.bill-sum { margin: .5rem 0 0; font-variant-numeric: tabular-nums; }
.bill-upload .fields { margin-top: .2rem; }
.bill-upload input[type="file"] { min-height: 48px; padding: .6rem .7rem; }
.access-codes { margin: .2rem 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bill-lines th[scope="row"] { position: static; }
.bill-lines td.wrap { min-width: 12rem; }   /* 14rem pushed the notes out of a 1280 px page */
.bill-changes li { padding: .1rem 0; }
.bill-changes .vname::after { content: ":"; }
.bill-hints li { padding: .15rem 0; }
.bill-hints li.hint-deviation { font-weight: 600; }
.bill-hints .chip { margin-right: .3rem; }
.bill-hints span { white-space: normal; }

/* the bill lines as one block per line on a phone, each value with its label (as the customs and certificate logs) */
@media (max-width: 479px) {
  .bill-lines thead { display: none; }
  .bill-lines, .bill-lines tbody, .bill-lines tr, .bill-lines td, .bill-lines th { display: block; width: auto; }
  .bill-lines tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .bill-lines td, .bill-lines td.wrap, .bill-lines th { white-space: normal; min-width: 0; padding: .05rem 0; border: 0; text-align: left; background: none; }
  .bill-lines td.num { text-align: left; }
  .bill-lines td::before, .bill-lines th::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 400; }
  .bill-lines tr.row-over { padding-inline: .5rem; border-radius: 10px; background: var(--warn-bg); }   /* the whole block, not only the cells without .wrap */
}

/* ---- Wix, the schedule and Etsy (S12) ----------------------------------------------------------------------- */

/* the hint on To approve: Wix orders approved on Wix but not paid yet */
.panel-waiting { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.panel-waiting h2 { color: inherit; }
.panel-waiting .hint, .panel-waiting small { color: inherit; opacity: .85; }
.panel-waiting small { margin-left: .3rem; }

/* Settings: a heading above each group (Wix, Schedule, Etsy connection) and the connections panel on top */
.settings-group { margin: 1.4rem 0 .1rem; padding-top: .9rem; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.settings-group + .hint { margin-top: 0; }
.settings textarea { font-size: .9rem; min-height: 5.5rem; }
.connections { margin-bottom: .8rem; }
.connections .kv dd small { display: block; }
.connections .runs { margin-top: .6rem; }

/* the Etsy screen */
.etsy-screen .kv dd small { display: block; }
.etsy-consent-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .6rem; }
.etsy-consent-line .plain { flex-basis: 100%; }
.legal summary small { margin-left: .2rem; font-weight: 400; }
.legal-text {
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; margin: .4rem 0; padding: .7rem; font: inherit; font-size: .9rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.etsy-blockers li { color: var(--warn-ink); }
.etsy-notice { margin: .6rem 0 0; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }

/* ---- shipping after Jaki's answers (S16) -------------------------------------------------------------------- */

/* the FedEx pickup e-mail Jaki sends for Ding: the text is shown as it will be copied, line breaks kept */
.pickup-body {
  white-space: pre-wrap; overflow-wrap: anywhere; margin: .4rem 0; padding: .7rem; font: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.panel-pickup .banner { margin: .5rem 0; }
.panel-pickup .btn, .panel-carrier .btn { width: auto; }
.panel-carrier p { margin: .3rem 0; }

/* a value on the package form that is shown but not typed (the paper of the invoice) */
.field-fixed .field-label { display: block; margin-bottom: .25rem; font-weight: 600; }
.field-fixed strong { display: block; min-height: 44px; padding: .6rem 0; overflow-wrap: anywhere; }

/* Settings: a setting with several fields (Ding's address, the pickup e-mail, the FedEx defaults) is one framed block */
.setting-object { margin-bottom: .85rem; }
.setting-object > .fields { margin-top: .2rem; }
.setting-object > .hint { display: block; margin-top: .6rem; }

/* ---- Finance (S13): the monthly overview ------------------------------------------------------------------------ */

.finance-tabs { margin-top: .2rem; }
/* the month picker: the list on top, the months next to it as buttons under it */
.finance-picker .field { margin-bottom: 0; }
.finance-picker .form-actions { margin-top: .6rem; }
.finance-picker .form-actions .btn { flex: 1 1 8rem; width: auto; }
/* the toggle of a cost category: pressed = the category does not count as operational */
.finance-cat-toggle { width: auto; }
.finance-cat-toggle[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.finance-cat-toggle[aria-pressed="true"]::before { content: "\2713\00a0"; }   /* a tick as well as the colour */
.finance-days, .finance-pieces { margin-top: .6rem; }
.finance-total { margin: .6rem 0 0; font-variant-numeric: tabular-nums; }
.finance-cost-form { margin: .2rem 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.finance-cost-form h3 { margin-top: .2rem; }
.finance-models th[scope="row"] { position: static; min-width: 10rem; }
.finance-note { margin: .2rem 0 0; text-align: center; }

/* the tabs on a phone: with ten tabs (the Finance tab came in S13) the equal columns were 37 px wide and the labels ran into each other, so each tab keeps
   a width it can be read in and the row scrolls sideways (board.js puts the open tab in view) */
@media (max-width: 719px) {
  .nav-list { grid-auto-columns: minmax(4.4rem, 1fr); overflow-x: auto; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { min-width: 0; }
}

/* S14: the Stones tab (eleven tabs now; on a phone the row above scrolls sideways) */
.stone-tabs { margin-top: .2rem; }
.stone-order h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .2rem; }
.stone-actions .hint { flex-basis: 100%; margin: 0; }
.stone-actions .btn { width: auto; }
.stone-exceptions .list { margin: .4rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.stone-share { margin-top: .8rem; }
.stone-forms h2 + form { margin-top: .4rem; }
.stone-forms form + h2 { margin-top: 1.2rem; }

/* S15: the Rules tab (the register, an entry, the source checks) and the Admin time tab */
.rules-tabs, .admin-tabs { margin-top: .2rem; }
.rules-notice { font-weight: 600; }
.rule-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .1rem; }
.rule-row { padding: .55rem 0; border-top: 1px solid var(--line); }
.rule-row:first-child { border-top: 0; }
.rule-area { color: var(--muted); font-size: .84rem; }
.rule-quote { margin: .5rem 0; padding: .5rem .8rem; border-left: 3px solid var(--line); background: var(--bg); overflow-wrap: anywhere; }
.rule-german dd { overflow-wrap: anywhere; }
.rule-ref { font-weight: 700; white-space: nowrap; }
.admin-reminder { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
.admin-reminder .btn { width: auto; }
.admin-tasks { margin-top: .4rem; }
.admin-task-off label { color: var(--muted); }
.admin-task-list { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .6rem; }
.admin-task-list > li { padding-top: .6rem; border-top: 1px solid var(--line); }
.admin-task-list > li:first-child { border-top: 0; padding-top: 0; }
label.check { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 500; }
label.check input[type="checkbox"] { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; flex: none; accent-color: var(--accent); }
.grid tr.row-total > * { font-weight: 700; }

/* S23: the Inquiries tab (the custom design form of the shop website) */
.inquiry-tabs { margin-top: .2rem; }
.inquiry-link { display: block; color: inherit; text-decoration: none; }
.inquiry-link:hover strong, .inquiry-link:focus-visible strong { text-decoration: underline; }
.inquiry-states .btn { width: auto; }
.shop-orders .form-actions .btn { width: auto; }

/* S24: apply a calculated price (the confirmation in #price-apply, the log of applied prices) */
.apply-slot:empty { display: none; }
.apply-panel > .banner { margin: .6rem 0; }
.apply-panel label.check { align-items: flex-start; margin-top: .4rem; font-weight: 600; }
.apply-grid td.pick { width: 2.8rem; }
.apply-grid td.pick input[type="checkbox"] { width: 1.3rem; height: 1.3rem; min-height: 0; accent-color: var(--accent); }
.apply-cell { white-space: normal; min-width: 7rem; }
.grid tr.row-undone > *, .grid tr.row-undone th[scope="row"] { color: var(--muted); }
.changes-grid td small { display: block; margin-top: .15rem; }
.changes-grid td:nth-child(9) { min-width: 13rem; }
.changes-grid td:nth-child(10) { min-width: 22rem; }
