.posting-summary-days button.posting-day-button {
  padding: 3px 0;
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  font: inherit;
  font-weight: 650;
  color: #184f88;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.posting-summary-days button.posting-day-button:hover { color: #103457; }
.posting-summary-days button.posting-day-button:focus-visible,
#posting-day-dialog button:focus-visible { outline: 2px solid #175aa5; outline-offset: 2px; }
#posting-day-dialog {
  width: min(46rem, calc(100% - 2rem));
  max-height: min(85vh, 48rem);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  color: var(--ui-ink, #162237);
  background: #fff;
}
#posting-day-dialog[open] { display: flex; flex-direction: column; }
.posting-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ui-line, #dce4ec);
}
.posting-day-head h2 { margin: 0; font-size: 1.2rem; line-height: 1.35; }
.posting-day-actions { display: flex; flex-wrap: wrap; align-items: start; gap: 6px; }
.posting-day-head p { margin: 4px 0 0; color: var(--ui-muted, #53627a); }
.posting-day-body { overflow: auto; overscroll-behavior: contain; padding: 12px 20px 18px; }
#posting-day-dialog .posting-day-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.posting-day-table th, .posting-day-table td {
  text-align: left;
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 9px 6px;
  border-bottom: 1px solid var(--ui-line, #dce4ec);
}
.posting-day-table th:first-child { width: 17%; }
.posting-day-table th { color: var(--ui-muted, #53627a); font-size: .84rem; }
.posting-day-table td span { display: block; }
.posting-day-pending h3 { margin: 12px 0 6px; font-size: 1rem; }
.posting-day-pending ul { margin: 0; padding-inline-start: 1.25rem; overflow-wrap: anywhere; }
.posting-pick-section {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-line, #dce4ec);
}
.posting-pick-section > summary, .posting-packages-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}
.posting-pick-section > summary { cursor: pointer; padding-block: 4px; }
.posting-pick-section > summary:focus-visible { outline: 2px solid #175aa5; outline-offset: 2px; }
.posting-pick-order { margin-top: 10px; }
.posting-pick-order h4 {
  margin: 0;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.posting-pick-section p { margin: 6px 0; color: var(--ui-muted, #53627a); }
.posting-pick-lines { list-style: none; margin: 4px 0 0; padding: 0; }
.posting-pick-lines li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 10px;
  align-items: baseline;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.posting-pick-lines li > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.posting-pick-section[data-day-sku-totals] li { border-bottom: 1px solid var(--ui-line, #dce4ec); }
@media (max-width: 560px) {
  #posting-day-dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
  .posting-day-head, .posting-day-body { padding: 14px 12px; }
  .posting-day-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .posting-day-body { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .posting-day-head { flex-wrap: wrap; }
}

#posting-day-print { display: none; }
.posting-scope {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  margin-block: 4px;
}
.posting-scope button {
  padding: 6px 10px;
  border: 1px solid var(--ui-line, #ccd7e2);
  border-radius: 6px;
  background: #fff;
  color: var(--ui-ink, #162237);
  cursor: pointer;
}
.posting-scope button[aria-pressed="true"] {
  border-color: #426b93;
  background: #e9f2fc;
  color: #16436d;
  font-weight: 650;
}
.posting-scope button:focus-visible { outline: 2px solid #175aa5; outline-offset: 2px; }
.posting-coverage-warning, .posting-day-head .posting-coverage-warning {
  margin-block: 6px;
  color: #79490b;
  overflow-wrap: anywhere;
}
@media print {
  body.posting-day-printing {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  body.posting-day-printing > #print-root,
  body.posting-day-printing > #posting-day-dialog,
  body.posting-day-printing > #posting-day-dialog::backdrop { display: none !important; }
  body.posting-day-printing > #posting-day-print {
    display: block !important;
    page: auto;
    margin: 0;
    padding: 0;
    width: auto;
    color: #111;
    font: 10pt/1.35 Arial, sans-serif;
  }
  #posting-day-print h1 { margin: 0 0 2mm; font-size: 17pt; }
  #posting-day-print h2 { margin: 0 0 2mm; font-size: 13pt; }
  #posting-day-print h4 { margin: 0; font-size: 10pt; }
  #posting-day-print :is(header, h2, h4) { break-after: avoid; }
  #posting-day-print header { margin: 0 0 5mm; border-bottom: 1pt solid #555; }
  #posting-day-print p { margin: 1mm 0 2mm; color: #222; }
  #posting-day-print .posting-pick-section { margin: 0 0 4mm; padding: 0; border: 0; }
  #posting-day-print .posting-pick-order { margin: 2mm 0 3mm; break-inside: avoid; }
  #posting-day-print .posting-pick-lines { margin: 0; }
  #posting-day-print .posting-pick-lines li { padding: 1mm 0; border-bottom: .5pt solid #ccc; break-inside: avoid; }
}
