:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --line: #dfe3e8;
  --text: #1f2933;
  --muted: #697586;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --danger: #c62828;
  --danger-bg: #fdecec;
  --green: #15803d;
  --green-bg: #eaf7ef;
  --amber: #b45309;
  --amber-bg: #fff6e5;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  line-height: 1.3;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 18px;
}

p {
  margin: 6px 0;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.strong {
  font-weight: 600;
}

.nowrap {
  white-space: nowrap;
}

.negative {
  color: var(--danger) !important;
  font-weight: 700;
}

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 8px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  height: 44px;
  width: auto;
}

.brand-text {
  overflow-wrap: anywhere;
}

.brand-system {
  display: inline;
}

.topbar nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 100%;
  order: 3;
  flex-wrap: wrap;
  gap: 2px;
  padding-top: 2px;
}

.topbar nav a {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 6px;
  color: #374151;
  font-size: 13px;
}

.topbar nav a:hover {
  background: #f1f5f9;
  text-decoration: none;
}

.topbar nav a.active {
  background: #e8efff;
  color: var(--primary-dark);
  font-weight: 600;
}

.user-area {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  order: 2;
  margin-left: auto;
}

.inline-form {
  display: inline;
  margin: 0;
}

/* 布局 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 20px auto 40px;
  padding: 0 18px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.page-head h1 {
  margin-bottom: 2px;
}

.page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* 按钮 */
.btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 13px;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: #f8fafc;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: #fff;
  border-color: #e3a3a3;
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger-bg);
}

.btn-small {
  padding: 4px 9px;
  font-size: 12px;
}

.btn-block {
  display: block;
  width: 100%;
  padding: 9px 14px;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  padding: 4px 2px;
}

