:root {
  --blue: #2f80f6;
  --blue-soft: #eef5ff;
  --text: #2f3742;
  --muted: #8a94a3;
  --line: #edf0f5;
  --bg: #f6f7f9;
  --side: #ffffff;
  --row: #f7f9fc;
  --danger: #f52245;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

body.auth-page {
  min-width: 0;
  background: #fff;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: #fff;
}

.login-screen.hidden,
.app-shell.hidden,
.register-only {
  display: none;
}

.auth-register .register-only {
  display: block;
}

.login-card {
  width: min(638px, calc(100vw - 40px));
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58px 78px 48px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(32, 42, 62, 0.13);
}

.login-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  color: #f8d37a;
  background: #09228d;
  border: 1px solid #4262c5;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
}

.login-card h1 {
  margin-bottom: 34px;
  color: #303946;
  font-size: 24px;
  font-weight: 500;
}

.login-form {
  width: 100%;
  display: grid;
  gap: 18px;
}

.login-input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  color: #303946;
  border: 1px solid #e2e7ef;
  border-radius: 4px;
  outline: 0;
  background: #fff;
}

.login-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 128, 246, 0.1);
}

.login-submit {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  background: #2f80f6;
  cursor: pointer;
}

.login-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.login-link {
  margin-top: 22px;
  border: 0;
  color: #2f80f6;
  background: transparent;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #e7e9ee;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a8f98;
  font-size: 18px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #f8d37a;
  background: #09228d;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #4262c5;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #8b929c;
}

.icon-btn,
.user-menu {
  border: 0;
  background: transparent;
  color: #8b929c;
  cursor: pointer;
}

.icon-btn {
  width: 26px;
  height: 26px;
  padding: 0;
  color: #8c929a;
  font-weight: 700;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.avatar {
  width: 24px;
  height: 24px;
  display: inline-block;
  border-radius: 50%;
  background: linear-gradient(#b9bdc4 44%, #8c939d 45%);
}

.sidebar {
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  width: 288px;
  overflow-y: auto;
  background: var(--side);
  border-right: 1px solid #e5e8ee;
}

.menu-item,
.submenu-item {
  width: 100%;
  height: 67px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  border: 0;
  background: #fff;
  color: #303a46;
  text-align: left;
  cursor: pointer;
}

.menu-item {
  justify-content: space-between;
  font-size: 18px;
}

.menu-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-icon {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  color: #9098a4;
  font-size: 15px;
}

.chevron {
  color: #b6bec8;
}

.submenu-item {
  height: 68px;
  padding-left: 48px;
  font-size: 18px;
  background: #f5f5f5;
}

.submenu-item.active {
  color: var(--blue);
}

.submenu-item.active .tiny-icon {
  background: var(--blue);
}

.tiny-icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #252525;
  border-radius: 1px;
  font-size: 10px;
  font-weight: 700;
}

.content {
  margin-left: 288px;
  padding: 90px 18px 18px;
}

.panel {
  min-height: calc(100vh - 108px);
  padding: 16px 18px 28px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(31, 35, 41, 0.12);
}

.page-title-row {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #f1f2f5;
  margin: -16px -18px 18px;
  padding: 0 18px;
}

h1,
h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

.toolbar.compact {
  gap: 18px;
}

.toolbar-spacer {
  flex: 1;
}

.btn {
  height: 36px;
  min-width: 68px;
  padding: 0 20px;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  color: #687384;
  background: #fff;
  cursor: pointer;
}

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

.input,
.select {
  height: 36px;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  color: #576170;
  background: #fff;
  padding: 0 14px;
}

.filter-field {
  position: relative;
}

.input::placeholder {
  color: #b5bdc8;
}

.search-input {
  width: 348px;
}

.auth-code-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px 16px;
  align-items: end;
  margin: 0 0 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #edf0f5;
  border-radius: 4px;
}

.auth-code-form label {
  display: grid;
  gap: 8px;
  color: #687384;
  font-size: 14px;
}

