/* Staff wireframe structure; shared brand-book type, colors and controls. */
.staff-workspace { background: var(--surface); font-size: 1rem; line-height: 1.5; }
.staff-header { min-height: 79px; padding: 14px 40px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.staff-brand, .staff-session, .staff-sign-out, .staff-back { display: flex; align-items: center; gap: 12px; }
.staff-brand { flex-wrap: wrap; }
.staff-header .brand-logo-dark { display: none; }
.staff-session { gap: 20px; }
.staff-sign-out { border: 0; background: none; color: var(--link-color); font: inherit; cursor: pointer; min-height: 44px; }
.staff-main { padding: 32px 40px 56px; width: 100%; max-width: 1600px; margin: 0 auto; }
.staff-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.staff-workspace h1 { margin: 0; }
.staff-workspace h2 { font-size: 1.25rem; line-height: 1.4; margin: 0 0 12px; }
.staff-heading p { color: var(--color-slate); margin: 4px 0 0; }
.staff-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--surface-tint); color: var(--text-color); font-size: .8125rem; line-height: 1.4; font-weight: 500; }
.staff-badge-brand { background: var(--action-background); color: var(--color-white); }
.staff-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.staff-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-chip { position: relative; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-size: .875rem; }
.staff-chip[aria-current] { background: var(--action-background); color: var(--color-white); border-color: var(--action-background); }
.staff-notification-count { position: absolute; top: -7px; right: -5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border: 2px solid var(--surface); border-radius: 999px; background: var(--color-error); color: var(--surface); font-size: .6875rem; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
.staff-order-list { border: 1px solid var(--color-border); border-radius: 10px; overflow: hidden; }
.staff-table-head, .staff-order-row { display: grid; grid-template-columns: .8fr 1.1fr 1.4fr 1.5fr 1fr .7fr 1fr 1fr; align-items: center; gap: 12px; padding: 14px 20px; }
.staff-table-head { background: var(--surface-tint); font-size: .8125rem; color: var(--color-slate); }
.staff-order-row { border-top: 1px solid var(--color-border); text-decoration: none; color: inherit; font-size: .875rem; overflow-wrap: anywhere; }
.staff-order-row:hover { background: var(--surface-tint); }
.staff-order-row time, .staff-small { font-size: .875rem; color: var(--color-slate); }
.staff-empty { padding: 40px 20px; text-align: center; }
.staff-pagination { display: flex; gap: 20px; align-items: center; margin: 16px 0; }
.staff-card, .staff-auth-card { padding: 20px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--surface); }
.staff-login { background: var(--surface-tint); }
.staff-login .staff-header { background: var(--surface); }
.staff-login .staff-main { padding-top: 96px; }
.staff-auth-card { max-width: 480px; margin: auto; padding: 28px; border-radius: 16px; }
.staff-auth-card > p { color: var(--color-slate); }
.staff-auth-card .primary-link { width: 100%; }
.staff-device { display: flex; gap: 10px; align-items: center; background: var(--surface-tint); border-radius: 10px; padding: 12px 14px; margin: 16px 0; font-size: .875rem; }
.staff-message { padding: 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--surface-tint); }
.staff-back { font-size: .875rem; margin-bottom: 12px; width: fit-content; }
.staff-bundle-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
.staff-item { margin-bottom: 32px; }
.staff-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.staff-photo h3 { font: inherit; text-transform: uppercase; font-size: .8125rem; margin: 0 0 8px; }
.staff-photo > img { width: 100%; height: 300px; object-fit: contain; background: var(--surface-tint); border-radius: 10px; }
.staff-photo > a { display: flex; align-items: center; gap: 6px; font-size: .875rem; margin-top: 8px; }
.staff-settings { margin: 0; }
.staff-settings > div { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: .875rem; }
.staff-settings dt { color: var(--color-slate); }
.staff-settings dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.staff-order-aside { display: flex; flex-direction: column; gap: 20px; }
.staff-handoff { background: var(--surface-tint); }
.staff-handoff li { padding: 6px 0; }
.staff-handoff :is(.primary-link, .secondary-link) { width: 100%; margin-top: 8px; }
.staff-access { margin-top: 32px; }
.staff-access summary { cursor: pointer; font-weight: 500; }
.staff-access-content { display: grid; gap: 24px; margin-top: 20px; }
.staff-access-content > form .primary-link { width: 100%; }
.staff-role-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-role-choice { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; width: 100%; height: 100%; min-height: 140px; padding: 16px; text-align: center; white-space: normal; }
.staff-role-choice span { font-size: .875rem; font-weight: 400; }
.staff-members, .staff-passkeys { list-style: none; padding: 0; margin: 0; }
.staff-member { display: grid; gap: 14px; border-top: 1px solid var(--color-border); padding: 20px 0; }
.staff-member:last-child { padding-bottom: 0; }
.staff-member-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.staff-member-heading > div { min-width: 0; overflow-wrap: anywhere; }
.staff-member-email { display: block; font-size: .875rem; color: var(--color-slate); }
.staff-passkeys { display: grid; gap: 8px; font-size: .875rem; }
.staff-passkeys li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.staff-passkeys time { color: var(--color-slate); }
.staff-member p { margin: 0; }
.staff-member .ghost-link { padding: 0; min-height: 44px; }
:root[data-theme="dark"] .staff-header .brand-logo-light { display: none; }
:root[data-theme="dark"] .staff-header .brand-logo-dark { display: block; }
.staff-workspace img[src$=".svg"] { mix-blend-mode: multiply; }
:root[data-theme="dark"] .staff-workspace img[src$=".svg"] { filter: grayscale(1) invert(1); mix-blend-mode: screen; }
@media (max-width: 1000px) {
  .staff-table-head { display: none; }
  .staff-order-list { border: 0; overflow: visible; }
  .staff-order-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; border: 1px solid var(--color-border); border-radius: 10px; margin-bottom: 16px; background: var(--surface); }
  .staff-order-row .staff-items { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .staff-workspace { background: var(--surface-tint); }
  .staff-header { padding: 12px 16px; background: var(--surface); gap: 8px; }
  .staff-brand { gap: 8px; flex-wrap: nowrap; }
  .staff-brand img { width: 130px; height: auto; }
  .staff-desktop { display: none; }
  .staff-main { padding: 24px 16px 48px; }
  .staff-heading { flex-wrap: wrap; }
  .staff-bundle-grid, .staff-photo-grid { grid-template-columns: minmax(0, 1fr); }
  .staff-designs, .staff-item { display: contents; }
  .staff-order-aside { grid-row: 3; }
  .staff-photo > img { height: 220px; }
  .staff-login .staff-main { padding-top: 32px; }
  .staff-auth-card { padding: 24px; }
}