.btn-link:hover {
  background: transparent;
  text-decoration: underline;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th {
  background: #f8fafc;
  color: #52606d;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f3;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcfd;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 统计卡 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.stat-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.legend {
  border-top: 1px dashed var(--line);
  margin-top: 12px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.legend p {
  margin: 2px 0;
}

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 16px;
}

.form-row {
  margin-bottom: 12px;
}

/* 原料加工方式/开关占整行，避免默认数量输入溢出到相邻列 */
.form-row-wide {
  grid-column: 1 / -1;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bfd3ff;
  border-color: var(--primary);
}

textarea {
  min-height: 64px;
  resize: vertical;
}

input[type="checkbox"] {
  width: auto;
  vertical-align: middle;
}

.qty-input {
  width: 86px;
  text-align: right;
}

.money-input {
  width: 110px;
  text-align: right;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.filter-actions {
  margin-top: 0;
}

.form-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.form-error {
  color: var(--danger);
  font-size: 12px;
  margin: 4px 0;
}

.readonly-value {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  min-height: 36px;
}

.total-line {
  text-align: right;
  font-size: 15px;
  margin-top: 12px;
}

.total-line strong {
  font-size: 20px;
  color: var(--primary-dark);
}

.total-preview {
  font-size: 15px;
}

.total-preview strong {
  font-size: 20px;
  color: var(--primary-dark);
}

.note-cell {
  min-width: 120px;
  max-width: 220px;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-input {
  max-width: 100px;
}

/* 提示 */
.flash-list {
  margin-bottom: 14px;
}

.flash {
  border-radius: 8px;
  padding: 9px 13px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  font-size: 13px;
}

.flash-success {
  color: var(--green);
  background: var(--green-bg);
  border-color: #bde5cb;
}

.flash-error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: #f0bcbc;
}

.flash-warning {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: #f2d49b;
}

/* 状态标签 */
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.status-pending {
  background: #eef2ff;
  color: #3730a3;
}

.status-partial {
  background: var(--amber-bg);
  color: var(--amber);
}

.status-picked {
  background: var(--green-bg);
  color: var(--green);
}

.status-cancelled {
  background: #f1f3f5;
  color: #697586;
}

.pay-unpaid {
  background: var(--danger-bg);
  color: var(--danger);
}

.pay-deposit {
  background: var(--amber-bg);
  color: var(--amber);
}

.pay-paid {
  background: var(--green-bg);
  color: var(--green);
}

.tag {
  display: inline-block;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 4px;
  padding: 0 5px;
  font-size: 11px;
  margin-left: 3px;
}

/* 订单搜索 */
.search-bar {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.search-field select {
  width: auto;
  min-width: 120px;
}

.search-keyword {
  flex: 1 1 260px;
}

.search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-summary {
  flex-basis: 100%;
}

/* 套盒统计 */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
}

.box-stats {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* 订单 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-tabs a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 13px;
}

.filter-tabs a:hover {
  text-decoration: none;
  background: #f8fafc;
}

.filter-tabs a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.order-lines {
  min-width: 220px;
}

.order-line {
  line-height: 1.7;
  white-space: nowrap;
}

.order-total {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
}

.action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 150px;
}

.action-group form {
  margin: 0;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.48);
  padding: 18px;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  margin: 30px auto;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.modal-small {
  max-width: 460px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 3px;
}

.modal-close:hover {
  color: var(--text);
}

.modal .table-wrap {
  margin: 10px 0;
}

.modal .qty-input {
  width: 78px;
}

/* 记录 */
.record {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.record:last-child {
  margin-bottom: 0;
}

.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  background: #f8fafc;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.record-body {
  padding: 10px 12px;
}

.record-body table {
  margin: 4px 0;
}

.record-total {
  text-align: right;
  font-weight: 600;
  padding-top: 6px;
}

.record-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.inline-edit-form {
  display: inline;
  margin: 0;
}

/* 账号管理 */
.account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.account-actions form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.account-actions select {
  width: auto;
  min-width: 86px;
  padding: 5px 7px;
}

.password-reset-input {
  width: 120px;
  padding: 5px 7px;
}

.audit-detail {
  min-width: 180px;
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.empty {
  padding: 26px 10px;
  text-align: center;
  color: var(--muted);
}

/* 系统首页 */
.system-home {
  max-width: 1100px;
  margin: 0 auto;
}

.home-hero {
  text-align: center;
  padding: 22px 0 8px;
}

.home-kicker {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}

.home-hero h1 {
  font-size: 30px;
  margin: 6px 0 4px;
}

.home-hero p {
  color: var(--muted);
  margin: 0;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0 18px;
}

.system-card {
  position: relative;
  display: block;
  min-height: 230px;
  padding: 24px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.system-card:hover {
  transform: translateY(-3px);
  border-color: #b9cdf5;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  text-decoration: none;
}

.system-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.accent-reserve {
  background: #c62828;
}

.accent-finance {
  background: #b45309;
}

.accent-purchase {
  background: #15803d;
}

.system-card h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.system-card p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.7;
}

.system-enter {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.system-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f1f3f5;
  color: #697586;
  font-size: 11px;
}

.system-footnote {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.placeholder-card {
  max-width: 640px;
  margin: 40px auto;
  padding: 42px 24px;
  text-align: center;
}

.placeholder-card .system-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  font-size: 28px;
}

.placeholder-card h1 {
  font-size: 26px;
}

.placeholder-note {
  margin: 16px 0 22px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

/* 登录 */
.login-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 26px;
}

.login-title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 4px;
}

.login-card > .muted {
  text-align: center;
  margin-bottom: 18px;
}

.login-forgot {
  text-align: center;
  margin-top: 6px;
}

.login-forgot .btn-link {
  font-size: 13px;
}

.login-hint {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}

/* 小屏 */
@media (max-width: 760px) {
  .topbar {
    gap: 5px 10px;
    padding: 8px 12px;
    position: static;
  }

  .brand {
    flex: 1 1 0;
    gap: 7px;
    font-size: 14px;
    line-height: 1.3;
  }

  .brand-logo {
    height: 34px;
  }

  .brand-system {
    display: block;
  }

  .topbar nav {
    order: 3;
    width: 100%;
    gap: 1px;
  }

  .topbar nav a {
    padding: 5px 7px;
    font-size: 12px;
  }

  .user-area {
    margin-left: auto;
  }

  .user-area > .muted {
    display: none;
  }

  .home-hero {
    padding-top: 12px;
  }

  .home-hero h1 {
    font-size: 24px;
  }

  .system-grid {
    gap: 12px;
    margin-top: 18px;
  }

  .system-card {
    min-height: 0;
    padding: 18px;
  }

  .system-card p {
    min-height: 0;
  }


  .container {
    margin-top: 12px;
    padding: 0 10px;
  }

  .card {
    padding: 12px;
  }

  h1 {
    font-size: 20px;
  }

  .stat-value {
    font-size: 24px;
  }

  th,
  td {
    padding: 8px;
  }

  .modal {
    padding: 8px;
  }

  .modal-box {
    padding: 14px;
    margin: 10px auto;
  }

  .qty-input {
    width: 72px;
  }

  .note-cell {
    min-width: 90px;
  }

  .search-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-field,
  .search-keyword {
    flex: 1 1 100%;
  }

  .search-field select {
    width: 100%;
  }

  .search-actions {
    flex: 1 1 100%;
  }

  .search-actions .btn {
    flex: 1;
  }
}

/* ---------- 顾客端商品管理 ---------- */
.customer-admin-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.7;
}

