.staff-page { padding-block: clamp(1rem, 4vw, 3.5rem) 4rem; }
.staff-page h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); margin: .14em 0 .18em; }
.staff-page h2 { font-size: clamp(1.55rem, 3vw, 2.18rem); margin: 1.5rem 0 .75rem; }
.staff-page h3 { font-size: 1.24rem; margin: 0; }
.staff-page .eyebrow { margin: 0; }
.staff-nav, .staff-actions, .staff-heading, .staff-control-bar, .staff-gift-top,
.staff-chart, .staff-account-form, .staff-list-row, .staff-pagination {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
}
.staff-nav { gap: .35rem clamp(1rem, 3vw, 1.65rem); border-bottom: 1px solid #e6ccd7; margin-bottom: 1.65rem; }
.staff-nav a, .staff-table a, .staff-list-row a, .staff-filters > a { color: #87214d; font-weight: 700; }
.staff-nav a { padding: .35rem 0 .65rem; }
.staff-heading, .staff-control-bar, .staff-gift-top, .staff-list-row { justify-content: space-between; }
.staff-heading { margin-bottom: 1.25rem; }
.staff-page .staff-actions { align-items: stretch; }
.staff-page .button { text-align: center; }
.staff-panel, .staff-auth { background: #fff; border: 1px solid #e9d2dd; border-radius: 1.1rem; padding: clamp(.9rem, 3vw, 1.3rem); min-width: 0; }
.staff-panel h2:first-child { margin-top: 0; }
.staff-auth { max-width: 32rem; margin: clamp(1.4rem, 6vw, 4rem) auto; padding: clamp(1.1rem, 5vw, 2rem); }
.staff-auth h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.staff-auth p { line-height: 1.5; }
.staff-auth code { overflow-wrap: anywhere; }
.staff-qr { display: block; width: 180px; height: 180px; border: 1px solid #e9d2dd; border-radius: .55rem; margin-bottom: .8rem; }
.staff-form { display: grid; gap: .85rem; margin-top: .9rem; }
.staff-form .button { justify-self: start; }
.staff-form label, .staff-filters label, .staff-account-form label { display: block; font-weight: 700; margin-bottom: .24rem; }
.staff-page :is(input:not([type="checkbox"]), select, textarea) { display: block; width: 100%; border: 1px solid #c8a9b8; background: #fff; color: #321329; border-radius: .5rem; padding: .65rem .72rem; font: inherit; }
.staff-page input[type="checkbox"] { margin-inline: 0 .35rem; accent-color: #145953; width: 1.05rem; height: 1.05rem; }
.staff-page :is(button, input, select, textarea, a, summary):focus-visible { outline: 3px solid #146e65; outline-offset: 3px; }
.staff-form .helptext, .staff-hint, .staff-page small { display: block; font-size: .83rem; color: #624a58; }
.staff-form .errorlist, .staff-auth [role="alert"] { color: #8a173d; margin: .15rem 0; }
.staff-qr, .staff-table, .staff-details { max-width: 100%; }
.staff-metrics, .staff-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin: 0 0 1rem; }
.staff-metrics > div { background: #f7e7ee; border: 1px solid #ecd1de; border-radius: .8rem; padding: .83rem 1rem; }
.staff-metrics dt, .staff-details dt { color: #624a58; font-weight: 700; font-size: .84rem; }
.staff-metrics dd, .staff-details dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.staff-metrics dd { font-size: 1.45rem; font-weight: 700; color: #4e1639; }
.staff-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-bottom: 1.2rem; }
.staff-filters .staff-search-filter { flex: 1 1 18rem; }
.staff-filters .staff-office-filter { flex: 0 1 11rem; }
.staff-filters .button { min-height: 2.75rem; }
.staff-table-wrap { overflow-x: auto; border: 1px solid #ead6e1; border-radius: .65rem; }
.staff-table { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .89rem; text-align: left; }
.staff-table th, .staff-table td { padding: .66rem .72rem; border-bottom: 1px solid #ead6e1; vertical-align: top; }
.staff-table th { background: #faf0f5; white-space: nowrap; color: #49263d; }
.staff-table tr:last-child td { border-bottom: 0; }
.staff-payment { max-width: 12rem; overflow-wrap: anywhere; }
.staff-status { display: inline-block; padding: .27rem .52rem; border-radius: 2rem; white-space: nowrap; background: #f8e5ed; color: #692647; font-size: .78rem; font-weight: 700; }
.staff-status-good { background: #d9f0e9; color: #19534d; }
.staff-chart { border-top: 1px solid #ead6e1; padding-top: .9rem; }
.staff-chart label { font-weight: 700; }
.staff-chart span { color: #624a58; font-size: .84rem; }
.staff-empty { padding: .6rem .3rem; color: #624a58; }
.staff-grid, .staff-gifts { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); align-items: start; gap: 1rem; }
.staff-control-bar { margin-bottom: 1rem; }
.staff-control-bar p, .staff-gift p { margin: .32rem 0 .63rem; }
.staff-gift summary { font-weight: 700; color: #87214d; cursor: pointer; }
.staff-list-row { padding: .75rem 0; border-bottom: 1px solid #ecd8e1; overflow-wrap: anywhere; }
.staff-list-row:last-child { border-bottom: 0; }
.staff-list-row strong { display: block; }
.staff-account-form { align-items: end; }
.staff-pagination { margin-top: .9rem; font-size: .87rem; }
@media (max-width: 690px) {
  .staff-grid, .staff-gifts { grid-template-columns: 1fr; }
  .staff-chart { align-items: flex-start; }
  .staff-filters .staff-office-filter { flex: 1 1 7rem; }
  .staff-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); gap: .35rem; }
  .staff-metrics > div { padding: .55rem; }
  .staff-metrics dt { font-size: .74rem; }
  .staff-metrics dd { font-size: clamp(.9rem, 4vw, 1.2rem); }
}
.staff-clear { margin: -.45rem 0 1rem; }
@media (max-width: 690px) {
  .staff-table-wrap:has(.staff-buyer-table) { border: 0; overflow-x: visible; }
  .staff-buyer-table, .staff-buyer-table tbody { display: block; min-width: 0; }
  .staff-buyer-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .staff-buyer-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #ead6e1; border-radius: .7rem; padding: .5rem; margin-bottom: .65rem; }
  .staff-buyer-table td { display: block; border: 0; padding: .35rem .45rem; overflow-wrap: anywhere; }
  .staff-buyer-table td:first-child { grid-column: 1 / -1; padding-bottom: .65rem; margin-bottom: .3rem; border-bottom: 1px solid #ead6e1; font-size: 1rem; }
  .staff-buyer-table td:not(:first-child)::before { content: attr(data-label); display: block; color: #624a58; font-size: .76rem; font-weight: 700; }
}