.staff-workspace .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.staff-settings-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }

.staff-header { position: relative; flex-wrap: wrap; }
.staff-header .staff-access { position: static; margin: 0; padding: 0; border: 0; }
.staff-header .staff-access > summary { padding: 10px; }
.staff-header .staff-access[open] { position: absolute; z-index: 10; right: 16px; top: 16px; max-width: calc(100vw - 32px); width: 620px; padding: 20px; border: 1px solid var(--color-border); box-shadow: 0 8px 24px rgb(0 0 0 / 15%); max-height: 80vh; overflow-y: auto; }
.staff-pairing-qr { display: block; width: min(100%, 256px); height: auto; margin: 20px auto; background: white; mix-blend-mode: normal; }
.staff-code-form { display: grid; gap: 12px; }
.staff-verification-code { font-size: 2.5rem; letter-spacing: .2em; font-variant-numeric: tabular-nums; text-align: center; }

.staff-passkey-form { display: grid; gap: 1rem; }
.staff-name-field { display: grid; gap: .375rem; }
.staff-passkey-form .field-error { margin: 0; }
.staff-passkey-form .field-error:empty { display: none; }
.staff-payment-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.staff-payment-totals span, .staff-payment-totals strong { display: block; }
.staff-payment-totals span { color: var(--color-slate); font-size: .875rem; }
.staff-payment-totals strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.staff-payment-form, .staff-payment-form > div, .staff-payment-methods > div:not([hidden]) { display: grid; gap: 8px; }
.staff-payment-form { gap: 20px; margin-top: 20px; }
@media (min-width: 501px) {
  .staff-payment-methods:has([data-staff-payment-target="brandField"]:not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.staff-payment-methods .form-control { width: 100%; }
.staff-payment-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.staff-payment-choices legend { font-weight: 500; }
.staff-payment-choices p { margin: 4px 0 12px; }
.staff-payment-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-payment-choices label { display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 14px; border: 1px solid var(--color-border); border-radius: var(--radius-control); cursor: pointer; text-align: center; }
.staff-payment-choices label:only-child { grid-column: 1 / -1; }
.staff-payment-choices label:hover { background: var(--surface-tint); }
.staff-payment-choices label:has(input:checked) { border-color: var(--action-background); background: var(--action-background); color: var(--color-white); }
.staff-payment-choices label:focus-within { outline: 2px solid var(--link-color); outline-offset: 3px; }
.staff-payment-section { margin-bottom: 24px; }
.staff-payment-list { list-style: none; padding: 0; margin: 0; }
.staff-payment-list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--color-border); overflow-wrap: anywhere; }
.staff-payment-list li:last-child { border-bottom: 0; }
.staff-payment-list span { color: var(--color-slate); font-size: .875rem; }
.staff-payment-search { align-items: flex-end; }
.staff-payment-search > div { display: grid; gap: 8px; flex: 0 1 520px; }
.staff-checkout-row { display: grid; grid-template-columns: minmax(100px, 1fr) repeat(2, minmax(0, 1fr)) auto; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--surface); color: var(--text-color); text-decoration: none; }
.staff-checkout-row:hover { background: var(--surface-tint); border-color: var(--link-color); }
.staff-checkout-row:focus-visible { outline: 2px solid var(--link-color); outline-offset: 3px; }
.staff-checkout-row .staff-checkout-amount { display: grid; gap: 4px; }
.staff-checkout-identity { display: grid; gap: 4px; min-width: 0; }
.staff-checkout-identity small { color: var(--color-slate); }
.staff-checkout-amount strong { color: var(--text-color); font-weight: 500; }
@media (max-width: 600px) {
  .staff-checkout-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; }
  .staff-checkout-row > .staff-checkout-identity { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 500px) { .staff-payment-totals { grid-template-columns: minmax(0, 1fr); } }

