:root {
  --ink: #161616;
  --muted: #66645f;
  --paper: #f6f5f1;
  --line: #deddd7;
  --green: #171717;
  --lime: #eeeae0;
  --amber: #85551c;
  --red: #a23d2c;
}
body {
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
button,
input,
select,
textarea {
  min-height: 48px;
}
button {
  border-radius: 8px;
}
button:active {
  transform: scale(0.985);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #815b22;
  outline-offset: 4px;
}
h1,
h2 {
  font-family: "Bahnschrift SemiCondensed", "Bahnschrift", "Aptos", sans-serif;
  letter-spacing: -0.025em;
}
aside {
  background: #171717;
  color: #fff;
}
.brand {
  color: #fff;
}
.brand span {
  color: #c9c5bb;
}
.signin h1 {
  font-family: "Bahnschrift SemiCondensed", "Bahnschrift", sans-serif;
  font-size: 48px;
  line-height: 1.08;
}
.signin {
  max-width: 480px;
}
.signin .eyebrow {
  margin-top: 18px;
}
.signin .small {
  color: var(--muted);
}
.rhg-mark {
  position: relative;
  display: block;
  width: 110px;
  height: 92px;
  overflow: hidden;
  flex-shrink: 0;
}
.rhg-mark img {
  position: absolute;
  width: 160px;
  height: 160px;
  max-width: none;
  left: -20px;
  top: -34px;
}
.employee-topbar {
  display: none;
}
.employee-mode #shell {
  display: block;
}
.employee-mode #shell > aside {
  display: none;
}
.employee-mode .workspace {
  margin: 0;
  width: 100%;
  padding: 0;
}
.employee-mode .workspace > header {
  display: none;
}
.employee-mode #employee-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: auto;
  padding: 6px 28px;
  border-bottom: 1px solid var(--line);
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  color: var(--ink);
  border: 0;
  padding: 0;
  min-height: 70px;
}
.product-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  padding-left: 18px;
  border-left: 1px solid #c8c6be;
  font-weight: 700;
}
.topbar-actions {
  display: flex;
  gap: 12px;
}
.topbar-actions button {
  font-size: 13px;
  border: 0;
}
.employee-mode main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 42px 28px 60px;
}
.employee-mode main:focus {
  outline: none;
}
.employee-mode footer {
  max-width: 1100px;
  margin: auto;
  padding: 24px 28px;
  color: #6c6a65;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.employee-mode .heading {
  margin-bottom: 30px;
}
.employee-mode h1 {
  font-size: 48px;
  line-height: 1.08;
  margin: 0 0 14px;
}
.employee-mode .heading p,
.employee-intro {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}
.employee-loading {
  padding: 24px;
  color: var(--muted);
}
.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.venue-choice {
  display: flex;
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 172px;
  padding: 23px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 #00000003;
}
.venue-choice:hover {
  background: #eeece5;
  filter: none;
  border-color: #a7a298;
}
.venue-choice strong {
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 600;
}
.venue-region {
  color: #76726b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.venue-link {
  font-size: 13px;
  color: #625c52;
  font-weight: 600;
}
.back-link {
  border: 0 !important;
  padding-left: 0;
  margin-bottom: 20px;
}
.freshness {
  font-size: 13px;
  color: #66645f;
  margin: 20px 0 24px;
}
.employee-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 24px;
}
.employee-tabs button {
  border-color: #d4d1c9;
  border-radius: 24px;
  padding: 10px 20px;
}
.employee-tabs button[aria-pressed="true"] {
  background: #191919;
  color: white;
  border-color: #191919;
}
.employee-mode main > label {
  max-width: 460px;
  font-weight: 600;
}
.employee-mode input[type="search"] {
  background: #fff;
}
.employee-result-count {
  font-size: 13px;
  color: #6b675f;
  margin: 18px 0 12px;
}
.employee-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.employee-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  min-width: 0;
}
.employee-item h2 {
  font-size: 24px;
  line-height: 1.16;
  margin: 15px 0;
}
.employee-item p {
  margin: 12px 0;
}
.forecast-range {
  width: 100%;
  max-width: 340px;
  height: 35px;
  display: block;
}
.item-state {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  background: #efede6;
  border-radius: 4px;
}
.item-state.enough {
  background: #eaf1eb;
  color: #24533a;
}
.item-state.check_delivery,
.item-state.count_needed,
.item-state.unavailable {
  background: #fbf0da;
  color: #76511f;
}
.recommended-quantity {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.recommended-quantity strong {
  font-size: 46px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.recommended-quantity span {
  font-size: 14px;
  color: #68635b;
}
.item-count-date,
.item-important {
  font-size: 13px;
  color: #6c655b;
}
.employee-item details {
  margin: 18px 0;
}
.employee-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
}
.employee-item details p {
  font-size: 14px;
  color: #5b5852;
}
.check-stock {
  width: 100%;
  margin-top: 8px;
}
.employee-empty {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  grid-column: 1/-1;
}
.employee-empty h2 {
  font-size: 24px;
}
.employee-empty p {
  color: var(--muted);
}
.enough-message {
  font-size: 22px;
  font-weight: 600;
}
.employee-mode dialog {
  max-width: 520px;
  border-radius: 14px;
}
dialog label {
  font-size: 15px;
}
dialog input {
  font-size: 18px;
}
dialog h2 {
  font-size: 25px;
}
.data-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.weekly-review {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.weekly-review h2 {
  font-size: 22px;
}
.data-health-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 22px;
}
.data-health-card h3 {
  font-size: 18px;
}
.data-health-card .tag {
  margin-bottom: 12px;
}
@media (max-width: 800px) {
  .venue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .employee-items {
    grid-template-columns: 1fr;
  }
  .data-health-grid {
    grid-template-columns: 1fr;
  }
  .employee-mode main {
    padding-top: 30px;
  }
  .employee-mode h1 {
    font-size: 38px;
  }
}
@media (max-width: 520px) {
  .employee-mode #employee-topbar {
    padding: 4px 16px;
  }
  .product-label {
    display: none;
  }
  .topbar-actions {
    gap: 0;
  }
  .topbar-actions button {
    padding: 8px;
    font-size: 12px;
  }
  .employee-mode main {
    padding: 26px 18px 40px;
  }
  .employee-mode footer {
    padding: 20px 18px;
  }
  .venue-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .venue-choice {
    min-height: 135px;
    padding: 20px;
    gap: 12px;
  }
  .venue-choice strong {
    font-size: 25px;
  }
  .employee-mode h1 {
    font-size: 36px;
  }
  .employee-item {
    padding: 21px;
  }
  .employee-tabs {
    gap: 6px;
  }
  .employee-tabs button {
    font-size: 13px;
    padding: 9px 13px;
  }
  .rhg-mark {
    width: 100px;
  }
  .employee-intro {
    font-size: 16px;
  }
  .signin h1 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button:active {
    transform: none;
  }
}
.weekly-draft {
  margin: 18px 0 24px;
  padding: 16px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}