.customer-admin-section {
  margin-bottom: 24px;
}

.customer-admin-section > h2 {
  margin: 0 0 2px;
  font-size: 18px;
}

.customer-admin-section > p {
  margin: 0 0 10px;
}

.customer-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.customer-admin-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(31, 41, 51, 0.04);
}

.customer-admin-media {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-admin-preview {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #d4dae2;
  border-radius: 12px;
  background: #f8fafc;
  color: #9aa4b2;
  font-size: 12px;
}

.customer-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customer-admin-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.customer-admin-info strong {
  font-size: 15px;
}

.customer-admin-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.customer-admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #4b5563;
  font-size: 12px;
}

.customer-admin-field input[type="text"],
.customer-admin-field input[type="number"],
.customer-admin-field input[type="file"] {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}

.customer-admin-field input[type="file"] {
  padding: 6px;
  font-size: 12px;
}

.customer-admin-remove {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 12px;
}

.customer-admin-remove input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.customer-admin-form .btn {
  min-height: 38px;
}

/* ---------- 进货报货 / 消息中心 / 财务 ---------- */
.notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 6px;
  border-radius: 50%;
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
}

.notification-bell:hover {
  background: #eef2f7;
  text-decoration: none;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.module-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.module-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
}

.module-card h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.inline-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.inline-filter select,
.inline-filter input {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  color: #4b5563;
  font-size: 13px;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.report-note p {
  margin: 0 0 4px;
}

.report-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-type-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.report-type-tab:hover {
  border-color: #9ca3af;
  background: #f8fafc;
}

.report-type-tab.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.report-type-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  line-height: 1;
}

.report-type-tab.is-active .report-type-count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.report-type-hint {
  margin: 9px 0 0;
}

.report-group[hidden],
.report-type-empty[hidden] {
  display: none;
}

.report-type-empty {
  padding: 16px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .report-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .report-type-tab {
    justify-content: center;
    padding: 9px 8px;
  }
}

.report-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.report-group-head h2 {
  margin: 0;
  font-size: 18px;
}

.report-table input {
  min-height: 34px;
}

.report-table .money-input {
  max-width: 110px;
}

.material-usage {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  max-width: 150px;
  white-space: normal;
}