.auth-code-form label span {
  color: #303946;
  font-weight: 700;
}

.auth-code-form .wide {
  grid-column: span 2;
}

.auth-code-form .input,
.auth-code-form .select {
  width: 100%;
}

.auth-code-form .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.auth-code-form .form-actions .btn {
  min-width: 88px;
}

.date-range {
  width: 420px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: #c0c7d0;
  text-align: left;
  cursor: pointer;
}

.date-range.active,
.select-trigger.active {
  border-color: #2f86ff;
  box-shadow: 0 0 0 1px rgba(47, 128, 246, 0.06);
}

.select,
.select-trigger {
  width: 268px;
  color: #b5bdc8;
}

.select-trigger {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  background: #fff;
  padding: 0 14px;
  cursor: pointer;
}

.select-popover {
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 30;
  width: 434px;
  height: 228px;
  display: grid;
  grid-template-columns: 216px 1fr;
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(31, 35, 41, 0.1);
}

.select-popover::before,
.date-popover::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 44px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #e4e8ef;
  border-top: 1px solid #e4e8ef;
  transform: rotate(45deg);
}

.select-groups {
  border-right: 1px solid #e8ecf2;
}

.select-groups button,
.select-options button,
.quick-ranges button,
.days button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.select-groups button {
  width: 100%;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 36px;
  color: #656f7c;
  font-size: 18px;
}

.select-groups button.active {
  color: var(--blue);
  background: #f4f7fb;
  font-weight: 700;
}

.select-options {
  padding-top: 12px;
}

.select-options button {
  display: block;
  width: 100%;
  height: 40px;
  padding-left: 36px;
  color: #656f7c;
  text-align: left;
  font-size: 18px;
}

.date-popover {
  position: absolute;
  top: 50px;
  left: -324px;
  z-index: 30;
  width: 910px;
  height: 396px;
  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(31, 35, 41, 0.1);
}

.date-popover::before {
  left: 370px;
}

.quick-ranges {
  padding-top: 12px;
  border-right: 1px solid #e8ecf2;
}

.quick-ranges button {
  display: block;
  width: 100%;
  height: 36px;
  padding-left: 14px;
  color: #697383;
  text-align: left;
  font-size: 17px;
}

.calendar {
  padding: 24px 20px 0;
  border-right: 1px solid #e8ecf2;
}

.calendar:last-child {
  border-right: 0;
}

.calendar-head {
  display: grid;
  grid-template-columns: 32px 32px 1fr 32px 32px;
  align-items: center;
  color: #b7bec8;
  font-size: 22px;
}

.calendar-head strong {
  color: #6d737d;
  text-align: center;
  font-size: 22px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.weekdays {
  margin-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
  color: #69717c;
}

.days {
  row-gap: 12px;
  padding-top: 12px;
}

.days button {
  height: 34px;
  color: #737b86;
  font-size: 16px;
}

.days button:nth-last-child(-n + 10),
.days button:first-child {
  color: #c3c9d2;
}

.days button.picked {
  color: #3295ff;
  font-weight: 700;
}

.stats-pad {
  padding: 56px 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 36px 60px;
}

.stat-card {
  height: 124px;
  display: grid;
  grid-template-columns: 92px 1fr 1px 1fr;
  align-items: center;
  padding: 0 24px;
  border: 1px solid #e8edf5;
  border-radius: 5px;
  background: #fff;
}

.stat-card.featured {
  box-shadow: 0 8px 20px rgba(31, 35, 41, 0.13);
}

.stat-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #3b99f8;
  font-size: 34px;
}

.stat-main strong {
  display: block;
  color: #4299ff;
  font-size: 28px;
  line-height: 1.1;
}

.stat-main span,
.stat-compare span {
  color: #929ba8;
  line-height: 1.7;
}

.divider {
  height: 96px;
  background: #e4e8ee;
}

.stat-compare {
  text-align: center;
}

.stat-compare b {
  display: block;
  color: #000;
  font-size: 28px;
  line-height: 1.4;
}

.up {
  color: #3b99f8;
}