.weekly-draft summary {
  cursor: pointer;
  font-weight: 600;
}
.weekly-draft summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
.weekly-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.saved-draft-line {
  padding: 16px 0;
  border-top: 1px solid #deded8;
}
.saved-draft-line h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-size: 17px;
}
.saved-draft-line p {
  margin: 6px 0;
}
.purchase-line-select {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  font-weight: 650;
}
.purchase-line-select input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: #181916;
}
.purchase-approval-lines textarea,
.purchase-risk-review textarea {
  min-height: 76px;
}
.purchase-approval-lines label {
  margin: 10px 0;
}
.purchase-risk-review label {
  margin-bottom: 16px;
}
.purchase-approved-lines {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.purchase-approved-lines li {
  padding: 12px 0;
  border-block: 1px solid #deded8;
  overflow-wrap: anywhere;
}
.purchase-approved-lines strong,
.purchase-approved-lines span {
  display: block;
}
.purchase-approved-lines span {
  margin-top: 4px;
}
.saved-draft-quantity {
  font-weight: 700;
}
.saved-override {
  border-left: 3px solid #ad914c;
  padding: 4px 12px;
  margin: 12px 0;
}
.saved-override-editor {
  margin: 12px 0;
}
.saved-override-editor summary {
  cursor: pointer;
}
.invoice-timing-context {
  margin: 16px 0;
  border-block: 1px solid var(--line);
}
.invoice-timing-context > summary,
.invoice-timing-context li summary {
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
}
.invoice-timing-context p {
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .employee-mode .home-brand {
    min-height: 64px;
  }
  .employee-mode .rhg-mark {
    width: 74px;
    height: 64px;
  }
  .employee-mode .rhg-mark img {
    width: 116px;
    height: 116px;
    left: -14px;
    top: -24px;
  }
  .employee-mode main {
    padding-top: 12px;
  }
  .employee-mode .back-link {
    margin-bottom: 8px;
  }
  .employee-mode h1 {
    font-size: 32px;
    margin-bottom: 8px;
    text-wrap: balance;
  }
  .employee-mode .employee-intro {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 12px;
  }
  .employee-mode main > .callout {
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.5;
  }
  .employee-mode .freshness {
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.5;
  }
  .employee-mode .weekly-draft {
    margin: 10px 0 14px;
    padding: 0;
  }
  .employee-mode .weekly-draft > summary {
    min-height: 44px;
    padding: 12px 0;
  }
  .employee-mode .employee-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    padding-bottom: 12px;
  }
  .employee-mode .employee-tabs button {
    padding: 8px;
    font-size: 12px;
    line-height: 1.25;
    border-radius: 12px;
    white-space: normal;
    font-variant-numeric: tabular-nums;
  }
  .employee-mode .employee-result-count {
    margin: 12px 0 8px;
  }
}