/* One order list, with Payment and Production detail tabs. */
.staff-orders-index, .staff-payment-detail { max-width: 1200px; margin-inline: auto; }
.staff-view-tabs { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--color-border); margin: 0 0 24px; }
.staff-view-tabs a { padding: 12px 20px; text-decoration: none; border-bottom: 3px solid transparent; color: var(--color-slate); }
.staff-view-tabs a[aria-current] { border-color: var(--link-color); color: var(--link-color); font-weight: 500; }
.staff-orders-index > .staff-filters { margin-bottom: 20px; }
.staff-unified-orders :is(.staff-table-head, .staff-order-row) { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
.staff-unified-orders .staff-order-row { border: 0; border-top: 1px solid var(--color-border); border-radius: 0; margin: 0; }
.staff-order-amounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-order-summary { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-bottom: 24px; }
.staff-order-summary > div { display: grid; align-content: start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.staff-order-summary small { color: var(--color-slate); }
.staff-detail-statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.staff-payment-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.staff-payment-fields:disabled { opacity: .55; }
.staff-payment-fields:disabled :is(input, select, label) { cursor: not-allowed; }
.staff-connection { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 500; }
.staff-connection > span { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.staff-connection-connected > span { background: var(--color-success, #288347); }
.staff-connection-error { color: var(--color-slate); }
.staff-connection-pending { color: var(--color-slate); }
@media (max-width: 1000px) {
  .staff-unified-orders .staff-order-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--color-border); border-radius: 10px; margin-bottom: 12px; }
  .staff-unified-orders .staff-checkout-identity { grid-column: 1 / -1; grid-row: auto; }
  .staff-unified-orders .staff-order-amounts { grid-column: 1 / -1; }
  .staff-payment-detail .staff-order-aside { grid-row: auto; }
}

.staff-production-cancellation { margin-top: 20px; }
.staff-order-aside .staff-production-cancellation { margin-top: 0; }
.staff-main:has(.staff-order-summary) { max-width: 1280px; }

.staff-payment-items { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .9375rem; }
.staff-payment-items th, .staff-payment-items td { padding: 12px 8px; border-bottom: 1px solid var(--color-border); text-align: left; overflow-wrap: anywhere; }
.staff-payment-items th { color: var(--color-slate); font-size: .8125rem; font-weight: 500; }
.staff-payment-items th:first-child, .staff-payment-items td:first-child { padding-left: 0; }
.staff-payment-items th:nth-child(2) { width: 20%; }
.staff-payment-items th:nth-child(3) { width: 10%; }
.staff-payment-items :is(th, td):nth-child(3) { text-align: center; font-variant-numeric: tabular-nums; }
.staff-payment-items th:last-child { width: 30%; }
.staff-payment-items :is(th, td):last-child { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
.staff-payment-items td:last-child { font-weight: 500; }
.staff-payment-items tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .staff-payment-items thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .staff-payment-items tbody { display: block; }
  .staff-payment-items tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
  .staff-payment-items tbody tr:last-child { border-bottom: 0; }
  .staff-payment-items td { border: 0; padding: 0; }
  .staff-payment-items td:first-child { grid-column: 1 / -1; font-weight: 500; }
  .staff-payment-items td:nth-child(3) { text-align: right; }
  .staff-payment-items td:last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; }
  .staff-payment-items td[data-label]::before { content: attr(data-label) " "; color: var(--color-slate); font-weight: 400; font-size: .8125rem; }
}

.staff-production-cancellation { border-color: var(--color-error); }
.staff-production-cancellation summary { color: var(--color-white); background: var(--color-error); padding: 12px 16px; border-radius: var(--radius-control); list-style-position: inside; cursor: pointer; font-weight: 500; }
.staff-danger-control { color: var(--color-white); background: var(--color-error); border-color: var(--color-error); }
.staff-danger-control:hover { filter: brightness(.9); }
.staff-production-cancellation :is(summary, .staff-danger-control):focus-visible { outline: 2px solid var(--color-error); outline-offset: 4px; }

.staff-shipment-actions { display: grid; gap: 12px; margin-top: 20px; }
.staff-shipment-actions p { margin: 0; }
.staff-shipment :is(input, button) { min-width: 0; max-width: 100%; }

.staff-tracking-fields summary { cursor: pointer; list-style-position: inside; }
.staff-tracking-fields form { margin-top: 16px; }