.down {
  color: #ff6b75;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 38px;
}

.segments {
  display: flex;
  background: #f0f1f4;
  border-radius: 4px;
  overflow: hidden;
}

.segments button {
  width: 80px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #606976;
  cursor: pointer;
}

.segments .active {
  color: var(--blue);
  background: #fff;
  font-weight: 700;
}

.chart {
  position: relative;
  height: 260px;
  margin-top: 22px;
  border-bottom: 1px solid #dbe4ef;
  background:
    linear-gradient(#dbe4ef 1px, transparent 1px) 0 52px / 100% 70px no-repeat,
    linear-gradient(#edf2f8 1px, transparent 1px) 0 122px / 100% 70px no-repeat,
    linear-gradient(#edf2f8 1px, transparent 1px) 0 192px / 100% 70px no-repeat;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #596472;
}

.legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.chart-line {
  position: absolute;
  right: 220px;
  bottom: 0;
  width: 95px;
  height: 95px;
  background: linear-gradient(135deg, transparent 49%, #7cc2fb 50%, #7cc2fb 52%, transparent 53%),
    linear-gradient(225deg, transparent 49%, #7cc2fb 50%, #7cc2fb 52%, transparent 53%);
}

.chart-line::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 42px;
  width: 8px;
  height: 8px;
  border: 2px solid #2693f2;
  border-radius: 50%;
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #606b79;
}

.order-table {
  min-width: 2800px;
}

.order-table th,
.order-table td {
  min-width: 120px;
  white-space: nowrap;
}

.order-table th:nth-child(1),
.order-table td:nth-child(1) {
  min-width: 220px;
}

.order-table th:nth-child(6),
.order-table td:nth-child(6) {
  min-width: 360px;
}

.order-table th:nth-child(21),
.order-table td:nth-child(21) {
  min-width: 560px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
}

th {
  color: #8993a0;
  font-weight: 700;
  background: #fff;
}

tbody tr:nth-child(odd) {
  background: var(--row);
}

.left {
  text-align: left;
}

.content-cell {
  line-height: 1.9;
}

.actions a {
  display: block;
  margin: 8px 0;
  color: var(--blue);
  text-decoration: none;
}

.actions .danger {
  color: var(--danger);
}

.status-tag {
  min-width: 84px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border-radius: 4px;
  font-weight: 700;
}

.status-tag.green {
  color: #fff;
  background: #45c51e;
}

.status-tag.gray {
  color: #fff;
  background: #969ba3;
}

.status-tag.light-red {
  color: #ff6b75;
  background: #fff1f1;
  border: 1px solid #ffe2e2;
}

.row-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  white-space: nowrap;
}

.editable-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.editable-cell span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-edit {
  height: 28px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid rgba(47, 128, 246, 0.28);
  border-radius: 14px;
  color: var(--blue);
  background: #eef5ff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.material-preview-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.material-thumb {
  width: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.material-thumb img {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}

.material-thumb span {
  display: block;
  margin-top: 6px;
  color: #606b79;
  font-size: 12px;
  line-height: 1;
}

.material-invalid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 12px;
  color: #d97706;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
}

.receipt-link {
  min-width: 88px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #d7e3ff;
  border-radius: 17px;
  color: #2f6dff;
  background: #eef4ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.row-btn {
  height: 34px;
  min-width: 84px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.row-btn.blue {
  background: #3c9bf5;
}

.row-btn.red {
  background: #ff6468;
}

.row-btn.pill {
  border-radius: 18px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  color: #969da7;
}

.page-btn {
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  color: #999;
  background: #f4f5f7;
}

.page-btn.active {
  color: #fff;
  background: var(--blue);
}

.page-btn:disabled {
  color: #c3c8d0;
  cursor: not-allowed;
  background: #f7f8fa;
}

.page-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #9aa3af;
}

.wide-blank {
  height: 190px;
}

.price-list {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 28px auto 34px;
}

.mini-program-sync-note {
  width: min(100%, 1180px);
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid #cfe1ff;
  border-radius: 4px;
  color: #315078;
  background: #f4f8ff;
  font-size: 15px;
  line-height: 1.6;
}

.price-row {
  display: grid;
  grid-template-columns: 1.35fr 90px 28px 1.35fr 1.35fr 76px 76px;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.price-row-head {
  margin-bottom: 8px;
  color: #7a8493;
  font-size: 14px;
  font-weight: 700;
}

.price-row-head span {
  font-size: 14px;
}

.price-row .input {
  width: 100%;
  font-size: 20px;
}

.price-row span {
  font-size: 20px;
}

.annual-price-list {
  width: 1120px;
  max-width: 100%;
  margin: 34px auto 28px;
}

.annual-price-list .price-row {
  grid-template-columns: 220px 116px 24px minmax(180px, 1fr) minmax(180px, 1fr) 88px 88px;
  gap: 14px;
  margin-bottom: 24px;
}

.annual-price-list .price-row .input {
  height: 54px;
  padding: 0 14px;
  font-size: 22px;
  font-weight: 600;
}

.annual-price-list .price-row span {
  font-size: 24px;
}

.annual-price-list .price-row .btn {
  height: 50px;
  min-width: 88px;
  border-radius: 5px;
  font-size: 20px;
}

.annual-price-actions {
  width: 720px;
  margin: 6px auto 0;
  text-align: right;
}

.rule {
  height: 1px;
  background: #777;
  margin: 6px 0 24px;
}

.settings-form {
  display: grid;
  grid-template-columns: 1fr 122px 1fr;
  row-gap: 12px;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 12px;
}

.settings-form label {
  text-align: right;
  padding-right: 10px;
  font-size: 20px;
  color: #151a21;
}

.qr {
  width: 122px;
  height: 122px;
  display: grid;
  place-items: center;
  border: 1px solid #555;
  font-size: 54px;
  color: #68717d;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.editor-section {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: start;
  width: min(86%, 1120px);
  margin: 12px auto 0;
}

.editor-label {
  padding-top: 310px;
  text-align: right;
  font-size: 20px;
}

.editor {
  border: 1px solid #d8e1ea;
  background: #fff;
  min-width: 0;
}

.editor-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  color: #8d959f;
  border-bottom: 1px solid #e7edf3;
  font-weight: 700;
  font-size: 20px;
}

.editor-tool {
  min-width: 26px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #8d959f;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.editor-tool:hover,
.editor-tool:focus {
  color: var(--blue);
  border-color: #d9e8ff;
  background: #f4f8ff;
  outline: none;
}

.editor-body {
  min-height: 600px;
  padding: 14px;
  font-size: 24px;
  line-height: 1.45;
}

.rich-editor {
  width: 100%;
  display: block;
  color: #202833;
  outline: none;
  overflow: auto;
}

.rich-editor:focus {
  box-shadow: inset 0 0 0 1px rgba(47, 128, 246, 0.38);
}

.rich-editor p {
  margin: 0 0 22px;
}

.blue-text {
  color: #3a78d4;
}

.red-text {
  color: #d64d4d;
}

.settings-actions {
  width: 670px;
  margin: 36px auto 0;
  display: grid;
  gap: 36px;
}

.settings-actions .btn {
  width: 100%;
  height: 42px;
  font-size: 18px;
}

.add-service-form {
  padding: 26px 0 0;
}

.form-line {
  display: grid;
  grid-template-columns: 116px 1fr;
  width: 100%;
  height: 48px;
  margin-bottom: 24px;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  overflow: hidden;
}

.form-line label {
  display: grid;
  place-items: center;
  color: #8d96a3;
  background: #f5f7fa;
  border-right: 1px solid #dfe4ec;
  font-weight: 700;
}

.form-line input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: #596372;
  background: #fff;
}

.form-line input::placeholder {
  color: #b8c0cc;
}

.add-submit {
  display: block;
  width: 510px;
  height: 48px;
  margin: 8px auto 0;
  font-size: 18px;
  font-weight: 700;
}

.merchant-current {
  margin: 12px 0 20px;
  padding: 14px 18px;
  color: #596372;
  background: #f8fafc;
  border: 1px solid #e5eaf2;
  border-radius: 6px;
}

.merchant-current strong {
  color: #202936;
}

.merchant-current span {
  margin-left: 18px;
  color: #8b95a3;
}

.merchant-form {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fbfdff;
}

.merchant-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.merchant-form label {
  display: grid;
  gap: 8px;
  color: #5b6573;
  font-weight: 700;
}

.merchant-form input,
.merchant-form select,
.merchant-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 4px;
  padding: 0 14px;
  color: #303846;
  background: #fff;
  outline: 0;
}

.merchant-form input,
.merchant-form select {
  height: 42px;
}

.merchant-form textarea {
  min-height: 118px;
  padding-top: 12px;
  resize: vertical;
}

.merchant-file-input {
  padding: 8px 10px;
  height: auto;
}

.merchant-file-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 14px;
}

.merchant-file-name b {
  color: #111827;
  font-weight: 700;
}

.merchant-wide {
  grid-column: 1 / -1;
}

.merchant-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.merchant-table {
  min-width: 1680px;
}

.merchant-table td {
  white-space: nowrap;
}

.merchant-table td.left {
  max-width: 320px;
  white-space: normal;
  word-break: break-all;
}

.merchant-table small {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
}

.key-ok {
  color: #22a06b;
}

.key-miss {
  color: #e55353;
}

.float-help {
  position: fixed;
  right: 8px;
  bottom: 132px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 4px solid #fde3ed;
  border-radius: 50%;
  color: #fff;
  background: #ef75a1;
  font-weight: 700;
}

.toast {
  position: fixed;
  top: 330px;
  left: 50%;
  z-index: 60;
  width: 160px;
  height: 145px;
  display: grid;
  place-items: center;
  padding: 24px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.66);
  border-radius: 8px;
  transform: translateX(-50%);
}

