@charset "UTF-8";
:root {
  --green: #214e3b;
  --green-soft: #eaf0e9;
  --ink: #252e29;
  --muted: #7b827b;
  --paper: #f5f4ef;
  --line: #e4e7df;
  --amber: #a96c24;
  --danger: #b74d3e;
  --white: #fff;
  --shadow: 0 16px 50px #23332614;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #bc9959;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px #214e3b0c;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.icon {
  width: 21px;
  height: 21px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #fdfdf9;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand-name {
  font-family: "STSong", "SimSun", serif;
  font-size: 23px;
  letter-spacing: 3px;
  font-weight: 700;
}
.brand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}
.nav-label {
  font-size: 10px;
  color: #9a9f97;
  letter-spacing: 2px;
  margin: 39px 13px 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  color: #687269;
  margin: 4px 0;
}
.nav-link.active {
  background: var(--green-soft);
  color: var(--green);
  font-weight: 600;
}
.nav-link:hover {
  background: #eff2eb;
}
.sidebar-bottom {
  margin-top: auto;
}
.phase-tag {
  font-size: 11px;
  color: #8c948b;
  padding: 17px 12px;
  border-top: 1px solid var(--line);
}
.userbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eee9dc;
  color: #6f6344;
  font-weight: 600;
}
.userbox .logout {
  margin-left: auto;
  color: var(--muted);
  background: none;
  padding: 8px;
}
.main {
  margin-left: 230px;
  padding: 0 45px 50px;
  max-width: 1510px;
}
.topbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 33px;
}
.breadcrumb {
  color: #899185;
  font-size: 12px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #7c8578;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #668263;
  display: inline-block;
  margin-right: 6px;
}
.mobile-brand,
.bottom-nav {
  display: none;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 7px;
}
.subtitle {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--green);
  color: white;
  transition: background 0.15s;
}
.btn:hover {
  background: #2d614a;
}
.btn.secondary {
  color: var(--green);
  background: var(--green-soft);
}
.btn.outline {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.danger {
  background: #faeeea;
  color: var(--danger);
}
.btn.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.link {
  background: none;
  color: var(--green);
  padding: 8px;
  font-size: 13px;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.gap {
  gap: 8px;
}
.stack {
  display: grid;
  gap: 16px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.panel-head {
  padding: 21px 24px;
  border-bottom: 1px solid #eff0eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-body {
  padding: 24px;
}
.section-gap {
  margin-top: 25px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}
.stat {
  padding: 21px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat:first-child {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.stat-label {
  font-size: 12px;
  color: #8b9289;
  display: flex;
  justify-content: space-between;
}
.stat:first-child .stat-label,
.stat:first-child small {
  color: #bbd1c0;
}
.stat-value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 11px 0 6px;
}
.stat-value .currency {
  font-size: 18px;
  margin-right: 3px;
  font-weight: 400;
}
.stat-value small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 5px;
}
.stat-foot {
  font-size: 11px;
  color: #9ba295;
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
}
.callout {
  padding: 26px 23px;
  background: #ebeede;
  border: 1px solid #dfe4d2;
  border-radius: 12px;
}
.callout h2 {
  line-height: 1.5;
}
.callout p {
  font-size: 12px;
  line-height: 1.9;
  color: #788169;
  margin: 13px 0 22px;
}
.callout .illustration {
  margin: 0 0 20px;
  color: #8b986f;
}
.callout .illustration .icon {
  width: 48px;
  height: 48px;
  stroke-width: 1;
}
.note {
  padding: 19px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.note strong {
  display: block;
  color: #697265;
  font-weight: 500;
  margin-bottom: 3px;
}
.mini-list {
  display: grid;
  gap: 12px;
}
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 11px;
  color: #8d948a;
  font-weight: 500;
  background: #fafbf7;
  padding: 13px 22px;
}
td {
  padding: 17px 22px;
  border-top: 1px solid #eff0ea;
  font-size: 13px;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: #fafbf7;
}
.cell-main {
  font-weight: 550;
}
.cell-sub {
  color: #949c91;
  font-size: 11px;
  margin-top: 3px;
}
.right {
  text-align: right;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 3px 8px;
  font-size: 11px;
  background: var(--green-soft);
  color: #547651;
  white-space: nowrap;
}
.badge.warn {
  background: #fbf1df;
  color: var(--amber);
}
.badge.void {
  background: #f0f0ed;
  color: #93968f;
}
.empty {
  text-align: center;
  padding: 54px 20px;
  color: var(--muted);
}
.empty .icon {
  width: 36px;
  height: 36px;
  color: #adb7a6;
  margin-bottom: 12px;
}
.empty h3 {
  color: #6f786c;
  margin-bottom: 6px;
}
.empty .btn {
  margin-top: 20px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.filters label {
  flex: 1;
  min-width: 130px;
  max-width: 210px;
}
.filters input,
.filters select {
  min-height: 40px;
  font-size: 12px;
}
.search {
  position: relative;
}
.search input {
  padding-left: 39px;
}
.search > .icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #8b9485;
}
.summarybar {
  padding: 14px 22px;
  background: #fafbf7;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.summarybar strong {
  color: var(--green);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}
.mobile-orders {
  display: none;
}
label.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: #73806e;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dfe4d9;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
  min-width: 0;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--green);
}
input:disabled {
  background: #f7f7f3;
  color: #929b8c;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
input[type="date"],
input[type="month"] {
  appearance: none;
  min-width: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field.span2 {
  grid-column: 1/-1;
}
.required {
  color: var(--danger);
}
.purchase-layout {
  max-width: 900px;
}
.purchase-meta {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
}
.supplier-choose {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  min-height: 47px;
  border: 1px solid #dfe4d9;
  border-radius: 7px;
  background: white;
  text-align: left;
  color: var(--ink);
}
.supplier-choose.placeholder {
  color: #99a18f;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.step-num {
  width: 22px;
  height: 22px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 13px;
}
.item-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px;
  margin-bottom: 13px;
}
.item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.line-number {
  width: 23px;
  height: 23px;
  background: #f1f3ec;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #8c9585;
  font-size: 11px;
}
.ingredient-button {
  background: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  flex: 1;
  min-width: 0;
}
.ingredient-button.placeholder {
  color: #84917b;
}
.ingredient-button .icon {
  width: 16px;
}
.remove {
  background: none;
  color: #9ca494;
  padding: 7px;
}
.remove:hover {
  color: var(--danger);
}
.item-fields {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.1fr 1fr;
  gap: 15px;
}
.item-fields input,
.item-fields select {
  font-size: 16px;
}
.amount-field {
  border-radius: 7px;
  background: #f7f8f3;
  min-height: 47px;
  padding: 11px 12px;
  font-size: 18px;
  color: var(--green);
  font-weight: 550;
}
.price-note {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e4e8dc;
  color: #8b9484;
}
.price-note strong {
  color: #67755b;
  font-weight: 500;
}
.price-deviation {
  font-size: 11px;
  color: var(--amber);
  background: #fbf2e1;
  border-radius: 4px;
  padding: 2px 7px;
}
.price-deviation.low {
  color: #497044;
  background: #eef3e9;
}
.line-remark {
  margin-top: 10px;
}
.line-remark input {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 10px;
  border-color: #ecede6;
}
.add-line {
  width: 100%;
  background: #eef2e9;
  border: 1px dashed #ccd7c4;
  border-radius: 9px;
  color: var(--green);
  padding: 15px;
  font-size: 13px;
}
.day-buttons {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.day-buttons button {
  font-size: 11px;
  padding: 4px 9px;
  background: white;
  color: #8a9482;
}
.day-buttons button.active {
  background: var(--green-soft);
  color: var(--green);
}
.photo-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px dashed #d3dacb;
  border-radius: 8px;
  padding: 24px;
  color: #7a886c;
  cursor: pointer;
  background: #fafbf6;
  position: relative;
}
.photo-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.photo {
  position: relative;
  width: 90px;
  height: 90px;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.photo button {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 23px;
  height: 23px;
  background: white;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--danger);
}
.purchase-footer {
  position: sticky;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 23px;
  border: 1px solid #d6ddce;
  background: #fffffff5;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 25px #24362110;
  border-radius: 10px;
  margin-top: 22px;
  z-index: 8;
}
.purchase-footer .total {
  font-size: 25px;
  font-weight: 650;
  color: var(--green);
}
.purchase-footer .total-label {
  font-size: 11px;
  color: #8e9785;
}
.purchase-footer .actions {
  display: flex;
  gap: 10px;
}
.purchase-page {
  padding-bottom: 10px;
}
.draft-note {
  font-size: 12px;
  color: #748065;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #ecefdf;
  border-radius: 7px;
  margin-bottom: 17px;
}
.banner {
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 7px;
  margin-bottom: 18px;
  background: #fbf2df;
  color: #9c712f;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #172d2366;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal {
  background: white;
  width: min(540px, 100%);
  max-height: 88vh;
  overflow: auto;
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.modal.wide {
  width: min(700px, 100%);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 25px 13px;
}
.modal-body {
  padding: 10px 25px 25px;
}
.close-modal {
  font-size: 25px;
  background: none;
  color: #89947f;
  padding: 4px 8px;
}
.picker-list {
  max-height: 42vh;
  overflow: auto;
  margin: 15px 0;
}
.picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 12px;
  border-bottom: 1px solid #edf0e7;
  background: white;
  text-align: left;
}
.picker-row:hover {
  background: #f5f8f0;
}
.picker-row .icon {
  color: #b1bca7;
  width: 16px;
}
.picker-add {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 12px;
  min-height: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.unit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 32px;
  gap: 8px;
  margin-top: 10px;
  align-items: end;
}
.unit-row .remove {
  height: 44px;
}
.unit-rule {
  font-size: 12px;
  color: #78856d;
  padding: 10px 0;
}
.success {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
}
.success-mark {
  width: 77px;
  height: 77px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  margin: 0 auto 22px;
}
.success-mark .icon {
  width: 32px;
  height: 32px;
}
.receipt {
  margin: 28px 0;
  text-align: left;
  padding: 26px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 0;
  font-size: 13px;
}
.receipt-row span {
  color: var(--muted);
}
.receipt-total {
  border-top: 1px dashed #d8dfcd;
  margin-top: 12px;
  padding-top: 17px;
}
.receipt-total strong {
  font-size: 27px;
  color: var(--green);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
}
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 24px;
}
.detail-meta span {
  display: block;
  font-size: 11px;
  color: #929b89;
  margin-bottom: 7px;
}
.detail-items {
  padding: 0 24px;
}
.detail-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.detail-item small {
  display: block;
  margin-top: 5px;
}
.detail-total {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.detail-total strong {
  font-size: 24px;
  color: var(--green);
}
.audit-line {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}
.audit-dot {
  width: 7px;
  height: 7px;
  background: #b5c4a8;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.audit-line small {
  display: block;
  font-size: 10px;
  margin-top: 2px;
}
.audit-line summary {
  font-size: 11px;
  color: var(--green);
  cursor: pointer;
  margin-top: 5px;
}
.audit-line pre {
  font-size: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f7f8f3;
  padding: 8px;
  border-radius: 5px;
}
.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.directory-card {
  padding: 22px;
}
.directory-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.directory-card .card-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 14px;
  align-items: center;
}
.directory-card p {
  font-size: 12px;
  color: #8c9684;
  margin: 12px 0;
}
.directory-search {
  margin-bottom: 21px;
  max-width: 400px;
}
.supplier-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #f2f0e6;
  border-radius: 8px;
  color: #948363;
}
.directory-head {
  display: flex;
  gap: 11px;
  align-items: center;
}
.directory-head small {
  display: block;
  font-size: 11px;
}
.settlement-card {
  padding: 22px;
}
.settlement-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0 18px;
  gap: 15px;
}
.settlement-numbers span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.settlement-numbers strong {
  font-size: 18px;
  font-weight: 550;
}
.settlement-card details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.settlement-card summary {
  cursor: pointer;
  color: var(--green);
  font-size: 12px;
}
.settlement-order {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.settlement-order:last-child {
  border: 0;
}
.settlement-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  padding: 22px 25px;
  background: var(--green);
  color: white;
  border-radius: 11px;
}
.settlement-total span {
  font-size: 12px;
  color: #c4d2c3;
}
.settlement-total strong {
  display: block;
  font-size: 30px;
  margin-top: 7px;
  font-weight: 550;
}
.month-select {
  width: 160px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.users-list {
  padding: 0 24px;
}
.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.user-row:first-child {
  border: 0;
}
.user-row small {
  display: block;
}
.backup-area p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin: 8px 0 20px;
}
.audit-table {
  font-size: 12px;
}
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: var(--green);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #faf7ef;
  position: relative;
  overflow: hidden;
}
.auth-art .brand-sub {
  color: #a7bca9;
}
.auth-art h1 {
  font-family: "STSong", "SimSun", serif;
  font-size: 47px;
  line-height: 1.5;
  letter-spacing: 3px;
  font-weight: 400;
}
.auth-art p {
  color: #b3c5b5;
  margin-top: 22px;
  line-height: 2;
  font-size: 14px;
}
.auth-art .art-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #a0b59e;
  margin-bottom: 22px;
}
.auth-art .line-art {
  opacity: 0.1;
  position: absolute;
  width: 440px;
  height: 440px;
  right: -170px;
  bottom: 30px;
  border: 1px solid white;
  border-radius: 50%;
  box-shadow:
    0 0 0 55px #ffffff20,
    0 0 0 110px #ffffff16;
}
.auth-art footer {
  font-size: 11px;
  color: #a5b8a4;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-inner {
  width: 360px;
  max-width: 100%;
}
.auth-inner h2 {
  font-size: 26px;
}
.auth-inner .subtitle {
  margin-bottom: 30px;
}
.auth-inner form {
  display: grid;
  gap: 19px;
}
.auth-inner .brand {
  display: none;
}
.auth-foot {
  font-size: 11px;
  text-align: center;
  color: #a0a798;
  margin-top: 28px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #7f8877;
}
.offline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: #9d7437;
  color: white;
  padding: 5px;
  z-index: 100;
  font-size: 12px;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 20px;
  background: #263a2df2;
  color: white;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  font-size: 13px;
  max-width: calc(100vw - 32px);
  transition: 0.2s;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.error-page {
  padding: 70px 20px;
  text-align: center;
}
.error-page .btn {
  margin-top: 20px;
}
@media (min-width: 1500px) {
  .main {
    margin-right: auto;
  }
  .home-grid {
    grid-template-columns: 1fr 320px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 30px 17px;
  }
  .main {
    margin-left: 205px;
    padding: 0 25px 40px;
  }
  .home-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .home-aside .note {
    padding: 0;
  }
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 26px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-art h1 {
    font-size: 37px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  .sidebar {
    display: none;
  }
  .main {
    margin: 0;
    padding: 0 18px 100px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .topbar {
    height: 65px;
    margin-bottom: 24px;
  }
  .breadcrumb {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 16px;
  }
  .mobile-brand img {
    width: 29px;
    height: 29px;
  }
  .top-right {
    gap: 8px;
    font-size: 11px;
  }
  .top-right .top-date {
    display: none;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: #fdfefb;
    border-top: 1px solid var(--line);
    padding: 9px 10px calc(8px + env(safe-area-inset-bottom));
    z-index: 12;
  }
  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 3px;
    color: #929c88;
    font-size: 10px;
    min-width: 52px;
    padding: 3px;
  }
  .bottom-nav a.active {
    color: var(--green);
    font-weight: 600;
  }
  .bottom-nav .icon {
    width: 22px;
    height: 22px;
  }
  .pagehead {
    align-items: flex-start;
    margin-bottom: 21px;
  }
  h1 {
    font-size: 25px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 5px;
  }
  .subtitle {
    font-size: 12px;
    line-height: 1.7;
  }
  .pagehead > .btn {
    padding: 10px 12px;
    font-size: 12px;
    min-height: 40px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    margin-bottom: 22px;
  }
  .stat {
    padding: 17px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .stat-label {
    font-size: 11px;
  }
  .home-grid {
    gap: 20px;
  }
  .home-aside {
    display: block;
  }
  .home-aside .callout {
    display: none;
  }
  .home-aside .note {
    padding: 0 3px;
    font-size: 11px;
  }
  .panel-head {
    padding: 17px 18px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .panel-body {
    padding: 18px;
  }
  .desktop-orders {
    display: none;
  }
  .mobile-orders {
    display: block;
  }
  .order-card {
    padding: 17px 18px;
    display: block;
    border-bottom: 1px solid #ebeee5;
  }
  .order-card:last-child {
    border: 0;
  }
  .order-card .order-first {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .order-card strong {
    font-size: 15px;
    font-weight: 550;
  }
  .order-card .order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    color: #969f8e;
    font-size: 11px;
    gap: 7px;
  }
  .order-card .order-amount {
    font-size: 17px;
    white-space: nowrap;
    color: #394b32;
  }
  .filters {
    padding: 16px;
    gap: 10px;
  }
  .filters label {
    min-width: 0;
    max-width: none;
    width: calc(50% - 5px);
    flex: 1 0 calc(50% - 5px);
  }
  .filters .search {
    width: 100%;
    flex-basis: 100%;
  }
  .filters label.field {
    font-size: 10px;
  }
  .filters input,
  .filters select {
    font-size: 12px;
    padding: 10px;
    min-height: 43px;
  }
  .summarybar {
    padding: 12px 17px;
    font-size: 11px;
  }
  .purchase-meta {
    grid-template-columns: minmax(0, 1fr) 125px;
    gap: 12px;
  }
  .supplier-choose {
    padding: 11px;
    font-size: 13px;
  }
  .purchase-meta input {
    padding: 11px 7px;
    font-size: 12px;
  }
  .purchase-layout {
    max-width: 100%;
  }
  .purchase-page .pagehead > .btn {
    padding: 8px;
  }
  .item-card {
    padding: 16px;
    margin-bottom: 12px;
  }
  .item-top {
    margin-bottom: 14px;
    gap: 8px;
  }
  .ingredient-button {
    font-size: 15px;
  }
  .item-fields {
    grid-template-columns: 1.25fr 0.85fr 1.25fr;
    gap: 9px;
  }
  .item-fields label {
    font-size: 11px;
    gap: 6px;
  }
  .item-fields input,
  .item-fields select {
    padding: 11px 8px;
    min-height: 47px;
  }
  .item-fields .line-total {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8f2;
    border-radius: 6px;
    padding: 3px 12px;
  }
  .amount-field {
    min-height: 36px;
    font-size: 19px;
    background: none;
    padding: 4px 0;
  }
  .price-note {
    gap: 9px;
    font-size: 10px;
    margin-top: 12px;
  }
  .items-head {
    margin: 22px 0 12px;
  }
  .items-head h2 {
    font-size: 16px;
  }
  .day-buttons button {
    padding: 5px 8px;
    font-size: 10px;
  }
  .purchase-footer {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 12px 16px;
    margin: 0;
    gap: 10px;
  }
  .purchase-footer .total {
    font-size: 22px;
    line-height: 1.5;
  }
  .purchase-footer .total-label {
    font-size: 10px;
  }
  .purchase-footer .btn {
    padding: 11px 12px;
    font-size: 12px;
  }
  .purchase-footer .actions {
    gap: 7px;
  }
  .purchase-page {
    padding-bottom: 105px;
  }
  .photo-picker {
    padding: 21px 12px;
    font-size: 12px;
    gap: 10px;
  }
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal {
    width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal-head {
    padding: 22px 20px 12px;
  }
  .modal-body {
    padding: 10px 20px 24px;
  }
  .picker-list {
    max-height: 43dvh;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .form-grid {
    gap: 13px;
  }
  .unit-row {
    grid-template-columns: 1fr 1fr 1fr 26px;
    gap: 6px;
  }
  .unit-row input {
    padding: 10px 8px;
    font-size: 12px;
  }
  .success {
    margin: 34px auto;
  }
  .success h1 {
    font-size: 25px;
  }
  .receipt {
    padding: 22px;
  }
  .success .flex {
    flex-wrap: wrap;
  }
  .success .flex > .btn {
    flex: 1;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 20px;
  }
  .detail-items {
    padding: 0 20px;
  }
  .detail-total {
    padding: 18px 20px;
  }
  .detail-grid {
    gap: 18px;
  }
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .directory-card {
    padding: 19px;
  }
  .directory-card p {
    margin: 9px 0;
  }
  .directory-search {
    max-width: none;
  }
  .settlement-total {
    padding: 19px;
    align-items: flex-start;
  }
  .settlement-total strong {
    font-size: 26px;
  }
  .settlement-total span {
    font-size: 10px;
  }
  .settlement-card {
    padding: 19px;
  }
  .settlement-card h2 {
    font-size: 16px;
  }
  .settlement-numbers {
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
    margin: 20px 0;
  }
  .settlement-numbers strong {
    font-size: 17px;
  }
  .month-select {
    width: 145px;
    padding: 9px;
    min-height: 42px;
    font-size: 13px;
  }
  .settings-grid {
    gap: 18px;
  }
  .settings-grid .form-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid .field.span2 {
    grid-column: auto;
  }
  .settings-grid .btn {
    font-size: 12px;
  }
  .user-row {
    font-size: 12px;
  }
  .users-list {
    padding: 0 18px;
  }
  .auth-wrap {
    display: block;
  }
  .auth-art {
    display: none;
  }
  .auth-form {
    min-height: 100dvh;
    padding: 30px 26px;
  }
  .auth-inner .brand {
    display: flex;
    margin-bottom: 45px;
  }
  .auth-inner h2 {
    font-size: 25px;
  }
  .auth-inner form {
    gap: 18px;
  }
  .loading {
    padding: 70px 25px;
  }
  .home-mobile-cta {
    display: block !important;
    margin-bottom: 21px;
  }
  .home-mobile-cta .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }
  .home-page .pagehead > .btn {
    display: none;
  }
  .topbar .link {
    padding: 5px;
    font-size: 11px;
  }
  .banner {
    font-size: 11px;
  }
}
.home-mobile-cta {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