.processing-select {
  min-height: 34px;
  max-width: 170px;
  padding: 6px 8px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.processing-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 8px 16px;
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.processing-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.processing-option-row .check-line {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.processing-option-row .processing-default-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.processing-option-row .processing-default-input {
  flex: 0 0 76px;
  width: 76px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid #d4dae2;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  text-align: right;
}

@media (max-width: 767.98px) {
  /* 手机端加工方式改为上下两行，默认数量不再横向挤占 */
  .processing-check-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .processing-option-row {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
  }

  .processing-option-row:last-child {
    border-bottom: 0;
  }

  .processing-option-row .check-line {
    flex: 1 1 100%;
    white-space: normal;
  }

  .processing-default-label {
    flex: 1 1 100%;
    justify-content: space-between;
    padding-left: 22px;
  }

  .processing-option-row .processing-default-input {
    flex: 0 0 100px;
    width: 100px;
  }
}

.qty-select {
  width: 92px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  text-align: center;
}

.report-qty-input {
  width: 100px;
  text-align: right;
}

/* 报货数量弹层 */
.qty-cell {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 92px;
}

.qty-display {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 86px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.qty-display:hover {
  border-color: var(--primary);
}

.qty-caret {
  color: var(--muted);
  font-size: 11px;
}

.qty-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.qty-modal.open {
  display: flex;
}

.qty-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.qty-modal-box {
  position: relative;
  width: min(92vw, 420px);
  max-height: calc(var(--app-height, 100dvh) - 32px);
  overflow-y: auto;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  -webkit-overflow-scrolling: touch;
}

.qty-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.qty-modal-head h2 {
  margin: 0 0 2px;
  font-size: 18px;
}

.qty-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.qty-preset {
  min-height: 44px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.qty-preset.selected {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  font-weight: 700;
}

.qty-custom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dbe2ea;
  color: #4b5563;
  font-size: 13px;
}

.qty-custom-row input {
  flex: 1;
  min-height: 40px;
}

.qty-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.qty-modal-actions .btn {
  min-width: 80px;
}

body.qty-modal-open {
  overflow: hidden;
}

.report-confirm-box {
  width: min(94vw, 480px);
}

.report-confirm-content {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding-right: 2px;
}

.report-confirm-merchant {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.report-confirm-merchant:last-child {
  margin-bottom: 0;
}

.report-confirm-merchant h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.report-confirm-merchant ul {
  margin: 0;
  padding-left: 18px;
}

.report-confirm-line {
  margin: 3px 0;
  color: #334155;
  font-size: 13px;
}

.report-confirm-remark {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.report-confirm-empty {
  padding: 18px 8px;
  color: #b91c1c;
  text-align: center;
  font-size: 13px;
}

.report-result-box {
  width: min(94vw, 520px);
}

.report-result-banner {
  margin: 12px 0 14px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.report-result-banner.is-success {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.report-result-banner.is-error {
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.report-result-banner.is-muted {
  border: 1px solid #e2e8f0;
  color: #475569;
  background: #f8fafc;
}

.report-result-list {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.report-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-bottom: 1px solid #eef2f7;
}

.report-result-row:last-child {
  border-bottom: 0;
}

.report-result-merchant {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.report-result-status {
  font-size: 13px;
  text-align: right;
  line-height: 1.45;
}

.report-result-status.is-success {
  color: #15803d;
}

.report-result-status.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.report-result-status.is-muted {
  color: #64748b;
}

.report-result-box .qty-modal-actions {
  margin-top: 16px;
}

.report-record-card {
  margin-bottom: 14px;
}

.report-record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.report-record-head h2 {
  margin: 0 0 3px;
  font-size: 18px;
}

.report-record-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.dot-sep {
  margin: 0 4px;
  color: #cbd5e1;
}

.report-record-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-record-total {
  color: #b42318;
  font-size: 16px;
  font-weight: 700;
}

.report-record-table .check-col {
  width: 36px;
  text-align: center;
}

.report-record-table .check-col input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.report-record-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.report-sms-log {
  margin-top: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.report-sms-log summary {
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.report-sms-log pre {
  margin: 8px 0 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 767.98px) {
  .report-record-head {
    flex-direction: column;
  }

  .report-record-side {
    width: 100%;
    justify-content: flex-start;
  }
}

/* 店内 FAQ */
.wifi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.faq-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 10px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.faq-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  white-space: nowrap;
}

.faq-tab.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-article h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.faq-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 10px;
}

.faq-content,
.rich-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
  word-break: break-word;
}

.rich-content p {
  margin: 0 0 10px;
}

.rich-content p:last-child {
  margin-bottom: 0;
}

.rich-content h2,
.rich-content h3 {
  margin: 14px 0 8px;
  color: #1e293b;
}

.rich-content h2 {
  font-size: 18px;
}

.rich-content h3 {
  font-size: 16px;
}

.rich-content ul,
.rich-content ol {
  margin: 0 0 10px;
  padding-left: 24px;
}

.rich-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 10px 0;
  border-radius: 10px;
  background: #f8fafc;
}

.rich-editor {
  border: 1px solid #d4dae2;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.rich-editor:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.rich-toolbar button {
  min-width: 32px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid #dbe2ea;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.rich-toolbar button:hover {
  border-color: #93b4f7;
  background: #eff6ff;
}

.rich-toolbar button:active {
  background: #dbeafe;
}

.rich-toolbar .rich-image-btn {
  margin-left: auto;
  border-color: #bfd3ff;
  color: var(--primary);
  font-weight: 600;
}

.rich-input {
  min-height: 190px;
  max-height: 560px;
  overflow-y: auto;
  padding: 12px 14px;
  outline: none;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.75;
  word-break: break-word;
}

.rich-input:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
}

.rich-input p {
  margin: 0 0 8px;
}

.rich-input ul,
.rich-input ol {
  margin: 0 0 8px;
  padding-left: 24px;
}

.rich-input img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  margin: 8px 0;
  border-radius: 8px;
  background: #f8fafc;
}

.rich-editor .form-note {
  margin: 0;
  padding: 0 14px 10px;
}

.faq-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.faq-admin-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: start;
}

.faq-admin-list {
  display: grid;
  gap: 8px;
}

.faq-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.faq-admin-info {
  min-width: 0;
}

.faq-admin-info .badge {
  margin-right: 6px;
}

.faq-admin-info p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.faq-admin-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
}

.faq-admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.wifi-denied {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}

.wifi-denied-icon {
  font-size: 44px;
  margin-bottom: 4px;
}

.wifi-denied h1 {
  margin: 0 0 10px;
  font-size: 22px;
}

.wifi-denied p {
  margin: 6px 0;
  color: #475569;
}

.wifi-denied .form-actions {
  justify-content: center;
}

/* 员工送餐指引 */
.delivery-list {
  display: grid;
  gap: 12px;
}

.delivery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.delivery-head h2 {
  margin: 0 0 3px;
  font-size: 19px;
}

.delivery-content {
  color: #334155;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.delivery-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.delivery-images a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.delivery-images img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}

textarea {
  width: 100%;
  min-height: 90px;
  padding: 9px 11px;
  border: 1px solid #d4dae2;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

@media (max-width: 767.98px) {
  .faq-admin-grid {
    grid-template-columns: 1fr;
  }

  .faq-admin-item {
    flex-direction: column;
  }

  .faq-admin-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .delivery-head {
    flex-direction: column;
  }

  .rich-toolbar .rich-image-btn {
    margin-left: 0;
  }

  .rich-input {
    min-height: 160px;
    max-height: 420px;
    padding: 10px 12px;
  }

  .rich-content img {
    max-height: 420px;
  }
}

@media (max-width: 767.98px) {
  .qty-modal {
    padding: 12px;
    align-items: flex-end;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .qty-modal-box {
    width: 100%;
    max-height: calc(var(--app-height, 100dvh) - 24px);
    border-radius: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .qty-preset {
    min-height: 48px;
    font-size: 16px;
  }

  .report-result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .report-result-status {
    text-align: left;
  }

  .report-result-modal {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .report-result-box {
    max-height: calc(var(--app-height, 100dvh) - 32px);
  }
}

.notification-card {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.notification-unread {
  border-left: 4px solid var(--primary);
  background: #fbfdff;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.notification-head h2 {
  margin: 0 0 2px;
  font-size: 16px;
}

.notification-kind {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
}

.notification-body {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.65;
  word-break: break-word;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.notification-actions form {
  display: inline;
}

.sms-state {
  font-size: 12px;
  font-weight: 600;
}

.sms-success { color: var(--green); }
.sms-failed { color: var(--danger); }
.sms-sending { color: var(--muted); }
.sms-limit { color: var(--danger); }

.sms-content {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-word;
}

.bulk-read-form {
  margin-bottom: 12px;
}

.finance-merchant {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}

.finance-merchant > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
}

.finance-total {
  color: var(--primary);
}

.finance-merchant > .table-wrap {
  padding: 10px 14px 14px;
}

.finance-lines summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 12px;
}

.finance-lines .table-wrap {
  margin-top: 6px;
}

.form-static {
  margin: 0;
  padding: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.permission-tree {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.permission-group {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  overflow: hidden;
}

.permission-group > summary {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  background: #f1f5f9;
  cursor: pointer;
  list-style: none;
}

.permission-group > summary::-webkit-details-marker {
  display: none;
}

.permission-group > summary::after {
  content: "展开";
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.permission-group[open] > summary::after {
  content: "收起";
}

.permission-group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
}

.permission-group-title input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.permission-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 14px;
  padding: 10px 12px 12px;
}

.permission-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.permission-item input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: 0 0 auto;
}

.permission-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 560px;
}

.permission-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
}

.permission-none {
  color: var(--muted);
  font-size: 12px;
}

.faq-tag-manage {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.faq-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.faq-tag-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  word-break: break-word;
}

.faq-tag-count {
  margin-left: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.faq-tag-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.faq-tag-form .form-row {
  flex: 1 1 200px;
  margin: 0;
}

.faq-tag-form .form-row input {
  margin-top: 5px;
}

.inbox-order-detail {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fbfcfe;
}

.inbox-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 16px;
  color: #475569;
  font-size: 12px;
}

.inbox-order-meta strong {
  color: #273244;
  font-weight: 600;
}

.inbox-order-lines {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px dashed #dbe3ec;
}

.inbox-order-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e6edf5;
  font-size: 12px;
}

.inbox-order-line:last-child {
  border-bottom: 0;
}

.inbox-order-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #475569;
  font-size: 12px;
}

.inbox-order-foot .order-total {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .notification-head {
    flex-direction: column;
  }

  .notification-actions {
    width: 100%;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .finance-merchant > summary {
    padding: 10px 12px;
  }

  .finance-merchant > .table-wrap {
    padding: 8px;
  }

  .customer-admin-grid {
    grid-template-columns: 1fr;
  }

  .customer-admin-preview {
    width: 78px;
    height: 78px;
  }

  .customer-admin-field input[type="text"],
  .customer-admin-field input[type="number"],
  .customer-admin-field input[type="file"] {
    font-size: 16px;
  }

  .permission-items {
    grid-template-columns: 1fr;
  }

  .inbox-order-meta {
    grid-template-columns: 1fr 1fr;
  }

  .faq-tag-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .faq-tag-row form {
    align-self: flex-end;
  }
}