.toast span {
  font-size: 58px;
  line-height: 1;
}

.toast b {
  font-weight: 400;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 142px;
  background: rgba(0, 0, 0, 0.52);
}

.receipt-modal {
  width: min(1026px, calc(100vw - 120px));
  height: 514px;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 24px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(22, 28, 36, 0.22);
}

.modal-head {
  height: 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-head h2 {
  padding-left: 0;
  color: #303846;
  font-size: 22px;
  font-weight: 500;
}

.modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  color: #a4acb8;
  background: transparent;
  font-size: 30px;
  line-height: 24px;
  cursor: pointer;
}

.receipt-input {
  width: 100%;
  height: 48px;
  margin-top: 28px;
  padding: 0 18px;
  resize: none;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  color: #303846;
  outline: none;
  line-height: 46px;
}

.receipt-input::placeholder {
  color: #c0c7d2;
}

.receipt-input:focus {
  border-color: #8dbbff;
  box-shadow: 0 0 0 2px rgba(47, 128, 246, 0.08);
}

.image-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(15, 23, 42, 0.6);
}

.image-preview-dialog {
  width: min(880px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  padding: 18px 18px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.image-preview-head strong {
  color: #303846;
  font-size: 18px;
  font-weight: 600;
}

.image-preview-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #8b95a5;
  background: #f3f5f8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.image-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  margin-top: 16px;
}

.image-preview-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  border-radius: 8px;
  object-fit: contain;
}

.modal-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-actions .btn {
  min-width: 88px;
  height: 48px;
  color: #606b79;
  background: #fff;
}

@media (max-width: 1400px) {
  body {
    min-width: 1080px;
  }

  .stats-grid {
    gap: 24px;
  }

  .price-row {
    grid-template-columns: 1.25fr 78px 24px 1.25fr 1.25fr 68px 68px;
    gap: 10px;
  }

  .annual-price-list .price-row {
    grid-template-columns: 200px 100px 24px 160px 160px 78px 78px;
    gap: 14px;
  }
}
