:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20251f;
  background: #f4f2e9;
}

* { box-sizing: border-box; }
body { margin: 0; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #24321f;
  color: #fff;
}

.site-header strong,
.site-header span { display: block; }
.site-header span { color: #d3ddcb; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions a { color: #fff; font-weight: 700; text-decoration: none; }
.header-actions a:hover, .header-actions a:focus-visible { text-decoration: underline; }

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 2rem auto 4rem;
}

.hero { margin: 2rem 0; }
.hero h1, .card h1, .card h2 { margin-top: .2rem; }
.eyebrow {
  margin: 0;
  color: #607058;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.muted { color: #687065; }
.card {
  margin: 1rem 0;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #d9d6c8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(32, 37, 31, .07);
}
.compact-card { padding: 1rem 1.25rem; }
.form-card { width: min(680px, 100%); }
.alert-card { border-color: #d7a87a; background: #fff8ef; }

.login-card { width: min(440px, 100%); margin: 8vh auto; }
.document-header { display: flex; justify-content: space-between; gap: 1rem; }
.delivery-date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.delivery-date-card {
  padding: 1.35rem;
  border: 2px solid #cfd8c7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(32, 37, 31, .07);
}
.delivery-date-card h2 { margin: .2rem 0 .8rem; font-size: 1.65rem; }
.delivery-date-card .button-link { width: 100%; margin-top: .35rem; text-align: center; }
.delivery-date-card.is-closed { border-color: #d9d6c8; background: #f7f6f1; }
.statistics-entry { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.statistics-entry h2 { margin: .2rem 0; }
.statistics-entry p:last-child { margin-bottom: 0; }
.statistics-entry .button-link { white-space: nowrap; }
.statistics-filter { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
.statistics-filter > div { display: grid; gap: .3rem; }
.statistics-filter label { font-weight: 700; }
.statistics-filter input[type="date"] { width: 12rem; }
.statistics-filter .statistics-checkbox { display: flex; align-items: center; gap: .5rem; min-height: 2.7rem; }
.statistics-filter .helptext { flex-basis: 100%; margin: 0; }
.statistics-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.statistics-kpis .card { margin: 0; display: grid; gap: .4rem; }
.statistics-kpis strong { font-size: 1.5rem; line-height: 1.2; }
.statistics-kpis span { color: #526157; font-size: .92rem; }
.statistics-warning { border-color: #e0b25a; background: #fff6dc; }
.statistics-warning-critical { border-color: #b45348; background: #fff0ec; }
.statistics-warning h2 { margin-bottom: .3rem; }
.statistics-warning p, .statistics-explainer p { margin-bottom: 0; }
.statistics-explainer { background: #eef4f3; }
.statistics-occasion h2 { margin-bottom: .25rem; }
.statistics-occasion p { margin: .25rem 0 .75rem; }
.statistics-occasion > form { display: flex; align-items: end; gap: .7rem; flex-wrap: wrap; }
.statistics-occasion > form label { display: grid; gap: .25rem; font-weight: 700; }
.statistics-occasion input[type="date"] { width: 12rem; }
.statistics-occasion input[type="text"] { width: min(22rem, 100%); }
.statistics-occasion-list { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #d9d6c8; }
.statistics-occasion-list > div { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .4rem 0; }
.statistics-occasion-list button { padding: .4rem .65rem; }
.statistics-section { margin-top: 2rem; }
.statistics-day-list { display: grid; gap: .7rem; }
.statistics-day { border: 1px solid #d9d6c8; border-radius: 14px; background: #fff; overflow: hidden; }
.statistics-day summary { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(250px, 1.4fr); gap: .5rem 1rem; align-items: center; padding: 1rem 1.2rem; cursor: pointer; }
.statistics-day summary:hover { background: #f7f9f5; }
.statistics-day summary:focus-visible { outline: 3px solid #496b83; outline-offset: -3px; }
.statistics-day-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.statistics-day-values { display: flex; gap: .45rem 1rem; justify-content: flex-end; flex-wrap: wrap; }
.statistics-day-values b { min-width: 4.3rem; text-align: right; color: #243e55; }
.statistics-tag { display: inline-block; padding: .18rem .5rem; border-radius: 1rem; background: #e9e2f3; color: #4b3868; font-size: .75rem; font-weight: 800; }
.statistics-meter { grid-column: 1 / -1; height: .45rem; border-radius: 1rem; background: #e5eae5; overflow: hidden; }
.statistics-meter > span { display: block; height: 100%; background: #547b91; }
.statistics-meter.is-warning > span { background: #bb6b38; }
.statistics-status { grid-column: 1 / -1; width: fit-content; font-size: .8rem; font-weight: 800; }
.statistics-status.warning { color: #925215; }
.statistics-status.critical { color: #a23b32; }
.statistics-day-detail { border-top: 1px solid #e6e7df; padding: .6rem 1.2rem 1.2rem; }
.statistics-day-detail table { font-size: .9rem; }
@media (max-width: 700px) {
  .site-header { align-items: flex-start; gap: .8rem; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; gap: .55rem .8rem; }
  .statistics-entry { display: block; }
  .statistics-entry .button-link { margin-top: .8rem; }
  .statistics-day summary { grid-template-columns: 1fr; }
  .statistics-day-values { justify-content: flex-start; }
  .statistics-day-values b { margin-left: auto; }
}
.date-status { font-weight: 800; }
.status-open { color: #31551f; }
.status-closed { color: #687065; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid #ebe8df; text-align: left; }
th { color: #607058; font-size: .8rem; text-transform: uppercase; }

input {
  width: 5rem;
  padding: .55rem;
  border: 1px solid #c7c9c2;
  border-radius: 8px;
}
input[type="file"] { width: 100%; padding: .8rem; background: #f8f7f2; }
input[type="checkbox"] { width: auto; }
select { padding: .55rem; border: 1px solid #c7c9c2; border-radius: 8px; }
.helptext { color: #687065; font-size: .88rem; }
.errorlist { color: #9c2f23; font-weight: 700; }

button {
  padding: .7rem 1rem;
  border: 0;
  border-radius: 9px;
  background: #5f7f33;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button.secondary { background: transparent; border: 1px solid #8da084; }
button.secondary-dark { background: #53604e; }
.danger-button { background: #a23b32; }
.icon-button {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  place-items: center;
  border-radius: 8px;
}
.text-link { color: #4b6b2d; font-weight: 700; text-decoration: none; }
.button-link {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: 9px;
  background: #5f7f33;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.secondary-link { background: #53604e; }
.actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1rem; }
.actions-left { justify-content: flex-start; flex-wrap: wrap; }
.actions form { display: inline-flex; }
.row-actions { display: flex; align-items: center; gap: .65rem; }
.row-actions form { margin: 0; }
.search-form {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}
.search-form > div {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.search-form input { min-width: min(420px, 100%); }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  padding: .75rem 0;
}
.pagination a { color: #4b6b2d; font-weight: 700; text-decoration: none; }
.pagination-pages { display: flex; gap: .35rem; }
.pagination-pages a {
  display: grid;
  min-width: 2.15rem;
  min-height: 2.15rem;
  padding: .35rem;
  place-items: center;
  border: 1px solid #cfd8c7;
  border-radius: 8px;
}
.pagination a.is-current { background: #5f7f33; color: #fff; }
.pagination a.is-disabled {
  color: #a4a79f;
  pointer-events: none;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.table-toolbar a {
  padding: .45rem .7rem;
  border: 1px solid #cfd8c7;
  border-radius: 8px;
  color: #4b6b2d;
  font-weight: 700;
  text-decoration: none;
}
.table-toolbar a.is-active { background: #5f7f33; color: #fff; }
.category-row th {
  padding: .7rem .75rem;
  border-top: 2px solid #cfd8c7;
  background: #eef1e9;
  color: #40542e;
  font-size: .82rem;
  letter-spacing: .03em;
  text-align: left;
  text-transform: uppercase;
}
.quantity-hint {
  display: block;
  margin-top: .25rem;
  color: #607058;
  font-size: .7rem;
  line-height: 1.15;
}
.mobile-article-number,
.mobile-field-label { display: none; }
.article-name-cell strong { font-weight: inherit; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.return-counter {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #cfd8c7;
  border-radius: 16px;
  background: #e5eadf;
}
.return-counter > div {
  padding: .8rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.return-counter span {
  display: block;
  color: #607058;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.return-counter strong {
  display: block;
  margin-top: .3rem;
  font-size: 1.45rem;
}
.return-counter p {
  grid-column: 1 / -1;
  margin: 0;
  color: #53604e;
}
.return-counter .is-over {
  background: #f8ddc4;
  color: #743a14;
}
.return-counter .is-over span { color: #743a14; }
.delivered-cell strong { display: block; text-align: center; }
.overdelivery-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  margin-top: .3rem;
  color: #4b6b2d;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.overdelivery-field input {
  width: 3.4rem;
  padding: .4rem .25rem;
  text-align: center;
}
.replacement-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .3rem;
  margin-top: .35rem;
  color: #4b6b2d;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.15;
}
.replacement-toggle input { width: auto; }
.replacement-fields {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(16rem, 2fr) 7rem;
  align-items: center;
  gap: .65rem;
}
.replacement-fields label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
}
.additional-returns {
  display: grid;
  gap: .8rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid #dfe3da;
  border-radius: 12px;
  background: #f6f7f3;
}
.additional-returns h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.additional-returns p { margin: 0; }
.additional-return-row {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) 7rem auto auto;
  align-items: end;
  gap: .65rem;
  padding: .7rem 0;
  border-top: 1px solid #dfe3da;
}
.additional-return-row label { display: grid; gap: .25rem; font-weight: 700; }
.additional-return-accepted { align-self: center; white-space: nowrap; }
.danger-quiet {
  background: #fff;
  color: #8a3926;
  border-color: #b86752;
}
.stat-card {
  padding: 1.2rem;
  border-radius: 14px;
  background: #e5eadf;
}
.stat-card span { display: block; color: #607058; font-size: .85rem; }
.stat-card strong { display: block; margin-top: .25rem; font-size: 1.8rem; }
.status {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #e5eadf;
  font-size: .8rem;
  font-weight: 700;
}
.status-error, .status-review { background: #f8ddc4; color: #743a14; }
.status-ready, .status-parsed { background: #dcebd2; color: #31551f; }
.status-submitted { background: #dcebd2; color: #31551f; }
.status-draft { background: #fff0c2; color: #705400; }
.status-none { background: #e8e9e5; color: #4f554d; }
.messages {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  background: #24321f;
  color: #fff;
  box-shadow: 0 12px 35px rgba(32, 37, 31, .2);
}

form p { display: grid; gap: .35rem; }
form input { width: 100%; }

@media (max-width: 700px) {
  .site-header { padding: .65rem .75rem; }
  .site-header span { display: none; }
  .header-actions { gap: .5rem; }
  .header-actions a { font-size: .85rem; }
  .header-actions button { padding: .5rem .7rem; }
  main { width: min(100% - .5rem, 1100px); margin: .75rem auto 3rem; }
  .hero { margin: .75rem .25rem 1rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { margin: .45rem 0; font-size: .9rem; }
  .card { border-radius: 11px; padding: .6rem; }
  .delivery-date-grid { grid-template-columns: 1fr; gap: .65rem; }
  .delivery-date-card { padding: 1rem; border-radius: 12px; }
  .delivery-date-card h2 { font-size: 1.45rem; }
  th, td { padding: .5rem .35rem; }
  .return-counter {
    position: sticky;
    top: .25rem;
    z-index: 5;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem;
    margin: .5rem 0;
    padding: .45rem;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(32, 37, 31, .12);
  }
  .return-counter > div { padding: .45rem; border-radius: 8px; }
  .return-counter span { font-size: .58rem; line-height: 1.15; }
  .return-counter strong { margin-top: .2rem; font-size: .95rem; }
  .return-counter p {
    grid-column: 1 / -1;
    font-size: .76rem;
    line-height: 1.25;
  }
  .table-toolbar {
    gap: .35rem;
    margin: .1rem 0 .65rem;
    font-size: .85rem;
  }
  .table-toolbar a { padding: .45rem .6rem; }
  .return-table,
  .return-table tbody { display: block; }
  .return-table thead { display: none; }
  .return-table .category-row {
    display: block;
    margin: .9rem 0 .35rem;
  }
  .return-table .category-row th {
    display: block;
    padding: .55rem .65rem;
    border: 0;
    border-radius: 8px;
  }
  .return-table .return-line-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "article article accepted"
      "delivered shortage return";
    gap: .45rem;
    margin-top: .65rem;
    padding: .75rem .55rem;
    border: 1px solid #dfe3da;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(32, 37, 31, .05);
  }
  .return-table .return-line-row:first-child { margin-top: 0; }
  .return-table .return-line-row > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }
  .return-table .return-line-row > .article-number-column,
  .return-table .return-line-row > .price-column { display: none; }
  .return-table .article-name-cell {
    grid-area: article;
    align-self: center;
    padding-right: .25rem;
  }
  .article-name-cell strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.2;
  }
  .mobile-article-number,
  .mobile-field-label {
    display: block;
    color: #607058;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.15;
    text-transform: uppercase;
  }
  .mobile-article-number { margin-bottom: .15rem; }
  .return-table .delivered-cell { grid-area: delivered; }
  .return-table .shortage-cell { grid-area: shortage; }
  .return-table .return-input-cell { grid-area: return; }
  .return-table .accepted-cell {
    grid-area: accepted;
    align-self: center;
    color: #31551f;
    font-size: 1rem;
    font-weight: 800;
    text-align: right;
  }
  .return-table .accepted-cell .mobile-field-label { margin-bottom: .2rem; }
  .return-table .delivered-cell,
  .return-table .shortage-cell,
  .return-table .return-input-cell {
    padding: .5rem .35rem;
    border-radius: 9px;
    background: #f6f7f3;
    text-align: center;
  }
  .return-table .delivered-cell > strong {
    margin: .35rem 0 .1rem;
    font-size: 1.05rem;
  }
  .return-table input {
    width: 3.6rem;
    min-height: 2.75rem;
    min-width: 0;
    padding: .4rem .3rem;
    font-size: 1rem;
    text-align: center;
  }
  .return-table .shortage-cell > input,
  .return-table .return-input-cell > input { margin-top: .35rem; }
  .return-table .overdelivery-field {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    margin-top: .2rem;
    font-size: .62rem;
    text-align: center;
  }
  .return-table .overdelivery-field input { width: 3.6rem; }
  .replacement-toggle {
    grid-template-columns: auto 1fr;
    justify-items: center;
    width: max-content;
    max-width: 100%;
    margin: .4rem auto 0;
    font-size: .58rem;
    text-align: left;
  }
  .replacement-toggle input { width: 1.35rem; min-height: 1.35rem; }
  .replacement-fields {
    grid-template-columns: 1fr 5.5rem;
    gap: .45rem;
  }
  .replacement-fields strong { grid-column: 1 / -1; }
  .replacement-fields > input { width: 100%; text-align: left; }
  .replacement-fields label {
    grid-template-columns: 1fr;
    gap: .2rem;
    text-align: center;
  }
  .replacement-fields label input { width: 100%; text-align: center; }
  .additional-returns { padding: .75rem; }
  .additional-return-row {
    grid-template-columns: 1fr 5.5rem;
    gap: .5rem;
  }
  .additional-return-row > label:first-child { grid-column: 1 / -1; }
  .additional-return-accepted { font-size: .8rem; white-space: normal; }
  .additional-return-row .danger-quiet { padding: .65rem .45rem; }
  [data-return-form] .table-scroll { overflow-x: visible; }
  [data-return-form] .actions {
    position: static;
    margin: .6rem 0 0;
    padding: .45rem;
    border-radius: 10px;
    background: #f6f7f3;
    box-shadow: none;
  }
  [data-return-form] .actions button { flex: 1; padding: .7rem .4rem; }
  .search-form > div { flex-wrap: wrap; }
  .search-form input { min-width: 100%; }
  .management-table { min-width: 720px; }
  .pagination { gap: .25rem; font-size: .72rem; }
  .pagination-pages { gap: .2rem; }
  .pagination-pages a { min-width: 1.8rem; min-height: 1.8rem; }
}

/* Keep the everyday return entry distinct from delivery corrections. */
.return-entry-guide { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem; }
.return-entry-guide > div { padding: .85rem 1rem; border-radius: 10px; border-left: 4px solid; }
.return-entry-guide strong, .return-entry-guide span { display: block; }
.return-entry-guide span { margin-top: .3rem; font-size: .88rem; line-height: 1.45; }
.return-guide { color: #184c72; background: #edf5fc; border-color: #3176ab; }
.shortage-guide { color: #7b4310; background: #fff5e8; border-color: #b96b19; }
.return-counter { background: #eaf2f9; border-color: #cadbe8; }
.return-counter span, .return-counter p { color: #365a76; }
.return-table .return-heading { color: #184c72; background: #edf5fc; }
.return-table .return-input-cell { background: #edf5fc; }
.return-table .return-input-cell > input { border: 2px solid #6796bc; min-width: 4.5rem; }
.return-table .return-input-cell .mobile-field-label { color: #184c72; }
.return-table .shortage-heading { color: #7b4310; }
.return-table .shortage-cell { width: 15rem; vertical-align: top; }
.shortage-details { border: 1px solid #d4aa7b; border-radius: 9px; background: #fffaf3; color: #7b4310; text-align: left; }
.shortage-details summary { padding: .7rem .65rem; min-height: 44px; cursor: pointer; font-size: .85rem; font-weight: 750; }
.shortage-details summary::marker { color: #a65913; }
.shortage-details summary small { display: block; margin-top: .25rem; font-size: .78rem; }
.shortage-details summary small:empty { display: none; }
.shortage-details[open] { background: #fff3e1; }
.shortage-details[open] summary { border-bottom: 1px solid #e3c59e; }
.shortage-content { padding: .7rem; }
.shortage-explanation { display: block; margin: 0 0 .7rem; font-size: .78rem; line-height: 1.45; }
.shortage-quantity-label { display: block; margin-bottom: .3rem; font-size: .78rem; font-weight: 700; }
.shortage-details .replacement-toggle { color: #7b4310; font-size: .78rem; line-height: 1.35; margin-top: .65rem; }
.shortage-details input { accent-color: #9b5817; }
.shortage-details .replacement-fields { grid-template-columns: minmax(0, 1fr) 4.5rem; margin-top: .8rem; border-top: 1px solid #e3c59e; padding-top: .7rem; gap: .5rem; font-size: .78rem; }
.shortage-details .replacement-fields[hidden] { display: none; }
.shortage-details .replacement-fields > strong { grid-column: 1 / -1; }
.shortage-details .replacement-fields > input { grid-column: 1 / -1; width: 100%; min-width: 0; }
.shortage-details .replacement-fields label { grid-column: 1 / -1; grid-template-columns: 1fr 4.5rem; text-align: left; }
.shortage-details summary:focus-visible, [data-return-form] input:focus-visible { outline: 3px solid #215c87; outline-offset: 3px; }

@media (max-width: 700px) {
  .return-entry-guide { grid-template-columns: 1fr; gap: .5rem; margin-bottom: .9rem; }
  .return-entry-guide > div { padding: .65rem .75rem; font-size: .88rem; }
  .return-entry-guide span { font-size: .8rem; }
  .return-table .return-line-row { grid-template-areas: "article article accepted" "delivered return return" "shortage shortage shortage"; }
  .return-table .return-line-row > .shortage-cell { width: auto; background: transparent; padding: 0; text-align: left; }
  .return-table .return-input-cell { background: #edf5fc; }
  .return-table .return-input-cell > input { width: min(100%, 8rem); }
  .return-table .shortage-content > input { width: 100%; text-align: left; }
  .shortage-details summary { padding: .7rem; }
  .shortage-details .replacement-toggle { margin-left: 0; font-size: .8rem; }
  .shortage-details .replacement-fields > input { font-size: 1rem; }
}
.return-counter .return-warning {
  padding: .75rem 1rem;
  border: 1px solid #d7a87a;
  border-radius: 10px;
  background: #fff3df;
  color: #763f17;
  font-weight: 800;
}

.staff-action { padding: 1.25rem 0; border-top: 1px solid var(--border, #ddd); }
.staff-action.alert-card { padding: 1.25rem; margin: 1rem 0; }
.notification-status { font-size: .9rem; }
.history-metadata { margin: .75rem 0 1.5rem; }
.history-products td { vertical-align: top; }
.history-products th:first-child { min-width: 15rem; }

/* Customer statistics in the employee area. */
.staff-statistics-overview h2 { margin-bottom: .25rem; }
.staff-statistics-overview > .helptext { margin-top: .25rem; }
.staff-statistics-table th,
.staff-statistics-table td { vertical-align: top; }
.staff-statistics-table tbody th { min-width: 13rem; font-size: .95rem; text-transform: none; color: #20251f; }
.staff-statistics-table td:last-child { white-space: nowrap; }
.staff-statistics-customer-number { display: inline-block; color: #526157; font-weight: 800; margin-right: .3rem; }
.staff-statistics-badge { display: inline-block; padding: .22rem .55rem; border-radius: 999px; background: #e5eadf; color: #31551f; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.staff-statistics-badge.needs-review { background: #fff0dc; color: #8a4619; }
.staff-statistics-reminder-count { display: block; margin-top: .35rem; color: #526157; font-size: .8rem; line-height: 1.35; }
.staff-statistics-reminder p { margin-bottom: 0; }
