:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Noto Sans JP",
    "Hiragino Sans", sans-serif;
  color: #242b35;
  background: #f5f6f8;
  font-synthesis: none;
  --brand: #b54030;
  --border: #e7e9ed;
  --muted: #69717d;
  --green: #267058;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #dca296;
  outline-offset: 3px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.6px;
  margin-bottom: 0;
  font-weight: 700;
}
h2 {
  font-size: 18px;
  margin: 0;
}
small {
  font-size: 14px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 36px;
  font-weight: 700;
  color: #242b35;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  margin-top: 2px;
}
.brandmark {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  width: 42px;
  height: 45px;
  border-radius: 13px 13px 13px 3px;
  font-size: 23px;
  font-weight: 700;
  flex-shrink: 0;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  color: #555e6a;
  border-radius: 9px;
  font-size: 16px;
}
.sidebar nav a span {
  width: 20px;
  font-size: 21px;
  text-align: center;
}
.sidebar nav a:hover {
  background: #f7f7f8;
  text-decoration: none;
}
.sidebar nav a.active {
  background: #faeeeb;
  color: #a93829;
  font-weight: 600;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid var(--border);
}
.account-email {
  font-size: 13px;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.role {
  font-size: 14px;
  font-weight: 600;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
  color: var(--brand);
  font-size: 14px;
}
.workspace {
  margin-left: 230px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 38px;
  background: #ffffffbd;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: #69717d;
  gap: 18px;
}
.separator {
  margin: 0 12px;
  color: #b4b8bf;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.language-form {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.language-form button {
  background: none;
  border: 0;
  padding: 4px 0;
  color: #737a85;
  font-size: 14px;
}
.language-form button.selected {
  font-weight: 650;
  color: #242b35;
}
.env {
  font-size: 12px;
  background: #edf0f4;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
main {
  padding: 36px 38px;
  max-width: 1560px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  min-height: 50px;
}
.page-heading > div > a {
  font-size: 14px;
  display: inline-block;
  margin-bottom: 10px;
}
.eyebrow {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.button:hover {
  text-decoration: none;
  filter: brightness(0.97);
}
.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 3px #9424140c;
}
.secondary {
  color: #414a57;
  border-color: #dfe2e7;
  background: white;
}
.quiet {
  background: transparent;
  color: #4e5867;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 23px 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.metric > span {
  font-size: 14px;
  color: #626b77;
}
.metric strong {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.7px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}
.metric.featured {
  background: #b54030;
  color: #fff;
  border-color: #b54030;
}
.metric.featured span,
.metric.featured small {
  color: #fff0e9;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 30px;
}
.quick-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  color: #444e5b;
  font-weight: 500;
  font-size: 15px;
}
.quick-actions a span {
  font-size: 22px;
  color: var(--brand);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  gap: 16px;
}
.card-heading a {
  font-size: 14px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  color: #737c88;
  background: #fafbfc;
  font-weight: 500;
  white-space: nowrap;
  font-size: 14px;
}
th,
td {
  padding: 16px 22px;
  border-bottom: 1px solid #edf0f3;
}
tr:last-child td {
  border-bottom: 0;
}
td {
  vertical-align: middle;
}
td small {
  display: block;
  font-size: 13px;
  margin-top: 3px;
}
td small.inline {
  display: inline;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 500;
}
.nowrap {
  white-space: nowrap;
}
.positive {
  color: var(--green);
}
.note-cell {
  max-width: 280px;
  overflow-wrap: anywhere;
}
.tag {
  display: inline-block;
  padding: 3px 9px;
  background: #f0f2f5;
  color: #626c79;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
}
.tag.green {
  background: #edf5f0;
  color: #327457;
}
.tag.amber {
  background: #fff3df;
  color: #90611f;
}
.empty {
  text-align: center;
  padding: 50px 24px !important;
  color: var(--muted);
  font-size: 15px;
}
.stock-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid #edf0f3;
  color: #252e3b;
}
.stock-alert:hover {
  text-decoration: none;
  background: #fdfcfc;
}
.food-initial {
  background: #f5ece8;
  color: #916856;
  width: 42px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 18px;
}
.stock-alert strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.stock-alert small {
  font-size: 13px;
}
.stock-number {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 600;
}
.stock-number em {
  display: block;
  color: #986a26;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
}
.filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.filters label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: #626b77;
}
.filters input {
  max-width: 250px;
}
input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  min-width: 0;
  min-height: 44px;
}
input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
.filters .errorlist {
  width: 100%;
}
input,
select,
textarea {
  border: 1px solid #d9dee5;
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  min-height: 44px;
  color: #252d39;
  width: 100%;
  font-size: 16px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%2369717d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  padding-right: 35px;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  min-height: 20px;
  width: 20px;
  accent-color: var(--brand);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field[hidden] {
  display: none;
}
.field label {
  font-size: 14px;
  font-weight: 500;
  color: #4c5664;
}
.required {
  color: var(--brand);
  margin-left: 5px;
}
.form-card {
  padding: 28px;
  margin-bottom: 22px;
  overflow: visible;
}
.form-card .card-heading {
  padding: 0 0 22px;
}
.form-hint {
  font-size: 14px;
  color: #626b77;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 26px;
}
.field.wide {
  grid-column: 1/-1;
}
.entry-form {
  max-width: 1000px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.line-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) 80px;
  align-items: start;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.line-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.line-row:last-child {
  padding-bottom: 0;
}
.delete-field {
  align-items: center;
}
.delete-field label {
  font-size: 13px;
  white-space: nowrap;
}
.delete-field input {
  margin-top: 10px;
}
.errorlist {
  color: #a82d26;
  background: #fff3f2;
  border-radius: 6px;
  padding: 12px 16px;
  list-style: none;
  font-size: 14px;
  margin: 0 0 12px;
}
.notice {
  background: #fff6e7;
  color: #775c2a;
  border: 1px solid #eddec0;
  padding: 18px 22px;
  border-radius: 9px;
  margin-bottom: 24px;
  font-size: 15px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.success {
  background: #edf7f0;
  color: #2d7150;
  border-color: #cfe5d7;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sub-action {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}
.muted {
  font-size: 14px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 26px 0;
  font-size: 14px;
}
.catalog-supplier {
  padding: 18px 24px;
  border-top: 1px solid var(--border);
}
.catalog-supplier strong,
.catalog-supplier small {
  display: block;
}
.category-tags {
  padding: 0 24px 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recognition-card {
  max-width: 620px;
  margin: 10px auto;
  padding: 38px;
  text-align: center;
}
.camera-symbol {
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: #faeee9;
  color: var(--brand);
  font-size: 40px;
}
.recognition-card > p {
  font-size: 15px;
  color: var(--muted);
  margin: 12px 0 26px;
}
.recognition-card .field {
  text-align: left;
  margin-bottom: 22px;
}
.recognition-card form .button {
  width: 100%;
  margin-top: 12px;
}
.public {
  margin-left: 0;
}
.login-card {
  max-width: 450px;
  margin: 9vh auto;
  text-align: center;
  background: #fff;
  padding: 48px 36px;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 40px #26323f05;
}
.large {
  width: 62px;
  height: 66px;
  font-size: 35px;
  margin: 0 auto 24px;
}
.login-card h1 {
  font-size: 27px;
}
.login-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 16px 0 30px;
}
.google {
  width: 100%;
}
.login-modules {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
footer {
  padding: 22px 38px;
  color: #8a929c;
  font-size: 12px;
}
footer span {
  padding: 0 8px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}

.mobile-logout {
  display: none;
}

/* Searchable native selects, dialogs and daily operating workflows. */
.sr-only,
.enhanced-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0 !important;
}
.searchable-select {
  position: relative;
  min-width: 0;
}
.searchable-select input {
  padding-right: 48px;
}
.select-toggle {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #737c88;
  cursor: pointer;
}
.select-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 25;
  max-height: 230px;
  overflow-y: auto;
  background: white;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  box-shadow: 0 8px 24px #2431401a;
}
.select-results[hidden] {
  display: none;
}
.select-results [role="option"] {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 15px;
}
.select-results [role="option"]:hover,
.select-results [aria-selected="true"] {
  background: #faeeeb;
  color: #a93829;
}
.select-results p {
  padding: 12px;
  margin: 0;
}

#app-dialog {
  border: 0;
  padding: 0;
  border-radius: 16px;
  width: min(920px, calc(100vw - 32px));
  max-height: 90dvh;
  box-shadow: 0 24px 80px #1923314d;
  overflow: auto;
  color: inherit;
}
#app-dialog::backdrop {
  background: #1c26376b;
  backdrop-filter: blur(2px);
}
.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  right: 14px;
  margin: 12px 14px -46px 0;
  z-index: 30;
  width: 34px;
  height: 34px;
  border: 0;
  background: #f0f2f5;
  border-radius: 50%;
  font-size: 23px;
  color: #525d6b;
}
.dialog-content {
  padding: 30px;
  background: #fff;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 32px 24px 0;
}
.dialog-heading h1 {
  font-size: 24px;
}
.dialog-heading .eyebrow {
  margin-bottom: 6px;
}
.dialog-content .form-actions {
  margin-top: 24px;
}
.dialog-content .form-grid {
  gap: 18px 24px;
}
.dialog-only {
  display: none;
}
dialog .dialog-only {
  display: inline-flex;
}
.section-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin: -6px 0 26px;
  overflow: auto;
}
.section-tabs a {
  color: #606b79;
  padding: 14px 22px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  font-size: 15px;
}
.section-tabs a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.section-tabs a:hover {
  text-decoration: none;
  background: #eef0f3;
}
.finance-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stock-cell {
  min-width: 240px;
  width: 32%;
}
.stock-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-variant-numeric: tabular-nums;
}
.stock-caption > span {
  font-size: 14px;
  color: #69717d;
}
.stock-progress {
  display: block;
  width: 100%;
  height: 8px;
  margin: 9px 0 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  accent-color: #2f7c5f;
  background: #eceff2;
}
.stock-progress::-webkit-progress-bar {
  background: #eceff2;
  border-radius: 8px;
}
.stock-progress::-webkit-progress-value {
  background: #387b62;
  border-radius: 8px;
}
.stock-progress::-moz-progress-bar {
  background: #387b62;
  border-radius: 8px;
}
.stocktake-list {
  margin: 20px 0;
  border-top: 1px solid var(--border);
}
.stocktake-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.stocktake-item strong,
.stocktake-item small {
  display: block;
}
.stocktake-item strong {
  font-size: 16px;
}
.stocktake-control input[type="range"] {
  width: 100%;
  padding: 0;
  min-height: 36px;
  accent-color: var(--brand);
  cursor: ew-resize;
  border: 0;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #737c88;
}
.stocktake-control label {
  font-size: 14px;
  color: #626b77;
  display: block;
  margin-bottom: 8px;
}
.reason-field {
  margin-top: 20px;
}
.last-count {
  margin-top: 10px;
  margin-bottom: 0;
}
.revision-history {
  margin-top: 24px;
  padding: 18px;
  background: #f6f7f9;
  border-radius: 8px;
  font-size: 14px;
}
.revision-history summary {
  cursor: pointer;
}
.revision-history p {
  margin: 14px 0 0;
}
.detail-total {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.detail-heading {
  margin-top: 28px;
}
.posting-detail {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  margin-top: 10px;
}
.posting-detail p {
  margin: 10px 0 4px;
}
.invoice-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.invoice-grid a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
.invoice-grid img {
  width: 100px;
  height: 110px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.allocation-heading {
  padding: 26px 0 16px;
}
.allocation-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 80px;
  gap: 16px;
  padding: 12px 0;
  align-items: start;
}
.form-total {
  margin-right: auto;
  color: #69717d;
  align-self: center;
  white-space: nowrap;
}
.form-total strong {
  font-size: 23px;
  color: #252e3b;
  margin-left: 10px;
}
.form-card:has(.searchable-select) {
  overflow: visible;
}

.supplier-table th:first-child,
.supplier-table td:first-child {
  min-width: 200px;
}
.supplier-table td:nth-child(3) {
  min-width: 240px;
}
